(file)
| 235 | |
| 236 | class MoveableLayer extends RenderedLayer { |
| 237 | constructor(file) { |
| 238 | super(file); |
| 239 | // all moveables 2 seconds default |
| 240 | this.total_time = 2 * 1000; |
| 241 | this.frames = []; |
| 242 | for (let i = 0; i < (this.total_time / 1000) * fps; ++i) { |
| 243 | // x, y, scale, rot, anchor(bool) |
| 244 | let f = new Float32Array(5); |
| 245 | f[2] = 1; |
| 246 | this.frames.push(f); |
| 247 | } |
| 248 | this.frames[0][4] = 1; |
| 249 | } |
| 250 | |
| 251 | dump() { |
| 252 | let obj = super.dump(); |
nothing calls this directly
no outgoing calls
no test coverage detected