Skip to content

Commit 4ea89ea

Browse files
committed
feat: update demo code
1 parent e954ac7 commit 4ea89ea

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

demo/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ const intLottie = () => {
4848

4949
const testReplaceImage = () => {
5050
if (i === 4 && j === 4) {
51-
const img = path.join(__dirname, './test/data4/image/img.png');
52-
anim.replaceAsset('image_1', img);
51+
const img1 = path.join(__dirname, './test/data4/image/img1.png');
52+
const img2 = path.join(__dirname, './test/data4/image/img2.png');
53+
anim.replaceAsset('image_1', img1);
54+
anim.replaceAsset('image_6', img2);
5355
}
5456
};
5557

demo/test/data4/image/img2.png

23.8 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "lottie-nodejs",
3-
"version": "5.5.97",
3+
"version": "5.5.98",
44
"description": "Lottie is a AE render library for Node.js",
55
"main": "./build/lottie_canvas.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/wood9/lottie-node"
8+
"url": "https://github.com/drawcall/lottie-node"
99
},
1010
"scripts": {
1111
"build": "node tasks/build.js",

0 commit comments

Comments
 (0)