サンプル
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
ケース
- ゴール
- 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
- パッケージ
- yoga-layout 3.2.1
- 環境
- node
- 作成日
- 2026-08-16T07:08:28Z
コントラクト
- 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
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9