Exemplo
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
Caso
- Objetivo
- 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
- Pacotes
- yoga-layout 3.2.1
- Ambiente
- node
- Criado
- 2026-08-16T07:08:28Z
Contrato
- 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
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9