@octane-xplat/lottie 0.0.1 → 0.10.0
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/README.md +56 -2
- package/dist/native/cx.mobile.js +11 -0
- package/dist/native/escape-props.js +39 -0
- package/dist/native/index.js +183 -0
- package/dist/native/layout-child.js +38 -0
- package/dist/native/octane-client-build.json +8 -0
- package/dist/native/vendor/ui-lottie/index.android.js +286 -0
- package/dist/native/vendor/ui-lottie/index.ios.js +214 -0
- package/dist/native/vendor/ui-lottie/src/lottie/index.common.js +50 -0
- package/dist/native/vendor/ui-lottie/src/lottie/utils.js +6 -0
- package/dist/web/escape-props.web.js +17 -0
- package/dist/web/index.js +346 -0
- package/dist/web/layout-child.web.js +47 -0
- package/dist/web/octane-client-build.json +8 -0
- package/package.json +104 -11
- package/platforms/android/include.gradle +7 -0
- package/platforms/android/java/com/nativescript/lottie/LottieAnimationView.java +92 -0
- package/platforms/android/lottie.aar +0 -0
- package/platforms/android/native-api-usage.json +16 -0
- package/platforms/ios/Podfile +5 -0
- package/platforms/macos/LICENSE-EpoxyCore-Apache-2.0.txt +201 -0
- package/platforms/macos/LICENSE-LRUCache-MIT.txt +22 -0
- package/platforms/macos/LICENSE-Lottie-Apache-2.0.txt +201 -0
- package/platforms/macos/LICENSE-ZIPFoundation-MIT.txt +21 -0
- package/platforms/macos/UPSTREAM.md +13 -0
- package/platforms/macos/resources/PrivacyInfo.xcprivacy +23 -0
- package/platforms/macos/resources/THIRD-PARTY-NOTICES.txt +10 -0
- package/platforms/macos/src/XplatAppKitLottie.swift +246 -0
- package/platforms/macos/src/vendor/Lottie/PrivacyInfo.xcprivacy +23 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/CAAnimation+TimingConfiguration.swift +81 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/CALayer+addAnimation.swift +476 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/CombinedShapeAnimation.swift +92 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/CustomPathAnimation.swift +89 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/DropShadowAnimation.swift +179 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/EllipseAnimation.swift +53 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/GradientAnimations.swift +287 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/LayerProperty.swift +440 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/OpacityAnimation.swift +53 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/RectangleAnimation.swift +59 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/ShapeAnimation.swift +246 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/StarAnimation.swift +119 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/StrokeAnimation.swift +96 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/TransformAnimations.swift +380 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Animations/VisibilityAnimation.swift +63 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/CompatibilityTracker.swift +129 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/CoreAnimationLayer.swift +645 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Extensions/CALayer+fillBounds.swift +35 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Extensions/KeyframeGroup+exactlyOneKeyframe.swift +28 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Extensions/Keyframes+combined.swift +345 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Extensions/Keyframes+timeRemapping.swift +46 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/AnimationLayer.swift +169 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/BaseAnimationLayer.swift +46 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/BaseCompositionLayer.swift +120 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/CALayer+setupLayerHierarchy.swift +169 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/GradientRenderLayer.swift +101 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/ImageLayer.swift +81 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/InfiniteOpaqueAnimationLayer.swift +57 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift +59 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/MaskCompositionLayer.swift +139 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/PreCompLayer.swift +107 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/RepeaterLayer.swift +113 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/ShapeItemLayer.swift +346 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/ShapeLayer.swift +569 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/SolidLayer.swift +66 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/TextLayer.swift +157 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/Layers/TransformLayer.swift +13 -0
- package/platforms/macos/src/vendor/Lottie/Private/CoreAnimation/ValueProviderStore.swift +157 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Diffing/Collection+Diff.swift +267 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Diffing/Diffable.swift +19 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Diffing/DiffableSection.swift +16 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Diffing/IndexChangeset.swift +187 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Diffing/SectionedChangeset.swift +22 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Logging/EpoxyLogger.swift +102 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/CallbackContextEpoxyModeled.swift +8 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelArrayBuilder.swift +48 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelProperty.swift +158 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelStorage.swift +88 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModeled.swift +54 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Internal/AnyEpoxyModelProperty.swift +31 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Internal/ClassReference.swift +39 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/AnimatedProviding.swift +10 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DataIDProviding.swift +58 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidDisplayProviding.swift +41 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidEndDisplayingProviding.swift +42 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidSelectProviding.swift +36 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ErasedContentProviding.swift +49 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/MakeViewProviding.swift +61 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/SetBehaviorsProviding.swift +38 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/SetContentProviding.swift +38 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/StyleIDProviding.swift +38 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/TraitCollectionProviding.swift +14 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ViewDifferentiatorProviding.swift +34 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ViewProviding.swift +13 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/WillDisplayProviding.swift +41 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Model/ViewEpoxyModeled.swift +10 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/README.md +30 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIIntrinsicContentSizeInvalidator.swift +34 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUILayoutMargins.swift +38 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxyableView+SwiftUIView.swift +165 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/MeasuringViewRepresentable.swift +127 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/SwiftUIMeasurementContainer.swift +468 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/SwiftUIView.swift +146 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIView+SwiftUIView.swift +39 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIViewConfiguringSwiftUIView.swift +41 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Views/BehaviorsConfigurableView.swift +45 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Views/ContentConfigurableView.swift +36 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Views/EpoxyableView.swift +5 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Views/StyledView.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/EpoxyCore/Views/ViewType.swift +47 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/LRUCache/LRUCache.swift +257 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/LRUCache/README.md +24 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/README.md +43 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+BackingConfiguration.swift +149 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+Deprecated.swift +23 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+Helpers.swift +361 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+MemoryFile.swift +205 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+Progress.swift +66 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+Reading.swift +160 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+ReadingDeprecated.swift +50 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+Writing.swift +403 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+WritingDeprecated.swift +95 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive+ZIP64.swift +191 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Archive.swift +404 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Data+Compression.swift +632 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Data+CompressionDeprecated.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Data+Serialization.swift +146 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Date+ZIP.swift +101 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Entry+Serialization.swift +191 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Entry+ZIP64.swift +170 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/Entry.swift +669 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/FileManager+ZIP.swift +405 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/FileManager+ZIPDeprecated.swift +28 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/README.md +24 -0
- package/platforms/macos/src/vendor/Lottie/Private/EmbeddedLibraries/ZipFoundation/URL+ZIP.swift +34 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift +177 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift +54 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift +191 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/NullCompositionLayer.swift +28 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift +137 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/ShapeCompositionLayer.swift +60 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift +57 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift +247 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift +321 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift +56 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/CompositionLayersInitializer.swift +103 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/CoreTextRenderLayer.swift +424 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift +55 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift +39 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift +52 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift +38 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift +149 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift +146 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/NodeProperty.swift +62 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/AnyNodeProperty.swift +53 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/AnyValueContainer.swift +26 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift +23 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/ValueContainer.swift +47 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/ValueProviders/GroupInterpolator.swift +39 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/NodeProperties/ValueProviders/SingleValueProvider.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/LayerEffectNodes/DropShadowNode.swift +102 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/LayerEffectNodes/LayerEffectNode.swift +25 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/ModifierNodes/RoundedCornersNode.swift +85 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/ModifierNodes/TrimPathNode.swift +281 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift +74 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift +47 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift +89 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift +69 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift +253 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift +64 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift +158 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift +165 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/EllipseNode.swift +143 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/PolygonNode.swift +173 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/RectNode.swift +238 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/ShapeNode.swift +73 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/StarNode.swift +224 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift +162 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/FillNode.swift +88 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/GradientFillNode.swift +103 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/GradientStrokeNode.swift +149 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/StrokeNode.swift +179 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift +345 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift +197 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift +20 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift +60 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift +78 -0
- package/platforms/macos/src/vendor/Lottie/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift +98 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Assets/Asset.swift +51 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Assets/AssetLibrary.swift +75 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Assets/ImageAsset.swift +141 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Assets/PrecompAsset.swift +47 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/DictionaryInitializable.swift +73 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/DotLottie/DotLottieAnimation.swift +57 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/DotLottie/DotLottieImageProvider.swift +89 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/DotLottie/DotLottieManifest.swift +42 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/DotLottie/DotLottieUtils.swift +71 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Extensions/Bundle.swift +58 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift +71 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Keyframes/KeyframeData.swift +111 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Keyframes/KeyframeGroup.swift +265 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerEffects/DropShadowEffect.swift +52 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift +45 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerEffects/EffectValues/EffectValue.swift +98 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift +45 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerEffects/LayerEffect.swift +103 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerStyles/DropShadowStyle.swift +79 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/LayerStyles/LayerStyle.swift +85 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/ImageLayerModel.swift +49 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/LayerModel.swift +266 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/PreCompLayerModel.swift +74 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/ShapeLayerModel.swift +50 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/SolidLayerModel.swift +63 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Layers/TextLayerModel.swift +65 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Objects/DashPattern.swift +42 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Objects/Marker.swift +35 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Objects/Mask.swift +80 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Objects/Transform.swift +261 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Ellipse.swift +79 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Fill.swift +79 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/GradientFill.swift +142 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/GradientStroke.swift +244 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Group.swift +55 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Merge.swift +63 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Rectangle.swift +79 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Repeater.swift +181 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/RoundedCorners.swift +53 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Shape.swift +63 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/ShapeItem.swift +171 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/ShapeTransform.swift +202 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Star.swift +136 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Stroke.swift +144 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/ShapeItems/Trim.swift +90 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Text/Font.swift +67 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Text/Glyph.swift +94 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Text/TextAnimator.swift +240 -0
- package/platforms/macos/src/vendor/Lottie/Private/Model/Text/TextDocument.swift +142 -0
- package/platforms/macos/src/vendor/Lottie/Private/RootAnimationLayer.swift +54 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Debugging/AnimatorNodeDebugging.swift +23 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Debugging/LayerDebugging.swift +231 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Debugging/TestHelpers.swift +10 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/AnimationKeypathExtension.swift +303 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/BlendMode+Filter.swift +31 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/CGColor+RGB.swift +45 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/CGFloatExtensions.swift +152 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/DataExtension.swift +33 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/MathKit.swift +454 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Extensions/StringExtensions.swift +44 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Helpers/AnimationContext.swift +95 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Helpers/AnyEquatable.swift +23 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Helpers/Binding+Map.swift +19 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Helpers/View+ValueChanged.swift +35 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Interpolatable/InterpolatableExtensions.swift +143 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Interpolatable/KeyframeExtensions.swift +47 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Interpolatable/KeyframeInterpolator.swift +250 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/LottieAnimationSource.swift +51 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/BezierPath.swift +509 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/BezierPathRoundExtension.swift +163 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/CGPointExtension.swift +35 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/ColorExtension.swift +101 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/CompoundBezierPath.swift +169 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/CurveVertex.swift +190 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/PathElement.swift +78 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/UnitBezier.swift +119 -0
- package/platforms/macos/src/vendor/Lottie/Private/Utility/Primitives/VectorsExtensions.swift +368 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieAnimation.swift +179 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieAnimationHelpers.swift +317 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieAnimationLayer.swift +1582 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieAnimationView.swift +1090 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieAnimationViewInitializers.swift +226 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottiePlaybackMode.swift +266 -0
- package/platforms/macos/src/vendor/Lottie/Public/Animation/LottieView.swift +643 -0
- package/platforms/macos/src/vendor/Lottie/Public/AnimationCache/AnimationCacheProvider.swift +21 -0
- package/platforms/macos/src/vendor/Lottie/Public/AnimationCache/DefaultAnimationCache.swift +67 -0
- package/platforms/macos/src/vendor/Lottie/Public/AnimationCache/LRUAnimationCache.swift +11 -0
- package/platforms/macos/src/vendor/Lottie/Public/AnimationCache/LottieAnimationCache.swift +15 -0
- package/platforms/macos/src/vendor/Lottie/Public/Configuration/DecodingStrategy.swift +15 -0
- package/platforms/macos/src/vendor/Lottie/Public/Configuration/LottieConfiguration.swift +54 -0
- package/platforms/macos/src/vendor/Lottie/Public/Configuration/LottieURLSession.swift +31 -0
- package/platforms/macos/src/vendor/Lottie/Public/Configuration/ReducedMotionOption.swift +128 -0
- package/platforms/macos/src/vendor/Lottie/Public/Configuration/RenderingEngineOption.swift +117 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/AnimatedButton.swift +128 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/AnimatedControl.swift +248 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/AnimatedSwitch.swift +271 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/LottieButton.swift +119 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/LottieSwitch.swift +144 -0
- package/platforms/macos/src/vendor/Lottie/Public/Controls/LottieViewType.swift +79 -0
- package/platforms/macos/src/vendor/Lottie/Public/DotLottie/Cache/DotLottieCache.swift +66 -0
- package/platforms/macos/src/vendor/Lottie/Public/DotLottie/Cache/DotLottieCacheProvider.swift +21 -0
- package/platforms/macos/src/vendor/Lottie/Public/DotLottie/DotLottieConfiguration.swift +72 -0
- package/platforms/macos/src/vendor/Lottie/Public/DotLottie/DotLottieFile.swift +186 -0
- package/platforms/macos/src/vendor/Lottie/Public/DotLottie/DotLottieFileHelpers.swift +386 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/AnimationKeypath.swift +57 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/AnyValueProvider.swift +132 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/ValueProviders/ColorValueProvider.swift +96 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/ValueProviders/FloatValueProvider.swift +81 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/ValueProviders/GradientValueProvider.swift +138 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/ValueProviders/PointValueProvider.swift +81 -0
- package/platforms/macos/src/vendor/Lottie/Public/DynamicProperties/ValueProviders/SizeValueProvider.swift +81 -0
- package/platforms/macos/src/vendor/Lottie/Public/FontProvider/AnimationFontProvider.swift +41 -0
- package/platforms/macos/src/vendor/Lottie/Public/ImageProvider/AnimationImageProvider.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Public/Keyframes/Interpolatable.swift +285 -0
- package/platforms/macos/src/vendor/Lottie/Public/Keyframes/Keyframe.swift +98 -0
- package/platforms/macos/src/vendor/Lottie/Public/Logging/LottieLogger.swift +138 -0
- package/platforms/macos/src/vendor/Lottie/Public/Primitives/AnimationTime.swift +15 -0
- package/platforms/macos/src/vendor/Lottie/Public/Primitives/LottieColor.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Public/Primitives/Vectors.swift +36 -0
- package/platforms/macos/src/vendor/Lottie/Public/TextProvider/AnimationTextProvider.swift +135 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/AnimationSubview.swift +19 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/BundleImageProvider.swift +98 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/Compatibility/CompatibleAnimationKeypath.swift +33 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/Compatibility/CompatibleAnimationView.swift +567 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/Compatibility/CompatibleFontProvider.swift +41 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/Compatibility/CompatibleImageProvider.swift +43 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/FilepathImageProvider.swift +78 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/LottieAnimationViewBase.swift +85 -0
- package/platforms/macos/src/vendor/Lottie/Public/iOS/UIColorExtension.swift +23 -0
- package/platforms/macos/src/vendor/Lottie/Public/macOS/AnimationSubview.macOS.swift +19 -0
- package/platforms/macos/src/vendor/Lottie/Public/macOS/BundleImageProvider.macOS.swift +90 -0
- package/platforms/macos/src/vendor/Lottie/Public/macOS/FilepathImageProvider.macOS.swift +86 -0
- package/platforms/macos/src/vendor/Lottie/Public/macOS/LottieAnimationViewBase.macOS.swift +102 -0
- package/src/Lottie.macos.tsrx +129 -0
- package/src/Lottie.tsrx +162 -0
- package/src/Lottie.web.tsrx +152 -0
- package/src/cx.mobile.ts +8 -0
- package/src/escape-props.ts +65 -0
- package/src/escape-props.web.ts +25 -0
- package/src/index.macos.ts +2 -0
- package/src/index.ts +2 -0
- package/src/index.web.ts +2 -0
- package/src/layout-child.ts +57 -0
- package/src/layout-child.web.ts +108 -0
- package/src/native-elements.d.ts +8 -0
- package/src/props.ts +133 -0
- package/src/references.d.ts +3 -0
- package/src/vendor/ui-lottie/LICENSE.md +21 -0
- package/src/vendor/ui-lottie/src/lottie/index.android.ts +447 -0
- package/src/vendor/ui-lottie/src/lottie/index.common.ts +84 -0
- package/src/vendor/ui-lottie/src/lottie/index.d.ts +133 -0
- package/src/vendor/ui-lottie/src/lottie/index.ios.ts +345 -0
- package/src/vendor/ui-lottie/src/lottie/typings/android.d.ts +4149 -0
- package/src/vendor/ui-lottie/src/lottie/typings/android.nativescript.d.ts +12 -0
- package/src/vendor/ui-lottie/src/lottie/typings/dotlottie.ios.d.ts +14 -0
- package/src/vendor/ui-lottie/src/lottie/typings/ios.d.ts +384 -0
- package/src/vendor/ui-lottie/src/lottie/utils.ts +9 -0
- package/types/generated/.tsrx-typegen-manifest.json +18 -0
- package/types/generated/Lottie.d.ts +7 -0
- package/types/generated/Lottie.web.d.ts +7 -0
- package/types/generated/cx.mobile.d.ts +6 -0
- package/types/generated/escape-props.d.ts +15 -0
- package/types/generated/escape-props.web.d.ts +5 -0
- package/types/generated/index.d.ts +2 -0
- package/types/generated/index.web.d.ts +2 -0
- package/types/generated/layout-child.d.ts +6 -0
- package/types/generated/layout-child.web.d.ts +15 -0
- package/types/generated/props.d.ts +110 -0
- package/types/generated/vendor/ui-lottie/src/lottie/index.common.d.ts +30 -0
- package/types/generated/vendor/ui-lottie/src/lottie/index.ios.d.ts +35 -0
- package/types/generated/vendor/ui-lottie/src/lottie/utils.d.ts +1 -0
- package/index.d.ts +0 -1
- package/index.js +0 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
declare module com {
|
|
3
|
+
export module nativescript {
|
|
4
|
+
export module lottie {
|
|
5
|
+
export class LottieAnimationView extends com.airbnb.lottie.LottieAnimationView {
|
|
6
|
+
public static class: java.lang.Class<com.nativescript.lottie.LottieAnimationView>;
|
|
7
|
+
public constructor(param0: globalAndroid.content.Context);
|
|
8
|
+
public onMeasure(param0: number, param1: number): void;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
declare class DotLottie extends NSObject {
|
|
3
|
+
|
|
4
|
+
static alloc(): DotLottie; // inherited from NSObject
|
|
5
|
+
|
|
6
|
+
static new(): DotLottie; // inherited from NSObject
|
|
7
|
+
|
|
8
|
+
static objcLoadWithNameShouldCacheCompletion(name: string, shouldCache: boolean, completion: (p1: Animation) => void): void;
|
|
9
|
+
static objcLoadFromShouldCacheCompletion(url: NSURL, shouldCache: boolean, completion: (p1: Animation) => void): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare let dotLottieVersionNumber: number;
|
|
13
|
+
|
|
14
|
+
declare let dotLottieVersionString: interop.Reference<number>;
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
2
|
+
declare class AnimatedButton extends AnimatedControl {
|
|
3
|
+
static alloc(): AnimatedButton; // inherited from NSObject
|
|
4
|
+
|
|
5
|
+
static appearance(): AnimatedButton; // inherited from UIAppearance
|
|
6
|
+
|
|
7
|
+
static appearanceForTraitCollection(trait: UITraitCollection): AnimatedButton; // inherited from UIAppearance
|
|
8
|
+
|
|
9
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): AnimatedButton; // inherited from UIAppearance
|
|
10
|
+
|
|
11
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
12
|
+
trait: UITraitCollection,
|
|
13
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
14
|
+
): AnimatedButton; // inherited from UIAppearance
|
|
15
|
+
|
|
16
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): AnimatedButton; // inherited from UIAppearance
|
|
17
|
+
|
|
18
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
19
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
20
|
+
): AnimatedButton; // inherited from UIAppearance
|
|
21
|
+
|
|
22
|
+
static new(): AnimatedButton; // inherited from NSObject
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class AnimatedControl extends UIControl {
|
|
26
|
+
static alloc(): AnimatedControl; // inherited from NSObject
|
|
27
|
+
|
|
28
|
+
static appearance(): AnimatedControl; // inherited from UIAppearance
|
|
29
|
+
|
|
30
|
+
static appearanceForTraitCollection(trait: UITraitCollection): AnimatedControl; // inherited from UIAppearance
|
|
31
|
+
|
|
32
|
+
static appearanceForTraitCollectionWhenContainedIn(
|
|
33
|
+
trait: UITraitCollection,
|
|
34
|
+
ContainerClass: typeof NSObject
|
|
35
|
+
): AnimatedControl; // inherited from UIAppearance
|
|
36
|
+
|
|
37
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
38
|
+
trait: UITraitCollection,
|
|
39
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
40
|
+
): AnimatedControl; // inherited from UIAppearance
|
|
41
|
+
|
|
42
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): AnimatedControl; // inherited from UIAppearance
|
|
43
|
+
|
|
44
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
45
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
46
|
+
): AnimatedControl; // inherited from UIAppearance
|
|
47
|
+
|
|
48
|
+
static new(): AnimatedControl; // inherited from NSObject
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class AnimatedSwitch extends AnimatedControl {
|
|
52
|
+
static alloc(): AnimatedSwitch; // inherited from NSObject
|
|
53
|
+
|
|
54
|
+
static appearance(): AnimatedSwitch; // inherited from UIAppearance
|
|
55
|
+
|
|
56
|
+
static appearanceForTraitCollection(trait: UITraitCollection): AnimatedSwitch; // inherited from UIAppearance
|
|
57
|
+
|
|
58
|
+
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): AnimatedSwitch; // inherited from UIAppearance
|
|
59
|
+
|
|
60
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
61
|
+
trait: UITraitCollection,
|
|
62
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
63
|
+
): AnimatedSwitch; // inherited from UIAppearance
|
|
64
|
+
|
|
65
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): AnimatedSwitch; // inherited from UIAppearance
|
|
66
|
+
|
|
67
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
68
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
69
|
+
): AnimatedSwitch; // inherited from UIAppearance
|
|
70
|
+
|
|
71
|
+
static new(): AnimatedSwitch; // inherited from NSObject
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class AnimationSubview extends UIView {
|
|
75
|
+
static alloc(): AnimationSubview; // inherited from NSObject
|
|
76
|
+
|
|
77
|
+
static appearance(): AnimationSubview; // inherited from UIAppearance
|
|
78
|
+
|
|
79
|
+
static appearanceForTraitCollection(trait: UITraitCollection): AnimationSubview; // inherited from UIAppearance
|
|
80
|
+
|
|
81
|
+
static appearanceForTraitCollectionWhenContainedIn(
|
|
82
|
+
trait: UITraitCollection,
|
|
83
|
+
ContainerClass: typeof NSObject
|
|
84
|
+
): AnimationSubview; // inherited from UIAppearance
|
|
85
|
+
|
|
86
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
87
|
+
trait: UITraitCollection,
|
|
88
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
89
|
+
): AnimationSubview; // inherited from UIAppearance
|
|
90
|
+
|
|
91
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): AnimationSubview; // inherited from UIAppearance
|
|
92
|
+
|
|
93
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
94
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
95
|
+
): AnimationSubview; // inherited from UIAppearance
|
|
96
|
+
|
|
97
|
+
static new(): AnimationSubview; // inherited from NSObject
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class CompatibleAnimation extends NSObject {
|
|
101
|
+
static alloc(): CompatibleAnimation; // inherited from NSObject
|
|
102
|
+
|
|
103
|
+
static new(): CompatibleAnimation; // inherited from NSObject
|
|
104
|
+
|
|
105
|
+
constructor(o: { filepath: string });
|
|
106
|
+
|
|
107
|
+
constructor(o: { json: string });
|
|
108
|
+
|
|
109
|
+
constructor(o: { name: string; bundle: NSBundle });
|
|
110
|
+
|
|
111
|
+
constructor(o: { name: string; subdirectory: string; bundle: NSBundle });
|
|
112
|
+
|
|
113
|
+
initWithFilepath(filepath: string): this;
|
|
114
|
+
|
|
115
|
+
initWithJson(json: string): this;
|
|
116
|
+
|
|
117
|
+
initWithNameBundle(name: string, bundle: NSBundle): this;
|
|
118
|
+
|
|
119
|
+
initWithNameSubdirectoryBundle(name: string, subdirectory: string, bundle: NSBundle): this;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class CompatibleAnimationKeypath extends NSObject {
|
|
123
|
+
static alloc(): CompatibleAnimationKeypath; // inherited from NSObject
|
|
124
|
+
|
|
125
|
+
static new(): CompatibleAnimationKeypath; // inherited from NSObject
|
|
126
|
+
|
|
127
|
+
constructor(o: { keypath: string });
|
|
128
|
+
|
|
129
|
+
constructor(o: { keys: NSArray<string> | string[] });
|
|
130
|
+
|
|
131
|
+
initWithKeypath(keypath: string): this;
|
|
132
|
+
|
|
133
|
+
initWithKeys(keys: NSArray<string> | string[]): this;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class CompatibleAnimationView extends UIView {
|
|
137
|
+
static alloc(): CompatibleAnimationView; // inherited from NSObject
|
|
138
|
+
|
|
139
|
+
static appearance(): CompatibleAnimationView; // inherited from UIAppearance
|
|
140
|
+
|
|
141
|
+
static appearanceForTraitCollection(trait: UITraitCollection): CompatibleAnimationView; // inherited from UIAppearance
|
|
142
|
+
|
|
143
|
+
static appearanceForTraitCollectionWhenContainedIn(
|
|
144
|
+
trait: UITraitCollection,
|
|
145
|
+
ContainerClass: typeof NSObject
|
|
146
|
+
): CompatibleAnimationView; // inherited from UIAppearance
|
|
147
|
+
|
|
148
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
149
|
+
trait: UITraitCollection,
|
|
150
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
151
|
+
): CompatibleAnimationView; // inherited from UIAppearance
|
|
152
|
+
|
|
153
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): CompatibleAnimationView; // inherited from UIAppearance
|
|
154
|
+
|
|
155
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
156
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
157
|
+
): CompatibleAnimationView; // inherited from UIAppearance
|
|
158
|
+
|
|
159
|
+
static new(): CompatibleAnimationView; // inherited from NSObject
|
|
160
|
+
|
|
161
|
+
animation: LottieAnimation;
|
|
162
|
+
|
|
163
|
+
readonly animationDuration: number;
|
|
164
|
+
|
|
165
|
+
animationSpeed: number;
|
|
166
|
+
|
|
167
|
+
backgroundMode: CompatibleBackgroundBehavior;
|
|
168
|
+
|
|
169
|
+
compatibleAnimation: CompatibleAnimation;
|
|
170
|
+
|
|
171
|
+
compatibleDictionaryTextProvider: CompatibleDictionaryTextProvider;
|
|
172
|
+
|
|
173
|
+
currentFrame: number;
|
|
174
|
+
|
|
175
|
+
currentProgress: number;
|
|
176
|
+
|
|
177
|
+
currentTime: number;
|
|
178
|
+
|
|
179
|
+
readonly duration: number;
|
|
180
|
+
|
|
181
|
+
readonly isAnimationPlaying: boolean;
|
|
182
|
+
|
|
183
|
+
loopAnimationCount: number;
|
|
184
|
+
|
|
185
|
+
readonly realtimeAnimationFrame: number;
|
|
186
|
+
|
|
187
|
+
readonly realtimeAnimationProgress: number;
|
|
188
|
+
|
|
189
|
+
respectAnimationFrameRate: boolean;
|
|
190
|
+
|
|
191
|
+
shouldRasterizeWhenIdle: boolean;
|
|
192
|
+
|
|
193
|
+
constructor(o: { compatibleAnimation: CompatibleAnimation });
|
|
194
|
+
|
|
195
|
+
constructor(o: {
|
|
196
|
+
compatibleAnimation: CompatibleAnimation;
|
|
197
|
+
compatibleRenderingEngineOption: CompatibleRenderingEngineOption;
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
constructor(o: { data: NSData });
|
|
201
|
+
|
|
202
|
+
constructor(o: { data: NSData; compatibleRenderingEngineOption: CompatibleRenderingEngineOption });
|
|
203
|
+
|
|
204
|
+
constructor(o: { url: NSURL });
|
|
205
|
+
|
|
206
|
+
constructor(o: { url: NSURL; compatibleRenderingEngineOption: CompatibleRenderingEngineOption });
|
|
207
|
+
|
|
208
|
+
addSubviewForLayerAt(subview: AnimationSubview, keypath: CompatibleAnimationKeypath): void;
|
|
209
|
+
|
|
210
|
+
convertWithPointToLayerAt(point: CGPoint, keypath: CompatibleAnimationKeypath): CGPoint;
|
|
211
|
+
|
|
212
|
+
convertWithRectToLayerAt(rect: CGRect, keypath: CompatibleAnimationKeypath): CGRect;
|
|
213
|
+
|
|
214
|
+
durationFrameTimeForMarker(named: string): number;
|
|
215
|
+
|
|
216
|
+
forceDisplayUpdate(): void;
|
|
217
|
+
|
|
218
|
+
frameTimeForMarker(named: string): number;
|
|
219
|
+
|
|
220
|
+
getColorValueForAtFrame(keypath: CompatibleAnimationKeypath, atFrame: number): UIColor;
|
|
221
|
+
|
|
222
|
+
getFloatValueForAtFrame(keypath: CompatibleAnimationKeypath, atFrame: number): number;
|
|
223
|
+
|
|
224
|
+
getValueForAtFrame(keypath: CompatibleAnimationKeypath, atFrame: number): any;
|
|
225
|
+
|
|
226
|
+
initWithCompatibleAnimation(compatibleAnimation: CompatibleAnimation): this;
|
|
227
|
+
|
|
228
|
+
initWithCompatibleAnimationCompatibleRenderingEngineOption(
|
|
229
|
+
compatibleAnimation: CompatibleAnimation,
|
|
230
|
+
compatibleRenderingEngineOption: CompatibleRenderingEngineOption
|
|
231
|
+
): this;
|
|
232
|
+
|
|
233
|
+
initWithData(data: NSData): this;
|
|
234
|
+
|
|
235
|
+
initWithDataCompatibleRenderingEngineOption(
|
|
236
|
+
data: NSData,
|
|
237
|
+
compatibleRenderingEngineOption: CompatibleRenderingEngineOption
|
|
238
|
+
): this;
|
|
239
|
+
|
|
240
|
+
initWithUrl(url: NSURL): this;
|
|
241
|
+
|
|
242
|
+
initWithUrlCompatibleRenderingEngineOption(
|
|
243
|
+
url: NSURL,
|
|
244
|
+
compatibleRenderingEngineOption: CompatibleRenderingEngineOption
|
|
245
|
+
): this;
|
|
246
|
+
|
|
247
|
+
logHierarchyKeypaths(): void;
|
|
248
|
+
|
|
249
|
+
pause(): void;
|
|
250
|
+
|
|
251
|
+
play(): void;
|
|
252
|
+
|
|
253
|
+
playFromFrameToFrameCompletion(fromFrame: number, toFrame: number, completion: (p1: boolean) => void): void;
|
|
254
|
+
|
|
255
|
+
playFromMarkerToMarkerCompletion(fromMarker: string, toMarker: string, completion: (p1: boolean) => void): void;
|
|
256
|
+
|
|
257
|
+
playFromProgressToProgressCompletion(fromProgress: number, toProgress: number, completion: (p1: boolean) => void): void;
|
|
258
|
+
|
|
259
|
+
playWithCompletion(completion: (p1: boolean) => void): void;
|
|
260
|
+
|
|
261
|
+
playWithMarkerCompletion(marker: string, completion: (p1: boolean) => void): void;
|
|
262
|
+
|
|
263
|
+
progressTimeForMarker(named: string): number;
|
|
264
|
+
|
|
265
|
+
reloadImages(): void;
|
|
266
|
+
|
|
267
|
+
setColorValueForKeypath(color: UIColor, keypath: CompatibleAnimationKeypath): void;
|
|
268
|
+
|
|
269
|
+
setFloatValueForKeypath(value: number, keypath: CompatibleAnimationKeypath): void;
|
|
270
|
+
|
|
271
|
+
stop(): void;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare const enum CompatibleBackgroundBehavior {
|
|
275
|
+
Stop = 0,
|
|
276
|
+
|
|
277
|
+
Pause = 1,
|
|
278
|
+
|
|
279
|
+
PauseAndRestore = 2,
|
|
280
|
+
|
|
281
|
+
ForceFinish = 3,
|
|
282
|
+
|
|
283
|
+
ContinuePlaying = 4
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class CompatibleDictionaryTextProvider extends NSObject {
|
|
287
|
+
static alloc(): CompatibleDictionaryTextProvider; // inherited from NSObject
|
|
288
|
+
|
|
289
|
+
static new(): CompatibleDictionaryTextProvider; // inherited from NSObject
|
|
290
|
+
|
|
291
|
+
constructor(o: { values: NSDictionary<string, string> });
|
|
292
|
+
|
|
293
|
+
initWithValues(values: NSDictionary<string, string>): this;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
declare class CompatibleLottieLogger extends NSObject {
|
|
297
|
+
static alloc(): CompatibleLottieLogger; // inherited from NSObject
|
|
298
|
+
|
|
299
|
+
static new(): CompatibleLottieLogger; // inherited from NSObject
|
|
300
|
+
|
|
301
|
+
static overrideLottieLogger(): void;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
declare const enum CompatibleRenderingEngineOption {
|
|
305
|
+
Shared = 0,
|
|
306
|
+
|
|
307
|
+
DefaultEngine = 1,
|
|
308
|
+
|
|
309
|
+
Automatic = 2,
|
|
310
|
+
|
|
311
|
+
MainThread = 3,
|
|
312
|
+
|
|
313
|
+
CoreAnimation = 4
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare class LottieAnimation extends NSObject {
|
|
317
|
+
static alloc(): LottieAnimation; // inherited from NSObject
|
|
318
|
+
|
|
319
|
+
static new(): LottieAnimation; // inherited from NSObject
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare class LottieAnimationLayer extends CALayer {
|
|
323
|
+
static alloc(): LottieAnimationLayer; // inherited from NSObject
|
|
324
|
+
|
|
325
|
+
static layer(): LottieAnimationLayer; // inherited from CALayer
|
|
326
|
+
|
|
327
|
+
static new(): LottieAnimationLayer; // inherited from NSObject
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare class LottieAnimationView extends LottieAnimationViewBase {
|
|
331
|
+
static alloc(): LottieAnimationView; // inherited from NSObject
|
|
332
|
+
|
|
333
|
+
static appearance(): LottieAnimationView; // inherited from UIAppearance
|
|
334
|
+
|
|
335
|
+
static appearanceForTraitCollection(trait: UITraitCollection): LottieAnimationView; // inherited from UIAppearance
|
|
336
|
+
|
|
337
|
+
static appearanceForTraitCollectionWhenContainedIn(
|
|
338
|
+
trait: UITraitCollection,
|
|
339
|
+
ContainerClass: typeof NSObject
|
|
340
|
+
): LottieAnimationView; // inherited from UIAppearance
|
|
341
|
+
|
|
342
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
343
|
+
trait: UITraitCollection,
|
|
344
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
345
|
+
): LottieAnimationView; // inherited from UIAppearance
|
|
346
|
+
|
|
347
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): LottieAnimationView; // inherited from UIAppearance
|
|
348
|
+
|
|
349
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
350
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
351
|
+
): LottieAnimationView; // inherited from UIAppearance
|
|
352
|
+
|
|
353
|
+
static new(): LottieAnimationView; // inherited from NSObject
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare class LottieAnimationViewBase extends UIView {
|
|
357
|
+
static alloc(): LottieAnimationViewBase; // inherited from NSObject
|
|
358
|
+
|
|
359
|
+
static appearance(): LottieAnimationViewBase; // inherited from UIAppearance
|
|
360
|
+
|
|
361
|
+
static appearanceForTraitCollection(trait: UITraitCollection): LottieAnimationViewBase; // inherited from UIAppearance
|
|
362
|
+
|
|
363
|
+
static appearanceForTraitCollectionWhenContainedIn(
|
|
364
|
+
trait: UITraitCollection,
|
|
365
|
+
ContainerClass: typeof NSObject
|
|
366
|
+
): LottieAnimationViewBase; // inherited from UIAppearance
|
|
367
|
+
|
|
368
|
+
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
|
369
|
+
trait: UITraitCollection,
|
|
370
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
371
|
+
): LottieAnimationViewBase; // inherited from UIAppearance
|
|
372
|
+
|
|
373
|
+
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): LottieAnimationViewBase; // inherited from UIAppearance
|
|
374
|
+
|
|
375
|
+
static appearanceWhenContainedInInstancesOfClasses(
|
|
376
|
+
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
|
377
|
+
): LottieAnimationViewBase; // inherited from UIAppearance
|
|
378
|
+
|
|
379
|
+
static new(): LottieAnimationViewBase; // inherited from NSObject
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare let LottieVersionNumber: number;
|
|
383
|
+
|
|
384
|
+
declare let LottieVersionString: interop.Reference<number>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Vendored from @nativescript-community/ui-lottie (MIT), fork branch
|
|
2
|
+
// xplat-fixes on octane-xplat/ui-lottie — device-probed fixes for dead
|
|
3
|
+
// sync-src, missing events/pause-resume, URL/.lottie sources, async
|
|
4
|
+
// autoPlay, completion dedupe, opacity scale, Podfile pin.
|
|
5
|
+
// @ts-nocheck — vendored upstream code, not strict-clean; kept
|
|
6
|
+
// diff-identical to the fork so fix branches stay PR-able.
|
|
7
|
+
export function clamp(val: number, min: number = 0, max: number = 1) {
|
|
8
|
+
return val > max ? max : val < min ? min : val;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"files": [
|
|
4
|
+
"Lottie.d.ts",
|
|
5
|
+
"Lottie.web.d.ts",
|
|
6
|
+
"cx.mobile.d.ts",
|
|
7
|
+
"escape-props.d.ts",
|
|
8
|
+
"escape-props.web.d.ts",
|
|
9
|
+
"index.d.ts",
|
|
10
|
+
"index.web.d.ts",
|
|
11
|
+
"layout-child.d.ts",
|
|
12
|
+
"layout-child.web.d.ts",
|
|
13
|
+
"props.d.ts",
|
|
14
|
+
"vendor/ui-lottie/src/lottie/index.common.d.ts",
|
|
15
|
+
"vendor/ui-lottie/src/lottie/index.ios.d.ts",
|
|
16
|
+
"vendor/ui-lottie/src/lottie/utils.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LottieProps } from './props.js';
|
|
2
|
+
/** Lottie — vendored ui-lottie surface (see src/plugin). The plugin
|
|
3
|
+
* doesn't diff props, so src/play-state/speed/progress land imperatively
|
|
4
|
+
* in effects. `async` stays forced on: it keeps the load path uniform
|
|
5
|
+
* (one code path for inline/file/URL/.lottie) and avoids main-thread
|
|
6
|
+
* parse jank; autoPlay is re-applied when the composition lands. */
|
|
7
|
+
export declare function Lottie(props: LottieProps): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LottieProps } from './props.js';
|
|
2
|
+
/** Lottie — lottie-web's svg renderer in a plain container div. Everything
|
|
3
|
+
* is imperative: `src`/`data` rebuild the AnimationItem, the rest are
|
|
4
|
+
* method calls applied in effects. Progress is normalized 0..1
|
|
5
|
+
* (lottie-web speaks frames); durations arrive in seconds and are
|
|
6
|
+
* surfaced as ms. */
|
|
7
|
+
export declare function Lottie(props: LottieProps): import("octane/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** NS `className` splits on ' ' only, and the universal driver applies the
|
|
2
|
+
* prop via `String(value)` — an array would arrive comma-joined and match
|
|
3
|
+
* no class at all. Native leaves normalize through cx() before handing
|
|
4
|
+
* className to an intrinsic. (The DOM renderer already flattens arrays,
|
|
5
|
+
* so web leaves don't need this.) */
|
|
6
|
+
export declare function cx(...parts: any[]): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Role } from './props.js';
|
|
2
|
+
/** Apply only the active device's escape bag after the primitive's own props. */
|
|
3
|
+
export declare function applyEscapeProps(view: any, props: {
|
|
4
|
+
ios?: any;
|
|
5
|
+
android?: any;
|
|
6
|
+
}): void;
|
|
7
|
+
/** Translate the shared/ARIA spelling to NativeScript's narrower role enum. */
|
|
8
|
+
export declare function nativeAccessibilityRole(role?: Role): string | undefined;
|
|
9
|
+
/** NativeScript's AccessibilityState is a single enum value, unlike the
|
|
10
|
+
* web's independent ARIA booleans. Priority follows the strongest state. */
|
|
11
|
+
export declare function nativeAccessibilityState(state?: {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
}): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LayoutChildProps, FlexContainerProps } from './props.js';
|
|
2
|
+
/** NativeScript reads these attributes from each child view during parent
|
|
3
|
+
* layout. Values are forwarded with NativeScript's own property names.
|
|
4
|
+
* The flex-container props (justifyContent/alignItems/flexWrap/gap) land on
|
|
5
|
+
* the host flexboxlayout itself — its own attributes, not child metadata. */
|
|
6
|
+
export declare function layoutChildProps(props: LayoutChildProps & Partial<FlexContainerProps>): Record<string, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LayoutChildProps, FlexContainerProps } from './props.js';
|
|
2
|
+
/** The shared contract is "numbers are dips" (RN semantics), but octane's DOM
|
|
3
|
+
* renderer keeps React's unitless list — lineHeight is unitless there, so
|
|
4
|
+
* `style={{lineHeight: 40}}` would render a 40× multiplier instead of 40px.
|
|
5
|
+
* lineHeight is the one unitless-in-React prop that is a length in the
|
|
6
|
+
* shared vocabulary; force the px suffix. */
|
|
7
|
+
export declare function normStyle(style: any): any;
|
|
8
|
+
/** Convert parent-layout metadata to CSS on the web leaf. Native's `dock`
|
|
9
|
+
* attribute has no CSS equivalent and is ignored on web. Grid indices are
|
|
10
|
+
* zero-based in the shared API, matching NativeScript. */
|
|
11
|
+
export declare function layoutChildProps(props: LayoutChildProps & Partial<FlexContainerProps> & {
|
|
12
|
+
style?: any;
|
|
13
|
+
}, baseStyle?: any): {
|
|
14
|
+
style: any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { Octane } from 'octane/jsx-runtime';
|
|
2
|
+
export interface LayoutChildProps {
|
|
3
|
+
row?: number;
|
|
4
|
+
col?: number;
|
|
5
|
+
rowSpan?: number;
|
|
6
|
+
colSpan?: number;
|
|
7
|
+
dock?: 'left' | 'top' | 'right' | 'bottom';
|
|
8
|
+
left?: number;
|
|
9
|
+
top?: number;
|
|
10
|
+
flexGrow?: number;
|
|
11
|
+
flexShrink?: number;
|
|
12
|
+
alignSelf?: string;
|
|
13
|
+
order?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Flex-container props shared by View/Row/Pressable — RN vocabulary, applied
|
|
16
|
+
* to the host flexboxlayout natively and the element's style on web.
|
|
17
|
+
* `gap` is a dip number (px on web); NS supports it on FlexboxLayout only. */
|
|
18
|
+
export interface FlexContainerProps {
|
|
19
|
+
justifyContent?: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
20
|
+
alignItems?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
21
|
+
flexWrap?: boolean | 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
22
|
+
gap?: number | string;
|
|
23
|
+
rowGap?: number | string;
|
|
24
|
+
columnGap?: number | string;
|
|
25
|
+
}
|
|
26
|
+
export type Role = 'button' | 'link' | 'search' | 'image' | 'heading' | 'adjustable' | 'summary' | 'text' | 'none' | 'progressbar' | 'checkbox' | 'switch' | 'radio' | 'spinbutton' | 'tab';
|
|
27
|
+
export interface AccessibilityProps {
|
|
28
|
+
accessible?: boolean;
|
|
29
|
+
accessibilityLabel?: string;
|
|
30
|
+
accessibilityRole?: Role;
|
|
31
|
+
accessibilityHint?: string;
|
|
32
|
+
accessibilityValue?: string;
|
|
33
|
+
accessibilityState?: {
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
selected?: boolean;
|
|
36
|
+
checked?: boolean;
|
|
37
|
+
};
|
|
38
|
+
accessibilityLiveRegion?: 'none' | 'polite' | 'assertive';
|
|
39
|
+
}
|
|
40
|
+
export type LottieFit = 'contain' | 'cover' | 'fill';
|
|
41
|
+
export interface LottieEvent {
|
|
42
|
+
/** Animation duration in milliseconds once loaded (0 before then). */
|
|
43
|
+
duration?: number;
|
|
44
|
+
/** Failure description. */
|
|
45
|
+
message?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface LottieHandle {
|
|
48
|
+
play(): void;
|
|
49
|
+
pause(): void;
|
|
50
|
+
/** Stop and reset the playhead to the start. */
|
|
51
|
+
stop(): void;
|
|
52
|
+
/** Seek to a normalized position, 0..1. */
|
|
53
|
+
seekTo(progress: number): void;
|
|
54
|
+
/** Playback speed multiplier (1 = normal). */
|
|
55
|
+
setSpeed(n: number): void;
|
|
56
|
+
/** Current playhead position, 0..1. */
|
|
57
|
+
progress(): number;
|
|
58
|
+
/** Animation duration in milliseconds (0 before load). */
|
|
59
|
+
duration(): number;
|
|
60
|
+
isPlaying(): boolean;
|
|
61
|
+
/** The platform surface (lottie-web AnimationItem / plugin LottieView). */
|
|
62
|
+
native: any;
|
|
63
|
+
}
|
|
64
|
+
/** Lottie animation — lottie-web (svg renderer) on web, vendored
|
|
65
|
+
* ui-lottie (`src/vendor/ui-lottie` submodule, `octane-xplat/ui-lottie`
|
|
66
|
+
* @ `xplat-vendored`) on native.
|
|
67
|
+
* On web, lottie-web evaluates expressions embedded in animation data as
|
|
68
|
+
* JavaScript. Load only trusted animation data; expression-bearing files
|
|
69
|
+
* require a CSP that allows `unsafe-eval`.
|
|
70
|
+
* Progress is always normalized 0..1 and durations are milliseconds on
|
|
71
|
+
* every platform (the native plugin reports seconds on iOS). */
|
|
72
|
+
export interface LottieProps extends LayoutChildProps, AccessibilityProps {
|
|
73
|
+
className?: any;
|
|
74
|
+
style?: any;
|
|
75
|
+
id?: string;
|
|
76
|
+
/** Remote URL; native also accepts `~/` bundle paths, absolute file
|
|
77
|
+
* paths, `res://` names, `.lottie`/`.zip` containers, and raw JSON
|
|
78
|
+
* strings starting with `{`. */
|
|
79
|
+
src?: string;
|
|
80
|
+
/** Inline animation object — wins over `src` when both are given. */
|
|
81
|
+
data?: object;
|
|
82
|
+
/** Start playing as soon as the composition loads. Default true —
|
|
83
|
+
* matches lottie-web; the native plugin's own default is false. */
|
|
84
|
+
autoPlay?: boolean;
|
|
85
|
+
/** Repeat forever. Default false — a finite play is the least
|
|
86
|
+
* surprising shared contract (lottie-web's own default is true). */
|
|
87
|
+
loop?: boolean;
|
|
88
|
+
/** Controlled playback — leave unset for uncontrolled play. */
|
|
89
|
+
playing?: boolean;
|
|
90
|
+
/** Controlled playhead position, 0..1. */
|
|
91
|
+
progress?: number;
|
|
92
|
+
/** Playback speed multiplier (1 = normal). */
|
|
93
|
+
speed?: number;
|
|
94
|
+
/** Content fitting inside the frame: `contain` (letterbox, default),
|
|
95
|
+
* `cover` (crop to fill), `fill` (stretch). */
|
|
96
|
+
fit?: LottieFit;
|
|
97
|
+
/** Composition parsed and ready — `e.duration` is the length in ms. */
|
|
98
|
+
onLoaded?: (e: LottieEvent) => void;
|
|
99
|
+
/** Reached the end; does not fire per loop iteration. */
|
|
100
|
+
onEnded?: () => void;
|
|
101
|
+
/** Load or parse failure. */
|
|
102
|
+
onError?: (e: LottieEvent) => void;
|
|
103
|
+
/** Imperative handle — play/pause/seek plus `native` for anything the
|
|
104
|
+
* shared props don't cover. */
|
|
105
|
+
ref?: Octane.Ref<LottieHandle>;
|
|
106
|
+
/** Platform escape hatches, applied after the shared props. */
|
|
107
|
+
ios?: Record<string, any>;
|
|
108
|
+
android?: Record<string, any>;
|
|
109
|
+
web?: Record<string, any>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**********************************************************************************
|
|
2
|
+
* (c) 2017, Nathan Walker.
|
|
3
|
+
* Licensed under the MIT license.
|
|
4
|
+
*
|
|
5
|
+
* Version 1.0.0 walkerrunpdx@gmail.com
|
|
6
|
+
**********************************************************************************/
|
|
7
|
+
import { CoreTypes, Property, View } from '@nativescript/core';
|
|
8
|
+
export interface KeyPathColors {
|
|
9
|
+
[k: string]: Color | string;
|
|
10
|
+
}
|
|
11
|
+
export declare class LottieViewBase extends View {
|
|
12
|
+
static compositionLoadedEvent: string;
|
|
13
|
+
static loadFailedEvent: string;
|
|
14
|
+
stretch: CoreTypes.ImageStretchType;
|
|
15
|
+
async: boolean;
|
|
16
|
+
src: string;
|
|
17
|
+
loop: boolean;
|
|
18
|
+
autoPlay: boolean;
|
|
19
|
+
progress: number;
|
|
20
|
+
keyPathColors: KeyPathColors;
|
|
21
|
+
completionBlock: (animationFinished: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const srcProperty: Property<LottieViewBase, string>;
|
|
24
|
+
export declare const asyncProperty: Property<LottieViewBase, boolean>;
|
|
25
|
+
export declare const loopProperty: Property<LottieViewBase, boolean>;
|
|
26
|
+
export declare const autoPlayProperty: Property<LottieViewBase, boolean>;
|
|
27
|
+
export declare const renderModeProperty: Property<LottieViewBase, number>;
|
|
28
|
+
export declare const progressProperty: Property<LottieViewBase, number>;
|
|
29
|
+
export declare const stretchProperty: Property<LottieViewBase, CoreTypes.ImageStretchType>;
|
|
30
|
+
export declare const keyPathColorsProperty: Property<LottieViewBase, KeyPathColors>;
|