@triniwiz/nativescript-masonkit 1.0.0-alpha.1 → 1.0.0-alpha.11
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/common.d.ts +53 -30
- package/common.js +489 -1113
- package/common.js.map +1 -1
- package/helpers.d.ts +116 -94
- package/helpers.js +474 -2538
- package/helpers.js.map +1 -1
- package/index.android.d.ts +28 -20
- package/index.android.js +110 -65
- package/index.android.js.map +1 -1
- package/index.d.ts +112 -18
- package/index.ios.d.ts +42 -21
- package/index.ios.js +316 -96
- package/index.ios.js.map +1 -1
- package/node.d.ts +2 -0
- package/node.js +3 -0
- package/node.js.map +1 -0
- package/package.json +3 -3
- package/platforms/android/include.gradle +18 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +4 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +345 -314
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +215 -818
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +20667 -16180
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1937 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +690 -628
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +215 -818
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +20667 -16180
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +20667 -16180
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +444 -308
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +33 -97
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1937 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +1888 -0
- package/platforms/ios/Podfile +1 -1
- package/platforms/ios/build.xcconfig +4 -1
- package/platforms/ios/prebuild.sh +101 -0
- package/platforms/new_native_src/cpp/Caches.cpp +36 -0
- package/platforms/new_native_src/cpp/Caches.h +42 -0
- package/platforms/new_native_src/cpp/Common.h +34 -0
- package/platforms/new_native_src/cpp/ConcurrentMap.h +57 -0
- package/platforms/new_native_src/cpp/Helpers.cpp +101 -0
- package/platforms/new_native_src/cpp/Helpers.h +364 -0
- package/platforms/new_native_src/cpp/MasonImpl.cpp +68 -0
- package/platforms/new_native_src/cpp/MasonImpl.h +40 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +89 -0
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +47 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +2181 -0
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +420 -0
- package/platforms/{ios/src → new_native_src/cpp}/include/mason_native.h +47 -20
- package/platforms/new_native_src/cpp/include/robin_hood.h +2544 -0
- package/src-native/pods/Headers/include/APIDesign.md +72 -0
- package/src-native/pods/Headers/include/DEPS +10 -0
- package/src-native/pods/Headers/include/DIR_METADATA +11 -0
- package/src-native/pods/Headers/include/OWNERS +23 -0
- package/src-native/pods/Headers/include/cppgc/DEPS +8 -0
- package/src-native/pods/Headers/include/cppgc/OWNERS +2 -0
- package/src-native/pods/Headers/include/cppgc/README.md +133 -0
- package/src-native/pods/Headers/include/cppgc/allocation.h +310 -0
- package/src-native/pods/Headers/include/cppgc/common.h +29 -0
- package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/src-native/pods/Headers/include/cppgc/custom-space.h +97 -0
- package/src-native/pods/Headers/include/cppgc/default-platform.h +67 -0
- package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/src-native/pods/Headers/include/cppgc/explicit-management.h +100 -0
- package/src-native/pods/Headers/include/cppgc/garbage-collected.h +106 -0
- package/src-native/pods/Headers/include/cppgc/heap-consistency.h +266 -0
- package/src-native/pods/Headers/include/cppgc/heap-state.h +82 -0
- package/src-native/pods/Headers/include/cppgc/heap-statistics.h +120 -0
- package/src-native/pods/Headers/include/cppgc/heap.h +206 -0
- package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/src-native/pods/Headers/include/cppgc/internal/logging.h +50 -0
- package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/src-native/pods/Headers/include/cppgc/liveness-broker.h +77 -0
- package/src-native/pods/Headers/include/cppgc/macros.h +26 -0
- package/src-native/pods/Headers/include/cppgc/member.h +291 -0
- package/src-native/pods/Headers/include/cppgc/name-provider.h +65 -0
- package/src-native/pods/Headers/include/cppgc/object-size-trait.h +58 -0
- package/src-native/pods/Headers/include/cppgc/persistent.h +370 -0
- package/src-native/pods/Headers/include/cppgc/platform.h +156 -0
- package/src-native/pods/Headers/include/cppgc/prefinalizer.h +75 -0
- package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/src-native/pods/Headers/include/cppgc/source-location.h +92 -0
- package/src-native/pods/Headers/include/cppgc/testing.h +106 -0
- package/src-native/pods/Headers/include/cppgc/trace-trait.h +116 -0
- package/src-native/pods/Headers/include/cppgc/type-traits.h +240 -0
- package/src-native/pods/Headers/include/cppgc/visitor.h +379 -0
- package/src-native/pods/Headers/include/js_protocol-1.2.json +936 -0
- package/src-native/pods/Headers/include/js_protocol-1.3.json +1112 -0
- package/src-native/pods/Headers/include/js_protocol.pdl +1709 -0
- package/src-native/pods/Headers/include/libffi/arm64/ffi.h +524 -0
- package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/src-native/pods/Headers/include/libffi.h +12 -0
- package/src-native/pods/Headers/include/libplatform/DEPS +9 -0
- package/src-native/pods/Headers/include/libplatform/libplatform-export.h +29 -0
- package/src-native/pods/Headers/include/libplatform/libplatform.h +106 -0
- package/src-native/pods/Headers/include/libplatform/v8-tracing.h +333 -0
- package/src-native/pods/Headers/include/v8-array-buffer.h +433 -0
- package/src-native/pods/Headers/include/v8-callbacks.h +397 -0
- package/src-native/pods/Headers/include/v8-container.h +129 -0
- package/src-native/pods/Headers/include/v8-context.h +407 -0
- package/src-native/pods/Headers/include/v8-cppgc.h +215 -0
- package/src-native/pods/Headers/include/v8-data.h +80 -0
- package/src-native/pods/Headers/include/v8-date.h +43 -0
- package/src-native/pods/Headers/include/v8-debug.h +168 -0
- package/src-native/pods/Headers/include/v8-embedder-heap.h +218 -0
- package/src-native/pods/Headers/include/v8-embedder-state-scope.h +51 -0
- package/src-native/pods/Headers/include/v8-exception.h +217 -0
- package/src-native/pods/Headers/include/v8-extension.h +62 -0
- package/src-native/pods/Headers/include/v8-external.h +37 -0
- package/src-native/pods/Headers/include/v8-fast-api-calls.h +939 -0
- package/src-native/pods/Headers/include/v8-forward.h +81 -0
- package/src-native/pods/Headers/include/v8-function-callback.h +475 -0
- package/src-native/pods/Headers/include/v8-function.h +125 -0
- package/src-native/pods/Headers/include/v8-initialization.h +315 -0
- package/src-native/pods/Headers/include/v8-inspector-protocol.h +13 -0
- package/src-native/pods/Headers/include/v8-inspector.h +376 -0
- package/src-native/pods/Headers/include/v8-internal.h +661 -0
- package/src-native/pods/Headers/include/v8-isolate.h +1709 -0
- package/src-native/pods/Headers/include/v8-json.h +47 -0
- package/src-native/pods/Headers/include/v8-local-handle.h +455 -0
- package/src-native/pods/Headers/include/v8-locker.h +149 -0
- package/src-native/pods/Headers/include/v8-maybe.h +137 -0
- package/src-native/pods/Headers/include/v8-memory-span.h +43 -0
- package/src-native/pods/Headers/include/v8-message.h +216 -0
- package/src-native/pods/Headers/include/v8-metrics.h +255 -0
- package/src-native/pods/Headers/include/v8-microtask-queue.h +152 -0
- package/src-native/pods/Headers/include/v8-microtask.h +28 -0
- package/src-native/pods/Headers/include/v8-object.h +775 -0
- package/src-native/pods/Headers/include/v8-persistent-handle.h +590 -0
- package/src-native/pods/Headers/include/v8-platform.h +1092 -0
- package/src-native/pods/Headers/include/v8-primitive-object.h +118 -0
- package/src-native/pods/Headers/include/v8-primitive.h +866 -0
- package/src-native/pods/Headers/include/v8-profiler.h +1198 -0
- package/src-native/pods/Headers/include/v8-promise.h +174 -0
- package/src-native/pods/Headers/include/v8-proxy.h +50 -0
- package/src-native/pods/Headers/include/v8-regexp.h +105 -0
- package/src-native/pods/Headers/include/v8-script.h +748 -0
- package/src-native/pods/Headers/include/v8-snapshot.h +196 -0
- package/src-native/pods/Headers/include/v8-statistics.h +217 -0
- package/src-native/pods/Headers/include/v8-template.h +1079 -0
- package/src-native/pods/Headers/include/v8-traced-handle.h +420 -0
- package/src-native/pods/Headers/include/v8-typed-array.h +282 -0
- package/src-native/pods/Headers/include/v8-unwinder-state.h +31 -0
- package/src-native/pods/Headers/include/v8-unwinder.h +132 -0
- package/src-native/pods/Headers/include/v8-util.h +658 -0
- package/src-native/pods/Headers/include/v8-value-serializer-version.h +24 -0
- package/src-native/pods/Headers/include/v8-value-serializer.h +279 -0
- package/src-native/pods/Headers/include/v8-value.h +526 -0
- package/src-native/pods/Headers/include/v8-version-string.h +38 -0
- package/src-native/pods/Headers/include/v8-version.h +20 -0
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/src-native/pods/Headers/include/v8-wasm.h +257 -0
- package/src-native/pods/Headers/include/v8-weak-callback-info.h +86 -0
- package/src-native/pods/Headers/include/v8.h +88 -0
- package/src-native/pods/Headers/include/v8config.h +605 -0
- package/src-native/pods/Headers/inspector/InspectorServer.h +20 -0
- package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/src-native/pods/Headers/inspector/base64.h +9 -0
- package/src-native/pods/Headers/inspector/src/base/address-region.h +95 -0
- package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/src-native/pods/Headers/inspector/src/base/atomicops.h +332 -0
- package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/src-native/pods/Headers/inspector/src/base/base-export.h +31 -0
- package/src-native/pods/Headers/inspector/src/base/bits.h +343 -0
- package/src-native/pods/Headers/inspector/src/base/build_config.h +234 -0
- package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/src-native/pods/Headers/inspector/src/base/export-template.h +163 -0
- package/src-native/pods/Headers/inspector/src/base/flags.h +130 -0
- package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/src-native/pods/Headers/inspector/src/base/logging.h +417 -0
- package/src-native/pods/Headers/inspector/src/base/macros.h +423 -0
- package/src-native/pods/Headers/inspector/src/base/memory.h +89 -0
- package/src-native/pods/Headers/inspector/src/base/once.h +108 -0
- package/src-native/pods/Headers/inspector/src/base/optional.h +882 -0
- package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/src-native/pods/Headers/inspector/src/base/platform/platform.h +476 -0
- package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/src-native/pods/Headers/inspector/src/base/template-utils.h +113 -0
- package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/src-native/pods/Headers/inspector/src/common/checks.h +38 -0
- package/src-native/pods/Headers/inspector/src/common/globals.h +1842 -0
- package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/src-native/pods/Headers/inspector/src/debug/interface-types.h +175 -0
- package/src-native/pods/Headers/inspector/src/init/v8.h +52 -0
- package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/src-native/pods/Headers/inspector/src/inspector/search-util.h +26 -0
- package/src-native/pods/Headers/inspector/src/inspector/string-16.h +180 -0
- package/src-native/pods/Headers/inspector/src/inspector/string-util.h +128 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/src-native/pods/Headers/inspector/src/numbers/conversions.h +183 -0
- package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/src-native/pods/Headers/inspector/src/utils/allocation.h +367 -0
- package/src-native/pods/Headers/inspector/src/utils/vector.h +324 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/src-native/pods/Headers/inspector/utils.h +32 -0
- package/src-native/pods/Headers/inspector/v8-inspector-platform.h +44 -0
- package/src-native/pods/Headers/jsi/decorator.h +762 -0
- package/src-native/pods/Headers/jsi/instrumentation.h +117 -0
- package/src-native/pods/Headers/jsi/jsi-inl.h +322 -0
- package/src-native/pods/Headers/jsi/jsi.h +1387 -0
- package/src-native/pods/Headers/jsi/jsilib.h +59 -0
- package/src-native/pods/Headers/jsi/threadsafe.h +79 -0
- package/src-native/pods/Headers/runtime/ArgConverter.h +61 -0
- package/src-native/pods/Headers/runtime/ArrayAdapter.h +13 -0
- package/src-native/pods/Headers/runtime/Caches.h +98 -0
- package/src-native/pods/Headers/runtime/ClassBuilder.h +61 -0
- package/src-native/pods/Headers/runtime/Common.h +9 -0
- package/src-native/pods/Headers/runtime/ConcurrentMap.h +55 -0
- package/src-native/pods/Headers/runtime/ConcurrentQueue.h +28 -0
- package/src-native/pods/Headers/runtime/Console.h +27 -0
- package/src-native/pods/Headers/runtime/Constants.h +15 -0
- package/src-native/pods/Headers/runtime/DataWrapper.h +671 -0
- package/src-native/pods/Headers/runtime/DictionaryAdapter.h +13 -0
- package/src-native/pods/Headers/runtime/ExtVector.h +21 -0
- package/src-native/pods/Headers/runtime/FFICall.h +105 -0
- package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/src-native/pods/Headers/runtime/FunctionReference.h +18 -0
- package/src-native/pods/Headers/runtime/Helpers.h +84 -0
- package/src-native/pods/Headers/runtime/InlineFunctions.h +16 -0
- package/src-native/pods/Headers/runtime/Interop.h +202 -0
- package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/src-native/pods/Headers/runtime/Metadata.h +981 -0
- package/src-native/pods/Headers/runtime/MetadataBuilder.h +72 -0
- package/src-native/pods/Headers/runtime/MetadataInlines.h +157 -0
- package/src-native/pods/Headers/runtime/ModuleInternal.h +59 -0
- package/src-native/pods/Headers/runtime/NSDataAdapter.h +13 -0
- package/src-native/pods/Headers/runtime/NativeScriptException.h +27 -0
- package/src-native/pods/Headers/runtime/ObjectManager.h +31 -0
- package/src-native/pods/Headers/runtime/OneByteStringResource.h +21 -0
- package/src-native/pods/Headers/runtime/Pointer.h +26 -0
- package/src-native/pods/Headers/runtime/PromiseProxy.h +15 -0
- package/src-native/pods/Headers/runtime/Reference.h +38 -0
- package/src-native/pods/Headers/runtime/Runtime.h +67 -0
- package/src-native/pods/Headers/runtime/RuntimeConfig.h +17 -0
- package/src-native/pods/Headers/runtime/SetTimeout.h +34 -0
- package/src-native/pods/Headers/runtime/SimpleAllocator.h +23 -0
- package/src-native/pods/Headers/runtime/StringHasher.h +315 -0
- package/src-native/pods/Headers/runtime/SymbolIterator.h +18 -0
- package/src-native/pods/Headers/runtime/SymbolLoader.h +27 -0
- package/src-native/pods/Headers/runtime/TNSDerivedClass.h +8 -0
- package/src-native/pods/Headers/runtime/TSHelpers.h +15 -0
- package/src-native/pods/Headers/runtime/Tasks.h +19 -0
- package/src-native/pods/Headers/runtime/UnmanagedType.h +21 -0
- package/src-native/pods/Headers/runtime/WeakRef.h +15 -0
- package/src-native/pods/Headers/runtime/Worker.h +26 -0
- package/src-native/pods/Headers/runtime/robin_hood.h +2184 -0
- package/src-native/pods/Headers/v8runtime/HostProxy.h +71 -0
- package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +70 -0
- package/src-native/pods/Headers/v8runtime/V8PointerValue.h +44 -0
- package/src-native/pods/Headers/v8runtime/V8Runtime.h +215 -0
- package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
- package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
- package/src-native/pods/NativeScript.podspec +68 -0
- package/style.d.ts +166 -0
- package/style.js +1686 -0
- package/style.js.map +1 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
- package/platforms/ios/src/module.modulemap +0 -4
package/helpers.js
CHANGED
|
@@ -1,95 +1,92 @@
|
|
|
1
|
+
// declare const __non_webpack_require__;
|
|
1
2
|
import { Length, Utils } from '@nativescript/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
import { style_ } from './common';
|
|
4
|
+
import { parseUnit } from '@nativescript/core/css/parser';
|
|
5
|
+
// if (__ANDROID__) {
|
|
6
|
+
// try {
|
|
7
|
+
// java.lang.System.loadLibrary('masonnative');
|
|
8
|
+
// __non_webpack_require__('system_lib://libmasonnativev8.so');
|
|
9
|
+
// UseV8Module = true;
|
|
10
|
+
// } catch (error) {
|
|
11
|
+
// console.warn('Failed to enable on FastAPI');
|
|
12
|
+
// }
|
|
13
|
+
// }
|
|
14
|
+
// if (__APPLE__) {
|
|
15
|
+
// NSCMason.alwaysEnable = true;
|
|
16
|
+
// if (!UseV8Module) {
|
|
17
|
+
// try {
|
|
18
|
+
// const installer = MasonV8Module.new();
|
|
19
|
+
// installer.install();
|
|
20
|
+
// UseV8Module = true;
|
|
21
|
+
// } catch (error) {
|
|
22
|
+
// console.warn('Failed to enable on FastAPI');
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
25
|
+
// }
|
|
26
|
+
function getMasonInstance(instance) {
|
|
27
|
+
const nativeView = instance?.android;
|
|
28
|
+
if (instance._isMasonChild) {
|
|
29
|
+
return org.nativescript.mason.masonkit.Mason.getShared().nodeForView(nativeView);
|
|
24
30
|
}
|
|
31
|
+
return nativeView.getNode();
|
|
25
32
|
}
|
|
26
|
-
function
|
|
27
|
-
const nativeView = instance?.
|
|
33
|
+
function getStyleInstance(instance) {
|
|
34
|
+
const nativeView = instance?.android;
|
|
35
|
+
if (instance._isMasonChild) {
|
|
36
|
+
return org.nativescript.mason.masonkit.Mason.getShared()
|
|
37
|
+
.nodeForView(nativeView)
|
|
38
|
+
.getStyle();
|
|
39
|
+
}
|
|
40
|
+
return nativeView.getStyle();
|
|
41
|
+
}
|
|
42
|
+
function getNode(instance) {
|
|
43
|
+
const nativeView = instance?.ios;
|
|
28
44
|
if (instance._isMasonChild) {
|
|
29
|
-
|
|
30
|
-
return parent?.nodeForView?.(nativeView);
|
|
45
|
+
return NSCMason.shared.nodeForView(nativeView, true);
|
|
31
46
|
}
|
|
32
|
-
return nativeView;
|
|
47
|
+
return nativeView.node;
|
|
48
|
+
}
|
|
49
|
+
function getStyle(instance) {
|
|
50
|
+
const nativeView = instance?.ios;
|
|
51
|
+
if (instance._isMasonChild) {
|
|
52
|
+
return NSCMason.shared.nodeForView(nativeView, true).style;
|
|
53
|
+
}
|
|
54
|
+
return nativeView.style;
|
|
33
55
|
}
|
|
34
56
|
export function _forceStyleUpdate(instance) {
|
|
35
57
|
if (!instance._hasNativeView) {
|
|
36
58
|
return;
|
|
37
59
|
}
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
if (global.isIOS) {
|
|
47
|
-
instance.ios.mason.updateNodeStyle();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
60
|
+
// if (__ANDROID__) {
|
|
61
|
+
// const nodeOrView = getMasonInstance(instance) as org.nativescript.mason.masonkit.TextView;
|
|
62
|
+
// nodeOrView.getStyle().updateNodeAndStyle();
|
|
63
|
+
// }
|
|
64
|
+
// if (__APPLE__) {
|
|
65
|
+
// (instance.ios as MasonUIView).node.style.updateNativeStyle();
|
|
66
|
+
// }
|
|
50
67
|
}
|
|
51
68
|
export function _markDirty(instance) {
|
|
52
69
|
if (!instance._hasNativeView) {
|
|
53
70
|
return;
|
|
54
71
|
}
|
|
55
|
-
if (
|
|
56
|
-
|
|
72
|
+
if (__ANDROID__) {
|
|
73
|
+
const nodeOrView = getMasonInstance(instance);
|
|
74
|
+
nodeOrView.dirty();
|
|
57
75
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const nodeOrView = getMasonInstance(instance);
|
|
61
|
-
if (instance._isMasonChild) {
|
|
62
|
-
nodeOrView.dirty();
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
nodeOrView.markNodeDirty();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if (global.isIOS) {
|
|
69
|
-
instance.ios.mason.markDirty();
|
|
70
|
-
}
|
|
76
|
+
if (__APPLE__) {
|
|
77
|
+
getNode(instance).markDirty();
|
|
71
78
|
}
|
|
72
79
|
}
|
|
73
80
|
export function _isDirty(instance) {
|
|
74
81
|
if (!instance._hasNativeView) {
|
|
75
82
|
return;
|
|
76
83
|
}
|
|
77
|
-
if (
|
|
78
|
-
|
|
84
|
+
if (__ANDROID__) {
|
|
85
|
+
const nodeOrView = getMasonInstance(instance);
|
|
86
|
+
return nodeOrView.isDirty();
|
|
79
87
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const nodeOrView = getMasonInstance(instance);
|
|
83
|
-
if (instance._isMasonChild) {
|
|
84
|
-
return nodeOrView.isDirty();
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return nodeOrView.isNodeDirty();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (global.isAndroid) {
|
|
91
|
-
return instance.ios.mason.isDirty;
|
|
92
|
-
}
|
|
88
|
+
if (__APPLE__) {
|
|
89
|
+
return getNode(instance).isDirty;
|
|
93
90
|
}
|
|
94
91
|
return false;
|
|
95
92
|
}
|
|
@@ -106,7 +103,7 @@ export function _intoType(type) {
|
|
|
106
103
|
}
|
|
107
104
|
}
|
|
108
105
|
export function _parseDimension(dim) {
|
|
109
|
-
if (
|
|
106
|
+
if (__APPLE__) {
|
|
110
107
|
const type = dim.type;
|
|
111
108
|
const value = dim.value;
|
|
112
109
|
switch (type) {
|
|
@@ -129,7 +126,7 @@ export function _parseDimension(dim) {
|
|
|
129
126
|
}
|
|
130
127
|
}
|
|
131
128
|
export function _parseLengthPercentage(dim) {
|
|
132
|
-
if (
|
|
129
|
+
if (__APPLE__) {
|
|
133
130
|
const type = dim.type;
|
|
134
131
|
const value = dim.value;
|
|
135
132
|
switch (type) {
|
|
@@ -150,7 +147,7 @@ export function _parseLengthPercentage(dim) {
|
|
|
150
147
|
}
|
|
151
148
|
}
|
|
152
149
|
export function _parseLengthPercentageAuto(dim) {
|
|
153
|
-
if (
|
|
150
|
+
if (__APPLE__) {
|
|
154
151
|
const type = dim.type;
|
|
155
152
|
const value = dim.value;
|
|
156
153
|
switch (type) {
|
|
@@ -179,7 +176,14 @@ export function _toMasonDimension(value) {
|
|
|
179
176
|
if (value === 'auto') {
|
|
180
177
|
return { value: 0, type: 'auto', native_type: 0 /* MasonDimensionCompatType.Auto */ };
|
|
181
178
|
}
|
|
182
|
-
|
|
179
|
+
let typeOf = typeof value;
|
|
180
|
+
if (typeOf === 'number') {
|
|
181
|
+
return { value: Utils.layout.toDevicePixels(value), type: 'points', native_type: 1 /* MasonDimensionCompatType.Points */ };
|
|
182
|
+
}
|
|
183
|
+
if (typeOf === 'string') {
|
|
184
|
+
value = parseUnit(value).value;
|
|
185
|
+
typeOf = 'object';
|
|
186
|
+
}
|
|
183
187
|
if (typeOf === 'object') {
|
|
184
188
|
switch (value?.unit) {
|
|
185
189
|
case '%':
|
|
@@ -190,16 +194,13 @@ export function _toMasonDimension(value) {
|
|
|
190
194
|
return { value: Utils.layout.toDevicePixels(value.value), type: 'points', native_type: 1 /* MasonDimensionCompatType.Points */ };
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
|
-
if (typeOf === 'number') {
|
|
194
|
-
return { value: Utils.layout.toDevicePixels(value), type: 'points', native_type: 1 /* MasonDimensionCompatType.Points */ };
|
|
195
|
-
}
|
|
196
197
|
return { value: value, type: 'points', native_type: 1 /* MasonDimensionCompatType.Points */ };
|
|
197
198
|
}
|
|
198
199
|
export function _intoMasonDimension(value) {
|
|
199
200
|
if (value === undefined || value === null) {
|
|
200
201
|
return null;
|
|
201
202
|
}
|
|
202
|
-
if (
|
|
203
|
+
if (__APPLE__) {
|
|
203
204
|
if (value === 'auto') {
|
|
204
205
|
return MasonDimensionCompat.Auto;
|
|
205
206
|
}
|
|
@@ -219,7 +220,7 @@ export function _intoMasonDimension(value) {
|
|
|
219
220
|
}
|
|
220
221
|
return MasonDimensionCompat.alloc().initWithPoints(Utils.layout.toDevicePixels(value));
|
|
221
222
|
}
|
|
222
|
-
if (
|
|
223
|
+
if (__ANDROID__) {
|
|
223
224
|
if (value === 'auto') {
|
|
224
225
|
return org.nativescript.mason.masonkit.Dimension.Auto;
|
|
225
226
|
}
|
|
@@ -290,618 +291,120 @@ export function _toLengthPercentage(value) {
|
|
|
290
291
|
}
|
|
291
292
|
return { value: value, type: 'points', native_type: 0 /* MasonLengthPercentageCompatType.Points */ };
|
|
292
293
|
}
|
|
294
|
+
function syncStyle(instance) {
|
|
295
|
+
// noop
|
|
296
|
+
}
|
|
293
297
|
export function _setDisplay(value, instance, initial = false) {
|
|
294
|
-
if (initial && value === '
|
|
298
|
+
if (initial && value === 'block') {
|
|
295
299
|
return;
|
|
296
300
|
}
|
|
297
301
|
if (instance._hasNativeView) {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
switch (value) {
|
|
301
|
-
case 'none':
|
|
302
|
-
nativeValue = 0 /* Display.None */;
|
|
303
|
-
break;
|
|
304
|
-
case 'flex':
|
|
305
|
-
nativeValue = 1 /* Display.Flex */;
|
|
306
|
-
break;
|
|
307
|
-
case 'grid':
|
|
308
|
-
nativeValue = 2 /* Display.Grid */;
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
if (nativeValue !== -1) {
|
|
312
|
-
global.__Mason_setDisplay(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
if (global.isAndroid) {
|
|
317
|
-
let nativeValue = null;
|
|
318
|
-
switch (value) {
|
|
319
|
-
case 'flex':
|
|
320
|
-
nativeValue = org.nativescript.mason.masonkit.Display.Flex;
|
|
321
|
-
break;
|
|
322
|
-
case 'grid':
|
|
323
|
-
nativeValue = org.nativescript.mason.masonkit.Display.Grid;
|
|
324
|
-
break;
|
|
325
|
-
case 'none':
|
|
326
|
-
nativeValue = org.nativescript.mason.masonkit.Display.None;
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
if (nativeValue) {
|
|
330
|
-
const nodeOrView = getMasonInstance(instance);
|
|
331
|
-
if (instance._isMasonChild) {
|
|
332
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setDisplay(nodeOrView, nativeValue);
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
nodeOrView.setDisplay(nativeValue);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
if (global.isIOS) {
|
|
340
|
-
let nativeValue = -1;
|
|
341
|
-
switch (value) {
|
|
342
|
-
case 'flex':
|
|
343
|
-
nativeValue = 1 /* Display.Flex */;
|
|
344
|
-
break;
|
|
345
|
-
case 'grid':
|
|
346
|
-
nativeValue = 2 /* Display.Grid */;
|
|
347
|
-
break;
|
|
348
|
-
case 'none':
|
|
349
|
-
nativeValue = 0 /* Display.None */;
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
if (nativeValue !== -1) {
|
|
353
|
-
instance.ios.display = nativeValue;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
302
|
+
instance._styleHelper.display = value;
|
|
303
|
+
syncStyle(instance);
|
|
357
304
|
}
|
|
358
305
|
}
|
|
359
306
|
export function _getDisplay(instance) {
|
|
360
|
-
|
|
361
|
-
return instance.style.display;
|
|
362
|
-
}
|
|
363
|
-
if (JSIEnabled) {
|
|
364
|
-
const value = global.__Mason_getDisplay(instance._masonStylePtr);
|
|
365
|
-
switch (value) {
|
|
366
|
-
case 0:
|
|
367
|
-
return 'none';
|
|
368
|
-
case 1:
|
|
369
|
-
return 'flex';
|
|
370
|
-
case 2:
|
|
371
|
-
return 'grid';
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
if (global.isAndroid) {
|
|
376
|
-
const nodeOrView = getMasonInstance(instance);
|
|
377
|
-
let display;
|
|
378
|
-
if (instance._isMasonChild) {
|
|
379
|
-
display = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getDisplay(nodeOrView);
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
display = nodeOrView.getDisplay();
|
|
383
|
-
}
|
|
384
|
-
switch (display) {
|
|
385
|
-
case org.nativescript.mason.masonkit.Display.None:
|
|
386
|
-
return 'none';
|
|
387
|
-
case org.nativescript.mason.masonkit.Display.Flex:
|
|
388
|
-
return 'flex';
|
|
389
|
-
case org.nativescript.mason.masonkit.Display.Grid:
|
|
390
|
-
return 'grid';
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (global.isIOS) {
|
|
394
|
-
switch (instance.ios.display) {
|
|
395
|
-
case 0 /* Display.None */:
|
|
396
|
-
return 'none';
|
|
397
|
-
case 1 /* Display.Flex */:
|
|
398
|
-
return 'flex';
|
|
399
|
-
case 2 /* Display.Grid */:
|
|
400
|
-
return 'grid';
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return instance.style.display;
|
|
307
|
+
return instance._styleHelper.display;
|
|
405
308
|
}
|
|
406
309
|
export function _setMinWidth(value, instance, initial = false) {
|
|
407
310
|
if (!instance._hasNativeView) {
|
|
408
311
|
return;
|
|
409
312
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
global.__Mason_setMinWidth(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
if (global.isAndroid) {
|
|
416
|
-
const nodeOrView = getMasonInstance(instance);
|
|
417
|
-
if (instance._isMasonChild) {
|
|
418
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMinSizeWidth(nodeOrView, val.value, val.native_type);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
nodeOrView.setMinSizeWidth(val.value, val.native_type);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
if (global.isIOS) {
|
|
425
|
-
instance.ios.setMinSizeWidth(val.value, val.native_type);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
313
|
+
instance._styleHelper.minWidth = value;
|
|
314
|
+
syncStyle(instance);
|
|
428
315
|
}
|
|
429
316
|
export function _getMinWidth(instance) {
|
|
430
317
|
if (!instance._hasNativeView) {
|
|
431
318
|
return instance.style.minWidth;
|
|
432
319
|
}
|
|
433
|
-
|
|
434
|
-
return global.__Mason_getMinWidth(instance._masonStylePtr);
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
if (global.isAndroid) {
|
|
438
|
-
const nodeOrView = getMasonInstance(instance);
|
|
439
|
-
let min;
|
|
440
|
-
if (instance._isMasonChild) {
|
|
441
|
-
min = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getMinSizeWidth(nodeOrView);
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
min = nodeOrView.getMinSizeWidth();
|
|
445
|
-
}
|
|
446
|
-
return _parseDimension(min);
|
|
447
|
-
}
|
|
448
|
-
if (global.isIOS) {
|
|
449
|
-
return _parseDimension(instance.ios.getMinSizeWidth());
|
|
450
|
-
}
|
|
451
|
-
}
|
|
320
|
+
return instance._styleHelper.minWidth;
|
|
452
321
|
}
|
|
453
322
|
export function _setMinHeight(value, instance, initial = false) {
|
|
454
323
|
if (!instance._hasNativeView) {
|
|
455
324
|
return;
|
|
456
325
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
global.__Mason_setMinHeight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
if (global.isAndroid) {
|
|
463
|
-
const nodeOrView = getMasonInstance(instance);
|
|
464
|
-
if (instance._isMasonChild) {
|
|
465
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMinSizeHeight(nodeOrView, val.value, val.native_type);
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
nodeOrView.setMinSizeHeight(val.value, val.native_type);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
if (global.isIOS) {
|
|
472
|
-
instance.ios.setMinSizeHeight(val.value, val.native_type);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
326
|
+
instance._styleHelper.minHeight = value;
|
|
327
|
+
syncStyle(instance);
|
|
475
328
|
}
|
|
476
329
|
export function _getMinHeight(instance) {
|
|
477
330
|
if (!instance._hasNativeView) {
|
|
478
331
|
return instance.style.minHeight;
|
|
479
332
|
}
|
|
480
|
-
|
|
481
|
-
return global.__Mason_getMinHeight(instance._masonStylePtr);
|
|
482
|
-
}
|
|
483
|
-
else {
|
|
484
|
-
if (global.isAndroid) {
|
|
485
|
-
const nodeOrView = getMasonInstance(instance);
|
|
486
|
-
let min;
|
|
487
|
-
if (instance._isMasonChild) {
|
|
488
|
-
min = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getMinSizeHeight(nodeOrView);
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
min = nodeOrView.getMinSizeHeight();
|
|
492
|
-
}
|
|
493
|
-
return _parseDimension(min);
|
|
494
|
-
}
|
|
495
|
-
if (global.isIOS) {
|
|
496
|
-
return _parseDimension(instance.ios.getMinSizeHeight());
|
|
497
|
-
}
|
|
498
|
-
}
|
|
333
|
+
return instance._styleHelper.minHeight;
|
|
499
334
|
}
|
|
500
335
|
export function _setWidth(value, instance, initial = false) {
|
|
501
336
|
if (!instance._hasNativeView) {
|
|
502
337
|
return;
|
|
503
338
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
global.__Mason_setWidth(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
if (global.isAndroid) {
|
|
510
|
-
const nodeOrView = getMasonInstance(instance);
|
|
511
|
-
if (instance._isMasonChild) {
|
|
512
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setSizeWidth(nodeOrView, val.value, val.native_type);
|
|
513
|
-
}
|
|
514
|
-
else {
|
|
515
|
-
nodeOrView.setSizeWidth(val.value, val.native_type);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
if (global.isIOS) {
|
|
519
|
-
instance.ios.setSizeWidth(val.value, val.native_type);
|
|
520
|
-
}
|
|
339
|
+
if (instance._styleHelper) {
|
|
340
|
+
instance._styleHelper.width = value;
|
|
521
341
|
}
|
|
342
|
+
syncStyle(instance);
|
|
522
343
|
}
|
|
523
344
|
export function _getWidth(instance) {
|
|
524
345
|
if (!instance._hasNativeView) {
|
|
525
346
|
return instance.style.width;
|
|
526
347
|
}
|
|
527
|
-
|
|
528
|
-
return global.__Mason_getWidth(instance._masonStylePtr);
|
|
529
|
-
}
|
|
530
|
-
else {
|
|
531
|
-
if (global.isAndroid) {
|
|
532
|
-
const nodeOrView = getMasonInstance(instance);
|
|
533
|
-
let size;
|
|
534
|
-
if (instance._isMasonChild) {
|
|
535
|
-
size = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getSizeWidth(nodeOrView);
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
size = nodeOrView.getSizeWidth();
|
|
539
|
-
}
|
|
540
|
-
return _parseDimension(size);
|
|
541
|
-
}
|
|
542
|
-
if (global.isIOS) {
|
|
543
|
-
return _parseDimension(instance.ios.getSizeWidth());
|
|
544
|
-
}
|
|
545
|
-
}
|
|
348
|
+
return instance._styleHelper.width;
|
|
546
349
|
}
|
|
547
350
|
export function _setHeight(value, instance, initial = false) {
|
|
548
351
|
if (!instance._hasNativeView) {
|
|
549
352
|
return;
|
|
550
353
|
}
|
|
551
|
-
|
|
552
|
-
if (JSIEnabled) {
|
|
553
|
-
global.__Mason_setHeight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
if (global.isAndroid) {
|
|
557
|
-
const nodeOrView = getMasonInstance(instance);
|
|
558
|
-
if (instance._isMasonChild) {
|
|
559
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setSizeHeight(nodeOrView, val.value, val.native_type);
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
nodeOrView.setSizeHeight(val.value, val.native_type);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
if (global.isIOS) {
|
|
566
|
-
instance.ios.setSizeHeight(val.value, val.native_type);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
354
|
+
instance._styleHelper.height = value;
|
|
569
355
|
}
|
|
570
356
|
export function _getHeight(instance) {
|
|
571
357
|
if (!instance._hasNativeView) {
|
|
572
358
|
return instance.style.height;
|
|
573
359
|
}
|
|
574
|
-
|
|
575
|
-
return global.__Mason_getHeight(instance._masonStylePtr);
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
if (global.isAndroid) {
|
|
579
|
-
const nodeOrView = getMasonInstance(instance);
|
|
580
|
-
let size;
|
|
581
|
-
if (instance._isMasonChild) {
|
|
582
|
-
size = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getSizeHeight(nodeOrView);
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
size = nodeOrView.getSizeHeight();
|
|
586
|
-
}
|
|
587
|
-
return _parseDimension(size);
|
|
588
|
-
}
|
|
589
|
-
if (global.isIOS) {
|
|
590
|
-
return _parseDimension(instance.ios.getSizeHeight());
|
|
591
|
-
}
|
|
592
|
-
}
|
|
360
|
+
return instance._styleHelper.height;
|
|
593
361
|
}
|
|
594
362
|
export function _setMaxWidth(value, instance, initial = false) {
|
|
595
363
|
if (!instance._hasNativeView) {
|
|
596
364
|
return;
|
|
597
365
|
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
global.__Mason_setMaxWidth(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
if (global.isAndroid) {
|
|
604
|
-
const nodeOrView = getMasonInstance(instance);
|
|
605
|
-
if (instance._isMasonChild) {
|
|
606
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMaxSizeWidth(nodeOrView, val.value, val.native_type);
|
|
607
|
-
}
|
|
608
|
-
else {
|
|
609
|
-
nodeOrView.setMaxSizeWidth(val.value, val.native_type);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
if (global.isIOS) {
|
|
613
|
-
instance.ios.setMaxSizeWidth(val.value, val.native_type);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
366
|
+
instance._styleHelper.maxWidth = value;
|
|
367
|
+
syncStyle(instance);
|
|
616
368
|
}
|
|
617
369
|
export function _getMaxWidth(instance) {
|
|
618
370
|
if (!instance._hasNativeView) {
|
|
619
371
|
return instance.style.maxWidth;
|
|
620
372
|
}
|
|
621
|
-
|
|
622
|
-
return global.__Mason_getMaxWidth(instance._masonStylePtr);
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
if (global.isAndroid) {
|
|
626
|
-
const nodeOrView = getMasonInstance(instance);
|
|
627
|
-
let max;
|
|
628
|
-
if (instance._isMasonChild) {
|
|
629
|
-
max = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getMaxSizeWidth(nodeOrView);
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
max = nodeOrView.getMaxSizeWidth();
|
|
633
|
-
}
|
|
634
|
-
return _parseDimension(max);
|
|
635
|
-
}
|
|
636
|
-
if (global.isIOS) {
|
|
637
|
-
return _parseDimension(instance.ios.getMaxSizeWidth());
|
|
638
|
-
}
|
|
639
|
-
}
|
|
373
|
+
return instance._styleHelper.maxWidth;
|
|
640
374
|
}
|
|
641
375
|
export function _setMaxHeight(value, instance, initial = false) {
|
|
642
376
|
if (!instance._hasNativeView) {
|
|
643
377
|
return;
|
|
644
378
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
global.__Mason_setMaxHeight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
648
|
-
}
|
|
649
|
-
else {
|
|
650
|
-
if (global.isAndroid) {
|
|
651
|
-
const nodeOrView = getMasonInstance(instance);
|
|
652
|
-
if (instance._isMasonChild) {
|
|
653
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMaxSizeHeight(nodeOrView, val.value, val.native_type);
|
|
654
|
-
}
|
|
655
|
-
else {
|
|
656
|
-
nodeOrView.setMaxSizeHeight(val.value, val.native_type);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
if (global.isIOS) {
|
|
660
|
-
instance.ios.setMaxSizeHeight(val.value, val.native_type);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
379
|
+
instance._styleHelper.maxHeight = value;
|
|
380
|
+
syncStyle(instance);
|
|
663
381
|
}
|
|
664
382
|
export function _getMaxHeight(instance) {
|
|
665
383
|
if (!instance._hasNativeView) {
|
|
666
384
|
return instance.style.maxHeight;
|
|
667
385
|
}
|
|
668
|
-
|
|
669
|
-
return global.__Mason_getMaxHeight(instance._masonStylePtr);
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
if (global.isAndroid) {
|
|
673
|
-
const nodeOrView = getMasonInstance(instance);
|
|
674
|
-
let max;
|
|
675
|
-
if (instance._isMasonChild) {
|
|
676
|
-
max = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getMaxSizeHeight(nodeOrView);
|
|
677
|
-
}
|
|
678
|
-
else {
|
|
679
|
-
max = nodeOrView.getMaxSizeHeight();
|
|
680
|
-
}
|
|
681
|
-
return _parseDimension(max);
|
|
682
|
-
}
|
|
683
|
-
if (global.isIOS) {
|
|
684
|
-
return _parseDimension(instance.ios.getMaxSizeHeight());
|
|
685
|
-
}
|
|
686
|
-
}
|
|
386
|
+
return instance._styleHelper.maxHeight;
|
|
687
387
|
}
|
|
688
388
|
export function _setFlexDirection(value, instance, initial = false) {
|
|
689
389
|
if (initial && value === 'row') {
|
|
690
390
|
return;
|
|
691
391
|
}
|
|
692
392
|
if (instance._hasNativeView) {
|
|
693
|
-
|
|
694
|
-
switch (value) {
|
|
695
|
-
case 'column':
|
|
696
|
-
if (JSIEnabled) {
|
|
697
|
-
nativeValue = 1 /* FlexDirection.Column */;
|
|
698
|
-
}
|
|
699
|
-
else {
|
|
700
|
-
if (global.isAndroid) {
|
|
701
|
-
nativeValue = org.nativescript.mason.masonkit.FlexDirection.Column;
|
|
702
|
-
}
|
|
703
|
-
else if (global.isIOS) {
|
|
704
|
-
nativeValue = 1 /* FlexDirection.Column */;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
break;
|
|
708
|
-
case 'row':
|
|
709
|
-
if (JSIEnabled) {
|
|
710
|
-
nativeValue = 0 /* FlexDirection.Row */;
|
|
711
|
-
}
|
|
712
|
-
else {
|
|
713
|
-
if (global.isAndroid) {
|
|
714
|
-
nativeValue = org.nativescript.mason.masonkit.FlexDirection.Row;
|
|
715
|
-
}
|
|
716
|
-
else if (global.isIOS) {
|
|
717
|
-
nativeValue = 0 /* FlexDirection.Row */;
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
break;
|
|
721
|
-
case 'column-reverse':
|
|
722
|
-
if (JSIEnabled) {
|
|
723
|
-
nativeValue = 3 /* FlexDirection.ColumnReverse */;
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
if (global.isAndroid) {
|
|
727
|
-
nativeValue = org.nativescript.mason.masonkit.FlexDirection.ColumnReverse;
|
|
728
|
-
}
|
|
729
|
-
else if (global.isIOS) {
|
|
730
|
-
nativeValue = 3 /* FlexDirection.ColumnReverse */;
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
break;
|
|
734
|
-
case 'row-reverse':
|
|
735
|
-
if (JSIEnabled) {
|
|
736
|
-
nativeValue = 2 /* FlexDirection.RowReverse */;
|
|
737
|
-
}
|
|
738
|
-
else {
|
|
739
|
-
if (global.isAndroid) {
|
|
740
|
-
nativeValue = org.nativescript.mason.masonkit.FlexDirection.RowReverse;
|
|
741
|
-
}
|
|
742
|
-
else if (global.isIOS) {
|
|
743
|
-
nativeValue = 2 /* FlexDirection.RowReverse */;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
break;
|
|
747
|
-
}
|
|
748
|
-
if (nativeValue) {
|
|
749
|
-
if (JSIEnabled) {
|
|
750
|
-
global.__Mason_setFlexDirection(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
if (global.isAndroid) {
|
|
754
|
-
const nodeOrView = getMasonInstance(instance);
|
|
755
|
-
if (instance._isMasonChild) {
|
|
756
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setFlexDirection(nodeOrView, nativeValue);
|
|
757
|
-
}
|
|
758
|
-
else {
|
|
759
|
-
nodeOrView.setFlexDirection(nativeValue);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
if (global.isIOS) {
|
|
763
|
-
instance.ios.flexDirection = nativeValue;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
}
|
|
393
|
+
instance._styleHelper.flexDirection = value;
|
|
767
394
|
}
|
|
768
395
|
}
|
|
769
396
|
export function _getFlexDirection(instance) {
|
|
770
|
-
|
|
771
|
-
if (JSIEnabled) {
|
|
772
|
-
const value = global.__Mason_getFlexDirection(instance._masonStylePtr);
|
|
773
|
-
switch (value) {
|
|
774
|
-
case 0 /* FlexDirection.Row */:
|
|
775
|
-
return 'row';
|
|
776
|
-
case 1 /* FlexDirection.Column */:
|
|
777
|
-
return 'column';
|
|
778
|
-
case 2 /* FlexDirection.RowReverse */:
|
|
779
|
-
return 'row-reverse';
|
|
780
|
-
case 3 /* FlexDirection.ColumnReverse */:
|
|
781
|
-
return 'column-reverse';
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
else {
|
|
785
|
-
if (global.isAndroid) {
|
|
786
|
-
const nodeOrView = getMasonInstance(instance);
|
|
787
|
-
let value;
|
|
788
|
-
if (instance._isMasonChild) {
|
|
789
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getFlexDirection(nodeOrView);
|
|
790
|
-
}
|
|
791
|
-
else {
|
|
792
|
-
value = nodeOrView.getFlexDirection();
|
|
793
|
-
}
|
|
794
|
-
switch (value) {
|
|
795
|
-
case org.nativescript.mason.masonkit.FlexDirection.Row:
|
|
796
|
-
return 'row';
|
|
797
|
-
case org.nativescript.mason.masonkit.FlexDirection.Column:
|
|
798
|
-
return 'column';
|
|
799
|
-
case org.nativescript.mason.masonkit.FlexDirection.RowReverse:
|
|
800
|
-
return 'row-reverse';
|
|
801
|
-
case org.nativescript.mason.masonkit.FlexDirection.ColumnReverse:
|
|
802
|
-
return 'column-reverse';
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
if (global.isIOS) {
|
|
806
|
-
const value = instance.ios.flexDirection;
|
|
807
|
-
switch (value) {
|
|
808
|
-
case 0 /* FlexDirection.Row */:
|
|
809
|
-
return 'row';
|
|
810
|
-
case 1 /* FlexDirection.Column */:
|
|
811
|
-
return 'column';
|
|
812
|
-
case 2 /* FlexDirection.RowReverse */:
|
|
813
|
-
return 'row-reverse';
|
|
814
|
-
case 3 /* FlexDirection.ColumnReverse */:
|
|
815
|
-
return 'column-reverse';
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
return instance.style.flexDirection;
|
|
397
|
+
return instance._styleHelper.flexDirection;
|
|
821
398
|
}
|
|
822
399
|
export function _getPosition(instance) {
|
|
823
|
-
|
|
824
|
-
return instance.style.position;
|
|
825
|
-
}
|
|
826
|
-
if (JSIEnabled) {
|
|
827
|
-
const value = global.__Mason_getPosition(instance._masonStylePtr);
|
|
828
|
-
switch (value) {
|
|
829
|
-
case 0:
|
|
830
|
-
return 'relative';
|
|
831
|
-
case 1:
|
|
832
|
-
return 'absolute';
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
if (global.isAndroid) {
|
|
837
|
-
const nodeOrView = getMasonInstance(instance);
|
|
838
|
-
let value;
|
|
839
|
-
if (instance._isMasonChild) {
|
|
840
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getPosition(nodeOrView);
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
value = nodeOrView.getPosition();
|
|
844
|
-
}
|
|
845
|
-
switch (value) {
|
|
846
|
-
case org.nativescript.mason.masonkit.Position.Absolute:
|
|
847
|
-
return 'absolute';
|
|
848
|
-
case org.nativescript.mason.masonkit.Position.Relative:
|
|
849
|
-
return 'relative';
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
if (global.isIOS) {
|
|
853
|
-
switch (instance.ios.position) {
|
|
854
|
-
case 1 /* Position.Absolute */:
|
|
855
|
-
return 'absolute';
|
|
856
|
-
case 0 /* Position.Relative */:
|
|
857
|
-
return 'relative';
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
400
|
+
return instance._styleHelper.position;
|
|
861
401
|
}
|
|
862
402
|
export function _setPosition(value, instance, initial = false) {
|
|
863
403
|
if (initial && value === 'relative') {
|
|
864
404
|
return;
|
|
865
405
|
}
|
|
866
406
|
if (instance._hasNativeView) {
|
|
867
|
-
|
|
868
|
-
switch (value) {
|
|
869
|
-
case 'absolute':
|
|
870
|
-
if (JSIEnabled) {
|
|
871
|
-
nativeValue = 1 /* PositionType.Absolute */;
|
|
872
|
-
}
|
|
873
|
-
else {
|
|
874
|
-
nativeValue = org.nativescript.mason.masonkit.Position.Absolute;
|
|
875
|
-
}
|
|
876
|
-
break;
|
|
877
|
-
case 'relative':
|
|
878
|
-
if (JSIEnabled) {
|
|
879
|
-
nativeValue = 0 /* PositionType.Relative */;
|
|
880
|
-
}
|
|
881
|
-
else {
|
|
882
|
-
nativeValue = org.nativescript.mason.masonkit.Position.Relative;
|
|
883
|
-
}
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
if (nativeValue) {
|
|
887
|
-
if (JSIEnabled) {
|
|
888
|
-
global.__Mason_setPosition(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
889
|
-
}
|
|
890
|
-
else {
|
|
891
|
-
if (global.isAndroid) {
|
|
892
|
-
const nodeOrView = getMasonInstance(instance);
|
|
893
|
-
if (instance._isMasonChild) {
|
|
894
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setPosition(nodeOrView, nativeValue);
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
nodeOrView.setPosition(nativeValue);
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
if (global.isIOS) {
|
|
901
|
-
instance.ios.position = nativeValue;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
}
|
|
407
|
+
instance._styleHelper.position = value;
|
|
905
408
|
}
|
|
906
409
|
}
|
|
907
410
|
export function _setFlexWrap(value, instance, initial = false) {
|
|
@@ -909,113 +412,12 @@ export function _setFlexWrap(value, instance, initial = false) {
|
|
|
909
412
|
return;
|
|
910
413
|
}
|
|
911
414
|
if (instance._hasNativeView) {
|
|
912
|
-
|
|
913
|
-
switch (value) {
|
|
914
|
-
case 'no-wrap':
|
|
915
|
-
if (JSIEnabled) {
|
|
916
|
-
nativeValue = 0 /* FlexWrap.NoWrap */;
|
|
917
|
-
}
|
|
918
|
-
else {
|
|
919
|
-
if (global.isAndroid) {
|
|
920
|
-
nativeValue = org.nativescript.mason.masonkit.FlexWrap.NoWrap;
|
|
921
|
-
}
|
|
922
|
-
if (global.isIOS) {
|
|
923
|
-
nativeValue = 0 /* FlexWrap.NoWrap */;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
break;
|
|
927
|
-
case 'wrap':
|
|
928
|
-
if (JSIEnabled) {
|
|
929
|
-
nativeValue = 1 /* FlexWrap.Wrap */;
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
if (global.isAndroid) {
|
|
933
|
-
nativeValue = org.nativescript.mason.masonkit.FlexWrap.Wrap;
|
|
934
|
-
}
|
|
935
|
-
if (global.isIOS) {
|
|
936
|
-
nativeValue = 1 /* FlexWrap.Wrap */;
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
break;
|
|
940
|
-
case 'wrap-reverse':
|
|
941
|
-
if (JSIEnabled) {
|
|
942
|
-
nativeValue = 2 /* FlexWrap.WrapReverse */;
|
|
943
|
-
}
|
|
944
|
-
else {
|
|
945
|
-
if (global.isAndroid) {
|
|
946
|
-
nativeValue = org.nativescript.mason.masonkit.FlexWrap.WrapReverse;
|
|
947
|
-
}
|
|
948
|
-
if (global.isIOS) {
|
|
949
|
-
nativeValue = 2 /* FlexWrap.WrapReverse */;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
if (nativeValue) {
|
|
955
|
-
if (JSIEnabled) {
|
|
956
|
-
global.__Mason_setFlexWrap(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
957
|
-
}
|
|
958
|
-
else {
|
|
959
|
-
if (global.isAndroid) {
|
|
960
|
-
const nodeOrView = getMasonInstance(instance);
|
|
961
|
-
if (instance._isMasonChild) {
|
|
962
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setFlexWrap(nodeOrView, nativeValue);
|
|
963
|
-
}
|
|
964
|
-
else {
|
|
965
|
-
nodeOrView.setFlexWrap(nativeValue);
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
if (global.isIOS) {
|
|
969
|
-
instance.ios.flexWrap = nativeValue;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
}
|
|
415
|
+
instance._styleHelper.flexWrap = value;
|
|
973
416
|
}
|
|
974
417
|
}
|
|
975
418
|
export function _getFlexWrap(instance) {
|
|
976
419
|
if (instance._hasNativeView) {
|
|
977
|
-
|
|
978
|
-
const value = global.__Mason_getFlexWrap(instance._masonStylePtr);
|
|
979
|
-
switch (value) {
|
|
980
|
-
case 0:
|
|
981
|
-
return 'no-wrap';
|
|
982
|
-
case 1:
|
|
983
|
-
return 'wrap';
|
|
984
|
-
case 2:
|
|
985
|
-
return 'wrap-reverse';
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
else {
|
|
989
|
-
if (global.isAndroid) {
|
|
990
|
-
const nodeOrView = getMasonInstance(instance);
|
|
991
|
-
let value;
|
|
992
|
-
if (instance._isMasonChild) {
|
|
993
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getFlexWrap(nodeOrView);
|
|
994
|
-
}
|
|
995
|
-
else {
|
|
996
|
-
value = nodeOrView.getFlexWrap();
|
|
997
|
-
}
|
|
998
|
-
switch (value) {
|
|
999
|
-
case org.nativescript.mason.masonkit.FlexWrap.NoWrap:
|
|
1000
|
-
return 'no-wrap';
|
|
1001
|
-
case org.nativescript.mason.masonkit.FlexWrap.Wrap:
|
|
1002
|
-
return 'wrap';
|
|
1003
|
-
case org.nativescript.mason.masonkit.FlexWrap.WrapReverse:
|
|
1004
|
-
return 'wrap-reverse';
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
if (global.isIOS) {
|
|
1008
|
-
const value = instance.ios.flexWrap;
|
|
1009
|
-
switch (value) {
|
|
1010
|
-
case 0 /* FlexWrap.NoWrap */:
|
|
1011
|
-
return 'no-wrap';
|
|
1012
|
-
case 1 /* FlexWrap.Wrap */:
|
|
1013
|
-
return 'wrap';
|
|
1014
|
-
case 2 /* FlexWrap.WrapReverse */:
|
|
1015
|
-
return 'wrap-reverse';
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
420
|
+
return instance._styleHelper.flexWrap;
|
|
1019
421
|
}
|
|
1020
422
|
return instance.style.flexWrap;
|
|
1021
423
|
}
|
|
@@ -1024,142 +426,12 @@ export function _setAlignItems(value, instance, initial = false) {
|
|
|
1024
426
|
return;
|
|
1025
427
|
}
|
|
1026
428
|
if (instance._hasNativeView) {
|
|
1027
|
-
|
|
1028
|
-
switch (value) {
|
|
1029
|
-
case 'normal':
|
|
1030
|
-
if (JSIEnabled) {
|
|
1031
|
-
nativeValue = -1 /* AlignItems.Normal */;
|
|
1032
|
-
}
|
|
1033
|
-
else {
|
|
1034
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.Normal;
|
|
1035
|
-
}
|
|
1036
|
-
break;
|
|
1037
|
-
case 'baseline':
|
|
1038
|
-
if (JSIEnabled) {
|
|
1039
|
-
nativeValue = 3 /* AlignItems.Baseline */;
|
|
1040
|
-
}
|
|
1041
|
-
else {
|
|
1042
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.Baseline;
|
|
1043
|
-
}
|
|
1044
|
-
break;
|
|
1045
|
-
case 'center':
|
|
1046
|
-
if (JSIEnabled) {
|
|
1047
|
-
nativeValue = 2 /* AlignItems.Center */;
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.Center;
|
|
1051
|
-
}
|
|
1052
|
-
break;
|
|
1053
|
-
case 'flex-end':
|
|
1054
|
-
case 'end':
|
|
1055
|
-
if (JSIEnabled) {
|
|
1056
|
-
nativeValue = 1 /* AlignItems.End */;
|
|
1057
|
-
}
|
|
1058
|
-
else {
|
|
1059
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.End;
|
|
1060
|
-
}
|
|
1061
|
-
break;
|
|
1062
|
-
case 'flex-start':
|
|
1063
|
-
case 'start':
|
|
1064
|
-
if (JSIEnabled) {
|
|
1065
|
-
nativeValue = 0 /* AlignItems.Start */;
|
|
1066
|
-
}
|
|
1067
|
-
else {
|
|
1068
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.Start;
|
|
1069
|
-
}
|
|
1070
|
-
break;
|
|
1071
|
-
case 'stretch':
|
|
1072
|
-
if (JSIEnabled) {
|
|
1073
|
-
nativeValue = 4 /* AlignItems.Stretch */;
|
|
1074
|
-
}
|
|
1075
|
-
else {
|
|
1076
|
-
nativeValue = org.nativescript.mason.masonkit.AlignItems.Stretch;
|
|
1077
|
-
}
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
if (nativeValue) {
|
|
1081
|
-
if (JSIEnabled) {
|
|
1082
|
-
global.__Mason_setAlignItems(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1083
|
-
}
|
|
1084
|
-
else {
|
|
1085
|
-
if (global.isAndroid) {
|
|
1086
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1087
|
-
if (instance._isMasonChild) {
|
|
1088
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setAlignItems(nodeOrView, nativeValue);
|
|
1089
|
-
}
|
|
1090
|
-
else {
|
|
1091
|
-
nodeOrView.setAlignItems(nativeValue);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
if (global.isIOS) {
|
|
1095
|
-
instance.ios.alignItems = nativeValue;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
429
|
+
instance._styleHelper.alignItems = value;
|
|
1099
430
|
}
|
|
1100
431
|
}
|
|
1101
432
|
export function _getAlignItems(instance) {
|
|
1102
433
|
if (instance._hasNativeView) {
|
|
1103
|
-
|
|
1104
|
-
const value = global.__Mason_getAlignItems(instance._masonStylePtr);
|
|
1105
|
-
switch (value) {
|
|
1106
|
-
case -1 /* AlignItems.Normal */:
|
|
1107
|
-
return 'normal';
|
|
1108
|
-
case 3 /* AlignItems.Baseline */:
|
|
1109
|
-
return 'baseline';
|
|
1110
|
-
case 2 /* AlignItems.Center */:
|
|
1111
|
-
return 'center';
|
|
1112
|
-
case 1 /* AlignItems.End */:
|
|
1113
|
-
return 'end';
|
|
1114
|
-
case 0 /* AlignItems.Start */:
|
|
1115
|
-
return 'start';
|
|
1116
|
-
case 4 /* AlignItems.Stretch */:
|
|
1117
|
-
return 'stretch';
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
else {
|
|
1121
|
-
if (global.isAndroid) {
|
|
1122
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1123
|
-
let value;
|
|
1124
|
-
if (instance._isMasonChild) {
|
|
1125
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getAlignItems(nodeOrView);
|
|
1126
|
-
}
|
|
1127
|
-
else {
|
|
1128
|
-
value = nodeOrView.getAlignItems();
|
|
1129
|
-
}
|
|
1130
|
-
switch (value) {
|
|
1131
|
-
case org.nativescript.mason.masonkit.AlignItems.Normal:
|
|
1132
|
-
return 'normal';
|
|
1133
|
-
case org.nativescript.mason.masonkit.AlignItems.Baseline:
|
|
1134
|
-
return 'baseline';
|
|
1135
|
-
case org.nativescript.mason.masonkit.AlignItems.Center:
|
|
1136
|
-
return 'center';
|
|
1137
|
-
case org.nativescript.mason.masonkit.AlignItems.End:
|
|
1138
|
-
return 'end';
|
|
1139
|
-
case org.nativescript.mason.masonkit.AlignItems.Start:
|
|
1140
|
-
return 'start';
|
|
1141
|
-
case org.nativescript.mason.masonkit.AlignItems.Stretch:
|
|
1142
|
-
return 'stretch';
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
if (global.isIOS) {
|
|
1146
|
-
const value = instance.ios.alignItems;
|
|
1147
|
-
switch (value) {
|
|
1148
|
-
case -1 /* AlignItems.Normal */:
|
|
1149
|
-
return 'normal';
|
|
1150
|
-
case 3 /* AlignItems.Baseline */:
|
|
1151
|
-
return 'baseline';
|
|
1152
|
-
case 2 /* AlignItems.Center */:
|
|
1153
|
-
return 'center';
|
|
1154
|
-
case 1 /* AlignItems.End */:
|
|
1155
|
-
return 'end';
|
|
1156
|
-
case 0 /* AlignItems.Start */:
|
|
1157
|
-
return 'start';
|
|
1158
|
-
case 4 /* AlignItems.Stretch */:
|
|
1159
|
-
return 'stretch';
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
434
|
+
return instance._styleHelper.alignItems;
|
|
1163
435
|
}
|
|
1164
436
|
return instance.style.alignItems;
|
|
1165
437
|
}
|
|
@@ -1168,142 +440,12 @@ export function _setAlignSelf(value, instance, initial = false) {
|
|
|
1168
440
|
return;
|
|
1169
441
|
}
|
|
1170
442
|
if (instance._hasNativeView) {
|
|
1171
|
-
|
|
1172
|
-
switch (value) {
|
|
1173
|
-
case 'normal':
|
|
1174
|
-
if (JSIEnabled || global.isIOS) {
|
|
1175
|
-
nativeValue = -1 /* AlignSelf.Normal */;
|
|
1176
|
-
}
|
|
1177
|
-
else {
|
|
1178
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.Normal;
|
|
1179
|
-
}
|
|
1180
|
-
break;
|
|
1181
|
-
case 'baseline':
|
|
1182
|
-
if (JSIEnabled || global.isIOS) {
|
|
1183
|
-
nativeValue = 3 /* AlignSelf.Baseline */;
|
|
1184
|
-
}
|
|
1185
|
-
else {
|
|
1186
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.Baseline;
|
|
1187
|
-
}
|
|
1188
|
-
break;
|
|
1189
|
-
case 'center':
|
|
1190
|
-
if (JSIEnabled || global.isIOS) {
|
|
1191
|
-
nativeValue = 2 /* AlignSelf.Center */;
|
|
1192
|
-
}
|
|
1193
|
-
else {
|
|
1194
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.Center;
|
|
1195
|
-
}
|
|
1196
|
-
break;
|
|
1197
|
-
case 'flex-end':
|
|
1198
|
-
case 'end':
|
|
1199
|
-
if (JSIEnabled || global.isIOS) {
|
|
1200
|
-
nativeValue = 1 /* AlignSelf.End */;
|
|
1201
|
-
}
|
|
1202
|
-
else {
|
|
1203
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.End;
|
|
1204
|
-
}
|
|
1205
|
-
break;
|
|
1206
|
-
case 'flex-start':
|
|
1207
|
-
case 'start':
|
|
1208
|
-
if (JSIEnabled || global.isIOS) {
|
|
1209
|
-
nativeValue = 0 /* AlignSelf.Start */;
|
|
1210
|
-
}
|
|
1211
|
-
else {
|
|
1212
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.Start;
|
|
1213
|
-
}
|
|
1214
|
-
break;
|
|
1215
|
-
case 'stretch':
|
|
1216
|
-
if (JSIEnabled || global.isIOS) {
|
|
1217
|
-
nativeValue = 4 /* AlignSelf.Stretch */;
|
|
1218
|
-
}
|
|
1219
|
-
else {
|
|
1220
|
-
nativeValue = org.nativescript.mason.masonkit.AlignSelf.Stretch;
|
|
1221
|
-
}
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
if (nativeValue) {
|
|
1225
|
-
if (JSIEnabled) {
|
|
1226
|
-
global.__Mason_setAlignSelf(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1227
|
-
}
|
|
1228
|
-
else {
|
|
1229
|
-
if (global.isAndroid) {
|
|
1230
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1231
|
-
if (instance._isMasonChild) {
|
|
1232
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setAlignSelf(nodeOrView, nativeValue);
|
|
1233
|
-
}
|
|
1234
|
-
else {
|
|
1235
|
-
nodeOrView.setAlignSelf(nativeValue);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
if (global.isIOS) {
|
|
1239
|
-
instance.ios.alignSelf = nativeValue;
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
443
|
+
instance._styleHelper.alignSelf = value;
|
|
1243
444
|
}
|
|
1244
445
|
}
|
|
1245
446
|
export function _getAlignSelf(instance) {
|
|
1246
447
|
if (instance._hasNativeView) {
|
|
1247
|
-
|
|
1248
|
-
const value = global.__Mason_getAlignSelf(instance._masonStylePtr);
|
|
1249
|
-
switch (value) {
|
|
1250
|
-
case -1 /* AlignSelf.Normal */:
|
|
1251
|
-
return 'normal';
|
|
1252
|
-
case 3 /* AlignSelf.Baseline */:
|
|
1253
|
-
return 'baseline';
|
|
1254
|
-
case 2 /* AlignSelf.Center */:
|
|
1255
|
-
return 'center';
|
|
1256
|
-
case 1 /* AlignSelf.End */:
|
|
1257
|
-
return 'end';
|
|
1258
|
-
case 0 /* AlignSelf.Start */:
|
|
1259
|
-
return 'start';
|
|
1260
|
-
case 4 /* AlignSelf.Stretch */:
|
|
1261
|
-
return 'stretch';
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
else {
|
|
1265
|
-
if (global.isAndroid) {
|
|
1266
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1267
|
-
let value;
|
|
1268
|
-
if (instance._isMasonChild) {
|
|
1269
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getAlignSelf(nodeOrView);
|
|
1270
|
-
}
|
|
1271
|
-
else {
|
|
1272
|
-
value = nodeOrView.getAlignSelf();
|
|
1273
|
-
}
|
|
1274
|
-
switch (value) {
|
|
1275
|
-
case org.nativescript.mason.masonkit.AlignSelf.Normal:
|
|
1276
|
-
return 'normal';
|
|
1277
|
-
case org.nativescript.mason.masonkit.AlignSelf.Baseline:
|
|
1278
|
-
return 'baseline';
|
|
1279
|
-
case org.nativescript.mason.masonkit.AlignSelf.Center:
|
|
1280
|
-
return 'center';
|
|
1281
|
-
case org.nativescript.mason.masonkit.AlignSelf.End:
|
|
1282
|
-
return 'end';
|
|
1283
|
-
case org.nativescript.mason.masonkit.AlignSelf.Start:
|
|
1284
|
-
return 'start';
|
|
1285
|
-
case org.nativescript.mason.masonkit.AlignSelf.Stretch:
|
|
1286
|
-
return 'stretch';
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
if (global.isIOS) {
|
|
1290
|
-
const value = instance.ios.alignSelf;
|
|
1291
|
-
switch (value) {
|
|
1292
|
-
case -1 /* AlignSelf.Normal */:
|
|
1293
|
-
return 'normal';
|
|
1294
|
-
case 3 /* AlignSelf.Baseline */:
|
|
1295
|
-
return 'baseline';
|
|
1296
|
-
case 2 /* AlignSelf.Center */:
|
|
1297
|
-
return 'center';
|
|
1298
|
-
case 1 /* AlignSelf.End */:
|
|
1299
|
-
return 'end';
|
|
1300
|
-
case 0 /* AlignSelf.Start */:
|
|
1301
|
-
return 'start';
|
|
1302
|
-
case 4 /* AlignSelf.Stretch */:
|
|
1303
|
-
return 'stretch';
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
448
|
+
return instance._styleHelper.alignSelf;
|
|
1307
449
|
}
|
|
1308
450
|
return instance.style.alignSelf;
|
|
1309
451
|
}
|
|
@@ -1312,210 +454,14 @@ export function _setAlignContent(value, instance, initial = false) {
|
|
|
1312
454
|
return;
|
|
1313
455
|
}
|
|
1314
456
|
if (instance._hasNativeView) {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
case 'normal':
|
|
1318
|
-
if (JSIEnabled) {
|
|
1319
|
-
nativeValue = -1 /* AlignContent.Normal */;
|
|
1320
|
-
}
|
|
1321
|
-
else {
|
|
1322
|
-
if (global.isAndroid) {
|
|
1323
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.Normal;
|
|
1324
|
-
}
|
|
1325
|
-
if (global.isIOS) {
|
|
1326
|
-
nativeValue = -1 /* AlignContent.Normal */;
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
break;
|
|
1330
|
-
case 'space-around':
|
|
1331
|
-
if (JSIEnabled) {
|
|
1332
|
-
nativeValue = 5 /* AlignContent.SpaceAround */;
|
|
1333
|
-
}
|
|
1334
|
-
else {
|
|
1335
|
-
if (global.isAndroid) {
|
|
1336
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.SpaceAround;
|
|
1337
|
-
}
|
|
1338
|
-
if (global.isIOS) {
|
|
1339
|
-
nativeValue = 5 /* AlignContent.SpaceAround */;
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
break;
|
|
1343
|
-
case 'space-between':
|
|
1344
|
-
if (JSIEnabled) {
|
|
1345
|
-
nativeValue = 4 /* AlignContent.SpaceBetween */;
|
|
1346
|
-
}
|
|
1347
|
-
else {
|
|
1348
|
-
if (global.isAndroid) {
|
|
1349
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.SpaceBetween;
|
|
1350
|
-
}
|
|
1351
|
-
if (global.isIOS) {
|
|
1352
|
-
nativeValue = 4 /* AlignContent.SpaceBetween */;
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
break;
|
|
1356
|
-
case 'space-evenly':
|
|
1357
|
-
if (JSIEnabled) {
|
|
1358
|
-
nativeValue = 6 /* AlignContent.SpaceEvenly */;
|
|
1359
|
-
}
|
|
1360
|
-
else {
|
|
1361
|
-
if (global.isAndroid) {
|
|
1362
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.SpaceEvenly;
|
|
1363
|
-
}
|
|
1364
|
-
if (global.isIOS) {
|
|
1365
|
-
nativeValue = 6 /* AlignContent.SpaceEvenly */;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
break;
|
|
1369
|
-
case 'center':
|
|
1370
|
-
if (JSIEnabled) {
|
|
1371
|
-
nativeValue = 2 /* AlignContent.Center */;
|
|
1372
|
-
}
|
|
1373
|
-
else {
|
|
1374
|
-
if (global.isAndroid) {
|
|
1375
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.Center;
|
|
1376
|
-
}
|
|
1377
|
-
if (global.isIOS) {
|
|
1378
|
-
nativeValue = 2 /* AlignContent.Center */;
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
break;
|
|
1382
|
-
case 'flex-end':
|
|
1383
|
-
case 'end':
|
|
1384
|
-
if (JSIEnabled) {
|
|
1385
|
-
nativeValue = 1 /* AlignContent.End */;
|
|
1386
|
-
}
|
|
1387
|
-
else {
|
|
1388
|
-
if (global.isAndroid) {
|
|
1389
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.End;
|
|
1390
|
-
}
|
|
1391
|
-
if (global.isIOS) {
|
|
1392
|
-
nativeValue = 1 /* AlignContent.End */;
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
break;
|
|
1396
|
-
case 'flex-start':
|
|
1397
|
-
case 'start':
|
|
1398
|
-
if (JSIEnabled) {
|
|
1399
|
-
nativeValue = 0 /* AlignContent.Start */;
|
|
1400
|
-
}
|
|
1401
|
-
else {
|
|
1402
|
-
if (global.isAndroid) {
|
|
1403
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.Start;
|
|
1404
|
-
}
|
|
1405
|
-
if (global.isIOS) {
|
|
1406
|
-
nativeValue = 0 /* AlignContent.Start */;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
break;
|
|
1410
|
-
case 'stretch':
|
|
1411
|
-
if (JSIEnabled) {
|
|
1412
|
-
nativeValue = 3 /* AlignContent.Stretch */;
|
|
1413
|
-
}
|
|
1414
|
-
else {
|
|
1415
|
-
if (global.isAndroid) {
|
|
1416
|
-
nativeValue = org.nativescript.mason.masonkit.AlignContent.Stretch;
|
|
1417
|
-
}
|
|
1418
|
-
if (global.isIOS) {
|
|
1419
|
-
nativeValue = 3 /* AlignContent.Stretch */;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
if (nativeValue) {
|
|
1425
|
-
if (JSIEnabled) {
|
|
1426
|
-
global.__Mason_setAlignContent(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1427
|
-
}
|
|
1428
|
-
else {
|
|
1429
|
-
if (global.isAndroid) {
|
|
1430
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1431
|
-
if (instance._isMasonChild) {
|
|
1432
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setAlignContent(nodeOrView, nativeValue);
|
|
1433
|
-
}
|
|
1434
|
-
else {
|
|
1435
|
-
nodeOrView.setAlignContent(nativeValue);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
if (global.isIOS) {
|
|
1439
|
-
instance.ios.alignContent = nativeValue;
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
457
|
+
if (instance._styleHelper) {
|
|
458
|
+
instance._styleHelper.alignContent = value;
|
|
1442
459
|
}
|
|
1443
460
|
}
|
|
1444
461
|
}
|
|
1445
462
|
export function _getAlignContent(instance) {
|
|
1446
463
|
if (instance._hasNativeView) {
|
|
1447
|
-
|
|
1448
|
-
const value = global.__Mason_getAlignContent(instance._masonStylePtr);
|
|
1449
|
-
switch (value) {
|
|
1450
|
-
case -1 /* AlignContent.Normal */:
|
|
1451
|
-
return 'normal';
|
|
1452
|
-
case 5 /* AlignContent.SpaceAround */:
|
|
1453
|
-
return 'space-around';
|
|
1454
|
-
case 4 /* AlignContent.SpaceBetween */:
|
|
1455
|
-
return 'space-between';
|
|
1456
|
-
case 6 /* AlignContent.SpaceEvenly */:
|
|
1457
|
-
return 'space-evenly';
|
|
1458
|
-
case 2 /* AlignContent.Center */:
|
|
1459
|
-
return 'center';
|
|
1460
|
-
case 1 /* AlignContent.End */:
|
|
1461
|
-
return 'end';
|
|
1462
|
-
case 0 /* AlignContent.Start */:
|
|
1463
|
-
return 'start';
|
|
1464
|
-
case 3 /* AlignContent.Stretch */:
|
|
1465
|
-
return 'stretch';
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
else {
|
|
1469
|
-
if (global.isAndroid) {
|
|
1470
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1471
|
-
let value;
|
|
1472
|
-
if (instance._isMasonChild) {
|
|
1473
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getAlignContent(nodeOrView);
|
|
1474
|
-
}
|
|
1475
|
-
else {
|
|
1476
|
-
value = nodeOrView.getAlignContent();
|
|
1477
|
-
}
|
|
1478
|
-
switch (value) {
|
|
1479
|
-
case org.nativescript.mason.masonkit.AlignContent.Normal:
|
|
1480
|
-
return 'normal';
|
|
1481
|
-
case org.nativescript.mason.masonkit.AlignContent.SpaceAround:
|
|
1482
|
-
return 'space-around';
|
|
1483
|
-
case org.nativescript.mason.masonkit.AlignContent.SpaceBetween:
|
|
1484
|
-
return 'space-between';
|
|
1485
|
-
case org.nativescript.mason.masonkit.AlignContent.SpaceEvenly:
|
|
1486
|
-
return 'space-evenly';
|
|
1487
|
-
case org.nativescript.mason.masonkit.AlignContent.Center:
|
|
1488
|
-
return 'center';
|
|
1489
|
-
case org.nativescript.mason.masonkit.AlignContent.End:
|
|
1490
|
-
return 'end';
|
|
1491
|
-
case org.nativescript.mason.masonkit.AlignContent.Start:
|
|
1492
|
-
return 'start';
|
|
1493
|
-
case org.nativescript.mason.masonkit.AlignContent.Stretch:
|
|
1494
|
-
return 'stretch';
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
if (global.isIOS) {
|
|
1498
|
-
const value = instance.ios.alignContent;
|
|
1499
|
-
switch (value) {
|
|
1500
|
-
case -1 /* AlignContent.Normal */:
|
|
1501
|
-
return 'normal';
|
|
1502
|
-
case 5 /* AlignContent.SpaceAround */:
|
|
1503
|
-
return 'space-around';
|
|
1504
|
-
case 4 /* AlignContent.SpaceBetween */:
|
|
1505
|
-
return 'space-between';
|
|
1506
|
-
case 6 /* AlignContent.SpaceEvenly */:
|
|
1507
|
-
return 'space-evenly';
|
|
1508
|
-
case 2 /* AlignContent.Center */:
|
|
1509
|
-
return 'center';
|
|
1510
|
-
case 1 /* AlignContent.End */:
|
|
1511
|
-
return 'end';
|
|
1512
|
-
case 0 /* AlignContent.Start */:
|
|
1513
|
-
return 'start';
|
|
1514
|
-
case 3 /* AlignContent.Stretch */:
|
|
1515
|
-
return 'stretch';
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
464
|
+
return instance._styleHelper.alignContent;
|
|
1519
465
|
}
|
|
1520
466
|
return instance.style.alignContent;
|
|
1521
467
|
}
|
|
@@ -1524,142 +470,12 @@ export function _setJustifyItems(value, instance, initial = false) {
|
|
|
1524
470
|
return;
|
|
1525
471
|
}
|
|
1526
472
|
if (instance._hasNativeView) {
|
|
1527
|
-
|
|
1528
|
-
switch (value) {
|
|
1529
|
-
case 'normal':
|
|
1530
|
-
if (JSIEnabled) {
|
|
1531
|
-
nativeValue = -1 /* JustifyItems.Normal */;
|
|
1532
|
-
}
|
|
1533
|
-
else {
|
|
1534
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.Normal;
|
|
1535
|
-
}
|
|
1536
|
-
break;
|
|
1537
|
-
case 'baseline':
|
|
1538
|
-
if (JSIEnabled) {
|
|
1539
|
-
nativeValue = 3 /* JustifyItems.Baseline */;
|
|
1540
|
-
}
|
|
1541
|
-
else {
|
|
1542
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.Baseline;
|
|
1543
|
-
}
|
|
1544
|
-
break;
|
|
1545
|
-
case 'center':
|
|
1546
|
-
if (JSIEnabled) {
|
|
1547
|
-
nativeValue = 2 /* JustifyItems.Center */;
|
|
1548
|
-
}
|
|
1549
|
-
else {
|
|
1550
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.Center;
|
|
1551
|
-
}
|
|
1552
|
-
break;
|
|
1553
|
-
case 'flex-end':
|
|
1554
|
-
case 'end':
|
|
1555
|
-
if (JSIEnabled) {
|
|
1556
|
-
nativeValue = 1 /* JustifyItems.End */;
|
|
1557
|
-
}
|
|
1558
|
-
else {
|
|
1559
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.End;
|
|
1560
|
-
}
|
|
1561
|
-
break;
|
|
1562
|
-
case 'flex-start':
|
|
1563
|
-
case 'start':
|
|
1564
|
-
if (JSIEnabled) {
|
|
1565
|
-
nativeValue = 0 /* JustifyItems.Start */;
|
|
1566
|
-
}
|
|
1567
|
-
else {
|
|
1568
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.Start;
|
|
1569
|
-
}
|
|
1570
|
-
break;
|
|
1571
|
-
case 'stretch':
|
|
1572
|
-
if (JSIEnabled) {
|
|
1573
|
-
nativeValue = 4 /* JustifyItems.Stretch */;
|
|
1574
|
-
}
|
|
1575
|
-
else {
|
|
1576
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyItems.Stretch;
|
|
1577
|
-
}
|
|
1578
|
-
break;
|
|
1579
|
-
}
|
|
1580
|
-
if (nativeValue) {
|
|
1581
|
-
if (JSIEnabled) {
|
|
1582
|
-
global.__Mason_setJustifyItems(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1583
|
-
}
|
|
1584
|
-
else {
|
|
1585
|
-
if (global.isAndroid) {
|
|
1586
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1587
|
-
if (instance._isMasonChild) {
|
|
1588
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setJustifyItems(nodeOrView, nativeValue);
|
|
1589
|
-
}
|
|
1590
|
-
else {
|
|
1591
|
-
nodeOrView.setJustifyItems(nativeValue);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
if (global.isIOS) {
|
|
1595
|
-
instance.ios.justifyItems = nativeValue;
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
473
|
+
instance._styleHelper.justifyItems = value;
|
|
1599
474
|
}
|
|
1600
475
|
}
|
|
1601
476
|
export function _getJustifyItems(instance) {
|
|
1602
477
|
if (instance._hasNativeView) {
|
|
1603
|
-
|
|
1604
|
-
const value = global.__Mason_getJustifyItems(instance._masonStylePtr);
|
|
1605
|
-
switch (value) {
|
|
1606
|
-
case -1 /* JustifyItems.Normal */:
|
|
1607
|
-
return 'normal';
|
|
1608
|
-
case 3 /* JustifyItems.Baseline */:
|
|
1609
|
-
return 'baseline';
|
|
1610
|
-
case 2 /* JustifyItems.Center */:
|
|
1611
|
-
return 'center';
|
|
1612
|
-
case 1 /* JustifyItems.End */:
|
|
1613
|
-
return 'end';
|
|
1614
|
-
case 0 /* JustifyItems.Start */:
|
|
1615
|
-
return 'start';
|
|
1616
|
-
case 4 /* JustifyItems.Stretch */:
|
|
1617
|
-
return 'stretch';
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
else {
|
|
1621
|
-
if (global.isAndroid) {
|
|
1622
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1623
|
-
let value;
|
|
1624
|
-
if (instance._isMasonChild) {
|
|
1625
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getJustifyItems(nodeOrView);
|
|
1626
|
-
}
|
|
1627
|
-
else {
|
|
1628
|
-
value = nodeOrView.getJustifyItems();
|
|
1629
|
-
}
|
|
1630
|
-
switch (value) {
|
|
1631
|
-
case org.nativescript.mason.masonkit.JustifyItems.Normal:
|
|
1632
|
-
return 'normal';
|
|
1633
|
-
case org.nativescript.mason.masonkit.JustifyItems.Baseline:
|
|
1634
|
-
return 'baseline';
|
|
1635
|
-
case org.nativescript.mason.masonkit.JustifyItems.Center:
|
|
1636
|
-
return 'center';
|
|
1637
|
-
case org.nativescript.mason.masonkit.JustifyItems.End:
|
|
1638
|
-
return 'end';
|
|
1639
|
-
case org.nativescript.mason.masonkit.JustifyItems.Start:
|
|
1640
|
-
return 'start';
|
|
1641
|
-
case org.nativescript.mason.masonkit.JustifyItems.Stretch:
|
|
1642
|
-
return 'stretch';
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
if (global.isIOS) {
|
|
1646
|
-
const value = instance.ios.justifyItems;
|
|
1647
|
-
switch (value) {
|
|
1648
|
-
case -1 /* JustifyItems.Normal */:
|
|
1649
|
-
return 'normal';
|
|
1650
|
-
case 3 /* JustifyItems.Baseline */:
|
|
1651
|
-
return 'baseline';
|
|
1652
|
-
case 2 /* JustifyItems.Center */:
|
|
1653
|
-
return 'center';
|
|
1654
|
-
case 1 /* JustifyItems.End */:
|
|
1655
|
-
return 'end';
|
|
1656
|
-
case 0 /* JustifyItems.Start */:
|
|
1657
|
-
return 'start';
|
|
1658
|
-
case 4 /* JustifyItems.Stretch */:
|
|
1659
|
-
return 'stretch';
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
478
|
+
return instance._styleHelper.justifyItems;
|
|
1663
479
|
}
|
|
1664
480
|
return instance.style.justifyItems;
|
|
1665
481
|
}
|
|
@@ -1668,142 +484,12 @@ export function _setJustifySelf(value, instance, initial = false) {
|
|
|
1668
484
|
return;
|
|
1669
485
|
}
|
|
1670
486
|
if (instance._hasNativeView) {
|
|
1671
|
-
|
|
1672
|
-
switch (value) {
|
|
1673
|
-
case 'normal':
|
|
1674
|
-
if (JSIEnabled) {
|
|
1675
|
-
nativeValue = -1 /* JustifySelf.Normal */;
|
|
1676
|
-
}
|
|
1677
|
-
else {
|
|
1678
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.Normal;
|
|
1679
|
-
}
|
|
1680
|
-
break;
|
|
1681
|
-
case 'baseline':
|
|
1682
|
-
if (JSIEnabled) {
|
|
1683
|
-
nativeValue = 3 /* JustifySelf.Baseline */;
|
|
1684
|
-
}
|
|
1685
|
-
else {
|
|
1686
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.Baseline;
|
|
1687
|
-
}
|
|
1688
|
-
break;
|
|
1689
|
-
case 'center':
|
|
1690
|
-
if (JSIEnabled) {
|
|
1691
|
-
nativeValue = 2 /* JustifySelf.Center */;
|
|
1692
|
-
}
|
|
1693
|
-
else {
|
|
1694
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.Center;
|
|
1695
|
-
}
|
|
1696
|
-
break;
|
|
1697
|
-
case 'flex-end':
|
|
1698
|
-
case 'end':
|
|
1699
|
-
if (JSIEnabled) {
|
|
1700
|
-
nativeValue = 1 /* JustifySelf.End */;
|
|
1701
|
-
}
|
|
1702
|
-
else {
|
|
1703
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.End;
|
|
1704
|
-
}
|
|
1705
|
-
break;
|
|
1706
|
-
case 'flex-start':
|
|
1707
|
-
case 'start':
|
|
1708
|
-
if (JSIEnabled) {
|
|
1709
|
-
nativeValue = 0 /* JustifySelf.Start */;
|
|
1710
|
-
}
|
|
1711
|
-
else {
|
|
1712
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.Start;
|
|
1713
|
-
}
|
|
1714
|
-
break;
|
|
1715
|
-
case 'stretch':
|
|
1716
|
-
if (JSIEnabled) {
|
|
1717
|
-
nativeValue = 4 /* JustifySelf.Stretch */;
|
|
1718
|
-
}
|
|
1719
|
-
else {
|
|
1720
|
-
nativeValue = org.nativescript.mason.masonkit.JustifySelf.Stretch;
|
|
1721
|
-
}
|
|
1722
|
-
break;
|
|
1723
|
-
}
|
|
1724
|
-
if (nativeValue) {
|
|
1725
|
-
if (JSIEnabled) {
|
|
1726
|
-
global.__Mason_setJustifySelf(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1727
|
-
}
|
|
1728
|
-
else {
|
|
1729
|
-
if (global.isAndroid) {
|
|
1730
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1731
|
-
if (instance._isMasonChild) {
|
|
1732
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setJustifySelf(nodeOrView, nativeValue);
|
|
1733
|
-
}
|
|
1734
|
-
else {
|
|
1735
|
-
nodeOrView.setJustifySelf(nativeValue);
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
if (global.isIOS) {
|
|
1739
|
-
instance.ios.justifySelf = nativeValue;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
487
|
+
instance._styleHelper.justifySelf = value;
|
|
1743
488
|
}
|
|
1744
489
|
}
|
|
1745
490
|
export function _getJustifySelf(instance) {
|
|
1746
491
|
if (instance._hasNativeView) {
|
|
1747
|
-
|
|
1748
|
-
const value = global.__Mason_getJustifySelf(instance._masonStylePtr);
|
|
1749
|
-
switch (value) {
|
|
1750
|
-
case -1 /* JustifySelf.Normal */:
|
|
1751
|
-
return 'normal';
|
|
1752
|
-
case 3 /* JustifySelf.Baseline */:
|
|
1753
|
-
return 'baseline';
|
|
1754
|
-
case 2 /* JustifySelf.Center */:
|
|
1755
|
-
return 'center';
|
|
1756
|
-
case 1 /* JustifySelf.End */:
|
|
1757
|
-
return 'end';
|
|
1758
|
-
case 0 /* JustifySelf.Start */:
|
|
1759
|
-
return 'start';
|
|
1760
|
-
case 4 /* JustifySelf.Stretch */:
|
|
1761
|
-
return 'stretch';
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
else {
|
|
1765
|
-
if (global.isAndroid) {
|
|
1766
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1767
|
-
let value;
|
|
1768
|
-
if (instance._isMasonChild) {
|
|
1769
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getJustifySelf(nodeOrView);
|
|
1770
|
-
}
|
|
1771
|
-
else {
|
|
1772
|
-
value = nodeOrView.getJustifySelf();
|
|
1773
|
-
}
|
|
1774
|
-
switch (value) {
|
|
1775
|
-
case org.nativescript.mason.masonkit.JustifySelf.Normal:
|
|
1776
|
-
return 'normal';
|
|
1777
|
-
case org.nativescript.mason.masonkit.JustifySelf.Baseline:
|
|
1778
|
-
return 'baseline';
|
|
1779
|
-
case org.nativescript.mason.masonkit.JustifySelf.Center:
|
|
1780
|
-
return 'center';
|
|
1781
|
-
case org.nativescript.mason.masonkit.JustifySelf.End:
|
|
1782
|
-
return 'end';
|
|
1783
|
-
case org.nativescript.mason.masonkit.JustifySelf.Start:
|
|
1784
|
-
return 'start';
|
|
1785
|
-
case org.nativescript.mason.masonkit.JustifySelf.Stretch:
|
|
1786
|
-
return 'stretch';
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
if (global.isIOS) {
|
|
1790
|
-
const value = instance.ios.justifySelf;
|
|
1791
|
-
switch (value) {
|
|
1792
|
-
case -1 /* JustifySelf.Normal */:
|
|
1793
|
-
return 'normal';
|
|
1794
|
-
case 3 /* JustifySelf.Baseline */:
|
|
1795
|
-
return 'baseline';
|
|
1796
|
-
case 2 /* JustifySelf.Center */:
|
|
1797
|
-
return 'center';
|
|
1798
|
-
case 1 /* JustifySelf.End */:
|
|
1799
|
-
return 'end';
|
|
1800
|
-
case 0 /* JustifySelf.Start */:
|
|
1801
|
-
return 'start';
|
|
1802
|
-
case 4 /* JustifySelf.Stretch */:
|
|
1803
|
-
return 'stretch';
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
492
|
+
return instance._styleHelper.justifySelf;
|
|
1807
493
|
}
|
|
1808
494
|
return instance.style.justifySelf;
|
|
1809
495
|
}
|
|
@@ -1811,209 +497,17 @@ export function _setJustifyContent(value, instance, initial = false) {
|
|
|
1811
497
|
if (initial && value === 'normal') {
|
|
1812
498
|
return;
|
|
1813
499
|
}
|
|
500
|
+
if (!value)
|
|
501
|
+
value = 'normal';
|
|
1814
502
|
if (instance._hasNativeView) {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
case 'normal':
|
|
1818
|
-
if (JSIEnabled) {
|
|
1819
|
-
nativeValue = -1 /* JustifyContent.Normal */;
|
|
1820
|
-
}
|
|
1821
|
-
else {
|
|
1822
|
-
if (global.isAndroid) {
|
|
1823
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.Normal;
|
|
1824
|
-
}
|
|
1825
|
-
if (global.isIOS) {
|
|
1826
|
-
nativeValue = -1 /* JustifyContent.Normal */;
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
break;
|
|
1830
|
-
case 'space-around':
|
|
1831
|
-
if (JSIEnabled) {
|
|
1832
|
-
nativeValue = 5 /* JustifyContent.SpaceAround */;
|
|
1833
|
-
}
|
|
1834
|
-
else {
|
|
1835
|
-
if (global.isAndroid) {
|
|
1836
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.SpaceAround;
|
|
1837
|
-
}
|
|
1838
|
-
if (global.isIOS) {
|
|
1839
|
-
nativeValue = 5 /* JustifyContent.SpaceAround */;
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
break;
|
|
1843
|
-
case 'space-between':
|
|
1844
|
-
if (JSIEnabled) {
|
|
1845
|
-
nativeValue = 4 /* JustifyContent.SpaceBetween */;
|
|
1846
|
-
}
|
|
1847
|
-
else {
|
|
1848
|
-
if (global.isAndroid) {
|
|
1849
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.SpaceBetween;
|
|
1850
|
-
}
|
|
1851
|
-
if (global.isIOS) {
|
|
1852
|
-
nativeValue = 4 /* JustifyContent.SpaceBetween */;
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
break;
|
|
1856
|
-
case 'space-evenly':
|
|
1857
|
-
if (JSIEnabled) {
|
|
1858
|
-
nativeValue = 6 /* JustifyContent.SpaceEvenly */;
|
|
1859
|
-
}
|
|
1860
|
-
else {
|
|
1861
|
-
if (global.isAndroid) {
|
|
1862
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.SpaceEvenly;
|
|
1863
|
-
}
|
|
1864
|
-
if (global.isIOS) {
|
|
1865
|
-
nativeValue = 6 /* JustifyContent.SpaceEvenly */;
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
break;
|
|
1869
|
-
case 'center':
|
|
1870
|
-
if (JSIEnabled) {
|
|
1871
|
-
nativeValue = 2 /* JustifyContent.Center */;
|
|
1872
|
-
}
|
|
1873
|
-
else {
|
|
1874
|
-
if (global.isAndroid) {
|
|
1875
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.Center;
|
|
1876
|
-
}
|
|
1877
|
-
if (global.isIOS) {
|
|
1878
|
-
nativeValue = 2 /* JustifyContent.Center */;
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
break;
|
|
1882
|
-
case 'flex-end':
|
|
1883
|
-
case 'end':
|
|
1884
|
-
if (JSIEnabled) {
|
|
1885
|
-
nativeValue = 1 /* JustifyContent.End */;
|
|
1886
|
-
}
|
|
1887
|
-
else {
|
|
1888
|
-
if (global.isAndroid) {
|
|
1889
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.End;
|
|
1890
|
-
}
|
|
1891
|
-
if (global.isIOS) {
|
|
1892
|
-
nativeValue = 1 /* JustifyContent.End */;
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
break;
|
|
1896
|
-
case 'flex-start':
|
|
1897
|
-
case 'start':
|
|
1898
|
-
if (JSIEnabled) {
|
|
1899
|
-
nativeValue = 0 /* JustifyContent.Start */;
|
|
1900
|
-
}
|
|
1901
|
-
else {
|
|
1902
|
-
if (global.isAndroid) {
|
|
1903
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.Start;
|
|
1904
|
-
}
|
|
1905
|
-
if (global.isIOS) {
|
|
1906
|
-
nativeValue = 0 /* JustifyContent.Start */;
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
break;
|
|
1910
|
-
case 'stretch':
|
|
1911
|
-
if (JSIEnabled) {
|
|
1912
|
-
nativeValue = 3 /* JustifyContent.Stretch */;
|
|
1913
|
-
}
|
|
1914
|
-
else {
|
|
1915
|
-
if (global.isAndroid) {
|
|
1916
|
-
nativeValue = org.nativescript.mason.masonkit.JustifyContent.Stretch;
|
|
1917
|
-
}
|
|
1918
|
-
if (global.isIOS) {
|
|
1919
|
-
nativeValue = 3 /* JustifyContent.Stretch */;
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
break;
|
|
1923
|
-
}
|
|
1924
|
-
if (nativeValue) {
|
|
1925
|
-
if (JSIEnabled) {
|
|
1926
|
-
global.__Mason_setJustifyContent(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, nativeValue, !instance._inBatch);
|
|
1927
|
-
}
|
|
1928
|
-
else {
|
|
1929
|
-
if (global.isAndroid) {
|
|
1930
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1931
|
-
if (instance._isMasonChild) {
|
|
1932
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setJustifyContent(nodeOrView, nativeValue);
|
|
1933
|
-
}
|
|
1934
|
-
else {
|
|
1935
|
-
nodeOrView.setJustifyContent(nativeValue);
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
if (global.isIOS) {
|
|
1939
|
-
instance.ios.justifyContent = nativeValue;
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
503
|
+
if (instance._styleHelper) {
|
|
504
|
+
instance._styleHelper.justifyContent = value;
|
|
1942
505
|
}
|
|
1943
506
|
}
|
|
1944
507
|
}
|
|
1945
508
|
export function _getJustifyContent(instance) {
|
|
1946
509
|
if (instance._hasNativeView) {
|
|
1947
|
-
|
|
1948
|
-
const value = global.__Mason_getJustifyContent(instance._masonStylePtr);
|
|
1949
|
-
switch (value) {
|
|
1950
|
-
case -1 /* JustifyContent.Normal */:
|
|
1951
|
-
return 'normal';
|
|
1952
|
-
case 5 /* JustifyContent.SpaceAround */:
|
|
1953
|
-
return 'space-around';
|
|
1954
|
-
case 4 /* JustifyContent.SpaceBetween */:
|
|
1955
|
-
return 'space-between';
|
|
1956
|
-
case 6 /* JustifyContent.SpaceEvenly */:
|
|
1957
|
-
return 'space-evenly';
|
|
1958
|
-
case 2 /* JustifyContent.Center */:
|
|
1959
|
-
return 'center';
|
|
1960
|
-
case 1 /* JustifyContent.End */:
|
|
1961
|
-
return 'end';
|
|
1962
|
-
case 0 /* JustifyContent.Start */:
|
|
1963
|
-
return 'start';
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
else {
|
|
1967
|
-
if (global.isAndroid) {
|
|
1968
|
-
const nodeOrView = getMasonInstance(instance);
|
|
1969
|
-
let value;
|
|
1970
|
-
if (instance._isMasonChild) {
|
|
1971
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getJustifyContent(nodeOrView);
|
|
1972
|
-
}
|
|
1973
|
-
else {
|
|
1974
|
-
value = nodeOrView.getJustifyContent();
|
|
1975
|
-
}
|
|
1976
|
-
switch (value) {
|
|
1977
|
-
case org.nativescript.mason.masonkit.JustifyContent.Normal:
|
|
1978
|
-
return 'normal';
|
|
1979
|
-
case org.nativescript.mason.masonkit.JustifyContent.SpaceAround:
|
|
1980
|
-
return 'space-around';
|
|
1981
|
-
case org.nativescript.mason.masonkit.JustifyContent.SpaceBetween:
|
|
1982
|
-
return 'space-between';
|
|
1983
|
-
case org.nativescript.mason.masonkit.JustifyContent.SpaceEvenly:
|
|
1984
|
-
return 'space-evenly';
|
|
1985
|
-
case org.nativescript.mason.masonkit.JustifyContent.Center:
|
|
1986
|
-
return 'center';
|
|
1987
|
-
case org.nativescript.mason.masonkit.JustifyContent.End:
|
|
1988
|
-
return 'end';
|
|
1989
|
-
case org.nativescript.mason.masonkit.JustifyContent.Start:
|
|
1990
|
-
return 'start';
|
|
1991
|
-
case org.nativescript.mason.masonkit.JustifyContent.Stretch:
|
|
1992
|
-
return 'stretch';
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
if (global.isIOS) {
|
|
1996
|
-
const value = instance.ios.justifyContent;
|
|
1997
|
-
switch (value) {
|
|
1998
|
-
case -1 /* JustifyContent.Normal */:
|
|
1999
|
-
return 'normal';
|
|
2000
|
-
case 5 /* JustifyContent.SpaceAround */:
|
|
2001
|
-
return 'space-around';
|
|
2002
|
-
case 4 /* JustifyContent.SpaceBetween */:
|
|
2003
|
-
return 'space-between';
|
|
2004
|
-
case 6 /* JustifyContent.SpaceEvenly */:
|
|
2005
|
-
return 'space-evenly';
|
|
2006
|
-
case 2 /* JustifyContent.Center */:
|
|
2007
|
-
return 'center';
|
|
2008
|
-
case 1 /* JustifyContent.End */:
|
|
2009
|
-
return 'end';
|
|
2010
|
-
case 0 /* JustifyContent.Start */:
|
|
2011
|
-
return 'start';
|
|
2012
|
-
case 3 /* JustifyContent.Stretch */:
|
|
2013
|
-
return 'stretch';
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
}
|
|
510
|
+
return instance._styleHelper.justifyContent;
|
|
2017
511
|
}
|
|
2018
512
|
return instance.style.justifyContent;
|
|
2019
513
|
}
|
|
@@ -2021,689 +515,280 @@ export function _setLeft(value, instance, initial = false) {
|
|
|
2021
515
|
if (!instance._hasNativeView) {
|
|
2022
516
|
return;
|
|
2023
517
|
}
|
|
2024
|
-
|
|
2025
|
-
if (JSIEnabled) {
|
|
2026
|
-
global.__Mason_setInsetLeft(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2027
|
-
}
|
|
2028
|
-
else {
|
|
2029
|
-
if (global.isAndroid) {
|
|
2030
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2031
|
-
if (instance._isMasonChild) {
|
|
2032
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setInsetLeft(nodeOrView, val.value, val.native_type);
|
|
2033
|
-
}
|
|
2034
|
-
else {
|
|
2035
|
-
nodeOrView.setInsetLeft(val.value, val.native_type);
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
if (global.isIOS) {
|
|
2039
|
-
instance.ios.setInsetLeft(val.value, val.native_type);
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
518
|
+
instance._styleHelper.left = value;
|
|
2042
519
|
}
|
|
2043
520
|
export function _setRight(value, instance, initial = false) {
|
|
2044
521
|
if (!instance._hasNativeView) {
|
|
2045
522
|
return;
|
|
2046
523
|
}
|
|
2047
|
-
|
|
2048
|
-
if (JSIEnabled) {
|
|
2049
|
-
global.__Mason_setInsetRight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2050
|
-
}
|
|
2051
|
-
else {
|
|
2052
|
-
if (global.isAndroid) {
|
|
2053
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2054
|
-
if (instance._isMasonChild) {
|
|
2055
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setInsetRight(nodeOrView, val.value, val.native_type);
|
|
2056
|
-
}
|
|
2057
|
-
else {
|
|
2058
|
-
nodeOrView.setInsetRight(val.value, val.native_type);
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
if (global.isIOS) {
|
|
2062
|
-
instance.ios.setInsetRight(val.value, val.native_type);
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
524
|
+
instance._styleHelper.right = value;
|
|
2065
525
|
}
|
|
2066
526
|
export function _setTop(value, instance, initial = false) {
|
|
2067
527
|
if (!instance._hasNativeView) {
|
|
2068
528
|
return;
|
|
2069
529
|
}
|
|
2070
|
-
|
|
2071
|
-
if (JSIEnabled) {
|
|
2072
|
-
global.__Mason_setInsetTop(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2073
|
-
}
|
|
2074
|
-
else {
|
|
2075
|
-
if (global.isAndroid) {
|
|
2076
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2077
|
-
if (instance._isMasonChild) {
|
|
2078
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setInsetTop(nodeOrView, val.value, val.native_type);
|
|
2079
|
-
}
|
|
2080
|
-
else {
|
|
2081
|
-
nodeOrView.setInsetTop(val.value, val.native_type);
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
|
-
if (global.isIOS) {
|
|
2085
|
-
instance.ios.setInsetTop(val.value, val.native_type);
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
530
|
+
instance._styleHelper.top = value;
|
|
2088
531
|
}
|
|
2089
532
|
export function _setBottom(value, instance, initial = false) {
|
|
2090
533
|
if (!instance._hasNativeView) {
|
|
2091
534
|
return;
|
|
2092
535
|
}
|
|
2093
|
-
|
|
2094
|
-
if (JSIEnabled) {
|
|
2095
|
-
global.__Mason_setInsetBottom(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2096
|
-
}
|
|
2097
|
-
else {
|
|
2098
|
-
if (global.isAndroid) {
|
|
2099
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2100
|
-
if (instance._isMasonChild) {
|
|
2101
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setInsetBottom(nodeOrView, val.value, val.native_type);
|
|
2102
|
-
}
|
|
2103
|
-
else {
|
|
2104
|
-
nodeOrView.setInsetBottom(val.value, val.native_type);
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
if (global.isIOS) {
|
|
2108
|
-
instance.ios.setInsetBottom(val.value, val.native_type);
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
536
|
+
instance._styleHelper.bottom = value;
|
|
2111
537
|
}
|
|
2112
538
|
export function _setMarginLeft(value, instance, initial = false) {
|
|
2113
539
|
if (!instance._hasNativeView) {
|
|
2114
540
|
return;
|
|
2115
541
|
}
|
|
2116
|
-
|
|
2117
|
-
if (JSIEnabled) {
|
|
2118
|
-
global.__Mason_setMarginLeft(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2119
|
-
}
|
|
2120
|
-
else {
|
|
2121
|
-
if (global.isAndroid) {
|
|
2122
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2123
|
-
if (instance._isMasonChild) {
|
|
2124
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMarginLeft(nodeOrView, val.value, val.native_type);
|
|
2125
|
-
}
|
|
2126
|
-
else {
|
|
2127
|
-
nodeOrView.setMarginLeft(val.value, val.native_type);
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
if (global.isIOS) {
|
|
2131
|
-
instance.ios.setMarginLeft(val.value, val.native_type);
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
542
|
+
instance._styleHelper.marginLeft = value;
|
|
2134
543
|
}
|
|
2135
544
|
export function _setMarginRight(value, instance, initial = false) {
|
|
2136
545
|
if (!instance._hasNativeView) {
|
|
2137
546
|
return;
|
|
2138
547
|
}
|
|
2139
|
-
|
|
2140
|
-
if (JSIEnabled) {
|
|
2141
|
-
global.__Mason_setMarginRight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2142
|
-
}
|
|
2143
|
-
else {
|
|
2144
|
-
if (global.isAndroid) {
|
|
2145
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2146
|
-
if (instance._isMasonChild) {
|
|
2147
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMarginRight(nodeOrView, val.value, val.native_type);
|
|
2148
|
-
}
|
|
2149
|
-
else {
|
|
2150
|
-
nodeOrView.setMarginRight(val.value, val.native_type);
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
if (global.isIOS) {
|
|
2154
|
-
instance.ios.setMarginRight(val.value, val.native_type);
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
548
|
+
instance._styleHelper.marginRight = value;
|
|
2157
549
|
}
|
|
2158
550
|
export function _setMarginTop(value, instance, initial = false) {
|
|
2159
551
|
if (!instance._hasNativeView) {
|
|
2160
552
|
return;
|
|
2161
553
|
}
|
|
2162
|
-
|
|
2163
|
-
if (JSIEnabled) {
|
|
2164
|
-
global.__Mason_setMarginTop(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2165
|
-
}
|
|
2166
|
-
else {
|
|
2167
|
-
if (global.isAndroid) {
|
|
2168
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2169
|
-
if (instance._isMasonChild) {
|
|
2170
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMarginTop(nodeOrView, val.value, val.native_type);
|
|
2171
|
-
}
|
|
2172
|
-
else {
|
|
2173
|
-
nodeOrView.setMarginTop(val.value, val.native_type);
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
if (global.isIOS) {
|
|
2177
|
-
instance.ios.setMarginTop(val.value, val.native_type);
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
554
|
+
instance._styleHelper.marginTop = value;
|
|
2180
555
|
}
|
|
2181
556
|
export function _setMarginBottom(value, instance, initial = false) {
|
|
2182
557
|
if (!instance._hasNativeView) {
|
|
2183
558
|
return;
|
|
2184
559
|
}
|
|
2185
|
-
|
|
2186
|
-
if (JSIEnabled) {
|
|
2187
|
-
global.__Mason_setMarginBottom(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2188
|
-
}
|
|
2189
|
-
else {
|
|
2190
|
-
if (global.isAndroid) {
|
|
2191
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2192
|
-
if (instance._isMasonChild) {
|
|
2193
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setMarginBottom(nodeOrView, val.value, val.native_type);
|
|
2194
|
-
}
|
|
2195
|
-
else {
|
|
2196
|
-
nodeOrView.setMarginBottom(val.value, val.native_type);
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
if (global.isIOS) {
|
|
2200
|
-
instance.ios.setMarginBottom(val.value, val.native_type);
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
560
|
+
instance._styleHelper.marginBottom = value;
|
|
2203
561
|
}
|
|
2204
562
|
export function _setPaddingLeft(value, instance, initial = false) {
|
|
2205
563
|
if (!instance._hasNativeView) {
|
|
2206
564
|
return;
|
|
2207
565
|
}
|
|
2208
|
-
|
|
2209
|
-
if (JSIEnabled) {
|
|
2210
|
-
global.__Mason_setPaddingLeft(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2211
|
-
}
|
|
2212
|
-
else {
|
|
2213
|
-
if (global.isAndroid) {
|
|
2214
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2215
|
-
if (instance._isMasonChild) {
|
|
2216
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setPaddingLeft(nodeOrView, val.value, val.native_type);
|
|
2217
|
-
}
|
|
2218
|
-
else {
|
|
2219
|
-
nodeOrView.setPaddingLeft(val.value, val.native_type);
|
|
2220
|
-
}
|
|
2221
|
-
}
|
|
2222
|
-
if (global.isIOS) {
|
|
2223
|
-
instance.ios.setPaddingLeft(val.value, val.native_type);
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
566
|
+
instance._styleHelper.paddingLeft = value;
|
|
2226
567
|
}
|
|
2227
568
|
export function _setPaddingRight(value, instance, initial = false) {
|
|
2228
569
|
if (!instance._hasNativeView) {
|
|
2229
570
|
return;
|
|
2230
571
|
}
|
|
2231
|
-
|
|
2232
|
-
if (JSIEnabled) {
|
|
2233
|
-
global.__Mason_setPaddingRight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2234
|
-
}
|
|
2235
|
-
else {
|
|
2236
|
-
if (global.isAndroid) {
|
|
2237
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2238
|
-
if (instance._isMasonChild) {
|
|
2239
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setPaddingRight(nodeOrView, val.value, val.native_type);
|
|
2240
|
-
}
|
|
2241
|
-
else {
|
|
2242
|
-
nodeOrView.setPaddingRight(val.value, val.native_type);
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
if (global.isIOS) {
|
|
2246
|
-
instance.ios.setPaddingRight(val.value, val.native_type);
|
|
2247
|
-
}
|
|
2248
|
-
}
|
|
572
|
+
instance._styleHelper.paddingRight = value;
|
|
2249
573
|
}
|
|
2250
574
|
export function _setPaddingTop(value, instance, initial = false) {
|
|
2251
575
|
if (!instance._hasNativeView) {
|
|
2252
576
|
return;
|
|
2253
577
|
}
|
|
2254
|
-
|
|
2255
|
-
if (JSIEnabled) {
|
|
2256
|
-
global.__Mason_setPaddingTop(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2257
|
-
}
|
|
2258
|
-
else {
|
|
2259
|
-
if (global.isAndroid) {
|
|
2260
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2261
|
-
if (instance._isMasonChild) {
|
|
2262
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setPaddingTop(nodeOrView, val.value, val.native_type);
|
|
2263
|
-
}
|
|
2264
|
-
else {
|
|
2265
|
-
nodeOrView.setPaddingTop(val.value, val.native_type);
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
if (global.isIOS) {
|
|
2269
|
-
instance.ios.setPaddingTop(val.value, val.native_type);
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
578
|
+
instance._styleHelper.paddingTop = value;
|
|
2272
579
|
}
|
|
2273
580
|
export function _setPaddingBottom(value, instance, initial = false) {
|
|
2274
581
|
if (!instance._hasNativeView) {
|
|
2275
582
|
return;
|
|
2276
583
|
}
|
|
2277
|
-
|
|
2278
|
-
if (JSIEnabled) {
|
|
2279
|
-
global.__Mason_setPaddingBottom(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2280
|
-
}
|
|
2281
|
-
else {
|
|
2282
|
-
if (global.isAndroid) {
|
|
2283
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2284
|
-
if (instance._isMasonChild) {
|
|
2285
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setPaddingBottom(nodeOrView, val.value, val.native_type);
|
|
2286
|
-
}
|
|
2287
|
-
else {
|
|
2288
|
-
nodeOrView.setPaddingBottom(val.value, val.native_type);
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
if (global.isIOS) {
|
|
2292
|
-
instance.ios.setPaddingBottom(val.value, val.native_type);
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
584
|
+
instance._styleHelper.paddingBottom = value;
|
|
2295
585
|
}
|
|
2296
586
|
export function _setBorderLeft(value, instance, initial = false) {
|
|
2297
587
|
if (!instance._hasNativeView) {
|
|
2298
588
|
return;
|
|
2299
589
|
}
|
|
2300
|
-
const val = _toLengthPercentage(value);
|
|
2301
|
-
if (JSIEnabled) {
|
|
2302
|
-
global.__Mason_setBorderLeft(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2303
|
-
}
|
|
2304
|
-
else {
|
|
2305
|
-
if (global.isAndroid) {
|
|
2306
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2307
|
-
if (instance._isMasonChild) {
|
|
2308
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setBorderLeft(nodeOrView, val.value, val.native_type);
|
|
2309
|
-
}
|
|
2310
|
-
else {
|
|
2311
|
-
nodeOrView.setBorderLeft(val.value, val.native_type);
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
if (global.isIOS) {
|
|
2315
|
-
instance.ios.setBorderLeft(val.value, val.native_type);
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
590
|
}
|
|
2319
591
|
export function _setBorderRight(value, instance, initial = false) {
|
|
2320
592
|
if (!instance._hasNativeView) {
|
|
2321
593
|
return;
|
|
2322
594
|
}
|
|
2323
|
-
const val = _toLengthPercentage(value);
|
|
2324
|
-
if (JSIEnabled) {
|
|
2325
|
-
global.__Mason_setBorderRight(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2326
|
-
}
|
|
2327
|
-
else {
|
|
2328
|
-
if (global.isAndroid) {
|
|
2329
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2330
|
-
if (instance._isMasonChild) {
|
|
2331
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setBorderRight(nodeOrView, val.value, val.native_type);
|
|
2332
|
-
}
|
|
2333
|
-
else {
|
|
2334
|
-
nodeOrView.setBorderRight(val.value, val.native_type);
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
if (global.isIOS) {
|
|
2338
|
-
instance.ios.setBorderRight(val.value, val.native_type);
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
595
|
}
|
|
2342
596
|
export function _setBorderTop(value, instance, initial = false) {
|
|
2343
597
|
if (!instance._hasNativeView) {
|
|
2344
598
|
return;
|
|
2345
599
|
}
|
|
2346
|
-
const val = _toLengthPercentage(value);
|
|
2347
|
-
if (JSIEnabled) {
|
|
2348
|
-
global.__Mason_setBorderTop(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2349
|
-
}
|
|
2350
|
-
else {
|
|
2351
|
-
if (global.isAndroid) {
|
|
2352
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2353
|
-
if (instance._isMasonChild) {
|
|
2354
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setBorderTop(nodeOrView, val.value, val.native_type);
|
|
2355
|
-
}
|
|
2356
|
-
else {
|
|
2357
|
-
nodeOrView.setBorderTop(val.value, val.native_type);
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
if (global.isIOS) {
|
|
2361
|
-
instance.ios.setBorderTop(val.value, val.native_type);
|
|
2362
|
-
}
|
|
2363
|
-
}
|
|
2364
600
|
}
|
|
2365
601
|
export function _setBorderBottom(value, instance, initial = false) {
|
|
2366
602
|
if (!instance._hasNativeView) {
|
|
2367
603
|
return;
|
|
2368
604
|
}
|
|
2369
|
-
const val = _toLengthPercentage(value);
|
|
2370
|
-
if (JSIEnabled) {
|
|
2371
|
-
global.__Mason_setBorderBottom(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2372
|
-
}
|
|
2373
|
-
else {
|
|
2374
|
-
if (global.isAndroid) {
|
|
2375
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2376
|
-
if (instance._isMasonChild) {
|
|
2377
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setBorderBottom(nodeOrView, val.value, val.native_type);
|
|
2378
|
-
}
|
|
2379
|
-
else {
|
|
2380
|
-
nodeOrView.setBorderBottom(val.value, val.native_type);
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
if (global.isIOS) {
|
|
2384
|
-
instance.ios.setBorderBottom(val.value, val.native_type);
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
605
|
}
|
|
2388
606
|
export function _setFlexBasis(value, instance, initial = false) {
|
|
2389
607
|
if (!instance._hasNativeView) {
|
|
2390
608
|
return;
|
|
2391
609
|
}
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
610
|
+
instance._styleHelper.flexBasis = value;
|
|
611
|
+
}
|
|
612
|
+
export function _getFlexBasis(instance) {
|
|
613
|
+
if (!instance._hasNativeView) {
|
|
614
|
+
return instance.style.flexBasis;
|
|
2395
615
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setFlexBasis(nodeOrView, val.value, val.native_type);
|
|
2402
|
-
}
|
|
2403
|
-
else {
|
|
2404
|
-
nodeOrView.setFlexBasis(val.value, val.native_type);
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
if (global.isIOS) {
|
|
2408
|
-
instance.ios.flexBasisCompat = _intoMasonDimension(value);
|
|
2409
|
-
}
|
|
616
|
+
return instance._styleHelper.flexBasis;
|
|
617
|
+
}
|
|
618
|
+
export function _setGap(value, instance, initial = false) {
|
|
619
|
+
if (!instance._hasNativeView) {
|
|
620
|
+
return;
|
|
2410
621
|
}
|
|
2411
622
|
}
|
|
2412
|
-
export function
|
|
623
|
+
export function _getGap(instance) {
|
|
2413
624
|
if (!instance._hasNativeView) {
|
|
2414
|
-
return instance.style.
|
|
625
|
+
return instance.style.gap;
|
|
2415
626
|
}
|
|
2416
|
-
|
|
2417
|
-
|
|
627
|
+
return {
|
|
628
|
+
row: this._styleHelper.rowGap,
|
|
629
|
+
column: this._styleHelper.columnGap,
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
export function _setOverflow(value, instance) {
|
|
633
|
+
if (!instance._hasNativeView) {
|
|
634
|
+
return;
|
|
2418
635
|
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getFlexBasis(nodeOrView);
|
|
2425
|
-
}
|
|
2426
|
-
else {
|
|
2427
|
-
value = nodeOrView.getFlexBasis();
|
|
2428
|
-
}
|
|
2429
|
-
return _parseDimension(value);
|
|
2430
|
-
}
|
|
2431
|
-
if (global.isIOS) {
|
|
2432
|
-
return _parseDimension(instance.ios.flexBasisCompat);
|
|
2433
|
-
}
|
|
2434
|
-
return instance.style.flexBasis;
|
|
636
|
+
instance._styleHelper.overflow = value;
|
|
637
|
+
}
|
|
638
|
+
export function _getOverflow(instance) {
|
|
639
|
+
if (!instance._hasNativeView) {
|
|
640
|
+
return instance.style.flexGrow;
|
|
2435
641
|
}
|
|
642
|
+
return instance._styleHelper.overflow;
|
|
2436
643
|
}
|
|
2437
|
-
export function
|
|
644
|
+
export function _setOverflowX(value, instance) {
|
|
2438
645
|
if (!instance._hasNativeView) {
|
|
2439
646
|
return;
|
|
2440
647
|
}
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
648
|
+
instance._styleHelper.overflowX = value;
|
|
649
|
+
}
|
|
650
|
+
export function _getOverflowX(instance) {
|
|
651
|
+
if (!instance._hasNativeView) {
|
|
652
|
+
return instance.style.overflowX;
|
|
2445
653
|
}
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
}
|
|
2452
|
-
else {
|
|
2453
|
-
nodeOrView.setGap(width.value, width.native_type, height.value, height.native_type);
|
|
2454
|
-
}
|
|
2455
|
-
}
|
|
2456
|
-
if (global.isIOS) {
|
|
2457
|
-
instance.ios.setGapWithWidthHeightType(width.value, width.native_type, height.value, height.native_type);
|
|
2458
|
-
}
|
|
654
|
+
return instance._styleHelper.overflowX;
|
|
655
|
+
}
|
|
656
|
+
export function _setOverflowY(value, instance, initial = false) {
|
|
657
|
+
if (!instance._hasNativeView) {
|
|
658
|
+
return;
|
|
2459
659
|
}
|
|
660
|
+
instance._styleHelper.overflowY = value;
|
|
2460
661
|
}
|
|
2461
|
-
export function
|
|
662
|
+
export function _getOverflowY(instance) {
|
|
2462
663
|
if (!instance._hasNativeView) {
|
|
2463
|
-
return instance.style.
|
|
664
|
+
return instance.style.overflowY;
|
|
2464
665
|
}
|
|
2465
|
-
|
|
2466
|
-
|
|
666
|
+
return instance._styleHelper.overflowY;
|
|
667
|
+
}
|
|
668
|
+
export function _setScrollbarWidth(value, instance, initial = false) {
|
|
669
|
+
if (!instance._hasNativeView) {
|
|
670
|
+
return;
|
|
2467
671
|
}
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
gap = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getGap(nodeOrView);
|
|
2474
|
-
}
|
|
2475
|
-
else {
|
|
2476
|
-
gap = nodeOrView.getGap();
|
|
2477
|
-
}
|
|
2478
|
-
const width = _parseLengthPercentage(gap.getWidth());
|
|
2479
|
-
const height = _parseLengthPercentage(gap.getHeight());
|
|
2480
|
-
return { width, height };
|
|
2481
|
-
}
|
|
2482
|
-
if (global.isIOS) {
|
|
2483
|
-
const gap = instance.ios.getGap();
|
|
2484
|
-
const width = _parseLengthPercentage(gap.width);
|
|
2485
|
-
const height = _parseLengthPercentage(gap.height);
|
|
2486
|
-
return { width, height };
|
|
2487
|
-
}
|
|
672
|
+
instance._styleHelper.scrollBarWidth = value;
|
|
673
|
+
}
|
|
674
|
+
export function getScrollbarWidth(instance) {
|
|
675
|
+
if (!instance._hasNativeView) {
|
|
676
|
+
return instance.style.scrollBarWidth;
|
|
2488
677
|
}
|
|
678
|
+
return instance._styleHelper.scrollBarWidth;
|
|
2489
679
|
}
|
|
2490
680
|
export function _setFlexGrow(value, instance, initial = false) {
|
|
2491
681
|
if (!instance._hasNativeView) {
|
|
2492
682
|
return;
|
|
2493
683
|
}
|
|
2494
|
-
|
|
2495
|
-
global.__Mason_setFlexGrow(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, value, !instance._inBatch);
|
|
2496
|
-
}
|
|
2497
|
-
else {
|
|
2498
|
-
if (global.isAndroid) {
|
|
2499
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2500
|
-
if (instance._isMasonChild) {
|
|
2501
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setFlexGrow(nodeOrView, value);
|
|
2502
|
-
}
|
|
2503
|
-
else {
|
|
2504
|
-
nodeOrView.setFlexGrow(value);
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
if (global.isIOS) {
|
|
2508
|
-
instance.ios.flexGrow = value;
|
|
2509
|
-
}
|
|
2510
|
-
}
|
|
684
|
+
instance._styleHelper.flexGrow = value;
|
|
2511
685
|
}
|
|
2512
686
|
export function _getFlexGrow(instance) {
|
|
2513
687
|
if (!instance._hasNativeView) {
|
|
2514
688
|
return instance.style.flexGrow;
|
|
2515
689
|
}
|
|
2516
|
-
|
|
2517
|
-
return global.__Mason_getFlexGrow(instance._masonStylePtr);
|
|
2518
|
-
}
|
|
2519
|
-
else {
|
|
2520
|
-
if (global.isAndroid) {
|
|
2521
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2522
|
-
let value;
|
|
2523
|
-
if (instance._isMasonChild) {
|
|
2524
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getFlexGrow(nodeOrView);
|
|
2525
|
-
}
|
|
2526
|
-
else {
|
|
2527
|
-
value = nodeOrView.getFlexGrow();
|
|
2528
|
-
}
|
|
2529
|
-
return value;
|
|
2530
|
-
}
|
|
2531
|
-
if (global.isiOS) {
|
|
2532
|
-
return instance.ios.flexGrow;
|
|
2533
|
-
}
|
|
2534
|
-
return instance.style.flexGrow;
|
|
2535
|
-
}
|
|
690
|
+
return instance._styleHelper.flexGrow;
|
|
2536
691
|
}
|
|
2537
692
|
export function _setFlexShrink(value, instance, initial = false) {
|
|
2538
693
|
if (!instance._hasNativeView) {
|
|
2539
694
|
return;
|
|
2540
695
|
}
|
|
2541
|
-
|
|
2542
|
-
global.__Mason_setFlexShrink(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, value, !instance._inBatch);
|
|
2543
|
-
}
|
|
2544
|
-
else {
|
|
2545
|
-
if (global.isAndroid) {
|
|
2546
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2547
|
-
if (instance._isMasonChild) {
|
|
2548
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setFlexShrink(nodeOrView, value);
|
|
2549
|
-
}
|
|
2550
|
-
else {
|
|
2551
|
-
nodeOrView.setFlexShrink(value);
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
if (global.isIOS) {
|
|
2555
|
-
instance.ios.flexShrink = value;
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
696
|
+
instance._styleHelper.flexShrink = value;
|
|
2558
697
|
}
|
|
2559
698
|
export function _getFlexShrink(instance) {
|
|
2560
699
|
if (!instance._hasNativeView) {
|
|
2561
700
|
return instance.style.flexShrink;
|
|
2562
701
|
}
|
|
2563
|
-
|
|
2564
|
-
return global.__Mason_getFlexShrink(instance._masonStylePtr);
|
|
2565
|
-
}
|
|
2566
|
-
else {
|
|
2567
|
-
if (global.isAndroid) {
|
|
2568
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2569
|
-
let value;
|
|
2570
|
-
if (instance._isMasonChild) {
|
|
2571
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getFlexShrink(nodeOrView);
|
|
2572
|
-
}
|
|
2573
|
-
else {
|
|
2574
|
-
value = nodeOrView.getFlexShrink();
|
|
2575
|
-
}
|
|
2576
|
-
return value;
|
|
2577
|
-
}
|
|
2578
|
-
if (global.isIOS) {
|
|
2579
|
-
return instance.ios.flexShrink;
|
|
2580
|
-
}
|
|
2581
|
-
return instance.style.flexShrink;
|
|
2582
|
-
}
|
|
702
|
+
return instance._styleHelper.flexShrink;
|
|
2583
703
|
}
|
|
2584
704
|
export function _setAspectRatio(value, instance, initial = false) {
|
|
2585
705
|
if (!instance._hasNativeView) {
|
|
2586
706
|
return;
|
|
2587
707
|
}
|
|
2588
|
-
|
|
2589
|
-
global.__Mason_setAspectRatio(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, value, !instance._inBatch);
|
|
2590
|
-
}
|
|
2591
|
-
else {
|
|
2592
|
-
if (global.isAndroid) {
|
|
2593
|
-
const val = Number.isNaN(value) ? null : value;
|
|
2594
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2595
|
-
if (instance._isMasonChild) {
|
|
2596
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setAspectRatio(nodeOrView, val);
|
|
2597
|
-
}
|
|
2598
|
-
else {
|
|
2599
|
-
nodeOrView.setAspectRatio(val);
|
|
2600
|
-
}
|
|
2601
|
-
}
|
|
2602
|
-
if (global.isIOS) {
|
|
2603
|
-
instance.ios.aspectRatio = value;
|
|
2604
|
-
}
|
|
2605
|
-
}
|
|
708
|
+
instance._styleHelper.aspectRatio = value ? value : Number.NaN;
|
|
2606
709
|
}
|
|
2607
710
|
export function _getAspectRatio(instance) {
|
|
2608
711
|
if (!instance._hasNativeView) {
|
|
2609
712
|
return instance.style.aspectRatio;
|
|
2610
713
|
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
}
|
|
2614
|
-
else {
|
|
2615
|
-
if (global.isAndroid) {
|
|
2616
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2617
|
-
let value;
|
|
2618
|
-
if (instance._isMasonChild) {
|
|
2619
|
-
value = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getAspectRatio(nodeOrView);
|
|
2620
|
-
}
|
|
2621
|
-
else {
|
|
2622
|
-
value = nodeOrView.getAspectRatio();
|
|
2623
|
-
}
|
|
2624
|
-
return value;
|
|
2625
|
-
}
|
|
2626
|
-
if (global.isIOS) {
|
|
2627
|
-
const ratio = instance.ios.aspectRatio;
|
|
2628
|
-
return Number.isNaN(ratio) ? null : ratio;
|
|
2629
|
-
}
|
|
2630
|
-
return null;
|
|
2631
|
-
}
|
|
714
|
+
const ratio = instance._styleHelper.aspectRatio;
|
|
715
|
+
return Number.isNaN(ratio) ? null : ratio;
|
|
2632
716
|
}
|
|
2633
717
|
function _parseGridLine(value) {
|
|
2634
718
|
let parsedValue = undefined;
|
|
2635
719
|
let parsedType = undefined;
|
|
2636
720
|
let nativeValue = undefined;
|
|
721
|
+
if (value === 'auto' || value === undefined) {
|
|
722
|
+
parsedValue = 0;
|
|
723
|
+
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
724
|
+
}
|
|
2637
725
|
if (typeof value === 'string') {
|
|
2638
|
-
if (value === 'auto') {
|
|
2639
|
-
parsedValue = 0;
|
|
2640
|
-
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
2641
|
-
if (!JSIEnabled) {
|
|
2642
|
-
if (global.isAndroid) {
|
|
2643
|
-
parsedType = org.nativescript.mason.masonkit.GridPlacement.Auto;
|
|
2644
|
-
nativeValue = org.nativescript.mason.masonkit.GridPlacement.Auto;
|
|
2645
|
-
}
|
|
2646
|
-
if (global.isIOS) {
|
|
2647
|
-
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
2648
|
-
nativeValue = GridPlacementCompat.Auto;
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
726
|
if (value.startsWith('span')) {
|
|
2653
727
|
parsedValue = Number(value.replace('span', '').trim());
|
|
2654
728
|
parsedType = 2 /* GridPlacementCompatType.Span */;
|
|
2655
|
-
if (!JSIEnabled) {
|
|
2656
|
-
const isValid = !Number.isNaN(parsedValue);
|
|
2657
|
-
if (global.isAndroid) {
|
|
2658
|
-
parsedType = org.nativescript.mason.masonkit.GridPlacement.Span;
|
|
2659
|
-
if (isValid) {
|
|
2660
|
-
nativeValue = new org.nativescript.mason.masonkit.GridPlacement.Span(parsedValue);
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
if (global.isIOS) {
|
|
2664
|
-
parsedType = 2 /* GridPlacementCompatType.Span */;
|
|
2665
|
-
if (isValid) {
|
|
2666
|
-
nativeValue = GridPlacementCompat.alloc().initWithSpan(parsedValue);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
729
|
}
|
|
2671
730
|
else {
|
|
2672
731
|
parsedValue = Number(value.trim());
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
nativeValue = new org.nativescript.mason.masonkit.GridPlacement.Line(parsedValue);
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
if (global.isIOS) {
|
|
2683
|
-
parsedType = 1 /* GridPlacementCompatType.Line */;
|
|
2684
|
-
if (isValid) {
|
|
2685
|
-
nativeValue = GridPlacementCompat.alloc().initWithLine(parsedValue);
|
|
2686
|
-
}
|
|
2687
|
-
}
|
|
732
|
+
if (parsedValue < 1) {
|
|
733
|
+
parsedValue = 0;
|
|
734
|
+
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
parsedType = 1 /* GridPlacementCompatType.Line */;
|
|
2688
738
|
}
|
|
2689
739
|
}
|
|
2690
|
-
return { value: Number.isNaN(parsedValue) ? undefined : parsedValue, type: parsedType, native_value: nativeValue };
|
|
2691
740
|
}
|
|
2692
741
|
if (typeof value === 'number') {
|
|
2693
742
|
parsedValue = value;
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
743
|
+
if (parsedValue < 1) {
|
|
744
|
+
parsedValue = 0;
|
|
745
|
+
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
parsedType = 1 /* GridPlacementCompatType.Line */;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
if (parsedType === 0) {
|
|
752
|
+
if (__ANDROID__) {
|
|
753
|
+
parsedType = org.nativescript.mason.masonkit.GridPlacement.Auto;
|
|
754
|
+
nativeValue = org.nativescript.mason.masonkit.GridPlacement.Auto.INSTANCE;
|
|
755
|
+
}
|
|
756
|
+
if (__APPLE__) {
|
|
757
|
+
parsedType = 0 /* GridPlacementCompatType.Auto */;
|
|
758
|
+
nativeValue = GridPlacementCompat.Auto;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
else if (parsedType === 1) {
|
|
762
|
+
const isValid = !Number.isNaN(parsedValue);
|
|
763
|
+
if (__ANDROID__) {
|
|
764
|
+
parsedType = org.nativescript.mason.masonkit.GridPlacement.Line;
|
|
765
|
+
if (isValid) {
|
|
2698
766
|
nativeValue = new org.nativescript.mason.masonkit.GridPlacement.Line(parsedValue);
|
|
2699
767
|
}
|
|
2700
|
-
|
|
2701
|
-
|
|
768
|
+
}
|
|
769
|
+
if (__APPLE__) {
|
|
770
|
+
parsedType = 1 /* GridPlacementCompatType.Line */;
|
|
771
|
+
if (isValid) {
|
|
2702
772
|
nativeValue = GridPlacementCompat.alloc().initWithLine(parsedValue);
|
|
2703
773
|
}
|
|
2704
774
|
}
|
|
2705
775
|
}
|
|
2706
|
-
|
|
776
|
+
else {
|
|
777
|
+
const isValid = !Number.isNaN(parsedValue);
|
|
778
|
+
if (__ANDROID__) {
|
|
779
|
+
parsedType = org.nativescript.mason.masonkit.GridPlacement.Span;
|
|
780
|
+
if (isValid) {
|
|
781
|
+
nativeValue = new org.nativescript.mason.masonkit.GridPlacement.Span(parsedValue);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
if (__APPLE__) {
|
|
785
|
+
parsedType = 2 /* GridPlacementCompatType.Span */;
|
|
786
|
+
if (isValid) {
|
|
787
|
+
nativeValue = GridPlacementCompat.alloc().initWithSpan(parsedValue);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return { value: Number.isNaN(parsedValue) ? undefined : parsedValue, type: parsedType, native_value: nativeValue };
|
|
2707
792
|
}
|
|
2708
793
|
export function _setGridColumnStart(value, instance, initial = false) {
|
|
2709
794
|
if (!instance._hasNativeView) {
|
|
@@ -2713,22 +798,12 @@ export function _setGridColumnStart(value, instance, initial = false) {
|
|
|
2713
798
|
if (val.value === undefined || val.type === undefined) {
|
|
2714
799
|
return;
|
|
2715
800
|
}
|
|
2716
|
-
if (
|
|
2717
|
-
|
|
801
|
+
if (__ANDROID__) {
|
|
802
|
+
const nodeOrView = getMasonInstance(instance);
|
|
803
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridColumnStart(nodeOrView, val.native_value);
|
|
2718
804
|
}
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2722
|
-
if (instance._isMasonChild) {
|
|
2723
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridColumnStart(nodeOrView, val.native_value);
|
|
2724
|
-
}
|
|
2725
|
-
else {
|
|
2726
|
-
nodeOrView.setGridColumnStart(val.native_value);
|
|
2727
|
-
}
|
|
2728
|
-
}
|
|
2729
|
-
if (global.isIOS) {
|
|
2730
|
-
instance.ios.gridColumnStartCompat = val.native_value;
|
|
2731
|
-
}
|
|
805
|
+
if (__APPLE__) {
|
|
806
|
+
instance.ios.gridColumnStartCompat = val.native_value;
|
|
2732
807
|
}
|
|
2733
808
|
}
|
|
2734
809
|
export function _setGridColumnEnd(value, instance, initial = false) {
|
|
@@ -2739,22 +814,12 @@ export function _setGridColumnEnd(value, instance, initial = false) {
|
|
|
2739
814
|
if (val.value === undefined || val.type === undefined) {
|
|
2740
815
|
return;
|
|
2741
816
|
}
|
|
2742
|
-
if (
|
|
2743
|
-
|
|
817
|
+
if (__ANDROID__) {
|
|
818
|
+
const nodeOrView = getMasonInstance(instance);
|
|
819
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridColumnEnd(nodeOrView, val.native_value);
|
|
2744
820
|
}
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2748
|
-
if (instance._isMasonChild) {
|
|
2749
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridColumnEnd(nodeOrView, val.native_value);
|
|
2750
|
-
}
|
|
2751
|
-
else {
|
|
2752
|
-
nodeOrView.setGridColumnEnd(val.native_value);
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
if (global.isIOS) {
|
|
2756
|
-
instance.ios.gridColumnEndCompat = val.native_value;
|
|
2757
|
-
}
|
|
821
|
+
if (__APPLE__) {
|
|
822
|
+
instance.ios.gridColumnEndCompat = val.native_value;
|
|
2758
823
|
}
|
|
2759
824
|
}
|
|
2760
825
|
export function _setGridRowStart(value, instance, initial = false) {
|
|
@@ -2765,22 +830,12 @@ export function _setGridRowStart(value, instance, initial = false) {
|
|
|
2765
830
|
if (val.value === undefined || val.type === undefined) {
|
|
2766
831
|
return;
|
|
2767
832
|
}
|
|
2768
|
-
if (
|
|
2769
|
-
|
|
833
|
+
if (__ANDROID__) {
|
|
834
|
+
const nodeOrView = getMasonInstance(instance);
|
|
835
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridRowStart(nodeOrView, val.native_value);
|
|
2770
836
|
}
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2774
|
-
if (instance._isMasonChild) {
|
|
2775
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridRowStart(nodeOrView, val.native_value);
|
|
2776
|
-
}
|
|
2777
|
-
else {
|
|
2778
|
-
nodeOrView.setGridRowStart(val.native_value);
|
|
2779
|
-
}
|
|
2780
|
-
}
|
|
2781
|
-
if (global.isIOS) {
|
|
2782
|
-
instance.ios.gridRowStartCompat = val.native_value;
|
|
2783
|
-
}
|
|
837
|
+
if (__APPLE__) {
|
|
838
|
+
instance.ios.gridRowStartCompat = val.native_value;
|
|
2784
839
|
}
|
|
2785
840
|
}
|
|
2786
841
|
export function _setGridRowEnd(value, instance, initial = false) {
|
|
@@ -2791,125 +846,37 @@ export function _setGridRowEnd(value, instance, initial = false) {
|
|
|
2791
846
|
if (val.value === undefined || val.type === undefined) {
|
|
2792
847
|
return;
|
|
2793
848
|
}
|
|
2794
|
-
if (
|
|
2795
|
-
|
|
849
|
+
if (__ANDROID__) {
|
|
850
|
+
const nodeOrView = getMasonInstance(instance);
|
|
851
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridRowEnd(nodeOrView, val.native_value);
|
|
2796
852
|
}
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2800
|
-
if (instance._isMasonChild) {
|
|
2801
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridRowEnd(nodeOrView, val.native_value);
|
|
2802
|
-
}
|
|
2803
|
-
else {
|
|
2804
|
-
nodeOrView.setGridRowEnd(val.native_value);
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
if (global.isIOS) {
|
|
2808
|
-
instance.ios.gridRowEndCompat = val.native_value;
|
|
2809
|
-
}
|
|
853
|
+
if (__APPLE__) {
|
|
854
|
+
instance.ios.gridRowEndCompat = val.native_value;
|
|
2810
855
|
}
|
|
2811
856
|
}
|
|
2812
857
|
export function _setRowGap(value, instance, initial = false) {
|
|
2813
858
|
if (!instance._hasNativeView) {
|
|
2814
859
|
return;
|
|
2815
860
|
}
|
|
2816
|
-
|
|
2817
|
-
if (val.value === undefined || val.type === undefined) {
|
|
2818
|
-
return;
|
|
2819
|
-
}
|
|
2820
|
-
if (JSIEnabled) {
|
|
2821
|
-
global.__Mason_setRowGap(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2822
|
-
}
|
|
2823
|
-
else {
|
|
2824
|
-
if (global.isAndroid) {
|
|
2825
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2826
|
-
if (instance._isMasonChild) {
|
|
2827
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGapRow(nodeOrView, val.value, val.native_type);
|
|
2828
|
-
}
|
|
2829
|
-
else {
|
|
2830
|
-
nodeOrView.setGapRow(val.value, val.native_type);
|
|
2831
|
-
}
|
|
2832
|
-
}
|
|
2833
|
-
if (global.isIOS) {
|
|
2834
|
-
instance.ios.setRowGap(val.value, val.native_type);
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
861
|
+
instance._styleHelper.rowGap = value;
|
|
2837
862
|
}
|
|
2838
863
|
export function _getRowGap(instance) {
|
|
2839
864
|
if (!instance._hasNativeView) {
|
|
2840
|
-
return instance.style.
|
|
2841
|
-
}
|
|
2842
|
-
if (JSIEnabled) {
|
|
2843
|
-
return global.__Mason_getRowGap(instance._masonStylePtr);
|
|
2844
|
-
}
|
|
2845
|
-
else {
|
|
2846
|
-
if (global.isAndroid) {
|
|
2847
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2848
|
-
let gap;
|
|
2849
|
-
if (instance._isMasonChild) {
|
|
2850
|
-
gap = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getGapRow(nodeOrView);
|
|
2851
|
-
}
|
|
2852
|
-
else {
|
|
2853
|
-
gap = nodeOrView.getGapRow();
|
|
2854
|
-
}
|
|
2855
|
-
return _parseLengthPercentage(gap);
|
|
2856
|
-
}
|
|
2857
|
-
if (global.isIOS) {
|
|
2858
|
-
const gap = instance.ios.getRowGap();
|
|
2859
|
-
return _parseLengthPercentage(gap);
|
|
2860
|
-
}
|
|
865
|
+
return instance.style.rowGap;
|
|
2861
866
|
}
|
|
867
|
+
return instance._styleHelper.rowGap;
|
|
2862
868
|
}
|
|
2863
869
|
export function _setColumnGap(value, instance, initial = false) {
|
|
2864
870
|
if (!instance._hasNativeView) {
|
|
2865
871
|
return;
|
|
2866
872
|
}
|
|
2867
|
-
|
|
2868
|
-
if (val.value === undefined || val.type === undefined) {
|
|
2869
|
-
return;
|
|
2870
|
-
}
|
|
2871
|
-
if (JSIEnabled) {
|
|
2872
|
-
global.__Mason_setColumnGap(instance._masonPtr, instance._masonNodePtr, instance._masonStylePtr, val.value, val.native_type, !instance._inBatch);
|
|
2873
|
-
}
|
|
2874
|
-
else {
|
|
2875
|
-
if (global.isAndroid) {
|
|
2876
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2877
|
-
if (instance._isMasonChild) {
|
|
2878
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGapColumn(nodeOrView, val.value, val.native_type);
|
|
2879
|
-
}
|
|
2880
|
-
else {
|
|
2881
|
-
nodeOrView.setGapColumn(val.value, val.native_type);
|
|
2882
|
-
}
|
|
2883
|
-
}
|
|
2884
|
-
if (global.isIOS) {
|
|
2885
|
-
instance.ios.setColumnGap(val.value, val.native_type);
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
873
|
+
instance._styleHelper.columnGap = value;
|
|
2888
874
|
}
|
|
2889
875
|
export function _getColumnGap(instance) {
|
|
2890
876
|
if (!instance._hasNativeView) {
|
|
2891
877
|
return instance.style.gap;
|
|
2892
878
|
}
|
|
2893
|
-
|
|
2894
|
-
return global.__Mason_getColumnGap(instance._masonStylePtr);
|
|
2895
|
-
}
|
|
2896
|
-
else {
|
|
2897
|
-
if (global.isAndroid) {
|
|
2898
|
-
const nodeOrView = getMasonInstance(instance);
|
|
2899
|
-
let gap;
|
|
2900
|
-
if (instance._isMasonChild) {
|
|
2901
|
-
gap = org.nativescript.mason.masonkit.NodeHelper.INSTANCE.getGapColumn(nodeOrView);
|
|
2902
|
-
}
|
|
2903
|
-
else {
|
|
2904
|
-
gap = nodeOrView.getGapColumn();
|
|
2905
|
-
}
|
|
2906
|
-
return _parseLengthPercentage(gap);
|
|
2907
|
-
}
|
|
2908
|
-
if (global.isIOS) {
|
|
2909
|
-
const gap = instance.ios.getColumnGap();
|
|
2910
|
-
return _parseLengthPercentage(gap);
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
879
|
+
return instance._styleHelper.columnGap;
|
|
2913
880
|
}
|
|
2914
881
|
const Auto = 'auto';
|
|
2915
882
|
const None = 'none';
|
|
@@ -2941,12 +908,12 @@ export function _parseMinMaxValue(value) {
|
|
|
2941
908
|
max_value: 0,
|
|
2942
909
|
};
|
|
2943
910
|
}
|
|
2944
|
-
else if (value.
|
|
2945
|
-
const flex = parseInt(value.replace('
|
|
911
|
+
else if (value.indexOf('fr') > -1) {
|
|
912
|
+
const flex = parseInt(value.replace('fr', '').trim());
|
|
2946
913
|
return {
|
|
2947
914
|
min_type: 0 /* MinSizingType.Auto */,
|
|
2948
915
|
min_value: 0,
|
|
2949
|
-
max_type: 5 /* MaxSizingType.
|
|
916
|
+
max_type: 5 /* MaxSizingType.Fraction */,
|
|
2950
917
|
max_value: flex,
|
|
2951
918
|
};
|
|
2952
919
|
}
|
|
@@ -3011,15 +978,6 @@ export function _parseMinMaxValue(value) {
|
|
|
3011
978
|
max_value: percent,
|
|
3012
979
|
};
|
|
3013
980
|
}
|
|
3014
|
-
else if (value.indexOf('fr') > -1) {
|
|
3015
|
-
const flex = parseFloat(value.replace('fr', ''));
|
|
3016
|
-
return {
|
|
3017
|
-
min_type: 0 /* MinSizingType.Auto */,
|
|
3018
|
-
min_value: 0,
|
|
3019
|
-
max_type: 5 /* MaxSizingType.Flex */,
|
|
3020
|
-
max_value: flex,
|
|
3021
|
-
};
|
|
3022
|
-
}
|
|
3023
981
|
else {
|
|
3024
982
|
const dip = Utils.layout.toDevicePixels(Number(value));
|
|
3025
983
|
return {
|
|
@@ -3068,11 +1026,13 @@ export function _parseGridTemplates(value) {
|
|
|
3068
1026
|
repeating_type = 1 /* TSCGridTrackRepetition.AutoFit */;
|
|
3069
1027
|
break;
|
|
3070
1028
|
default:
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
1029
|
+
{
|
|
1030
|
+
const number = parseInt(repetition);
|
|
1031
|
+
repeating_type = 2 /* TSCGridTrackRepetition.Count */;
|
|
1032
|
+
isValid = !Number.isNaN(number);
|
|
1033
|
+
if (isValid) {
|
|
1034
|
+
repeat_count = number;
|
|
1035
|
+
}
|
|
3076
1036
|
}
|
|
3077
1037
|
break;
|
|
3078
1038
|
}
|
|
@@ -3106,188 +1066,172 @@ export function _setGridTemplateRows(value, instance, initial = false) {
|
|
|
3106
1066
|
if (!instance._hasNativeView) {
|
|
3107
1067
|
return;
|
|
3108
1068
|
}
|
|
3109
|
-
if (
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
break;
|
|
3129
|
-
case 2 /* TSCGridTrackRepetition.Count */:
|
|
3130
|
-
gridTrackRepetition = new org.nativescript.mason.masonkit.GridTrackRepetition.Count(item.repeating_count);
|
|
3131
|
-
break;
|
|
3132
|
-
}
|
|
3133
|
-
if (gridTrackRepetition === null) {
|
|
3134
|
-
continue;
|
|
3135
|
-
}
|
|
3136
|
-
const repeatingLength = repeating.length;
|
|
3137
|
-
for (let j = 0; j < repeatingLength; j++) {
|
|
3138
|
-
const repeat = repeating[j];
|
|
3139
|
-
tracks[j] = org.nativescript.mason.masonkit.MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value);
|
|
3140
|
-
}
|
|
3141
|
-
const repeat = new org.nativescript.mason.masonkit.TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
3142
|
-
array[i] = repeat;
|
|
1069
|
+
if (__ANDROID__) {
|
|
1070
|
+
const array = Array.create('org.nativescript.mason.masonkit.TrackSizingFunction', value.length);
|
|
1071
|
+
const length = value.length;
|
|
1072
|
+
for (let i = 0; i < length; i++) {
|
|
1073
|
+
const item = value[i];
|
|
1074
|
+
if (item.is_repeating) {
|
|
1075
|
+
const repeating = item.value;
|
|
1076
|
+
const tracks = Array.create('org.nativescript.mason.masonkit.MinMax', repeating.length);
|
|
1077
|
+
let gridTrackRepetition = null;
|
|
1078
|
+
switch (item.repeating_type) {
|
|
1079
|
+
case 0 /* TSCGridTrackRepetition.AutoFill */:
|
|
1080
|
+
gridTrackRepetition = org.nativescript.mason.masonkit.GridTrackRepetition.AutoFill;
|
|
1081
|
+
break;
|
|
1082
|
+
case 1 /* TSCGridTrackRepetition.AutoFit */:
|
|
1083
|
+
gridTrackRepetition = org.nativescript.mason.masonkit.GridTrackRepetition.AutoFit;
|
|
1084
|
+
break;
|
|
1085
|
+
case 2 /* TSCGridTrackRepetition.Count */:
|
|
1086
|
+
gridTrackRepetition = new org.nativescript.mason.masonkit.GridTrackRepetition.Count(item.repeating_count);
|
|
1087
|
+
break;
|
|
3143
1088
|
}
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
const trackSizingFunction = new org.nativescript.mason.masonkit.TrackSizingFunction.Single(org.nativescript.mason.masonkit.MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
3147
|
-
array[i] = trackSizingFunction;
|
|
1089
|
+
if (gridTrackRepetition === null) {
|
|
1090
|
+
continue;
|
|
3148
1091
|
}
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
1092
|
+
const repeatingLength = repeating.length;
|
|
1093
|
+
for (let j = 0; j < repeatingLength; j++) {
|
|
1094
|
+
const repeat = repeating[j];
|
|
1095
|
+
tracks[j] = org.nativescript.mason.masonkit.MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value);
|
|
1096
|
+
}
|
|
1097
|
+
const repeat = new org.nativescript.mason.masonkit.TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
1098
|
+
array[i] = repeat;
|
|
3153
1099
|
}
|
|
3154
1100
|
else {
|
|
3155
|
-
|
|
1101
|
+
const single = item.value;
|
|
1102
|
+
const trackSizingFunction = new org.nativescript.mason.masonkit.TrackSizingFunction.Single(org.nativescript.mason.masonkit.MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
1103
|
+
array[i] = trackSizingFunction;
|
|
3156
1104
|
}
|
|
3157
1105
|
}
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
}
|
|
3182
|
-
for (let j = 0; j < repeatingLength; j++) {
|
|
3183
|
-
const repeat = repeating[j];
|
|
3184
|
-
tracks.addObject(MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value));
|
|
3185
|
-
}
|
|
3186
|
-
const repeat = TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
3187
|
-
array.addObject(repeat);
|
|
1106
|
+
const nodeOrView = getMasonInstance(instance);
|
|
1107
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridTemplateRows(nodeOrView, array);
|
|
1108
|
+
}
|
|
1109
|
+
if (__APPLE__) {
|
|
1110
|
+
const length = value.length;
|
|
1111
|
+
const array = NSMutableArray.arrayWithCapacity(length);
|
|
1112
|
+
for (let i = 0; i < length; i++) {
|
|
1113
|
+
const item = value[i];
|
|
1114
|
+
if (item.is_repeating) {
|
|
1115
|
+
const repeating = item.value;
|
|
1116
|
+
const repeatingLength = repeating.length;
|
|
1117
|
+
const tracks = NSMutableArray.arrayWithCapacity(repeatingLength);
|
|
1118
|
+
let gridTrackRepetition = null;
|
|
1119
|
+
switch (item.repeating_type) {
|
|
1120
|
+
case 0 /* TSCGridTrackRepetition.AutoFill */:
|
|
1121
|
+
gridTrackRepetition = 0 /* TSCGridTrackRepetition.AutoFill */;
|
|
1122
|
+
break;
|
|
1123
|
+
case 1 /* TSCGridTrackRepetition.AutoFit */:
|
|
1124
|
+
gridTrackRepetition = 1 /* TSCGridTrackRepetition.AutoFit */;
|
|
1125
|
+
break;
|
|
1126
|
+
case 2 /* TSCGridTrackRepetition.Count */:
|
|
1127
|
+
gridTrackRepetition = GridTrackRepetition.Count(item.repeating_count);
|
|
1128
|
+
break;
|
|
3188
1129
|
}
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
const trackSizingFunction = TrackSizingFunction.Single(MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
3192
|
-
array.addObject(trackSizingFunction);
|
|
1130
|
+
if (gridTrackRepetition === null) {
|
|
1131
|
+
continue;
|
|
3193
1132
|
}
|
|
1133
|
+
for (let j = 0; j < repeatingLength; j++) {
|
|
1134
|
+
const repeat = repeating[j];
|
|
1135
|
+
tracks.addObject(MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value));
|
|
1136
|
+
}
|
|
1137
|
+
const repeat = TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
1138
|
+
array.addObject(repeat);
|
|
1139
|
+
}
|
|
1140
|
+
else {
|
|
1141
|
+
const single = item.value;
|
|
1142
|
+
const trackSizingFunction = TrackSizingFunction.Single(MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
1143
|
+
array.addObject(trackSizingFunction);
|
|
3194
1144
|
}
|
|
3195
|
-
instance.ios.gridTemplateRows = array;
|
|
3196
1145
|
}
|
|
1146
|
+
instance.ios.gridTemplateRows = array;
|
|
3197
1147
|
}
|
|
3198
1148
|
}
|
|
3199
1149
|
export function _setGridTemplateColumns(value, instance, initial = false) {
|
|
3200
1150
|
if (!instance._hasNativeView) {
|
|
3201
1151
|
return;
|
|
3202
1152
|
}
|
|
3203
|
-
if (
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
break;
|
|
3223
|
-
case 2 /* TSCGridTrackRepetition.Count */:
|
|
3224
|
-
gridTrackRepetition = new org.nativescript.mason.masonkit.GridTrackRepetition.Count(item.repeating_count);
|
|
3225
|
-
break;
|
|
3226
|
-
}
|
|
3227
|
-
if (gridTrackRepetition === null) {
|
|
3228
|
-
continue;
|
|
3229
|
-
}
|
|
3230
|
-
const repeatingLength = repeating.length;
|
|
3231
|
-
for (let j = 0; j < repeatingLength; j++) {
|
|
3232
|
-
const repeat = repeating[j];
|
|
3233
|
-
tracks[j] = org.nativescript.mason.masonkit.MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value);
|
|
3234
|
-
}
|
|
3235
|
-
const repeat = new org.nativescript.mason.masonkit.TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
3236
|
-
array[i] = repeat;
|
|
1153
|
+
if (__ANDROID__) {
|
|
1154
|
+
const array = Array.create('org.nativescript.mason.masonkit.TrackSizingFunction', value.length);
|
|
1155
|
+
const length = value.length;
|
|
1156
|
+
for (let i = 0; i < length; i++) {
|
|
1157
|
+
const item = value[i];
|
|
1158
|
+
if (item.is_repeating) {
|
|
1159
|
+
const repeating = item.value;
|
|
1160
|
+
const tracks = Array.create('org.nativescript.mason.masonkit.MinMax', repeating.length);
|
|
1161
|
+
let gridTrackRepetition = null;
|
|
1162
|
+
switch (item.repeating_type) {
|
|
1163
|
+
case 0 /* TSCGridTrackRepetition.AutoFill */:
|
|
1164
|
+
gridTrackRepetition = org.nativescript.mason.masonkit.GridTrackRepetition.AutoFill.INSTANCE;
|
|
1165
|
+
break;
|
|
1166
|
+
case 1 /* TSCGridTrackRepetition.AutoFit */:
|
|
1167
|
+
gridTrackRepetition = org.nativescript.mason.masonkit.GridTrackRepetition.AutoFit.INSTANCE;
|
|
1168
|
+
break;
|
|
1169
|
+
case 2 /* TSCGridTrackRepetition.Count */:
|
|
1170
|
+
gridTrackRepetition = new org.nativescript.mason.masonkit.GridTrackRepetition.Count(item.repeating_count);
|
|
1171
|
+
break;
|
|
3237
1172
|
}
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
const trackSizingFunction = new org.nativescript.mason.masonkit.TrackSizingFunction.Single(org.nativescript.mason.masonkit.MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
3241
|
-
array[i] = trackSizingFunction;
|
|
1173
|
+
if (gridTrackRepetition === null) {
|
|
1174
|
+
continue;
|
|
3242
1175
|
}
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
1176
|
+
const repeatingLength = repeating.length;
|
|
1177
|
+
for (let j = 0; j < repeatingLength; j++) {
|
|
1178
|
+
const repeat = repeating[j];
|
|
1179
|
+
tracks[j] = org.nativescript.mason.masonkit.MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value);
|
|
1180
|
+
}
|
|
1181
|
+
const repeat = new org.nativescript.mason.masonkit.TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
1182
|
+
array[i] = repeat;
|
|
3247
1183
|
}
|
|
3248
1184
|
else {
|
|
3249
|
-
|
|
1185
|
+
const single = item.value;
|
|
1186
|
+
const minMax = single ? org.nativescript.mason.masonkit.MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value) : org.nativescript.mason.masonkit.MinMax.Auto.INSTANCE;
|
|
1187
|
+
const trackSizingFunction = new org.nativescript.mason.masonkit.TrackSizingFunction.Single(minMax);
|
|
1188
|
+
array[i] = trackSizingFunction;
|
|
3250
1189
|
}
|
|
3251
1190
|
}
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
}
|
|
3276
|
-
for (let j = 0; j < repeatingLength; j++) {
|
|
3277
|
-
const repeat = repeating[j];
|
|
3278
|
-
tracks.addObject(MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value));
|
|
3279
|
-
}
|
|
3280
|
-
const repeat = TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
3281
|
-
array.addObject(repeat);
|
|
1191
|
+
const nodeOrView = getMasonInstance(instance);
|
|
1192
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridTemplateColumns(nodeOrView, array);
|
|
1193
|
+
}
|
|
1194
|
+
if (__APPLE__) {
|
|
1195
|
+
const length = value.length;
|
|
1196
|
+
const array = NSMutableArray.new();
|
|
1197
|
+
for (let i = 0; i < length; i++) {
|
|
1198
|
+
const item = value[i];
|
|
1199
|
+
if (item.is_repeating) {
|
|
1200
|
+
const repeating = item.value;
|
|
1201
|
+
const repeatingLength = repeating.length;
|
|
1202
|
+
const tracks = NSMutableArray.arrayWithCapacity(repeatingLength);
|
|
1203
|
+
let gridTrackRepetition = null;
|
|
1204
|
+
switch (item.repeating_type) {
|
|
1205
|
+
case 0 /* TSCGridTrackRepetition.AutoFill */:
|
|
1206
|
+
gridTrackRepetition = 0 /* TSCGridTrackRepetition.AutoFill */;
|
|
1207
|
+
break;
|
|
1208
|
+
case 1 /* TSCGridTrackRepetition.AutoFit */:
|
|
1209
|
+
gridTrackRepetition = 1 /* TSCGridTrackRepetition.AutoFit */;
|
|
1210
|
+
break;
|
|
1211
|
+
case 2 /* TSCGridTrackRepetition.Count */:
|
|
1212
|
+
gridTrackRepetition = GridTrackRepetition.Count(item.repeating_count);
|
|
1213
|
+
break;
|
|
3282
1214
|
}
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
const trackSizingFunction = TrackSizingFunction.Single(MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
3286
|
-
array.addObject(trackSizingFunction);
|
|
1215
|
+
if (gridTrackRepetition === null) {
|
|
1216
|
+
continue;
|
|
3287
1217
|
}
|
|
1218
|
+
for (let j = 0; j < repeatingLength; j++) {
|
|
1219
|
+
const repeat = repeating[j];
|
|
1220
|
+
tracks.addObject(MinMax.fromTypeValue(repeat.min_type, repeat.min_value, repeat.max_type, repeat.max_value));
|
|
1221
|
+
}
|
|
1222
|
+
const repeat = TrackSizingFunction.AutoRepeat(gridTrackRepetition, tracks);
|
|
1223
|
+
array.addObject(repeat);
|
|
1224
|
+
}
|
|
1225
|
+
else {
|
|
1226
|
+
const single = item.value;
|
|
1227
|
+
const trackSizingFunction = TrackSizingFunction.Single(MinMax.fromTypeValue(single.min_type, single.min_value, single.max_type, single.max_value));
|
|
1228
|
+
array.addObject(trackSizingFunction);
|
|
3288
1229
|
}
|
|
3289
|
-
instance.ios.gridTemplateColumns = array;
|
|
3290
1230
|
}
|
|
1231
|
+
instance.ios.gridTemplateColumns = array;
|
|
1232
|
+
console.log('gridTemplateColumns', instance.ios.gridTemplateColumns);
|
|
1233
|
+
console.log('gridTemplateColumns', instance.ios.gridTemplateColumns.count);
|
|
1234
|
+
console.log(instance.ios.style);
|
|
3291
1235
|
}
|
|
3292
1236
|
}
|
|
3293
1237
|
export function _parseGridAutoRowsColumns(value) {
|
|
@@ -3305,41 +1249,43 @@ export function _parseGridAutoRowsColumns(value) {
|
|
|
3305
1249
|
}
|
|
3306
1250
|
return array;
|
|
3307
1251
|
}
|
|
1252
|
+
export function _setGridAutoFlow(value, instance) {
|
|
1253
|
+
if (!instance._hasNativeView) {
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
instance.ios.gridAutoFlow = value;
|
|
1257
|
+
}
|
|
1258
|
+
export function _getGridAutoFlow(instance) {
|
|
1259
|
+
if (!instance._hasNativeView) {
|
|
1260
|
+
return;
|
|
1261
|
+
}
|
|
1262
|
+
return this._styleHelper.gridAutoFlow;
|
|
1263
|
+
}
|
|
3308
1264
|
export function _setGridAutoRows(value, instance, initial = false) {
|
|
3309
1265
|
if (!instance._hasNativeView) {
|
|
3310
1266
|
return;
|
|
3311
1267
|
}
|
|
3312
1268
|
const values = _parseGridAutoRowsColumns(value);
|
|
3313
|
-
if (
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
const
|
|
3319
|
-
|
|
3320
|
-
for (let i = 0; i < length; i++) {
|
|
3321
|
-
const item = value[i];
|
|
3322
|
-
const minMax = org.nativescript.mason.masonkit.MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
3323
|
-
array[i] = minMax;
|
|
3324
|
-
}
|
|
3325
|
-
const nodeOrView = getMasonInstance(instance);
|
|
3326
|
-
if (instance._isMasonChild) {
|
|
3327
|
-
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridAutoRows(nodeOrView, array);
|
|
3328
|
-
}
|
|
3329
|
-
else {
|
|
3330
|
-
nodeOrView.setGridAutoRows(array);
|
|
3331
|
-
}
|
|
1269
|
+
if (__ANDROID__) {
|
|
1270
|
+
const array = Array.create('org.nativescript.mason.masonkit.MinMax', values.length);
|
|
1271
|
+
const length = value.length;
|
|
1272
|
+
for (let i = 0; i < length; i++) {
|
|
1273
|
+
const item = value[i];
|
|
1274
|
+
const minMax = org.nativescript.mason.masonkit.MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
1275
|
+
array[i] = minMax;
|
|
3332
1276
|
}
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
1277
|
+
const nodeOrView = getMasonInstance(instance);
|
|
1278
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridAutoRows(nodeOrView, array);
|
|
1279
|
+
}
|
|
1280
|
+
if (__APPLE__) {
|
|
1281
|
+
const length = value.length;
|
|
1282
|
+
const array = NSMutableArray.arrayWithCapacity(length);
|
|
1283
|
+
for (let i = 0; i < length; i++) {
|
|
1284
|
+
const item = value[i];
|
|
1285
|
+
const minMax = MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
1286
|
+
array.addObject(minMax);
|
|
3342
1287
|
}
|
|
1288
|
+
instance.ios.gridAutoRows = array;
|
|
3343
1289
|
}
|
|
3344
1290
|
}
|
|
3345
1291
|
export function _setGridAutoColumns(value, instance, initial = false) {
|
|
@@ -3347,36 +1293,26 @@ export function _setGridAutoColumns(value, instance, initial = false) {
|
|
|
3347
1293
|
return;
|
|
3348
1294
|
}
|
|
3349
1295
|
const values = _parseGridAutoRowsColumns(value);
|
|
3350
|
-
if (
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
if (global.isIOS) {
|
|
3371
|
-
const length = value.length;
|
|
3372
|
-
const array = NSMutableArray.arrayWithCapacity(length);
|
|
3373
|
-
for (let i = 0; i < length; i++) {
|
|
3374
|
-
const item = value[i];
|
|
3375
|
-
const minMax = MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
3376
|
-
array.addObject(minMax);
|
|
3377
|
-
}
|
|
3378
|
-
instance.ios.gridAutoColumns = array;
|
|
3379
|
-
}
|
|
1296
|
+
if (__ANDROID__) {
|
|
1297
|
+
const array = Array.create('org.nativescript.mason.masonkit.MinMax', values.length);
|
|
1298
|
+
const length = value.length;
|
|
1299
|
+
for (let i = 0; i < length; i++) {
|
|
1300
|
+
const item = value[i];
|
|
1301
|
+
const minMax = org.nativescript.mason.masonkit.MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
1302
|
+
array[i] = minMax;
|
|
1303
|
+
}
|
|
1304
|
+
const nodeOrView = getMasonInstance(instance);
|
|
1305
|
+
org.nativescript.mason.masonkit.NodeHelper.INSTANCE.setGridAutoColumns(nodeOrView, array);
|
|
1306
|
+
}
|
|
1307
|
+
if (__APPLE__) {
|
|
1308
|
+
const length = value.length;
|
|
1309
|
+
const array = NSMutableArray.arrayWithCapacity(length);
|
|
1310
|
+
for (let i = 0; i < length; i++) {
|
|
1311
|
+
const item = value[i];
|
|
1312
|
+
const minMax = MinMax.fromTypeValue(item.min_type, item.min_value, item.max_type, item.max_value);
|
|
1313
|
+
array.addObject(minMax);
|
|
1314
|
+
}
|
|
1315
|
+
instance.ios.gridAutoColumns = array;
|
|
3380
1316
|
}
|
|
3381
1317
|
}
|
|
3382
1318
|
//# sourceMappingURL=helpers.js.map
|