@triniwiz/nativescript-masonkit 1.0.0-alpha.7 → 1.0.0-alpha.9
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 -28
- package/common.js +355 -704
- package/common.js.map +1 -1
- package/helpers.d.ts +98 -98
- package/helpers.js +395 -2945
- package/helpers.js.map +1 -1
- package/index.android.d.ts +28 -24
- package/index.android.js +109 -82
- package/index.android.js.map +1 -1
- package/index.d.ts +56 -19
- package/index.ios.d.ts +42 -24
- package/index.ios.js +279 -121
- 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/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 +251 -267
- 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 +213 -843
- 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 +17822 -19248
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +404 -310
- 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 +404 -310
- 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 +502 -534
- 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 +213 -843
- 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 +17822 -19248
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +404 -310
- 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 +404 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +17822 -19248
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +404 -310
- 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 +404 -310
- 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 +5 -1
- package/platforms/ios/prebuild.sh +101 -0
- package/{pods → src-native/pods}/NativeScript.podspec +1 -1
- package/style.d.ts +166 -0
- package/style.js +1686 -0
- package/style.js.map +1 -0
- package/platforms/ios/src/MasonV8Module.h +0 -583
- package/platforms/ios/src/MasonV8Module.mm +0 -1005
- package/platforms/ios/src/cpp/include/mason_native.h +0 -972
- package/platforms/ios/src/cpp/include/robin_hood.h +0 -2544
- package/platforms/ios/src/module.modulemap +0 -4
- /package/{pods → src-native/pods}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/pods}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/pods}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/pods}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/pods}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/pods}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/pods}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/pods}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/pods}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/pods}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/decorator.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/instrumentation.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/jsi-inl.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/jsi.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/jsilib.h +0 -0
- /package/{pods → src-native/pods}/Headers/jsi/threadsafe.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/pods}/Headers/runtime/robin_hood.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/HostProxy.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/JSIV8ValueConverter.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/V8PointerValue.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/V8Runtime.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/V8RuntimeConfig.h +0 -0
- /package/{pods → src-native/pods}/Headers/v8runtime/V8RuntimeFactory.h +0 -0
package/index.android.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class
|
|
1
|
+
var _a;
|
|
2
|
+
import { backgroundColorProperty, Color, colorProperty, Utils } from '@nativescript/core';
|
|
3
|
+
import { TextBase, ViewBase, style_, textProperty, textWrapProperty } from './common';
|
|
4
|
+
import { Style } from './style';
|
|
5
|
+
export class Tree {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
8
|
-
this.__masonStylePtr = BigIntZero;
|
|
9
|
-
this.__masonNodePtr = BigIntZero;
|
|
10
|
-
this.__masonPtr = BigIntZero;
|
|
11
|
-
this._hasNativeView = false;
|
|
12
|
-
this._inBatch = false;
|
|
7
|
+
this._base = org.nativescript.mason.masonkit.Mason.getShared();
|
|
13
8
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const ptrs = this.android?.getMasonPtrs().split(':');
|
|
17
|
-
this.__masonPtr = BigInt(ptrs[0]);
|
|
18
|
-
this.__masonNodePtr = BigInt(ptrs[1]);
|
|
19
|
-
this.__masonStylePtr = BigInt(ptrs[2]);
|
|
9
|
+
static get instance() {
|
|
10
|
+
return Tree._tree;
|
|
20
11
|
}
|
|
21
|
-
get
|
|
22
|
-
|
|
23
|
-
this.loadPtrs();
|
|
24
|
-
}
|
|
25
|
-
return this.__masonStylePtr;
|
|
12
|
+
get native() {
|
|
13
|
+
return this._base;
|
|
26
14
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return this.
|
|
15
|
+
createView(context) {
|
|
16
|
+
return this.native.createView(context);
|
|
17
|
+
}
|
|
18
|
+
createTextView(context) {
|
|
19
|
+
return this.native.createTextView(context);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
_a = Tree;
|
|
23
|
+
(() => {
|
|
24
|
+
_a._tree = new Tree();
|
|
25
|
+
})();
|
|
26
|
+
export class View extends ViewBase {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this._hasNativeView = false;
|
|
30
|
+
this._inBatch = false;
|
|
31
|
+
const view = Tree.instance.createView(Utils.android.getCurrentActivity() || Utils.android.getApplicationContext());
|
|
32
|
+
this._hasNativeView = true;
|
|
33
|
+
this._view = view;
|
|
32
34
|
}
|
|
33
|
-
get
|
|
34
|
-
if (this
|
|
35
|
-
this.
|
|
35
|
+
get _styleHelper() {
|
|
36
|
+
if (this[style_] === undefined) {
|
|
37
|
+
this[style_] = Style.fromView(this, this._view);
|
|
36
38
|
}
|
|
37
|
-
return this
|
|
39
|
+
return this[style_];
|
|
38
40
|
}
|
|
39
41
|
createNativeView() {
|
|
40
|
-
|
|
41
|
-
this._hasNativeView = true;
|
|
42
|
-
return view;
|
|
42
|
+
return this._view;
|
|
43
43
|
}
|
|
44
44
|
disposeNativeView() {
|
|
45
45
|
this._hasNativeView = false;
|
|
46
46
|
super.disposeNativeView();
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
49
|
+
// @ts-ignore
|
|
49
50
|
get android() {
|
|
50
|
-
return this.
|
|
51
|
+
return this._view;
|
|
51
52
|
}
|
|
52
|
-
_addViewToNativeVisualTree(child, atIndex =
|
|
53
|
-
|
|
54
|
-
const nativeView = this.nativeViewProtected;
|
|
53
|
+
_addViewToNativeVisualTree(child, atIndex = -1) {
|
|
54
|
+
const nativeView = this._view;
|
|
55
55
|
child._masonParent = this;
|
|
56
56
|
if (nativeView && child.nativeViewProtected) {
|
|
57
|
-
child
|
|
58
|
-
child
|
|
59
|
-
nativeView.addView(child.nativeViewProtected, -1);
|
|
57
|
+
child._hasNativeView = true;
|
|
58
|
+
child._isMasonChild = true;
|
|
59
|
+
nativeView.addView(child.nativeViewProtected, (atIndex ?? -1));
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
62
62
|
return false;
|
|
@@ -68,46 +68,73 @@ export class TSCView extends TSCViewBase {
|
|
|
68
68
|
super._removeViewFromNativeVisualTree(view);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const view =
|
|
77
|
-
this.
|
|
78
|
-
return view;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
Grid = __decorate([
|
|
82
|
-
CSSType('Grid')
|
|
83
|
-
], Grid);
|
|
84
|
-
export { Grid };
|
|
85
|
-
let Flex = class Flex extends TSCView {
|
|
86
|
-
createNativeView() {
|
|
87
|
-
const view = org.nativescript.mason.masonkit.View.createFlexView(this._context);
|
|
71
|
+
export class Text extends TextBase {
|
|
72
|
+
constructor() {
|
|
73
|
+
super();
|
|
74
|
+
this._hasNativeView = false;
|
|
75
|
+
this._inBatch = false;
|
|
76
|
+
const view = Tree.instance.createTextView(Utils.android.getCurrentActivity() || Utils.android.getApplicationContext());
|
|
77
|
+
this._view = view;
|
|
88
78
|
this._hasNativeView = true;
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
79
|
+
this[style_] = Style.fromView(this, view, true);
|
|
80
|
+
}
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
get android() {
|
|
84
|
+
return this._view;
|
|
85
|
+
}
|
|
86
|
+
get _styleHelper() {
|
|
87
|
+
if (this[style_] === undefined) {
|
|
88
|
+
this[style_] = Style.fromView(this, this._view);
|
|
89
|
+
}
|
|
90
|
+
return this[style_];
|
|
91
|
+
}
|
|
97
92
|
createNativeView() {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
]
|
|
112
|
-
|
|
93
|
+
return this._view;
|
|
94
|
+
}
|
|
95
|
+
[textProperty.setNative](value) {
|
|
96
|
+
const nativeView = this._view;
|
|
97
|
+
if (nativeView) {
|
|
98
|
+
nativeView.updateText(value);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
[colorProperty.setNative](value) {
|
|
102
|
+
if (value instanceof Color) {
|
|
103
|
+
this[style_].color = value.android;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
[backgroundColorProperty.setNative](value) {
|
|
107
|
+
if (typeof value === 'number') {
|
|
108
|
+
this[style_].backgroundColor = value;
|
|
109
|
+
}
|
|
110
|
+
else if (value instanceof Color) {
|
|
111
|
+
this[style_].backgroundColor = value.android;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
[textWrapProperty.setNative](value) {
|
|
115
|
+
switch (value) {
|
|
116
|
+
case 'false':
|
|
117
|
+
case 'nowrap':
|
|
118
|
+
this[style_].textWrap = 0 /* TextWrap.NoWrap */;
|
|
119
|
+
break;
|
|
120
|
+
case 'true':
|
|
121
|
+
case 'wrap':
|
|
122
|
+
this[style_].textWrap = 1 /* TextWrap.Wrap */;
|
|
123
|
+
break;
|
|
124
|
+
case 'balance':
|
|
125
|
+
this[style_].textWrap = 2 /* TextWrap.Balance */;
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
_addViewToNativeVisualTree(child, atIndex = -1) {
|
|
130
|
+
const nativeView = this._view;
|
|
131
|
+
if (nativeView && child.nativeViewProtected) {
|
|
132
|
+
child._hasNativeView = true;
|
|
133
|
+
child._isMasonChild = true;
|
|
134
|
+
nativeView.addView(child.nativeViewProtected, atIndex ?? -1);
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
113
140
|
//# sourceMappingURL=index.android.js.map
|
package/index.android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAc,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAClG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,OAAO,IAAI;IAGf;QACE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;IACjE,CAAC;IAMD,MAAM,KAAK,QAAQ;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,UAAU,CAAC,OAAO;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAED,cAAc,CAAC,OAAO;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;;AAnBC;IACE,EAAI,CAAC,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;AAC1B,CAAC,GAAA,CAAA;AAmBH,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAKhC;QACE,KAAK,EAAE,CAAC;QAHV,mBAAc,GAAG,KAAK,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC;QAGf,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,KAAK,CAAC,OAAO,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|
1
1
|
import { CoreTypes } from '@nativescript/core';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { TextBase, ViewBase } from './common';
|
|
4
4
|
import { LengthPercentage } from '@nativescript/core/css/parser';
|
|
5
5
|
|
|
6
|
-
export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit;
|
|
6
|
+
export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit;
|
|
7
7
|
|
|
8
|
-
export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | 'auto';
|
|
8
|
+
export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | 'auto';
|
|
9
9
|
|
|
10
10
|
export type SizeLength = { width: LengthType; height: LengthType };
|
|
11
11
|
|
|
@@ -35,21 +35,19 @@ export type JustifySelf = AlignSelf;
|
|
|
35
35
|
|
|
36
36
|
export type JustifyContent = AlignContent;
|
|
37
37
|
|
|
38
|
-
export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense';
|
|
38
|
+
export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense' | 'dense';
|
|
39
39
|
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
export class TSCView extends TSCViewBase {
|
|
40
|
+
export class View extends ViewBase {
|
|
43
41
|
display: Display;
|
|
44
42
|
position: Position;
|
|
45
43
|
flexDirection: FlexDirection;
|
|
46
44
|
flexWrap: FlexWrap;
|
|
47
45
|
flex: string | 'auto' | 'none' | number | 'initial';
|
|
48
46
|
flexFlow: string;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
51
|
-
maxWidth:
|
|
52
|
-
maxHeight:
|
|
47
|
+
width: LengthAuto;
|
|
48
|
+
height: LengthAuto;
|
|
49
|
+
maxWidth: LengthAuto;
|
|
50
|
+
maxHeight: LengthAuto;
|
|
53
51
|
left: Length;
|
|
54
52
|
right: Length;
|
|
55
53
|
top: Length;
|
|
@@ -61,7 +59,7 @@ export class TSCView extends TSCViewBase {
|
|
|
61
59
|
aspectRatio: number;
|
|
62
60
|
flexBasis: Length;
|
|
63
61
|
alignItems: AlignItems;
|
|
64
|
-
alignSelf:
|
|
62
|
+
alignSelf: AlignSelf;
|
|
65
63
|
alignContent: AlignContent;
|
|
66
64
|
justifyItems: JustifyItems;
|
|
67
65
|
justifySelf: JustifySelf;
|
|
@@ -86,13 +84,52 @@ export class TSCView extends TSCViewBase {
|
|
|
86
84
|
scrollBarWidth: number | CoreTypes.LengthType;
|
|
87
85
|
}
|
|
88
86
|
|
|
89
|
-
export class
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
export class Text extends TextBase {
|
|
88
|
+
display: Display;
|
|
89
|
+
position: Position;
|
|
90
|
+
flexDirection: FlexDirection;
|
|
91
|
+
flexWrap: FlexWrap;
|
|
92
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
93
|
+
flexFlow: string;
|
|
94
|
+
width: LengthAuto;
|
|
95
|
+
height: LengthAuto;
|
|
96
|
+
maxWidth: LengthAuto;
|
|
97
|
+
maxHeight: LengthAuto;
|
|
98
|
+
left: Length;
|
|
99
|
+
right: Length;
|
|
100
|
+
top: Length;
|
|
101
|
+
bottom: Length;
|
|
102
|
+
gridGap: Gap;
|
|
103
|
+
gap: Gap;
|
|
104
|
+
rowGap: Length;
|
|
105
|
+
columnGap: Length;
|
|
106
|
+
aspectRatio: number;
|
|
107
|
+
flexBasis: Length;
|
|
108
|
+
alignItems: AlignItems;
|
|
109
|
+
alignSelf: AlignSelf;
|
|
110
|
+
alignContent: AlignContent;
|
|
111
|
+
justifyItems: JustifyItems;
|
|
112
|
+
justifySelf: JustifySelf;
|
|
113
|
+
justifyContent: JustifyContent;
|
|
114
|
+
gridAutoRows: string;
|
|
115
|
+
gridAutoColumns: string;
|
|
116
|
+
gridAutoFlow: GridAutoFlow;
|
|
117
|
+
gridRowGap: Gap;
|
|
118
|
+
gridColumnGap: Gap;
|
|
119
|
+
gridArea: string;
|
|
120
|
+
gridColumn: string;
|
|
121
|
+
gridColumnStart: string;
|
|
122
|
+
gridColumnEnd: string;
|
|
123
|
+
gridRow: string;
|
|
124
|
+
gridRowStart: string;
|
|
125
|
+
gridRowEnd: string;
|
|
126
|
+
gridTemplateRows: string;
|
|
127
|
+
gridTemplateColumns: string;
|
|
128
|
+
overflow: Overflow;
|
|
129
|
+
overflowX: Overflow;
|
|
130
|
+
overflowY: Overflow;
|
|
131
|
+
scrollBarWidth: number | CoreTypes.LengthType;
|
|
132
|
+
}
|
|
96
133
|
|
|
97
134
|
declare module '@nativescript/core/ui/styling/style' {
|
|
98
135
|
interface Style {
|
package/index.ios.d.ts
CHANGED
|
@@ -1,30 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
get
|
|
8
|
-
get
|
|
9
|
-
|
|
1
|
+
import { Color } from '@nativescript/core';
|
|
2
|
+
import { MasonChild, style_, TextBase, ViewBase } from './common';
|
|
3
|
+
export declare class Tree {
|
|
4
|
+
_base: NSCMason;
|
|
5
|
+
private static _tree;
|
|
6
|
+
constructor();
|
|
7
|
+
static get instance(): Tree;
|
|
8
|
+
get native(): NSCMason;
|
|
9
|
+
createView(): MasonUIView;
|
|
10
|
+
createTextView(): MasonText;
|
|
11
|
+
}
|
|
12
|
+
export declare class View extends ViewBase {
|
|
13
|
+
[style_]: any;
|
|
14
|
+
private _view;
|
|
15
|
+
constructor();
|
|
16
|
+
get _styleHelper(): any;
|
|
10
17
|
_hasNativeView: boolean;
|
|
11
|
-
|
|
18
|
+
_inBatch: boolean;
|
|
19
|
+
createNativeView(): MasonUIView;
|
|
12
20
|
disposeNativeView(): void;
|
|
13
|
-
get ios():
|
|
21
|
+
get ios(): MasonUIView;
|
|
14
22
|
onLayout(left: number, top: number, right: number, bottom: number): void;
|
|
15
23
|
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
16
|
-
|
|
17
|
-
_addViewToNativeVisualTree(
|
|
18
|
-
_removeViewFromNativeVisualTree(view:
|
|
19
|
-
}
|
|
20
|
-
export declare class Grid extends TSCView {
|
|
21
|
-
createNativeView(): any;
|
|
22
|
-
}
|
|
23
|
-
export declare class Flex extends TSCView {
|
|
24
|
-
createNativeView(): any;
|
|
25
|
-
}
|
|
26
|
-
export declare class Box extends TSCView {
|
|
27
|
-
createNativeView(): any;
|
|
24
|
+
_setNativeViewFrame(nativeView: any, frame: CGRect): void;
|
|
25
|
+
_addViewToNativeVisualTree(child: MasonChild, atIndex?: number): boolean;
|
|
26
|
+
_removeViewFromNativeVisualTree(view: MasonChild): void;
|
|
28
27
|
}
|
|
29
|
-
export declare class
|
|
28
|
+
export declare class Text extends TextBase {
|
|
29
|
+
[style_]: any;
|
|
30
|
+
_hasNativeView: boolean;
|
|
31
|
+
_inBatch: boolean;
|
|
32
|
+
_isText: boolean;
|
|
33
|
+
private _view;
|
|
34
|
+
constructor();
|
|
35
|
+
get ios(): MasonText;
|
|
36
|
+
get _styleHelper(): any;
|
|
37
|
+
createNativeView(): MasonText;
|
|
38
|
+
get text(): string;
|
|
39
|
+
set text(value: string);
|
|
40
|
+
set backgroundColor(value: Color | number);
|
|
41
|
+
get backgroundColor(): Color | number;
|
|
42
|
+
onLayout(left: number, top: number, right: number, bottom: number): void;
|
|
43
|
+
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
44
|
+
_addViewToNativeVisualTree(child: MasonChild & {
|
|
45
|
+
text?: string;
|
|
46
|
+
}, atIndex?: number): boolean;
|
|
47
|
+
_setNativeViewFrame(nativeView: any, frame: CGRect): void;
|
|
30
48
|
}
|