@octane-xplat/lottie 0.0.1 → 0.9.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 +36 -2
- package/dist/native/cx.mobile.js +11 -0
- package/dist/native/escape-props.js +39 -0
- package/dist/native/index.js +182 -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 +332 -0
- package/dist/web/layout-child.web.js +47 -0
- package/dist/web/octane-client-build.json +8 -0
- package/package.json +81 -10
- 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/src/Lottie.tsrx +161 -0
- package/src/Lottie.web.tsrx +135 -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.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 +128 -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 +106 -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,35 @@
|
|
|
1
|
+
/**********************************************************************************
|
|
2
|
+
* (c) 2017, Nathan Walker.
|
|
3
|
+
* Licensed under the MIT license.
|
|
4
|
+
*
|
|
5
|
+
* Version 1.0.0 walkerrunpdx@gmail.com
|
|
6
|
+
**********************************************************************************/
|
|
7
|
+
import { Color } from '@nativescript/core';
|
|
8
|
+
import { LottieViewBase, autoPlayProperty, keyPathColorsProperty, loopProperty, progressProperty, srcProperty, stretchProperty } from './index.common.js';
|
|
9
|
+
export declare class LottieView extends LottieViewBase {
|
|
10
|
+
[keyPathColorsProperty.setNative]: (value: any) => void;
|
|
11
|
+
[srcProperty.setNative]: (src: string) => void;
|
|
12
|
+
[loopProperty.setNative]: (loop: boolean) => void;
|
|
13
|
+
[autoPlayProperty.setNative]: (autoPlay: boolean) => void;
|
|
14
|
+
[progressProperty.setNative]: (value: number) => void;
|
|
15
|
+
[stretchProperty.setNative]: (value: "none" | "aspectFill" | "aspectFit" | "fill") => void;
|
|
16
|
+
nativeViewProtected: CompatibleAnimationView;
|
|
17
|
+
private _imageSourceAffectsLayout;
|
|
18
|
+
createNativeView(): CompatibleAnimationView;
|
|
19
|
+
initNativeView(): void;
|
|
20
|
+
onLoaded(): void;
|
|
21
|
+
setColor(value: Color, keyPath: string[]): void;
|
|
22
|
+
setOpacity(value: number, keyPath: string[]): void;
|
|
23
|
+
playAnimation(): void;
|
|
24
|
+
playAnimationFromProgressToProgress(startProgress: number, endProgress: number): void;
|
|
25
|
+
cancelAnimation(): void;
|
|
26
|
+
pauseAnimation(): void;
|
|
27
|
+
resumeAnimation(): void;
|
|
28
|
+
isAnimating(): boolean;
|
|
29
|
+
set speed(value: number);
|
|
30
|
+
get speed(): number | undefined;
|
|
31
|
+
get duration(): number | undefined;
|
|
32
|
+
set contentMode(mode: any);
|
|
33
|
+
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
34
|
+
private static computeScaleFactor;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function clamp(val: number, min?: number, max?: number): number;
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/index.js
DELETED