react-nitro-yoga 0.0.0-stage → 0.0.1-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Generated/.gitattributes +1 -0
- package/Generated/api.d.ts +100 -0
- package/Generated/ffigen_yoga_adapters.h +52 -0
- package/Generated/native.d.ts +84 -0
- package/Generated/native.ts +283 -0
- package/Generated/yoga.c +1087 -0
- package/LICENSE +21 -0
- package/Package.swift +57 -0
- package/README.md +61 -2
- package/Sources/ReactNitroYoga/InstallHermesBindings.cpp +11 -0
- package/Sources/ReactNitroYoga/SHUnit.h +16 -0
- package/include/ReactNitroYoga/InstallHermesBindings.hpp +12 -0
- package/package.json +26 -4
- package/yoga/.clang-format +109 -0
- package/yoga/.clang-tidy +217 -0
- package/yoga/.editorconfig +11 -0
- package/yoga/.eslintrc.cjs +84 -0
- package/yoga/.github/ISSUE_TEMPLATE.md +21 -0
- package/yoga/.github/actions/black/action.yml +25 -0
- package/yoga/.github/actions/cache-emsdk/action.yml +10 -0
- package/yoga/.github/actions/install-ninja/action.yml +14 -0
- package/yoga/.github/actions/setup-android/action.yml +12 -0
- package/yoga/.github/actions/setup-apple/action.yml +8 -0
- package/yoga/.github/actions/setup-cpp/action.yml +34 -0
- package/yoga/.github/actions/setup-js/action.yml +18 -0
- package/yoga/.github/workflows/publish-android-release.yml +38 -0
- package/yoga/.github/workflows/publish-android-snashot.yml +36 -0
- package/yoga/.github/workflows/publish-npm-release.yml +25 -0
- package/yoga/.github/workflows/validate-android.yml +30 -0
- package/yoga/.github/workflows/validate-cpp.yml +101 -0
- package/yoga/.github/workflows/validate-format.yml +36 -0
- package/yoga/.github/workflows/validate-js.yml +119 -0
- package/yoga/.github/workflows/validate-swiftpm.yml +29 -0
- package/yoga/.github/workflows/validate-tests.yml +35 -0
- package/yoga/.github/workflows/validate-website.yml +45 -0
- package/yoga/.prettierignore +3 -0
- package/yoga/.prettierrc.js +16 -0
- package/yoga/.vscode/extensions.json +7 -0
- package/yoga/.vscode/launch.json +25 -0
- package/yoga/.vscode/settings.json +20 -0
- package/yoga/.vscode/tasks.json +23 -0
- package/yoga/CMakeLists.txt +58 -0
- package/yoga/CODE_OF_CONDUCT.md +76 -0
- package/yoga/CONTRIBUTING.md +44 -0
- package/yoga/LICENSE +21 -0
- package/yoga/LICENSE-examples +9 -0
- package/yoga/Package.swift +32 -0
- package/yoga/README.md +36 -0
- package/yoga/benchmark/Benchmark.cpp +400 -0
- package/yoga/benchmark/Benchmark.h +39 -0
- package/yoga/benchmark/CMakeLists.txt +27 -0
- package/yoga/benchmark/TreeDeserialization.cpp +248 -0
- package/yoga/benchmark/TreeDeserialization.h +52 -0
- package/yoga/benchmark/YGBenchmark.c +183 -0
- package/yoga/benchmark/benchmark +15 -0
- package/yoga/benchmark/captures/chat-mac.json +24426 -0
- package/yoga/benchmark/captures/feed-android.json +10335 -0
- package/yoga/benchmark/captures/profile-ios.json +1955 -0
- package/yoga/benchmark/captures/rendering-sample-mac.json +1927 -0
- package/yoga/build.gradle +46 -0
- package/yoga/build_fuzz_tests +28 -0
- package/yoga/capture/CMakeLists.txt +23 -0
- package/yoga/capture/CaptureTree.cpp +100 -0
- package/yoga/capture/CaptureTree.h +47 -0
- package/yoga/capture/NodeToString.cpp +359 -0
- package/yoga/capture/NodeToString.h +40 -0
- package/yoga/cmake/project-defaults.cmake +50 -0
- package/yoga/cmake/yoga-config.cmake.in +10 -0
- package/yoga/enums.py +394 -0
- package/yoga/fuzz/CMakeLists.txt +21 -0
- package/yoga/fuzz/FuzzLayout.cpp +57 -0
- package/yoga/gentest/babel.config.cjs +12 -0
- package/yoga/gentest/fixtures/YGAbsolutePositionTest.html +168 -0
- package/yoga/gentest/fixtures/YGAlignContentTest.html +479 -0
- package/yoga/gentest/fixtures/YGAlignItemsTest.html +227 -0
- package/yoga/gentest/fixtures/YGAlignSelfTest.html +23 -0
- package/yoga/gentest/fixtures/YGAndroidNewsFeed.html +28 -0
- package/yoga/gentest/fixtures/YGAspectRatioTest.html +3 -0
- package/yoga/gentest/fixtures/YGAutoTest.html +25 -0
- package/yoga/gentest/fixtures/YGBorderTest.html +18 -0
- package/yoga/gentest/fixtures/YGBoxSizingTest.html +240 -0
- package/yoga/gentest/fixtures/YGDimensionTest.html +9 -0
- package/yoga/gentest/fixtures/YGDisplayTest.html +89 -0
- package/yoga/gentest/fixtures/YGFlexBasisFitContentTest.html +55 -0
- package/yoga/gentest/fixtures/YGFlexDirectionTest.html +391 -0
- package/yoga/gentest/fixtures/YGFlexTest.html +53 -0
- package/yoga/gentest/fixtures/YGFlexWrapTest.html +160 -0
- package/yoga/gentest/fixtures/YGGapTest.html +233 -0
- package/yoga/gentest/fixtures/YGIntrinsicSizeTest.html +295 -0
- package/yoga/gentest/fixtures/YGJustifyContentTest.html +164 -0
- package/yoga/gentest/fixtures/YGMarginTest.html +157 -0
- package/yoga/gentest/fixtures/YGMinMaxDimensionTest.html +116 -0
- package/yoga/gentest/fixtures/YGPaddingTest.html +29 -0
- package/yoga/gentest/fixtures/YGPercentageTest.html +125 -0
- package/yoga/gentest/fixtures/YGRoundingTest.html +95 -0
- package/yoga/gentest/fixtures/YGSizeOverflowTest.html +17 -0
- package/yoga/gentest/fixtures/YGStaticPositionTest.html +712 -0
- package/yoga/gentest/fonts/Ahem.ttf +0 -0
- package/yoga/gentest/gentest-driver.ts +141 -0
- package/yoga/gentest/gentest-validate.ts +43 -0
- package/yoga/gentest/package.json +24 -0
- package/yoga/gentest/scripts/gentest-validate.ts +43 -0
- package/yoga/gentest/signedsource.d.ts +10 -0
- package/yoga/gentest/src/ChromePool.ts +78 -0
- package/yoga/gentest/src/CssToYoga.ts +958 -0
- package/yoga/gentest/src/buildLayoutTree.ts +98 -0
- package/yoga/gentest/src/cli.ts +163 -0
- package/yoga/gentest/src/emitters/CppEmitter.ts +452 -0
- package/yoga/gentest/src/emitters/Emitter.ts +204 -0
- package/yoga/gentest/src/emitters/JavaEmitter.ts +469 -0
- package/yoga/gentest/src/emitters/JavascriptEmitter.ts +353 -0
- package/yoga/gentest/src/types.ts +41 -0
- package/yoga/gentest/test-template.html +42 -0
- package/yoga/gentest/tsconfig.json +13 -0
- package/yoga/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/yoga/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/yoga/gradle.properties +14 -0
- package/yoga/gradlew +251 -0
- package/yoga/gradlew.bat +94 -0
- package/yoga/java/AndroidManifest.xml +14 -0
- package/yoga/java/CMakeLists.txt +22 -0
- package/yoga/java/build.gradle.kts +127 -0
- package/yoga/java/com/facebook/yoga/LayoutPassReason.kt +35 -0
- package/yoga/java/com/facebook/yoga/YogaAlign.kt +45 -0
- package/yoga/java/com/facebook/yoga/YogaBaselineFunction.kt +16 -0
- package/yoga/java/com/facebook/yoga/YogaBoxSizing.kt +27 -0
- package/yoga/java/com/facebook/yoga/YogaConfig.kt +48 -0
- package/yoga/java/com/facebook/yoga/YogaConfigFactory.kt +12 -0
- package/yoga/java/com/facebook/yoga/YogaConfigJNIBase.kt +70 -0
- package/yoga/java/com/facebook/yoga/YogaConfigJNIFinalizer.kt +30 -0
- package/yoga/java/com/facebook/yoga/YogaConstants.kt +18 -0
- package/yoga/java/com/facebook/yoga/YogaDimension.kt +27 -0
- package/yoga/java/com/facebook/yoga/YogaDirection.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaDisplay.kt +31 -0
- package/yoga/java/com/facebook/yoga/YogaEdge.kt +41 -0
- package/yoga/java/com/facebook/yoga/YogaErrata.kt +39 -0
- package/yoga/java/com/facebook/yoga/YogaExperimentalFeature.kt +27 -0
- package/yoga/java/com/facebook/yoga/YogaFlexDirection.kt +31 -0
- package/yoga/java/com/facebook/yoga/YogaGridTrackType.kt +33 -0
- package/yoga/java/com/facebook/yoga/YogaGutter.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaJustify.kt +43 -0
- package/yoga/java/com/facebook/yoga/YogaLayoutType.kt +27 -0
- package/yoga/java/com/facebook/yoga/YogaLogLevel.kt +39 -0
- package/yoga/java/com/facebook/yoga/YogaLogger.kt +19 -0
- package/yoga/java/com/facebook/yoga/YogaMeasureFunction.kt +19 -0
- package/yoga/java/com/facebook/yoga/YogaMeasureMode.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaMeasureOutput.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaNative.kt +347 -0
- package/yoga/java/com/facebook/yoga/YogaNode.kt +254 -0
- package/yoga/java/com/facebook/yoga/YogaNodeFactory.kt +14 -0
- package/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt +762 -0
- package/yoga/java/com/facebook/yoga/YogaNodeJNIFinalizer.kt +33 -0
- package/yoga/java/com/facebook/yoga/YogaNodeType.kt +27 -0
- package/yoga/java/com/facebook/yoga/YogaOverflow.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaPositionType.kt +29 -0
- package/yoga/java/com/facebook/yoga/YogaProps.kt +205 -0
- package/yoga/java/com/facebook/yoga/YogaStyleInputs.kt +51 -0
- package/yoga/java/com/facebook/yoga/YogaUnit.kt +37 -0
- package/yoga/java/com/facebook/yoga/YogaValue.kt +66 -0
- package/yoga/java/com/facebook/yoga/YogaWrap.kt +29 -0
- package/yoga/java/com/facebook/yoga/annotations/DoNotStrip.kt +19 -0
- package/yoga/java/gen/com/facebook/yoga/BuildConfig.java +15 -0
- package/yoga/java/jni/LayoutContext.cpp +34 -0
- package/yoga/java/jni/LayoutContext.h +29 -0
- package/yoga/java/jni/ScopedGlobalRef.h +140 -0
- package/yoga/java/jni/ScopedLocalRef.h +141 -0
- package/yoga/java/jni/YGJNI.h +77 -0
- package/yoga/java/jni/YGJNIVanilla.cpp +1178 -0
- package/yoga/java/jni/YGJNIVanilla.h +12 -0
- package/yoga/java/jni/YGJTypesVanilla.h +52 -0
- package/yoga/java/jni/YogaJniException.cpp +49 -0
- package/yoga/java/jni/YogaJniException.h +35 -0
- package/yoga/java/jni/common.cpp +109 -0
- package/yoga/java/jni/common.h +73 -0
- package/yoga/java/jni/corefunctions.cpp +91 -0
- package/yoga/java/jni/corefunctions.h +50 -0
- package/yoga/java/jni/macros.h +23 -0
- package/yoga/java/jni/tests/corefunctionsTest.cpp +247 -0
- package/yoga/java/jni/yogajni.cpp +18 -0
- package/yoga/java/proguard-rules.pro +10 -0
- package/yoga/java/res/values/strings.xml +12 -0
- package/yoga/java/tests/com/facebook/yoga/TestParametrization.kt +29 -0
- package/yoga/java/tests/com/facebook/yoga/YGAlignBaselineTest.kt +117 -0
- package/yoga/java/tests/com/facebook/yoga/YogaExceptionTest.kt +140 -0
- package/yoga/java/tests/com/facebook/yoga/YogaLoggerTest.kt +77 -0
- package/yoga/java/tests/com/facebook/yoga/YogaNodeStylePropertiesTest.kt +1020 -0
- package/yoga/java/tests/com/facebook/yoga/YogaNodeTest.kt +319 -0
- package/yoga/java/tests/com/facebook/yoga/YogaValueTest.kt +23 -0
- package/yoga/java/tests/com/facebook/yoga/utils/TestUtils.kt +99 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAbsolutePositionTest.java +1670 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAlignContentTest.java +5440 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAlignItemsTest.java +2132 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAlignSelfTest.java +271 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAndroidNewsFeed.java +313 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAspectRatioTest.java +73 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGAutoTest.java +326 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGBorderTest.java +222 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGBoxSizingTest.java +2165 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGDimensionTest.java +122 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGDisplayContentsTest.java +107 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGDisplayTest.java +1021 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGFlexBasisFitContentTest.java +391 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGFlexDirectionTest.java +4118 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGFlexTest.java +630 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGFlexWrapTest.java +1863 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGGapTest.java +2988 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java +926 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGJustifyContentTest.java +1865 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGMarginTest.java +1796 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGMinMaxDimensionTest.java +1210 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGPaddingTest.java +307 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGPercentageTest.java +1345 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGRoundingTest.java +1099 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGSizeOverflowTest.java +195 -0
- package/yoga/java/tests/generated/com/facebook/yoga/YGStaticPositionTest.java +5992 -0
- package/yoga/java/yogajni.version +13 -0
- package/yoga/javascript/CMakeLists.txt +59 -0
- package/yoga/javascript/README.md +27 -0
- package/yoga/javascript/babel.config.cjs +30 -0
- package/yoga/javascript/jest.config.js +14 -0
- package/yoga/javascript/jest.setup.js +12 -0
- package/yoga/javascript/just.config.cjs +258 -0
- package/yoga/javascript/package.json +52 -0
- package/yoga/javascript/src/generated/YGEnums.ts +249 -0
- package/yoga/javascript/src/index.ts +23 -0
- package/yoga/javascript/src/load.ts +25 -0
- package/yoga/javascript/src/wasm_bridge.c +155 -0
- package/yoga/javascript/src/wrapAssembly.ts +1025 -0
- package/yoga/javascript/tests/Benchmarks/YGBenchmark.test.ts +110 -0
- package/yoga/javascript/tests/YGAlignBaselineTest.test.ts +104 -0
- package/yoga/javascript/tests/YGComputedBorderTest.test.ts +25 -0
- package/yoga/javascript/tests/YGComputedMarginTest.test.ts +25 -0
- package/yoga/javascript/tests/YGComputedPaddingTest.test.ts +25 -0
- package/yoga/javascript/tests/YGDirtiedTest.test.ts +149 -0
- package/yoga/javascript/tests/YGErrataTest.test.ts +34 -0
- package/yoga/javascript/tests/YGFlexBasisAuto.test.ts +21 -0
- package/yoga/javascript/tests/YGHadOverflowTest.test.ts +110 -0
- package/yoga/javascript/tests/YGHasNewLayout.test.ts +81 -0
- package/yoga/javascript/tests/YGMeasureCacheTest.test.ts +29 -0
- package/yoga/javascript/tests/YGMeasureTest.test.ts +66 -0
- package/yoga/javascript/tests/bin/run-bench.ts +60 -0
- package/yoga/javascript/tests/generated/YGAbsolutePositionTest.test.ts +1531 -0
- package/yoga/javascript/tests/generated/YGAlignContentTest.test.ts +5181 -0
- package/yoga/javascript/tests/generated/YGAlignItemsTest.test.ts +2013 -0
- package/yoga/javascript/tests/generated/YGAlignSelfTest.test.ts +248 -0
- package/yoga/javascript/tests/generated/YGAndroidNewsFeed.test.ts +306 -0
- package/yoga/javascript/tests/generated/YGAspectRatioTest.test.ts +66 -0
- package/yoga/javascript/tests/generated/YGAutoTest.test.ts +303 -0
- package/yoga/javascript/tests/generated/YGBorderTest.test.ts +199 -0
- package/yoga/javascript/tests/generated/YGBoxSizingTest.test.ts +1978 -0
- package/yoga/javascript/tests/generated/YGDimensionTest.test.ts +111 -0
- package/yoga/javascript/tests/generated/YGDisplayContentsTest.test.ts +99 -0
- package/yoga/javascript/tests/generated/YGDisplayTest.test.ts +962 -0
- package/yoga/javascript/tests/generated/YGFlexBasisFitContentTest.test.ts +364 -0
- package/yoga/javascript/tests/generated/YGFlexDirectionTest.test.ts +3903 -0
- package/yoga/javascript/tests/generated/YGFlexTest.test.ts +587 -0
- package/yoga/javascript/tests/generated/YGFlexWrapTest.test.ts +1768 -0
- package/yoga/javascript/tests/generated/YGGapTest.test.ts +2857 -0
- package/yoga/javascript/tests/generated/YGIntrinsicSizeTest.test.ts +843 -0
- package/yoga/javascript/tests/generated/YGJustifyContentTest.test.ts +1750 -0
- package/yoga/javascript/tests/generated/YGMarginTest.test.ts +1657 -0
- package/yoga/javascript/tests/generated/YGMinMaxDimensionTest.test.ts +1111 -0
- package/yoga/javascript/tests/generated/YGPaddingTest.test.ts +276 -0
- package/yoga/javascript/tests/generated/YGPercentageTest.test.ts +1246 -0
- package/yoga/javascript/tests/generated/YGRoundingTest.test.ts +1044 -0
- package/yoga/javascript/tests/generated/YGSizeOverflowTest.test.ts +180 -0
- package/yoga/javascript/tests/generated/YGStaticPositionTest.test.ts +5741 -0
- package/yoga/javascript/tests/tools/MeasureCounter.ts +66 -0
- package/yoga/javascript/tests/tools/globals.ts +19 -0
- package/yoga/javascript/tests/tools/utils.ts +90 -0
- package/yoga/javascript/tsconfig.json +23 -0
- package/yoga/lib/jni/jni.h +13 -0
- package/yoga/lib/jni/real/jni.h +1141 -0
- package/yoga/lib/jsr-305/jsr305.jar +0 -0
- package/yoga/lib/nlohmann/json.hpp +24766 -0
- package/yoga/lib/soloader/soloader-0.5.1.aar +0 -0
- package/yoga/package.json +44 -0
- package/yoga/scripts/clang-format +52 -0
- package/yoga/scripts/clang-format.js +93 -0
- package/yoga/scripts/format-kotlin.js +88 -0
- package/yoga/scripts/format-python.js +150 -0
- package/yoga/scripts/format-utils.js +82 -0
- package/yoga/set-version.py +37 -0
- package/yoga/settings.gradle.kts +29 -0
- package/yoga/test/AssertFatalTest.cpp +70 -0
- package/yoga/tests/.clang-tidy +7 -0
- package/yoga/tests/CMakeLists.txt +35 -0
- package/yoga/tests/CacheTest.cpp +229 -0
- package/yoga/tests/EventPublisherTest.cpp +162 -0
- package/yoga/tests/EventsTest.cpp +362 -0
- package/yoga/tests/FlexGapTest.cpp +93 -0
- package/yoga/tests/FloatOptionalTest.cpp +214 -0
- package/yoga/tests/GridStyleTest.cpp +103 -0
- package/yoga/tests/OrdinalsTest.cpp +35 -0
- package/yoga/tests/SmallValueBufferTest.cpp +161 -0
- package/yoga/tests/StyleTest.cpp +48 -0
- package/yoga/tests/StyleValuePoolTest.cpp +146 -0
- package/yoga/tests/YGAlignBaselineTest.cpp +837 -0
- package/yoga/tests/YGAspectRatioTest.cpp +898 -0
- package/yoga/tests/YGAutoMinSizeTest.cpp +581 -0
- package/yoga/tests/YGBaselineFuncTest.cpp +62 -0
- package/yoga/tests/YGCloneNodeTest.cpp +131 -0
- package/yoga/tests/YGComputedMarginTest.cpp +117 -0
- package/yoga/tests/YGComputedPaddingTest.cpp +119 -0
- package/yoga/tests/YGConfigTest.cpp +239 -0
- package/yoga/tests/YGContentsNodeHasNewLayoutTest.cpp +190 -0
- package/yoga/tests/YGDefaultValuesTest.cpp +175 -0
- package/yoga/tests/YGDirtiedTest.cpp +110 -0
- package/yoga/tests/YGDirtyMarkingTest.cpp +341 -0
- package/yoga/tests/YGEdgeTest.cpp +161 -0
- package/yoga/tests/YGFirstChildMinWidthTest.cpp +133 -0
- package/yoga/tests/YGFlexBasisFitContentTest.cpp +241 -0
- package/yoga/tests/YGFlexShrinkBorderBugTest.cpp +48 -0
- package/yoga/tests/YGHadOverflowTest.cpp +135 -0
- package/yoga/tests/YGLayoutableChildrenTest.cpp +191 -0
- package/yoga/tests/YGMeasureCacheTest.cpp +178 -0
- package/yoga/tests/YGMeasureModeTest.cpp +332 -0
- package/yoga/tests/YGMeasureTest.cpp +1010 -0
- package/yoga/tests/YGNodeCallbackTest.cpp +80 -0
- package/yoga/tests/YGNodeChildTest.cpp +68 -0
- package/yoga/tests/YGPersistenceTest.cpp +291 -0
- package/yoga/tests/YGPersistentNodeCloningTest.cpp +214 -0
- package/yoga/tests/YGRelayoutTest.cpp +255 -0
- package/yoga/tests/YGRoundingFunctionTest.cpp +186 -0
- package/yoga/tests/YGRoundingMeasureFuncTest.cpp +139 -0
- package/yoga/tests/YGScaleChangeTest.cpp +176 -0
- package/yoga/tests/YGStyleTest.cpp +75 -0
- package/yoga/tests/YGTreeMutationTest.cpp +115 -0
- package/yoga/tests/YGValueTest.cpp +23 -0
- package/yoga/tests/YGZeroOutLayoutRecursivelyTest.cpp +37 -0
- package/yoga/tests/generated/YGAbsolutePositionTest.cpp +1685 -0
- package/yoga/tests/generated/YGAlignContentTest.cpp +5485 -0
- package/yoga/tests/generated/YGAlignItemsTest.cpp +2142 -0
- package/yoga/tests/generated/YGAlignSelfTest.cpp +257 -0
- package/yoga/tests/generated/YGAndroidNewsFeed.cpp +295 -0
- package/yoga/tests/generated/YGAspectRatioTest.cpp +55 -0
- package/yoga/tests/generated/YGAutoTest.cpp +312 -0
- package/yoga/tests/generated/YGBorderTest.cpp +208 -0
- package/yoga/tests/generated/YGBoxSizingTest.cpp +2192 -0
- package/yoga/tests/generated/YGDimensionTest.cpp +105 -0
- package/yoga/tests/generated/YGDisplayContentsTest.cpp +89 -0
- package/yoga/tests/generated/YGDisplayTest.cpp +1016 -0
- package/yoga/tests/generated/YGFlexBasisFitContentTest.cpp +378 -0
- package/yoga/tests/generated/YGFlexDirectionTest.cpp +4152 -0
- package/yoga/tests/generated/YGFlexTest.cpp +621 -0
- package/yoga/tests/generated/YGFlexWrapTest.cpp +1867 -0
- package/yoga/tests/generated/YGGapTest.cpp +3001 -0
- package/yoga/tests/generated/YGIntrinsicSizeTest.cpp +924 -0
- package/yoga/tests/generated/YGJustifyContentTest.cpp +1874 -0
- package/yoga/tests/generated/YGMarginTest.cpp +1811 -0
- package/yoga/tests/generated/YGMinMaxDimensionTest.cpp +1215 -0
- package/yoga/tests/generated/YGPaddingTest.cpp +295 -0
- package/yoga/tests/generated/YGPercentageTest.cpp +1350 -0
- package/yoga/tests/generated/YGRoundingTest.cpp +1093 -0
- package/yoga/tests/generated/YGSizeOverflowTest.cpp +179 -0
- package/yoga/tests/generated/YGStaticPositionTest.cpp +6035 -0
- package/yoga/tests/util/TestUtil.cpp +164 -0
- package/yoga/tests/util/TestUtil.h +43 -0
- package/yoga/unit_tests +25 -0
- package/yoga/unit_tests.bat +28 -0
- package/yoga/website/.eslintrc.cjs +26 -0
- package/yoga/website/README.md +41 -0
- package/yoga/website/babel.config.cjs +10 -0
- package/yoga/website/blog/2023-06-30-announcing-yoga-2.0.md +183 -0
- package/yoga/website/blog/2024-06-24-announcing-yoga-3.1.md +67 -0
- package/yoga/website/blog/2024-12-02-announcing-yoga-3.2.md +84 -0
- package/yoga/website/blog/authors.yml +10 -0
- package/yoga/website/blog/yoga-3-release/2024-03-14-announcing-yoga-3.0.md +586 -0
- package/yoga/website/blog/yoga-3-release/img/image1.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image10.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image11.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image12.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image13.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image14.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image15.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image16.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image17.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image2.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image3.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image4.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image5.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image6.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image7.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image8.png +0 -0
- package/yoga/website/blog/yoga-3-release/img/image9.png +0 -0
- package/yoga/website/docs/about-yoga.md +13 -0
- package/yoga/website/docs/advanced/_category_.json +4 -0
- package/yoga/website/docs/advanced/containing-block.md +89 -0
- package/yoga/website/docs/advanced/external-layout-systems.mdx +106 -0
- package/yoga/website/docs/advanced/incremental-layout.mdx +87 -0
- package/yoga/website/docs/getting-started/_category_.json +4 -0
- package/yoga/website/docs/getting-started/configuring-yoga.mdx +165 -0
- package/yoga/website/docs/getting-started/laying-out-a-tree.mdx +178 -0
- package/yoga/website/docs/img/config-contextual.svg +17 -0
- package/yoga/website/docs/img/config-per-node.svg +17 -0
- package/yoga/website/docs/img/config-uniform.svg +17 -0
- package/yoga/website/docs/img/invalidation-clean-tree.svg +17 -0
- package/yoga/website/docs/img/invalidation-dirtied-tree.svg +17 -0
- package/yoga/website/docs/img/invalidation-new-layout-tree.svg +17 -0
- package/yoga/website/docs/img/pixel-grid-after.png +0 -0
- package/yoga/website/docs/img/pixel-grid-before.png +0 -0
- package/yoga/website/docs/img/wireframe-example.svg +105 -0
- package/yoga/website/docs/styling/_category_.json +4 -0
- package/yoga/website/docs/styling/align-content.mdx +47 -0
- package/yoga/website/docs/styling/align-items-self.mdx +48 -0
- package/yoga/website/docs/styling/aspect-ratio.mdx +27 -0
- package/yoga/website/docs/styling/display.mdx +25 -0
- package/yoga/website/docs/styling/flex-basis-grow-shrink.mdx +65 -0
- package/yoga/website/docs/styling/flex-direction.mdx +37 -0
- package/yoga/website/docs/styling/flex-wrap.mdx +33 -0
- package/yoga/website/docs/styling/gap.mdx +49 -0
- package/yoga/website/docs/styling/index.md +48 -0
- package/yoga/website/docs/styling/insets.mdx +62 -0
- package/yoga/website/docs/styling/justify-content.mdx +43 -0
- package/yoga/website/docs/styling/layout-direction.mdx +34 -0
- package/yoga/website/docs/styling/margin-padding-border.mdx +41 -0
- package/yoga/website/docs/styling/min-max-width-height.mdx +52 -0
- package/yoga/website/docs/styling/position.mdx +37 -0
- package/yoga/website/docs/styling/width-height.mdx +37 -0
- package/yoga/website/docusaurus.config.js +113 -0
- package/yoga/website/package.json +43 -0
- package/yoga/website/sidebars.cjs +27 -0
- package/yoga/website/src/components/EditorToolbar.module.css +77 -0
- package/yoga/website/src/components/EditorToolbar.tsx +72 -0
- package/yoga/website/src/components/FlexStyle.ts +439 -0
- package/yoga/website/src/components/LayoutBox.module.css +68 -0
- package/yoga/website/src/components/LayoutBox.tsx +61 -0
- package/yoga/website/src/components/Playground.module.css +130 -0
- package/yoga/website/src/components/Playground.tsx +187 -0
- package/yoga/website/src/components/YogaViewer.tsx +128 -0
- package/yoga/website/src/css/custom.css +37 -0
- package/yoga/website/src/pages/index.module.css +34 -0
- package/yoga/website/src/pages/index.tsx +84 -0
- package/yoga/website/src/pages/markdown-page.md +7 -0
- package/yoga/website/src/pages/playground.module.css +11 -0
- package/yoga/website/src/pages/playground.tsx +56 -0
- package/yoga/website/static/.nojekyll +0 -0
- package/yoga/website/static/img/docusaurus.png +0 -0
- package/yoga/website/static/img/favicon.svg +17 -0
- package/yoga/website/static/img/link.svg +4 -0
- package/yoga/website/static/img/logo.svg +17 -0
- package/yoga/website/static/img/meta_oss.svg +1 -0
- package/yoga/website/static/img/opengraph.png +0 -0
- package/yoga/website/static/img/undraw_docusaurus_mountain.svg +171 -0
- package/yoga/website/static/img/undraw_docusaurus_react.svg +170 -0
- package/yoga/website/static/img/undraw_docusaurus_tree.svg +40 -0
- package/yoga/website/tsconfig.json +10 -0
- package/yoga/yarn.lock +11499 -0
- package/yoga/yoga/CMakeLists.txt +41 -0
- package/yoga/yoga/YGConfig.cpp +92 -0
- package/yoga/yoga/YGConfig.h +158 -0
- package/yoga/yoga/YGEnums.cpp +304 -0
- package/yoga/yoga/YGEnums.h +163 -0
- package/yoga/yoga/YGMacros.h +101 -0
- package/yoga/yoga/YGNode.cpp +407 -0
- package/yoga/yoga/YGNode.h +373 -0
- package/yoga/yoga/YGNodeLayout.cpp +100 -0
- package/yoga/yoga/YGNodeLayout.h +43 -0
- package/yoga/yoga/YGNodeStyle.cpp +774 -0
- package/yoga/yoga/YGNodeStyle.h +243 -0
- package/yoga/yoga/YGPixelGrid.cpp +22 -0
- package/yoga/yoga/YGPixelGrid.h +29 -0
- package/yoga/yoga/YGValue.cpp +20 -0
- package/yoga/yoga/YGValue.h +83 -0
- package/yoga/yoga/Yoga.h +21 -0
- package/yoga/yoga/algorithm/AbsoluteLayout.cpp +595 -0
- package/yoga/yoga/algorithm/AbsoluteLayout.h +41 -0
- package/yoga/yoga/algorithm/Align.h +83 -0
- package/yoga/yoga/algorithm/Baseline.cpp +78 -0
- package/yoga/yoga/algorithm/Baseline.h +21 -0
- package/yoga/yoga/algorithm/BoundAxis.h +79 -0
- package/yoga/yoga/algorithm/Cache.cpp +121 -0
- package/yoga/yoga/algorithm/Cache.h +30 -0
- package/yoga/yoga/algorithm/CalculateLayout.cpp +2968 -0
- package/yoga/yoga/algorithm/CalculateLayout.h +60 -0
- package/yoga/yoga/algorithm/FlexDirection.h +120 -0
- package/yoga/yoga/algorithm/FlexLine.cpp +124 -0
- package/yoga/yoga/algorithm/FlexLine.h +75 -0
- package/yoga/yoga/algorithm/PixelGrid.cpp +138 -0
- package/yoga/yoga/algorithm/PixelGrid.h +29 -0
- package/yoga/yoga/algorithm/SizingMode.h +73 -0
- package/yoga/yoga/algorithm/TrailingPosition.h +44 -0
- package/yoga/yoga/config/Config.cpp +135 -0
- package/yoga/yoga/config/Config.h +93 -0
- package/yoga/yoga/debug/AssertFatal.cpp +54 -0
- package/yoga/yoga/debug/AssertFatal.h +29 -0
- package/yoga/yoga/debug/Log.cpp +107 -0
- package/yoga/yoga/debug/Log.h +34 -0
- package/yoga/yoga/enums/Align.h +49 -0
- package/yoga/yoga/enums/BoxSizing.h +40 -0
- package/yoga/yoga/enums/Dimension.h +40 -0
- package/yoga/yoga/enums/Direction.h +41 -0
- package/yoga/yoga/enums/Display.h +42 -0
- package/yoga/yoga/enums/Edge.h +47 -0
- package/yoga/yoga/enums/Errata.h +43 -0
- package/yoga/yoga/enums/ExperimentalFeature.h +40 -0
- package/yoga/yoga/enums/FlexDirection.h +42 -0
- package/yoga/yoga/enums/GridTrackType.h +43 -0
- package/yoga/yoga/enums/Gutter.h +41 -0
- package/yoga/yoga/enums/Justify.h +48 -0
- package/yoga/yoga/enums/LogLevel.h +44 -0
- package/yoga/yoga/enums/MeasureMode.h +41 -0
- package/yoga/yoga/enums/NodeType.h +40 -0
- package/yoga/yoga/enums/Overflow.h +41 -0
- package/yoga/yoga/enums/PhysicalEdge.h +21 -0
- package/yoga/yoga/enums/PositionType.h +41 -0
- package/yoga/yoga/enums/Unit.h +45 -0
- package/yoga/yoga/enums/Wrap.h +41 -0
- package/yoga/yoga/enums/YogaEnums.h +84 -0
- package/yoga/yoga/event/event.cpp +89 -0
- package/yoga/yoga/event/event.h +131 -0
- package/yoga/yoga/module.modulemap +21 -0
- package/yoga/yoga/node/CachedMeasurement.h +53 -0
- package/yoga/yoga/node/LayoutResults.cpp +48 -0
- package/yoga/yoga/node/LayoutResults.h +136 -0
- package/yoga/yoga/node/LayoutableChildren.h +148 -0
- package/yoga/yoga/node/Node.cpp +509 -0
- package/yoga/yoga/node/Node.h +372 -0
- package/yoga/yoga/numeric/Comparison.h +81 -0
- package/yoga/yoga/numeric/FloatOptional.h +84 -0
- package/yoga/yoga/style/GridLine.h +53 -0
- package/yoga/yoga/style/GridStyle.h +80 -0
- package/yoga/yoga/style/GridTrack.h +63 -0
- package/yoga/yoga/style/SmallValueBuffer.h +133 -0
- package/yoga/yoga/style/Style.h +932 -0
- package/yoga/yoga/style/StyleLength.h +121 -0
- package/yoga/yoga/style/StyleSizeLength.h +152 -0
- package/yoga/yoga/style/StyleValueHandle.h +114 -0
- package/yoga/yoga/style/StyleValuePool.h +194 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
** linguist-generated=true
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Generated public types. Import in the app, not the native compilation.
|
|
2
|
+
declare const pointer: unique symbol;
|
|
3
|
+
type Pointer<Record extends string, Const extends boolean> = {
|
|
4
|
+
readonly [pointer]: readonly [Record, Const];
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type YGNodeRef = Pointer<"struct YGNode", false>;
|
|
8
|
+
export type size_t = number;
|
|
9
|
+
export type YGNodeConstRef = Pointer<"struct YGNode", boolean>;
|
|
10
|
+
export type YGOverflow = 0 | 1 | 2;
|
|
11
|
+
export type YGEdge = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
12
|
+
export type YGJustify = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
13
|
+
export type YGAlign = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
14
|
+
export type YGFlexDirection = 0 | 1 | 2 | 3;
|
|
15
|
+
export type YGDirection = 0 | 1 | 2;
|
|
16
|
+
export type YGPositionType = 0 | 1 | 2;
|
|
17
|
+
|
|
18
|
+
export interface API {
|
|
19
|
+
YGNodeNew(): YGNodeRef;
|
|
20
|
+
YGNodeFreeRecursive(_node: YGNodeRef): void;
|
|
21
|
+
YGNodeInsertChild(_node: YGNodeRef, _child: YGNodeRef, _index: size_t): void;
|
|
22
|
+
YGNodeGetChildCount(_node: YGNodeConstRef): size_t;
|
|
23
|
+
YGNodeRemoveChild(_node: YGNodeRef, _child: YGNodeRef): void;
|
|
24
|
+
YGNodeGetChild(_node: YGNodeRef, _index: size_t): YGNodeRef;
|
|
25
|
+
YGNodeStyleSetWidth(_node: YGNodeRef, _width: number): void;
|
|
26
|
+
YGNodeStyleSetWidthAuto(_node: YGNodeRef): void;
|
|
27
|
+
YGNodeStyleSetHeight(_node: YGNodeRef, _height: number): void;
|
|
28
|
+
YGNodeStyleSetHeightAuto(_node: YGNodeRef): void;
|
|
29
|
+
YGNodeStyleSetFlex(_node: YGNodeRef, _flex: number): void;
|
|
30
|
+
YGNodeStyleSetFlexShrink(_node: YGNodeRef, _flexShrink: number): void;
|
|
31
|
+
YGNodeStyleSetFlexGrow(_node: YGNodeRef, _flexGrow: number): void;
|
|
32
|
+
YGNodeStyleSetOverflow(_node: YGNodeRef, _overflow: YGOverflow): void;
|
|
33
|
+
YGNodeStyleSetMargin(_node: YGNodeRef, _edge: YGEdge, _margin: number): void;
|
|
34
|
+
YGNodeStyleSetMarginAuto(_node: YGNodeRef, _edge: YGEdge): void;
|
|
35
|
+
YGNodeStyleSetPadding(_node: YGNodeRef, _edge: YGEdge, _padding: number): void;
|
|
36
|
+
YGNodeStyleSetJustifyContent(_node: YGNodeRef, _justifyContent: YGJustify): void;
|
|
37
|
+
YGNodeStyleSetAlignItems(_node: YGNodeRef, _alignItems: YGAlign): void;
|
|
38
|
+
YGNodeStyleSetAlignSelf(_node: YGNodeRef, _alignSelf: YGAlign): void;
|
|
39
|
+
YGNodeStyleSetFlexDirection(_node: YGNodeRef, _flexDirection: YGFlexDirection): void;
|
|
40
|
+
YGNodeStyleSetBorder(_node: YGNodeRef, _edge: YGEdge, _border: number): void;
|
|
41
|
+
YGNodeCalculateLayout(_node: YGNodeRef, _availableWidth: number, _availableHeight: number, _ownerDirection: YGDirection): void;
|
|
42
|
+
YGNodeGetHasNewLayout(_node: YGNodeConstRef): boolean;
|
|
43
|
+
YGNodeSetHasNewLayout(_node: YGNodeRef, _hasNewLayout: boolean): void;
|
|
44
|
+
YGNodeLayoutGetWidth(_node: YGNodeConstRef): number;
|
|
45
|
+
YGNodeLayoutGetHeight(_node: YGNodeConstRef): number;
|
|
46
|
+
YGNodeLayoutGetLeft(_node: YGNodeConstRef): number;
|
|
47
|
+
YGNodeLayoutGetTop(_node: YGNodeConstRef): number;
|
|
48
|
+
YGNodeSetIsReferenceBaseline(_node: YGNodeRef, _isReferenceBaseline: boolean): void;
|
|
49
|
+
YGNodeIsReferenceBaseline(_node: YGNodeConstRef): boolean;
|
|
50
|
+
YGNodeGetOwner(_node: YGNodeRef): YGNodeRef;
|
|
51
|
+
YGNodeStyleSetPositionType(_node: YGNodeRef, _positionType: YGPositionType): void;
|
|
52
|
+
YGNodeStyleSetPosition(_node: YGNodeRef, _edge: YGEdge, _position: number): void;
|
|
53
|
+
readonly YGOverflowVisible: 0;
|
|
54
|
+
readonly YGOverflowHidden: 1;
|
|
55
|
+
readonly YGOverflowScroll: 2;
|
|
56
|
+
readonly YGEdgeLeft: 0;
|
|
57
|
+
readonly YGEdgeTop: 1;
|
|
58
|
+
readonly YGEdgeRight: 2;
|
|
59
|
+
readonly YGEdgeBottom: 3;
|
|
60
|
+
readonly YGEdgeStart: 4;
|
|
61
|
+
readonly YGEdgeEnd: 5;
|
|
62
|
+
readonly YGEdgeHorizontal: 6;
|
|
63
|
+
readonly YGEdgeVertical: 7;
|
|
64
|
+
readonly YGEdgeAll: 8;
|
|
65
|
+
readonly YGJustifyAuto: 0;
|
|
66
|
+
readonly YGJustifyFlexStart: 1;
|
|
67
|
+
readonly YGJustifyCenter: 2;
|
|
68
|
+
readonly YGJustifyFlexEnd: 3;
|
|
69
|
+
readonly YGJustifySpaceBetween: 4;
|
|
70
|
+
readonly YGJustifySpaceAround: 5;
|
|
71
|
+
readonly YGJustifySpaceEvenly: 6;
|
|
72
|
+
readonly YGJustifyStretch: 7;
|
|
73
|
+
readonly YGJustifyStart: 8;
|
|
74
|
+
readonly YGJustifyEnd: 9;
|
|
75
|
+
readonly YGAlignAuto: 0;
|
|
76
|
+
readonly YGAlignFlexStart: 1;
|
|
77
|
+
readonly YGAlignCenter: 2;
|
|
78
|
+
readonly YGAlignFlexEnd: 3;
|
|
79
|
+
readonly YGAlignStretch: 4;
|
|
80
|
+
readonly YGAlignBaseline: 5;
|
|
81
|
+
readonly YGAlignSpaceBetween: 6;
|
|
82
|
+
readonly YGAlignSpaceAround: 7;
|
|
83
|
+
readonly YGAlignSpaceEvenly: 8;
|
|
84
|
+
readonly YGAlignStart: 9;
|
|
85
|
+
readonly YGAlignEnd: 10;
|
|
86
|
+
readonly YGFlexDirectionColumn: 0;
|
|
87
|
+
readonly YGFlexDirectionColumnReverse: 1;
|
|
88
|
+
readonly YGFlexDirectionRow: 2;
|
|
89
|
+
readonly YGFlexDirectionRowReverse: 3;
|
|
90
|
+
readonly YGDirectionInherit: 0;
|
|
91
|
+
readonly YGDirectionLTR: 1;
|
|
92
|
+
readonly YGDirectionRTL: 2;
|
|
93
|
+
readonly YGPositionTypeStatic: 0;
|
|
94
|
+
readonly YGPositionTypeRelative: 1;
|
|
95
|
+
readonly YGPositionTypeAbsolute: 2;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare global {
|
|
99
|
+
var yoga: API;
|
|
100
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Generated by react-nitro-ffigen. Do not edit.
|
|
2
|
+
#pragma once
|
|
3
|
+
#include <stdint.h>
|
|
4
|
+
#include <yoga/Yoga.h>
|
|
5
|
+
|
|
6
|
+
static inline void ffigen_yoga_YGNodeStyleSetOverflow(YGNodeRef _node, int32_t _overflow) {
|
|
7
|
+
YGNodeStyleSetOverflow((YGNodeRef)_node, (YGOverflow)_overflow);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static inline void ffigen_yoga_YGNodeStyleSetMargin(YGNodeRef _node, int32_t _edge, float _margin) {
|
|
11
|
+
YGNodeStyleSetMargin((YGNodeRef)_node, (YGEdge)_edge, (float)_margin);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static inline void ffigen_yoga_YGNodeStyleSetMarginAuto(YGNodeRef _node, int32_t _edge) {
|
|
15
|
+
YGNodeStyleSetMarginAuto((YGNodeRef)_node, (YGEdge)_edge);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static inline void ffigen_yoga_YGNodeStyleSetPadding(YGNodeRef _node, int32_t _edge, float _padding) {
|
|
19
|
+
YGNodeStyleSetPadding((YGNodeRef)_node, (YGEdge)_edge, (float)_padding);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static inline void ffigen_yoga_YGNodeStyleSetJustifyContent(YGNodeRef _node, int32_t _justifyContent) {
|
|
23
|
+
YGNodeStyleSetJustifyContent((YGNodeRef)_node, (YGJustify)_justifyContent);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static inline void ffigen_yoga_YGNodeStyleSetAlignItems(YGNodeRef _node, int32_t _alignItems) {
|
|
27
|
+
YGNodeStyleSetAlignItems((YGNodeRef)_node, (YGAlign)_alignItems);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static inline void ffigen_yoga_YGNodeStyleSetAlignSelf(YGNodeRef _node, int32_t _alignSelf) {
|
|
31
|
+
YGNodeStyleSetAlignSelf((YGNodeRef)_node, (YGAlign)_alignSelf);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
static inline void ffigen_yoga_YGNodeStyleSetFlexDirection(YGNodeRef _node, int32_t _flexDirection) {
|
|
35
|
+
YGNodeStyleSetFlexDirection((YGNodeRef)_node, (YGFlexDirection)_flexDirection);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static inline void ffigen_yoga_YGNodeStyleSetBorder(YGNodeRef _node, int32_t _edge, float _border) {
|
|
39
|
+
YGNodeStyleSetBorder((YGNodeRef)_node, (YGEdge)_edge, (float)_border);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static inline void ffigen_yoga_YGNodeCalculateLayout(YGNodeRef _node, float _availableWidth, float _availableHeight, int32_t _ownerDirection) {
|
|
43
|
+
YGNodeCalculateLayout((YGNodeRef)_node, (float)_availableWidth, (float)_availableHeight, (YGDirection)_ownerDirection);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static inline void ffigen_yoga_YGNodeStyleSetPositionType(YGNodeRef _node, int32_t _positionType) {
|
|
47
|
+
YGNodeStyleSetPositionType((YGNodeRef)_node, (YGPositionType)_positionType);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static inline void ffigen_yoga_YGNodeStyleSetPosition(YGNodeRef _node, int32_t _edge, float _position) {
|
|
51
|
+
YGNodeStyleSetPosition((YGNodeRef)_node, (YGEdge)_edge, (float)_position);
|
|
52
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Generated native API types. Include only when checking native.ts.
|
|
2
|
+
import type {} from "react-nitro-ffigen/hermes";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
var yoga: {
|
|
6
|
+
YGNodeNew: () => c_ptr;
|
|
7
|
+
YGNodeFreeRecursive: (_node: c_ptr) => void;
|
|
8
|
+
YGNodeInsertChild: (_node: c_ptr, _child: c_ptr, _index: number) => void;
|
|
9
|
+
YGNodeGetChildCount: (_node: c_ptr) => number;
|
|
10
|
+
YGNodeRemoveChild: (_node: c_ptr, _child: c_ptr) => void;
|
|
11
|
+
YGNodeGetChild: (_node: c_ptr, _index: number) => c_ptr;
|
|
12
|
+
YGNodeStyleSetWidth: (_node: c_ptr, _width: number) => void;
|
|
13
|
+
YGNodeStyleSetWidthAuto: (_node: c_ptr) => void;
|
|
14
|
+
YGNodeStyleSetHeight: (_node: c_ptr, _height: number) => void;
|
|
15
|
+
YGNodeStyleSetHeightAuto: (_node: c_ptr) => void;
|
|
16
|
+
YGNodeStyleSetFlex: (_node: c_ptr, _flex: number) => void;
|
|
17
|
+
YGNodeStyleSetFlexShrink: (_node: c_ptr, _flexShrink: number) => void;
|
|
18
|
+
YGNodeStyleSetFlexGrow: (_node: c_ptr, _flexGrow: number) => void;
|
|
19
|
+
YGNodeStyleSetOverflow: (_node: c_ptr, _overflow: number) => void;
|
|
20
|
+
YGNodeStyleSetMargin: (_node: c_ptr, _edge: number, _margin: number) => void;
|
|
21
|
+
YGNodeStyleSetMarginAuto: (_node: c_ptr, _edge: number) => void;
|
|
22
|
+
YGNodeStyleSetPadding: (_node: c_ptr, _edge: number, _padding: number) => void;
|
|
23
|
+
YGNodeStyleSetJustifyContent: (_node: c_ptr, _justifyContent: number) => void;
|
|
24
|
+
YGNodeStyleSetAlignItems: (_node: c_ptr, _alignItems: number) => void;
|
|
25
|
+
YGNodeStyleSetAlignSelf: (_node: c_ptr, _alignSelf: number) => void;
|
|
26
|
+
YGNodeStyleSetFlexDirection: (_node: c_ptr, _flexDirection: number) => void;
|
|
27
|
+
YGNodeStyleSetBorder: (_node: c_ptr, _edge: number, _border: number) => void;
|
|
28
|
+
YGNodeCalculateLayout: (_node: c_ptr, _availableWidth: number, _availableHeight: number, _ownerDirection: number) => void;
|
|
29
|
+
YGNodeGetHasNewLayout: (_node: c_ptr) => boolean;
|
|
30
|
+
YGNodeSetHasNewLayout: (_node: c_ptr, _hasNewLayout: boolean) => void;
|
|
31
|
+
YGNodeLayoutGetWidth: (_node: c_ptr) => number;
|
|
32
|
+
YGNodeLayoutGetHeight: (_node: c_ptr) => number;
|
|
33
|
+
YGNodeLayoutGetLeft: (_node: c_ptr) => number;
|
|
34
|
+
YGNodeLayoutGetTop: (_node: c_ptr) => number;
|
|
35
|
+
YGNodeSetIsReferenceBaseline: (_node: c_ptr, _isReferenceBaseline: boolean) => void;
|
|
36
|
+
YGNodeIsReferenceBaseline: (_node: c_ptr) => boolean;
|
|
37
|
+
YGNodeGetOwner: (_node: c_ptr) => c_ptr;
|
|
38
|
+
YGNodeStyleSetPositionType: (_node: c_ptr, _positionType: number) => void;
|
|
39
|
+
YGNodeStyleSetPosition: (_node: c_ptr, _edge: number, _position: number) => void;
|
|
40
|
+
YGOverflowVisible: number;
|
|
41
|
+
YGOverflowHidden: number;
|
|
42
|
+
YGOverflowScroll: number;
|
|
43
|
+
YGEdgeLeft: number;
|
|
44
|
+
YGEdgeTop: number;
|
|
45
|
+
YGEdgeRight: number;
|
|
46
|
+
YGEdgeBottom: number;
|
|
47
|
+
YGEdgeStart: number;
|
|
48
|
+
YGEdgeEnd: number;
|
|
49
|
+
YGEdgeHorizontal: number;
|
|
50
|
+
YGEdgeVertical: number;
|
|
51
|
+
YGEdgeAll: number;
|
|
52
|
+
YGJustifyAuto: number;
|
|
53
|
+
YGJustifyFlexStart: number;
|
|
54
|
+
YGJustifyCenter: number;
|
|
55
|
+
YGJustifyFlexEnd: number;
|
|
56
|
+
YGJustifySpaceBetween: number;
|
|
57
|
+
YGJustifySpaceAround: number;
|
|
58
|
+
YGJustifySpaceEvenly: number;
|
|
59
|
+
YGJustifyStretch: number;
|
|
60
|
+
YGJustifyStart: number;
|
|
61
|
+
YGJustifyEnd: number;
|
|
62
|
+
YGAlignAuto: number;
|
|
63
|
+
YGAlignFlexStart: number;
|
|
64
|
+
YGAlignCenter: number;
|
|
65
|
+
YGAlignFlexEnd: number;
|
|
66
|
+
YGAlignStretch: number;
|
|
67
|
+
YGAlignBaseline: number;
|
|
68
|
+
YGAlignSpaceBetween: number;
|
|
69
|
+
YGAlignSpaceAround: number;
|
|
70
|
+
YGAlignSpaceEvenly: number;
|
|
71
|
+
YGAlignStart: number;
|
|
72
|
+
YGAlignEnd: number;
|
|
73
|
+
YGFlexDirectionColumn: number;
|
|
74
|
+
YGFlexDirectionColumnReverse: number;
|
|
75
|
+
YGFlexDirectionRow: number;
|
|
76
|
+
YGFlexDirectionRowReverse: number;
|
|
77
|
+
YGDirectionInherit: number;
|
|
78
|
+
YGDirectionLTR: number;
|
|
79
|
+
YGDirectionRTL: number;
|
|
80
|
+
YGPositionTypeStatic: number;
|
|
81
|
+
YGPositionTypeRelative: number;
|
|
82
|
+
YGPositionTypeAbsolute: number;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
// Generated by react-nitro-ffigen. Do not edit.
|
|
2
|
+
/// <reference path="./native.d.ts" />
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
(function () {
|
|
6
|
+
const native_0 = $SHBuiltin.extern_c(
|
|
7
|
+
{ include: "yoga/Yoga.h" },
|
|
8
|
+
function YGNodeNew(): c_ptr { throw 0; },
|
|
9
|
+
);
|
|
10
|
+
function call_0(): c_ptr {
|
|
11
|
+
return native_0();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const native_1 = $SHBuiltin.extern_c(
|
|
15
|
+
{ include: "yoga/Yoga.h" },
|
|
16
|
+
function YGNodeFreeRecursive(_node: c_ptr): void { throw 0; },
|
|
17
|
+
);
|
|
18
|
+
function call_1(_node: c_ptr): void {
|
|
19
|
+
native_1(_node);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const native_2 = $SHBuiltin.extern_c(
|
|
23
|
+
{ include: "yoga/Yoga.h" },
|
|
24
|
+
function YGNodeInsertChild(_node: c_ptr, _child: c_ptr, _index: c_ulong): void { throw 0; },
|
|
25
|
+
);
|
|
26
|
+
function call_2(_node: c_ptr, _child: c_ptr, _index: number): void {
|
|
27
|
+
native_2(_node, _child, _index);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const native_3 = $SHBuiltin.extern_c(
|
|
31
|
+
{ include: "yoga/Yoga.h" },
|
|
32
|
+
function YGNodeGetChildCount(_node: c_ptr): c_ulong { throw 0; },
|
|
33
|
+
);
|
|
34
|
+
function call_3(_node: c_ptr): number {
|
|
35
|
+
return native_3(_node);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const native_4 = $SHBuiltin.extern_c(
|
|
39
|
+
{ include: "yoga/Yoga.h" },
|
|
40
|
+
function YGNodeRemoveChild(_node: c_ptr, _child: c_ptr): void { throw 0; },
|
|
41
|
+
);
|
|
42
|
+
function call_4(_node: c_ptr, _child: c_ptr): void {
|
|
43
|
+
native_4(_node, _child);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const native_5 = $SHBuiltin.extern_c(
|
|
47
|
+
{ include: "yoga/Yoga.h" },
|
|
48
|
+
function YGNodeGetChild(_node: c_ptr, _index: c_ulong): c_ptr { throw 0; },
|
|
49
|
+
);
|
|
50
|
+
function call_5(_node: c_ptr, _index: number): c_ptr {
|
|
51
|
+
return native_5(_node, _index);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const native_6 = $SHBuiltin.extern_c(
|
|
55
|
+
{ include: "yoga/Yoga.h" },
|
|
56
|
+
function YGNodeStyleSetWidth(_node: c_ptr, _width: c_float): void { throw 0; },
|
|
57
|
+
);
|
|
58
|
+
function call_6(_node: c_ptr, _width: number): void {
|
|
59
|
+
native_6(_node, _width);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const native_7 = $SHBuiltin.extern_c(
|
|
63
|
+
{ include: "yoga/Yoga.h" },
|
|
64
|
+
function YGNodeStyleSetWidthAuto(_node: c_ptr): void { throw 0; },
|
|
65
|
+
);
|
|
66
|
+
function call_7(_node: c_ptr): void {
|
|
67
|
+
native_7(_node);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const native_8 = $SHBuiltin.extern_c(
|
|
71
|
+
{ include: "yoga/Yoga.h" },
|
|
72
|
+
function YGNodeStyleSetHeight(_node: c_ptr, _height: c_float): void { throw 0; },
|
|
73
|
+
);
|
|
74
|
+
function call_8(_node: c_ptr, _height: number): void {
|
|
75
|
+
native_8(_node, _height);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const native_9 = $SHBuiltin.extern_c(
|
|
79
|
+
{ include: "yoga/Yoga.h" },
|
|
80
|
+
function YGNodeStyleSetHeightAuto(_node: c_ptr): void { throw 0; },
|
|
81
|
+
);
|
|
82
|
+
function call_9(_node: c_ptr): void {
|
|
83
|
+
native_9(_node);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const native_10 = $SHBuiltin.extern_c(
|
|
87
|
+
{ include: "yoga/Yoga.h" },
|
|
88
|
+
function YGNodeStyleSetFlex(_node: c_ptr, _flex: c_float): void { throw 0; },
|
|
89
|
+
);
|
|
90
|
+
function call_10(_node: c_ptr, _flex: number): void {
|
|
91
|
+
native_10(_node, _flex);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const native_11 = $SHBuiltin.extern_c(
|
|
95
|
+
{ include: "yoga/Yoga.h" },
|
|
96
|
+
function YGNodeStyleSetFlexShrink(_node: c_ptr, _flexShrink: c_float): void { throw 0; },
|
|
97
|
+
);
|
|
98
|
+
function call_11(_node: c_ptr, _flexShrink: number): void {
|
|
99
|
+
native_11(_node, _flexShrink);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const native_12 = $SHBuiltin.extern_c(
|
|
103
|
+
{ include: "yoga/Yoga.h" },
|
|
104
|
+
function YGNodeStyleSetFlexGrow(_node: c_ptr, _flexGrow: c_float): void { throw 0; },
|
|
105
|
+
);
|
|
106
|
+
function call_12(_node: c_ptr, _flexGrow: number): void {
|
|
107
|
+
native_12(_node, _flexGrow);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const native_13 = $SHBuiltin.extern_c(
|
|
111
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
112
|
+
function ffigen_yoga_YGNodeStyleSetOverflow(_node: c_ptr, _overflow: c_i32): void { throw 0; },
|
|
113
|
+
);
|
|
114
|
+
function call_13(_node: c_ptr, _overflow: number): void {
|
|
115
|
+
native_13(_node, _overflow);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const native_14 = $SHBuiltin.extern_c(
|
|
119
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
120
|
+
function ffigen_yoga_YGNodeStyleSetMargin(_node: c_ptr, _edge: c_i32, _margin: c_float): void { throw 0; },
|
|
121
|
+
);
|
|
122
|
+
function call_14(_node: c_ptr, _edge: number, _margin: number): void {
|
|
123
|
+
native_14(_node, _edge, _margin);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const native_15 = $SHBuiltin.extern_c(
|
|
127
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
128
|
+
function ffigen_yoga_YGNodeStyleSetMarginAuto(_node: c_ptr, _edge: c_i32): void { throw 0; },
|
|
129
|
+
);
|
|
130
|
+
function call_15(_node: c_ptr, _edge: number): void {
|
|
131
|
+
native_15(_node, _edge);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const native_16 = $SHBuiltin.extern_c(
|
|
135
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
136
|
+
function ffigen_yoga_YGNodeStyleSetPadding(_node: c_ptr, _edge: c_i32, _padding: c_float): void { throw 0; },
|
|
137
|
+
);
|
|
138
|
+
function call_16(_node: c_ptr, _edge: number, _padding: number): void {
|
|
139
|
+
native_16(_node, _edge, _padding);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const native_17 = $SHBuiltin.extern_c(
|
|
143
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
144
|
+
function ffigen_yoga_YGNodeStyleSetJustifyContent(_node: c_ptr, _justifyContent: c_i32): void { throw 0; },
|
|
145
|
+
);
|
|
146
|
+
function call_17(_node: c_ptr, _justifyContent: number): void {
|
|
147
|
+
native_17(_node, _justifyContent);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const native_18 = $SHBuiltin.extern_c(
|
|
151
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
152
|
+
function ffigen_yoga_YGNodeStyleSetAlignItems(_node: c_ptr, _alignItems: c_i32): void { throw 0; },
|
|
153
|
+
);
|
|
154
|
+
function call_18(_node: c_ptr, _alignItems: number): void {
|
|
155
|
+
native_18(_node, _alignItems);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const native_19 = $SHBuiltin.extern_c(
|
|
159
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
160
|
+
function ffigen_yoga_YGNodeStyleSetAlignSelf(_node: c_ptr, _alignSelf: c_i32): void { throw 0; },
|
|
161
|
+
);
|
|
162
|
+
function call_19(_node: c_ptr, _alignSelf: number): void {
|
|
163
|
+
native_19(_node, _alignSelf);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const native_20 = $SHBuiltin.extern_c(
|
|
167
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
168
|
+
function ffigen_yoga_YGNodeStyleSetFlexDirection(_node: c_ptr, _flexDirection: c_i32): void { throw 0; },
|
|
169
|
+
);
|
|
170
|
+
function call_20(_node: c_ptr, _flexDirection: number): void {
|
|
171
|
+
native_20(_node, _flexDirection);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const native_21 = $SHBuiltin.extern_c(
|
|
175
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
176
|
+
function ffigen_yoga_YGNodeStyleSetBorder(_node: c_ptr, _edge: c_i32, _border: c_float): void { throw 0; },
|
|
177
|
+
);
|
|
178
|
+
function call_21(_node: c_ptr, _edge: number, _border: number): void {
|
|
179
|
+
native_21(_node, _edge, _border);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const native_22 = $SHBuiltin.extern_c(
|
|
183
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
184
|
+
function ffigen_yoga_YGNodeCalculateLayout(_node: c_ptr, _availableWidth: c_float, _availableHeight: c_float, _ownerDirection: c_i32): void { throw 0; },
|
|
185
|
+
);
|
|
186
|
+
function call_22(_node: c_ptr, _availableWidth: number, _availableHeight: number, _ownerDirection: number): void {
|
|
187
|
+
native_22(_node, _availableWidth, _availableHeight, _ownerDirection);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const native_23 = $SHBuiltin.extern_c(
|
|
191
|
+
{ include: "yoga/Yoga.h" },
|
|
192
|
+
function YGNodeGetHasNewLayout(_node: c_ptr): c_bool { throw 0; },
|
|
193
|
+
);
|
|
194
|
+
function call_23(_node: c_ptr): boolean {
|
|
195
|
+
const result = native_23(_node);
|
|
196
|
+
return result !== 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const native_24 = $SHBuiltin.extern_c(
|
|
200
|
+
{ include: "yoga/Yoga.h" },
|
|
201
|
+
function YGNodeSetHasNewLayout(_node: c_ptr, _hasNewLayout: c_bool): void { throw 0; },
|
|
202
|
+
);
|
|
203
|
+
function call_24(_node: c_ptr, _hasNewLayout: boolean): void {
|
|
204
|
+
const nativeArg1 = _hasNewLayout ? 1 : 0;
|
|
205
|
+
native_24(_node, nativeArg1);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const native_25 = $SHBuiltin.extern_c(
|
|
209
|
+
{ include: "yoga/Yoga.h" },
|
|
210
|
+
function YGNodeLayoutGetWidth(_node: c_ptr): c_float { throw 0; },
|
|
211
|
+
);
|
|
212
|
+
function call_25(_node: c_ptr): number {
|
|
213
|
+
return native_25(_node);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const native_26 = $SHBuiltin.extern_c(
|
|
217
|
+
{ include: "yoga/Yoga.h" },
|
|
218
|
+
function YGNodeLayoutGetHeight(_node: c_ptr): c_float { throw 0; },
|
|
219
|
+
);
|
|
220
|
+
function call_26(_node: c_ptr): number {
|
|
221
|
+
return native_26(_node);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const native_27 = $SHBuiltin.extern_c(
|
|
225
|
+
{ include: "yoga/Yoga.h" },
|
|
226
|
+
function YGNodeLayoutGetLeft(_node: c_ptr): c_float { throw 0; },
|
|
227
|
+
);
|
|
228
|
+
function call_27(_node: c_ptr): number {
|
|
229
|
+
return native_27(_node);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const native_28 = $SHBuiltin.extern_c(
|
|
233
|
+
{ include: "yoga/Yoga.h" },
|
|
234
|
+
function YGNodeLayoutGetTop(_node: c_ptr): c_float { throw 0; },
|
|
235
|
+
);
|
|
236
|
+
function call_28(_node: c_ptr): number {
|
|
237
|
+
return native_28(_node);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const native_29 = $SHBuiltin.extern_c(
|
|
241
|
+
{ include: "yoga/Yoga.h" },
|
|
242
|
+
function YGNodeSetIsReferenceBaseline(_node: c_ptr, _isReferenceBaseline: c_bool): void { throw 0; },
|
|
243
|
+
);
|
|
244
|
+
function call_29(_node: c_ptr, _isReferenceBaseline: boolean): void {
|
|
245
|
+
const nativeArg1 = _isReferenceBaseline ? 1 : 0;
|
|
246
|
+
native_29(_node, nativeArg1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
const native_30 = $SHBuiltin.extern_c(
|
|
250
|
+
{ include: "yoga/Yoga.h" },
|
|
251
|
+
function YGNodeIsReferenceBaseline(_node: c_ptr): c_bool { throw 0; },
|
|
252
|
+
);
|
|
253
|
+
function call_30(_node: c_ptr): boolean {
|
|
254
|
+
const result = native_30(_node);
|
|
255
|
+
return result !== 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const native_31 = $SHBuiltin.extern_c(
|
|
259
|
+
{ include: "yoga/Yoga.h" },
|
|
260
|
+
function YGNodeGetOwner(_node: c_ptr): c_ptr { throw 0; },
|
|
261
|
+
);
|
|
262
|
+
function call_31(_node: c_ptr): c_ptr {
|
|
263
|
+
return native_31(_node);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const native_32 = $SHBuiltin.extern_c(
|
|
267
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
268
|
+
function ffigen_yoga_YGNodeStyleSetPositionType(_node: c_ptr, _positionType: c_i32): void { throw 0; },
|
|
269
|
+
);
|
|
270
|
+
function call_32(_node: c_ptr, _positionType: number): void {
|
|
271
|
+
native_32(_node, _positionType);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const native_33 = $SHBuiltin.extern_c(
|
|
275
|
+
{ include: "ffigen_yoga_adapters.h" },
|
|
276
|
+
function ffigen_yoga_YGNodeStyleSetPosition(_node: c_ptr, _edge: c_i32, _position: c_float): void { throw 0; },
|
|
277
|
+
);
|
|
278
|
+
function call_33(_node: c_ptr, _edge: number, _position: number): void {
|
|
279
|
+
native_33(_node, _edge, _position);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
globalThis.yoga = { YGNodeNew: call_0, YGNodeFreeRecursive: call_1, YGNodeInsertChild: call_2, YGNodeGetChildCount: call_3, YGNodeRemoveChild: call_4, YGNodeGetChild: call_5, YGNodeStyleSetWidth: call_6, YGNodeStyleSetWidthAuto: call_7, YGNodeStyleSetHeight: call_8, YGNodeStyleSetHeightAuto: call_9, YGNodeStyleSetFlex: call_10, YGNodeStyleSetFlexShrink: call_11, YGNodeStyleSetFlexGrow: call_12, YGNodeStyleSetOverflow: call_13, YGNodeStyleSetMargin: call_14, YGNodeStyleSetMarginAuto: call_15, YGNodeStyleSetPadding: call_16, YGNodeStyleSetJustifyContent: call_17, YGNodeStyleSetAlignItems: call_18, YGNodeStyleSetAlignSelf: call_19, YGNodeStyleSetFlexDirection: call_20, YGNodeStyleSetBorder: call_21, YGNodeCalculateLayout: call_22, YGNodeGetHasNewLayout: call_23, YGNodeSetHasNewLayout: call_24, YGNodeLayoutGetWidth: call_25, YGNodeLayoutGetHeight: call_26, YGNodeLayoutGetLeft: call_27, YGNodeLayoutGetTop: call_28, YGNodeSetIsReferenceBaseline: call_29, YGNodeIsReferenceBaseline: call_30, YGNodeGetOwner: call_31, YGNodeStyleSetPositionType: call_32, YGNodeStyleSetPosition: call_33, YGOverflowVisible: 0, YGOverflowHidden: 1, YGOverflowScroll: 2, YGEdgeLeft: 0, YGEdgeTop: 1, YGEdgeRight: 2, YGEdgeBottom: 3, YGEdgeStart: 4, YGEdgeEnd: 5, YGEdgeHorizontal: 6, YGEdgeVertical: 7, YGEdgeAll: 8, YGJustifyAuto: 0, YGJustifyFlexStart: 1, YGJustifyCenter: 2, YGJustifyFlexEnd: 3, YGJustifySpaceBetween: 4, YGJustifySpaceAround: 5, YGJustifySpaceEvenly: 6, YGJustifyStretch: 7, YGJustifyStart: 8, YGJustifyEnd: 9, YGAlignAuto: 0, YGAlignFlexStart: 1, YGAlignCenter: 2, YGAlignFlexEnd: 3, YGAlignStretch: 4, YGAlignBaseline: 5, YGAlignSpaceBetween: 6, YGAlignSpaceAround: 7, YGAlignSpaceEvenly: 8, YGAlignStart: 9, YGAlignEnd: 10, YGFlexDirectionColumn: 0, YGFlexDirectionColumnReverse: 1, YGFlexDirectionRow: 2, YGFlexDirectionRowReverse: 3, YGDirectionInherit: 0, YGDirectionLTR: 1, YGDirectionRTL: 2, YGPositionTypeStatic: 0, YGPositionTypeRelative: 1, YGPositionTypeAbsolute: 2 };
|
|
283
|
+
})();
|