eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

lottie动画无法设置宽高 #72

Closed waqq closed 3 years ago

waqq commented 3 years ago

看到构造函数的参数中可传width和height,传入后无效

截图是文档中的lottie动画 设置了宽高都是100 文档:https://eva-engine.gitee.io/#/tutorials/lottieAnimation 代码:const lottieComponent = new Lottie({ resource: 'homeBg1', width: 100, height: 100 });

image

fanmingfei commented 3 years ago

使用scale来调整尺寸