|
1 | | -diff --git a/index.cjs b/index.cjs |
2 | | -index 547f85cd7080b51b26bc2bb3a487ff4ef9a85f5d..88bb86d246f415594dded65007c03f986903f0ea 100644 |
3 | | ---- a/index.cjs |
4 | | -+++ b/index.cjs |
5 | | -@@ -204,7 +204,6 @@ const KMZLoader = require("./loaders/KMZLoader.cjs"); |
6 | | - const VRMLoader = require("./loaders/VRMLoader.cjs"); |
7 | | - const VRMLLoader = require("./loaders/VRMLLoader.cjs"); |
8 | | - const KTX2Loader = require("./loaders/KTX2Loader.cjs"); |
9 | | --const LottieLoader = require("./loaders/LottieLoader.cjs"); |
10 | | - const TTFLoader = require("./loaders/TTFLoader.cjs"); |
11 | | - const RGBELoader = require("./loaders/RGBELoader.cjs"); |
12 | | - const AssimpLoader = require("./loaders/AssimpLoader.cjs"); |
13 | | -@@ -530,7 +529,6 @@ exports.KMZLoader = KMZLoader.KMZLoader; |
14 | | - exports.VRMLoader = VRMLoader.VRMLoader; |
15 | | - exports.VRMLLoader = VRMLLoader.VRMLLoader; |
16 | | - exports.KTX2Loader = KTX2Loader.KTX2Loader; |
17 | | --exports.LottieLoader = LottieLoader.LottieLoader; |
18 | | - exports.TTFLoader = TTFLoader.TTFLoader; |
19 | | - exports.RGBELoader = RGBELoader.RGBELoader; |
20 | | - exports.AssimpLoader = AssimpLoader.AssimpLoader; |
21 | | -diff --git a/index.d.ts b/index.d.ts |
22 | | -index 9b30bc6f5f142f309e862c7f5eb80c3e640238b1..edc669e4e401b49f36e6aa399882df273f0cd717 100644 |
23 | | ---- a/index.d.ts |
24 | | -+++ b/index.d.ts |
25 | | -@@ -203,7 +203,6 @@ export * from './loaders/KMZLoader'; |
26 | | - export * from './loaders/VRMLoader'; |
27 | | - export * from './loaders/VRMLLoader'; |
28 | | - export * from './loaders/KTX2Loader'; |
29 | | --export * from './loaders/LottieLoader'; |
30 | | - export * from './loaders/TTFLoader'; |
31 | | - export * from './loaders/RGBELoader'; |
32 | | - export * from './loaders/AssimpLoader'; |
33 | | -diff --git a/index.js b/index.js |
34 | | -index a457f0619459b0bc0076b2dfd56c5040cff3a063..8ec63e031281b1f226000a5719d1fe1ff454b256 100644 |
35 | | ---- a/index.js |
36 | | -+++ b/index.js |
37 | | -@@ -202,7 +202,6 @@ import { KMZLoader } from "./loaders/KMZLoader.js"; |
38 | | - import { VRMLoader } from "./loaders/VRMLoader.js"; |
39 | | - import { VRMLLoader } from "./loaders/VRMLLoader.js"; |
40 | | - import { KTX2Loader } from "./loaders/KTX2Loader.js"; |
41 | | --import { LottieLoader } from "./loaders/LottieLoader.js"; |
42 | | - import { TTFLoader } from "./loaders/TTFLoader.js"; |
43 | | - import { RGBELoader } from "./loaders/RGBELoader.js"; |
44 | | - import { AssimpLoader } from "./loaders/AssimpLoader.js"; |
45 | | -@@ -401,7 +400,6 @@ export { |
46 | | - LineMaterial, |
47 | | - LineSegments2, |
48 | | - LineSegmentsGeometry, |
49 | | -- LottieLoader, |
50 | | - LuminosityHighPassShader, |
51 | | - LuminosityShader, |
52 | | - Lut, |
53 | | -diff --git a/libs/lottie.cjs b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/libs/lottie.cjs |
54 | | -deleted file mode 100644 |
55 | | -index 7d8aefea8e7830ebaef2d3f9ea5f48d30e9e0852..0000000000000000000000000000000000000000 |
56 | | -diff --git a/libs/lottie.cjs.map b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/libs/lottie.cjs.map |
57 | | -deleted file mode 100644 |
58 | | -index 12de44a8d95d72d5b155a21b3b716c8162772499..0000000000000000000000000000000000000000 |
59 | | -diff --git a/libs/lottie.js b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/libs/lottie.js |
60 | | -deleted file mode 100644 |
61 | | -index 9ade8c1378595d3d06077fd9f701ed8a5837f0b3..0000000000000000000000000000000000000000 |
62 | | -diff --git a/libs/lottie.js.map b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/libs/lottie.js.map |
63 | | -deleted file mode 100644 |
64 | | -index 0ea7ed76e0831e22f21b051d42c4fd1a842fbded..0000000000000000000000000000000000000000 |
65 | | -diff --git a/loaders/LottieLoader.cjs b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/loaders/LottieLoader.cjs |
66 | | -deleted file mode 100644 |
67 | | -index 41b1339e75c0ae4fb08e22580e9bf951f301bd06..0000000000000000000000000000000000000000 |
68 | | -diff --git a/loaders/LottieLoader.cjs.map b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/loaders/LottieLoader.cjs.map |
69 | | -deleted file mode 100644 |
70 | | -index 083b3ee89eeb470fbffb943fddddeffc1032ff89..0000000000000000000000000000000000000000 |
71 | | -diff --git a/loaders/LottieLoader.d.ts b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/loaders/LottieLoader.d.ts |
72 | | -deleted file mode 100644 |
73 | | -index 951cd679fff328cb4240544a312048d7fc730b4f..0000000000000000000000000000000000000000 |
74 | | -diff --git a/loaders/LottieLoader.js b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/loaders/LottieLoader.js |
75 | | -deleted file mode 100644 |
76 | | -index 20cfe9afedc3d2a0e28e842dd08c6a18e3d2840b..0000000000000000000000000000000000000000 |
77 | | -diff --git a/loaders/LottieLoader.js.map b/home/wildan/.cache/.bun/install/cache/[email protected]@@@1/loaders/LottieLoader.js.map |
78 | | -deleted file mode 100644 |
79 | | -index 2e878490e0404e12ac604f54b07b85402b37a1d5..0000000000000000000000000000000000000000 |
| 1 | +diff --git a/libs/lottie.js b/libs/lottie.js |
| 2 | +index 9ade8c1378595d3d06077fd9f701ed8a5837f0b3..d3efeb505809a869488796cb8cd277e1a4980d23 100644 |
| 3 | +--- a/libs/lottie.js |
| 4 | ++++ b/libs/lottie.js |
| 5 | +@@ -1044,15 +1044,7 @@ const lottie = (() => { |
| 6 | + }; |
| 7 | + }(); |
| 8 | + const ImagePreloader = function() { |
| 9 | +- var proxyImage = function() { |
| 10 | +- var canvas = createTag("canvas"); |
| 11 | +- canvas.width = 1; |
| 12 | +- canvas.height = 1; |
| 13 | +- var ctx = canvas.getContext("2d"); |
| 14 | +- ctx.fillStyle = "rgba(0,0,0,0)"; |
| 15 | +- ctx.fillRect(0, 0, 1, 1); |
| 16 | +- return canvas; |
| 17 | +- }(); |
| 18 | ++ var proxyImage |
| 19 | + function imageLoaded() { |
| 20 | + this.loadedAssets += 1; |
| 21 | + if (this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages) { |
| 22 | +@@ -1218,6 +1210,15 @@ const lottie = (() => { |
| 23 | + } |
| 24 | + } |
| 25 | + function ImagePreloaderFactory() { |
| 26 | ++ proxyImage = function() { |
| 27 | ++ var canvas = createTag("canvas"); |
| 28 | ++ canvas.width = 1; |
| 29 | ++ canvas.height = 1; |
| 30 | ++ var ctx = canvas.getContext("2d"); |
| 31 | ++ ctx.fillStyle = "rgba(0,0,0,0)"; |
| 32 | ++ ctx.fillRect(0, 0, 1, 1); |
| 33 | ++ return canvas; |
| 34 | ++ }(); |
| 35 | + this._imageLoaded = imageLoaded.bind(this); |
| 36 | + this._footageLoaded = footageLoaded.bind(this); |
| 37 | + this.testImageLoaded = testImageLoaded.bind(this); |
0 commit comments