@octane-xplat/lottie 0.10.0 → 0.11.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/lottie",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Lottie animation leaf for Octane xplat — lottie-web on web, NativeScript on mobile, and Airbnb Lottie on AppKit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@nativescript-community/octane": "0.2.1",
|
|
62
62
|
"@nativescript/core": "9.1.2",
|
|
63
|
-
"@nativescript/types": "9.
|
|
63
|
+
"@nativescript/types": "9.1.4",
|
|
64
64
|
"@octanejs/vite-plugin": "0.1.61",
|
|
65
65
|
"@tsrx/typescript-plugin": "0.4.11",
|
|
66
66
|
"octane": "0.6.3",
|
package/src/Lottie.tsrx
CHANGED
|
@@ -34,10 +34,11 @@ function currentProgress(v: LottieView): number {
|
|
|
34
34
|
|
|
35
35
|
/** Stop = pause + reset playhead. iOS `stop()` resets to the start;
|
|
36
36
|
* Android's `cancelAnimation()` ends the animator and the next
|
|
37
|
-
* `playAnimation()` restarts from 0.
|
|
37
|
+
* `playAnimation()` restarts from 0. `nativeViewProtected` is typed
|
|
38
|
+
* per-platform — `stop` only exists on iOS's CompatibleAnimationView. */
|
|
38
39
|
function stopView(v: LottieView) {
|
|
39
40
|
if (isAndroid) v.cancelAnimation();
|
|
40
|
-
else v.nativeViewProtected?.stop();
|
|
41
|
+
else (v.nativeViewProtected as any)?.stop();
|
|
41
42
|
|
|
42
43
|
v.progress = 0;
|
|
43
44
|
}
|