@rendley/sdk 1.14.3 → 1.14.4
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.
|
@@ -135,8 +135,11 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
135
135
|
private autoFit;
|
|
136
136
|
private canvas;
|
|
137
137
|
private context;
|
|
138
|
+
private lastUpdatedFrame;
|
|
139
|
+
private hasTimeExpression;
|
|
138
140
|
constructor(options: LottieClipOptions);
|
|
139
141
|
init(layerId: string): Promise<void>;
|
|
142
|
+
private checkForTimeExpressions;
|
|
140
143
|
private applyProperties;
|
|
141
144
|
getAnimationData(): any | undefined;
|
|
142
145
|
replaceAnimationData(data: any): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cubic bezier interpolator for keyframe animation.
|
|
3
|
+
*
|
|
4
|
+
* The curve is defined by four points:
|
|
5
|
+
* P0 = (0, 0), P1 = handleOut, P2 = handleIn, P3 = (1, 1)
|
|
6
|
+
*
|
|
7
|
+
* Given a normalized time [0-1], returns a normalized value [0-1].
|
|
8
|
+
*
|
|
9
|
+
* @param time - Normalized time in [0, 1]
|
|
10
|
+
* @param handleOut - Outgoing control point [time, value], both in [0, 1]
|
|
11
|
+
* @param handleIn - Incoming control point [time, value], both in [0, 1]
|
|
12
|
+
* @returns Normalized interpolated value
|
|
13
|
+
*/
|
|
14
|
+
export declare function bezierInterpolate(time: number, handleOut: [number, number], handleIn: [number, number]): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rendley/sdk",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"license": "LICENSE",
|
|
5
5
|
"author": "Onix Technologies",
|
|
6
6
|
"homepage": "https://rendleysdk.com",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"build:watch": "tsc && vite build --watch --mode development",
|
|
34
34
|
"build:production": "tsc && vite build --mode production && npm run obfuscate",
|
|
35
35
|
"obfuscate": "node ./plugins/obfuscate.js",
|
|
36
|
+
"minify": "node ./plugins/minify.js",
|
|
36
37
|
"test": "jest",
|
|
37
38
|
"lint": "eslint --ext .ts,.tsx src --fix",
|
|
38
39
|
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
@@ -59,12 +60,14 @@
|
|
|
59
60
|
"patch-package": "8.0.0",
|
|
60
61
|
"postinstall-postinstall": "2.1.0",
|
|
61
62
|
"prettier": "3.1.1",
|
|
63
|
+
"terser": "^5.46.1",
|
|
62
64
|
"ts-jest": "29.1.1",
|
|
63
65
|
"typedoc": "0.28.12",
|
|
64
66
|
"typedoc-plugin-markdown": "4.8.1",
|
|
65
67
|
"typescript": "^5.9.2",
|
|
66
68
|
"vite": "^5.4.9",
|
|
67
|
-
"vite-plugin-dts": "3.7.2"
|
|
69
|
+
"vite-plugin-dts": "3.7.2",
|
|
70
|
+
"vite-plugin-javascript-obfuscator": "^3.1.0"
|
|
68
71
|
},
|
|
69
72
|
"dependencies": {
|
|
70
73
|
"@pixi/gif": "2.1.1",
|