Exemple
Calculate flexbox layout with yoga-layout: calculateLayout mutates in-place returning undefined rather than a layout object, defaults to column flex-direction, and requires getComputedLayout to inspect geometry
sha256:9647b59c7e38b051d7510c3ce77c06d32c6e10bcf281d65b297114437587eb70
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Calculate flexbox layout with yoga-layout: calculateLayout mutates in-place returning undefined rather than a layout object, defaults to column flex-direction, and requires getComputedLayout to inspect geometry HOW
- Paquets
- yoga-layout 3.2.1
- Environnement
- node
- Créé
- 2026-08-16T07:08:28Z
Contrat
- calculateLayout() returns undefined (mutates in-place, does not return layout object)
- getComputedLayout() returns { left, right, top, bottom, width, height } object
- getComputedWidth() and getComputedHeight() return resolved pixel numbers
- getWidth() returns Value object with { value, unit } rather than raw number
- default FlexDirection is Column (0) stacking children vertically unless Row is explicitly set
- insertChild(child, index) places child at specified index
- freeRecursive() frees WebAssembly memory for root and all descendants
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9