svga / SVGAPlayer-Web

Similar to Lottie. Render After Effects / Animate CC (Flash) animations natively on Android and iOS, Web. 使用 SVGAPlayer 在 Android、iOS、Web中播放 After Effects / Animate CC (Flash) 动画。
https://svga.io
Apache License 2.0
954 stars 239 forks source link

problem of installation for layabox #12

Closed solody closed 6 years ago

solody commented 6 years ago
  1. Patch laya.webgl.js library Goto https://github.com/yyued/SVGAPlayer-Web/tree/master/patch/layabox Download laya.webgl.js Replace to {LayaProjectDir}/bin/libs/laya.webgl.js
  2. Prebuild JS Goto https://github.com/yyued/SVGAPlayer-Web/tree/master/build Download svga.layabox.min.js Add to index.html

这是两种安装方法,还是两个安装步骤? 我从上下文理解为步骤,因为第3个是可选的。

但是,出现了错误

TypeError: this.startCreate is not a function

然而如果我省略第1步,只做第二步,则运行正常,但仍然有另一个已知问题:issues11: SVGA.layabox undefined

solody commented 6 years ago

为什么要替换layabox的webgl库?如果layabox升级版本,会不会有冲突

PonyCui commented 6 years ago

Patch 和 Prebuild JS 都需要执行

PonyCui commented 6 years ago

Patch 是因为 laya.webgl.js 缺少 Bezier 方法

solody commented 6 years ago

我patch了之后,出现 TypeError: this.startCreate is not a function

PonyCui commented 6 years ago

版本不兼容导致,你可以自行根据 diff 修改。

solody commented 6 years ago

要怎么改?不太会改啊,能指示一下吗?

PonyCui commented 6 years ago

fix on master.