CodeSampleX

Beispiel

yoga-layout 3.2.1: Yoga 3 defaults to BoxSizing.BorderBox where fixed dimensions include padding and border, configures flexShrink 0 and Column direction unless useWebDefaults is enabled, restricts measure functions to leaf nodes with dirty-mark caching, collapses Display.None geometry, and recalculates cross-axis dimensions from aspectRatio

Verifiziertes Beispiel für npm yoga-layout 3.2.1: Yoga 3 defaults to BoxSizing.BorderBox where fixed dimensions include padding and border, configures…

sha256:0cdcd24cba1e2dc947e55e89f78898ff999517534a16500b5593885743ac3f7b

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung node linux x64 node node npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-17
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

Fall

HOW
Ziel
Yoga 3 defaults to BoxSizing.BorderBox where fixed dimensions include padding and border, configures flexShrink 0 and Column direction unless useWebDefaults is enabled, restricts measure functions to leaf nodes with dirty-mark caching, collapses Display.None geometry, and recalculates cross-axis dimensions from aspectRatio
Pakete
Symbole
  • Yoga.Node.create
  • Yoga.Config.create
  • BoxSizing
  • Config.prototype.setUseWebDefaults
  • Node.prototype.setBoxSizing
  • Node.prototype.setMeasureFunc
  • Node.prototype.markDirty
  • Node.prototype.setDisplay
  • Node.prototype.setAspectRatio
Umgebung
node
Erstellt
2026-08-17T20:40:40Z

Contract

  1. Yoga 3 defaults node box-sizing to BoxSizing.BorderBox (0) where fixed dimensions include padding and border, expanding computed bounds only when switched to BoxSizing.ContentBox (1)
  2. Config defaults useWebDefaults to false with flexShrink 0 preventing overflow compression, while useWebDefaults(true) enables Row direction and flexShrink 1
  3. Measure functions are leaf-only, cached across layout evaluations until markDirty is invoked, and abort if children are inserted
  4. Display.None collapses computed layout rectangle to zero dimensions and removes the node from sibling flow calculation
  5. AspectRatio dynamically recalculates the cross-axis dimension from the main-axis dimension during layout

Dateien

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed