etro 0.8.0 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/.github/workflows/nodejs.yml +3 -1
  2. package/.github/workflows/shipjs-trigger.yml +29 -0
  3. package/CHANGELOG.md +36 -13
  4. package/CODE_OF_CONDUCT.md +5 -5
  5. package/CONTRIBUTING.md +22 -72
  6. package/README.md +2 -2
  7. package/dist/effect/base.d.ts +14 -1
  8. package/dist/etro-cjs.js +189 -230
  9. package/dist/etro-iife.js +189 -230
  10. package/dist/layer/base.d.ts +13 -0
  11. package/eslint.conf.js +2 -1
  12. package/eslint.test-conf.js +1 -0
  13. package/examples/application/readme-screenshot.html +4 -8
  14. package/examples/application/video-player.html +3 -4
  15. package/examples/introduction/effects.html +23 -4
  16. package/karma.conf.js +4 -2
  17. package/package.json +8 -4
  18. package/scripts/gen-effect-samples.html +0 -3
  19. package/ship.config.js +80 -0
  20. package/src/effect/base.ts +29 -10
  21. package/src/effect/gaussian-blur.ts +10 -10
  22. package/src/effect/pixelate.ts +1 -2
  23. package/src/effect/shader.ts +18 -22
  24. package/src/effect/stack.ts +8 -4
  25. package/src/effect/transform.ts +13 -14
  26. package/src/event.ts +8 -14
  27. package/src/layer/audio-source.ts +16 -14
  28. package/src/layer/audio.ts +1 -2
  29. package/src/layer/base.ts +26 -7
  30. package/src/layer/visual.ts +11 -6
  31. package/src/movie.ts +70 -64
  32. package/src/util.ts +50 -57
  33. package/docs/effect.js.html +0 -1215
  34. package/docs/event.js.html +0 -145
  35. package/docs/index.html +0 -81
  36. package/docs/index.js.html +0 -92
  37. package/docs/layer.js.html +0 -888
  38. package/docs/module-effect-GaussianBlurComponent.html +0 -345
  39. package/docs/module-effect.Brightness.html +0 -339
  40. package/docs/module-effect.Channels.html +0 -319
  41. package/docs/module-effect.ChromaKey.html +0 -611
  42. package/docs/module-effect.Contrast.html +0 -339
  43. package/docs/module-effect.EllipticalMask.html +0 -200
  44. package/docs/module-effect.GaussianBlur.html +0 -202
  45. package/docs/module-effect.GaussianBlurHorizontal.html +0 -242
  46. package/docs/module-effect.GaussianBlurVertical.html +0 -242
  47. package/docs/module-effect.Pixelate.html +0 -330
  48. package/docs/module-effect.Shader.html +0 -1227
  49. package/docs/module-effect.Stack.html +0 -406
  50. package/docs/module-effect.Transform.Matrix.html +0 -193
  51. package/docs/module-effect.Transform.html +0 -1174
  52. package/docs/module-effect.html +0 -148
  53. package/docs/module-event.html +0 -473
  54. package/docs/module-index.html +0 -186
  55. package/docs/module-layer-Media.html +0 -1116
  56. package/docs/module-layer-MediaMixin.html +0 -164
  57. package/docs/module-layer.Audio.html +0 -1188
  58. package/docs/module-layer.Base.html +0 -629
  59. package/docs/module-layer.Image.html +0 -1421
  60. package/docs/module-layer.Text.html +0 -1731
  61. package/docs/module-layer.Video.html +0 -1938
  62. package/docs/module-layer.Visual.html +0 -1698
  63. package/docs/module-layer.html +0 -137
  64. package/docs/module-movie.html +0 -3118
  65. package/docs/module-util.Color.html +0 -702
  66. package/docs/module-util.Font.html +0 -395
  67. package/docs/module-util.html +0 -845
  68. package/docs/movie.js.html +0 -689
  69. package/docs/scripts/collapse.js +0 -20
  70. package/docs/scripts/linenumber.js +0 -25
  71. package/docs/scripts/nav.js +0 -12
  72. package/docs/scripts/polyfill.js +0 -4
  73. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  74. package/docs/scripts/prettify/lang-css.js +0 -2
  75. package/docs/scripts/prettify/prettify.js +0 -28
  76. package/docs/scripts/search.js +0 -83
  77. package/docs/styles/jsdoc.css +0 -671
  78. package/docs/styles/prettify.css +0 -79
  79. package/docs/util.js.html +0 -503
  80. package/spec/assets/effect/gaussian-blur-horizontal.png +0 -0
  81. package/spec/assets/effect/gaussian-blur-vertical.png +0 -0
  82. package/spec/assets/effect/grayscale.png +0 -0
  83. package/spec/assets/effect/original.png +0 -0
  84. package/spec/assets/effect/pixelate.png +0 -0
  85. package/spec/assets/effect/transform/multiply.png +0 -0
  86. package/spec/assets/effect/transform/rotate.png +0 -0
  87. package/spec/assets/effect/transform/scale-fraction.png +0 -0
  88. package/spec/assets/effect/transform/scale.png +0 -0
  89. package/spec/assets/effect/transform/translate-fraction.png +0 -0
  90. package/spec/assets/effect/transform/translate.png +0 -0
  91. package/spec/assets/layer/audio.wav +0 -0
  92. package/spec/assets/layer/image.jpg +0 -0
  93. package/spec/effect.spec.js +0 -421
  94. package/spec/event.spec.js +0 -39
  95. package/spec/layer.spec.js +0 -307
  96. package/spec/movie.spec.js +0 -346
  97. package/spec/util.spec.js +0 -294
@@ -1,3118 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>module:movie - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
- </head>
19
- <body>
20
-
21
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
- <label for="nav-trigger" class="navicon-button x">
23
- <div class="navicon"></div>
24
- </label>
25
-
26
- <label for="nav-trigger" class="overlay"></label>
27
-
28
- <nav >
29
-
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module-effect.Brightness.html">Brightness</a></li><li><a href="module-effect.Channels.html">Channels</a></li><li><a href="module-effect.ChromaKey.html">ChromaKey</a></li><li><a href="module-effect.Contrast.html">Contrast</a></li><li><a href="module-effect.EllipticalMask.html">EllipticalMask</a></li><li><a href="module-effect.GaussianBlur.html">GaussianBlur</a></li><li><a href="module-effect.GaussianBlurHorizontal.html">GaussianBlurHorizontal</a></li><li><a href="module-effect.GaussianBlurVertical.html">GaussianBlurVertical</a></li><li><a href="module-effect.Pixelate.html">Pixelate</a></li><li><a href="module-effect.Shader.html">Shader</a><ul class='methods'><li data-type='method'><a href="module-effect.Shader.html#._initBuffer">_initBuffer</a></li><li data-type='method'><a href="module-effect.Shader.html#._loadTexture">_loadTexture</a></li><li data-type='method'><a href="module-effect.Shader.html#_prepareValue">_prepareValue</a></li></ul></li><li><a href="module-effect.Stack.html">Stack</a><ul class='methods'><li data-type='method'><a href="module-effect.Stack.html#addEffect">addEffect</a></li></ul></li><li><a href="module-effect.Transform.html">Transform</a><ul class='methods'><li data-type='method'><a href="module-effect.Transform.html#.Matrix#cell">Matrix#cell</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#multiply">Matrix#multiply</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#rotate">Matrix#rotate</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#scale">Matrix#scale</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#translate">Matrix#translate</a></li></ul></li><li><a href="module-effect.Transform.Matrix.html">Matrix</a></li><li><a href="module-effect-GaussianBlurComponent.html">GaussianBlurComponent</a></li><li><a href="module-layer.Audio.html">Audio</a></li><li><a href="module-layer.Base.html">Base</a><ul class='methods'><li data-type='method'><a href="module-layer.Base.html#_render">_render</a></li></ul></li><li><a href="module-layer.Image.html">Image</a></li><li><a href="module-layer.Text.html">Text</a></li><li><a href="module-layer.Video.html">Video</a></li><li><a href="module-layer.Visual.html">Visual</a><ul class='methods'><li data-type='method'><a href="module-layer.Visual.html#_render">_render</a></li><li data-type='method'><a href="module-layer.Visual.html#addEffect">addEffect</a></li></ul></li><li><a href="module-layer-Media.html">Media</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.Color.html">Color</a><ul class='methods'><li data-type='method'><a href="module-util.Color.html#toString">toString</a></li></ul></li><li><a href="module-util.Font.html">Font</a><ul class='methods'><li data-type='method'><a href="module-util.Font.html#toString">toString</a></li></ul></li></ul><h3>Modules</h3><ul><li><a href="module-effect.html">effect</a></li><li><a href="module-event.html">event</a><ul class='methods'><li data-type='method'><a href="module-event.html#.publish">publish</a></li><li data-type='method'><a href="module-event.html#.subscribe">subscribe</a></li></ul></li><li><a href="module-index.html">index</a></li><li><a href="module-layer.html">layer</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.html">util</a><ul class='methods'><li data-type='method'><a href="module-util.html#.parseColor">parseColor</a></li><li data-type='method'><a href="module-util.html#.parseFont">parseFont</a></li><li data-type='method'><a href="module-util.html#.watchPublic">watchPublic</a></li><li data-type='method'><a href="module-util.html#~isKeyFrames">isKeyFrames</a></li></ul></li></ul><h3>Mixins</h3><ul><li><a href="module-layer-MediaMixin.html">MediaMixin</a></li></ul>
31
- </nav>
32
-
33
- <div id="main">
34
-
35
- <h1 class="page-title">module:movie</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- module:movie
49
- </h2>
50
-
51
-
52
- </header>
53
-
54
- <article>
55
-
56
- <div class="container-overview">
57
-
58
-
59
-
60
-
61
-
62
- <h4 class="name" id="module:movie"><span class="type-signature"></span>new (require("movie"))<span class="signature">(canvas, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
63
-
64
-
65
-
66
-
67
-
68
-
69
- <dl class="details">
70
-
71
-
72
- <dt class="tag-source">Source:</dt>
73
- <dd class="tag-source"><ul class="dummy"><li>
74
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line31">line 31</a>
75
- </li></ul></dd>
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- </dl>
108
-
109
-
110
-
111
-
112
-
113
- <div class="description">
114
- Creates a new <code>Movie</code> instance (project)
115
- </div>
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- <h5>Parameters:</h5>
128
-
129
-
130
- <table class="params">
131
- <thead>
132
- <tr>
133
-
134
- <th>Name</th>
135
-
136
-
137
- <th>Type</th>
138
-
139
-
140
- <th>Attributes</th>
141
-
142
-
143
-
144
-
145
- <th class="last">Description</th>
146
- </tr>
147
- </thead>
148
-
149
- <tbody>
150
-
151
-
152
- <tr>
153
-
154
- <td class="name"><code>canvas</code></td>
155
-
156
-
157
- <td class="type">
158
-
159
-
160
- <span class="param-type">HTMLCanvasElement</span>
161
-
162
-
163
-
164
- </td>
165
-
166
-
167
- <td class="attributes">
168
-
169
-
170
-
171
-
172
-
173
- </td>
174
-
175
-
176
-
177
-
178
- <td class="description last">the canvas to display image data on</td>
179
- </tr>
180
-
181
-
182
-
183
- <tr>
184
-
185
- <td class="name"><code>options</code></td>
186
-
187
-
188
- <td class="type">
189
-
190
-
191
- <span class="param-type">object</span>
192
-
193
-
194
-
195
- </td>
196
-
197
-
198
- <td class="attributes">
199
-
200
- &lt;optional><br>
201
-
202
-
203
-
204
-
205
-
206
- </td>
207
-
208
-
209
-
210
-
211
- <td class="description last">various optional arguments
212
- <h6>Properties</h6>
213
-
214
-
215
- <table class="params">
216
- <thead>
217
- <tr>
218
-
219
- <th>Name</th>
220
-
221
-
222
- <th>Type</th>
223
-
224
-
225
- <th>Attributes</th>
226
-
227
-
228
-
229
- <th>Default</th>
230
-
231
-
232
- <th class="last">Description</th>
233
- </tr>
234
- </thead>
235
-
236
- <tbody>
237
-
238
-
239
- <tr>
240
-
241
- <td class="name"><code>audioContext</code></td>
242
-
243
-
244
- <td class="type">
245
-
246
-
247
- <span class="param-type">BaseAudioContext</span>
248
-
249
-
250
-
251
- </td>
252
-
253
-
254
- <td class="attributes">
255
-
256
- &lt;optional><br>
257
-
258
-
259
-
260
-
261
-
262
- </td>
263
-
264
-
265
-
266
- <td class="default">
267
-
268
- <code>new AudioContext()</code>
269
-
270
- </td>
271
-
272
-
273
- <td class="description last"></td>
274
- </tr>
275
-
276
-
277
-
278
- <tr>
279
-
280
- <td class="name"><code>background</code></td>
281
-
282
-
283
- <td class="type">
284
-
285
-
286
- <span class="param-type">string</span>
287
-
288
-
289
-
290
- </td>
291
-
292
-
293
- <td class="attributes">
294
-
295
- &lt;optional><br>
296
-
297
-
298
-
299
-
300
-
301
- </td>
302
-
303
-
304
-
305
- <td class="default">
306
-
307
- <code>"#000"</code>
308
-
309
- </td>
310
-
311
-
312
- <td class="description last">the background color of the movijse,
313
- or <code>null</code> for a transparent background</td>
314
- </tr>
315
-
316
-
317
-
318
- <tr>
319
-
320
- <td class="name"><code>repeat</code></td>
321
-
322
-
323
- <td class="type">
324
-
325
-
326
- <span class="param-type">boolean</span>
327
-
328
-
329
-
330
- </td>
331
-
332
-
333
- <td class="attributes">
334
-
335
- &lt;optional><br>
336
-
337
-
338
-
339
-
340
-
341
- </td>
342
-
343
-
344
-
345
- <td class="default">
346
-
347
- <code>false</code>
348
-
349
- </td>
350
-
351
-
352
- <td class="description last">whether to loop playbackjs</td>
353
- </tr>
354
-
355
-
356
-
357
- <tr>
358
-
359
- <td class="name"><code>autoRefresh</code></td>
360
-
361
-
362
- <td class="type">
363
-
364
-
365
- <span class="param-type">boolean</span>
366
-
367
-
368
-
369
- </td>
370
-
371
-
372
- <td class="attributes">
373
-
374
- &lt;optional><br>
375
-
376
-
377
-
378
-
379
-
380
- </td>
381
-
382
-
383
-
384
- <td class="default">
385
-
386
- <code>true</code>
387
-
388
- </td>
389
-
390
-
391
- <td class="description last">whether to call `.refresh()` on init and when relevant layers
392
- are added/removed</td>
393
- </tr>
394
-
395
-
396
- </tbody>
397
- </table>
398
-
399
- </td>
400
- </tr>
401
-
402
-
403
- </tbody>
404
- </table>
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
- </div>
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
- <h3 class="subsection-title">Members</h3>
442
-
443
-
444
-
445
- <h4 class="name" id="actx"><span class="type-signature"></span>actx<span class="type-signature"> :BaseAudioContext</span></h4>
446
-
447
-
448
-
449
-
450
-
451
- <dl class="details">
452
-
453
-
454
- <dt class="tag-source">Source:</dt>
455
- <dd class="tag-source"><ul class="dummy"><li>
456
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line566">line 566</a>
457
- </li></ul></dd>
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
- </dl>
490
-
491
-
492
-
493
-
494
-
495
- <div class="description">
496
- The audio context to which audio is played
497
- </div>
498
-
499
-
500
-
501
- <h5>Type:</h5>
502
- <ul>
503
- <li>
504
-
505
- <span class="param-type">BaseAudioContext</span>
506
-
507
-
508
- </li>
509
- </ul>
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
- <h4 class="name" id="autoRefresh"><span class="type-signature"></span>autoRefresh<span class="type-signature"> :boolean</span></h4>
519
-
520
-
521
-
522
-
523
-
524
- <dl class="details">
525
-
526
-
527
- <dt class="tag-source">Source:</dt>
528
- <dd class="tag-source"><ul class="dummy"><li>
529
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line611">line 611</a>
530
- </li></ul></dd>
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
- </dl>
563
-
564
-
565
-
566
-
567
-
568
- <div class="description">
569
- Whether to refresh when changes are made that would effect the current frame
570
- </div>
571
-
572
-
573
-
574
- <h5>Type:</h5>
575
- <ul>
576
- <li>
577
-
578
- <span class="param-type">boolean</span>
579
-
580
-
581
- </li>
582
- </ul>
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
- <h4 class="name" id="background"><span class="type-signature"></span>background<span class="type-signature"> :string</span></h4>
592
-
593
-
594
-
595
-
596
-
597
- <dl class="details">
598
-
599
-
600
- <dt class="tag-source">Source:</dt>
601
- <dd class="tag-source"><ul class="dummy"><li>
602
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line600">line 600</a>
603
- </li></ul></dd>
604
-
605
-
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
- </dl>
636
-
637
-
638
-
639
-
640
-
641
- <div class="description">
642
- The css color for the background, or <code>null</code> for transparency
643
- </div>
644
-
645
-
646
-
647
- <h5>Type:</h5>
648
- <ul>
649
- <li>
650
-
651
- <span class="param-type">string</span>
652
-
653
-
654
- </li>
655
- </ul>
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
- <h4 class="name" id="canvas"><span class="type-signature"></span>canvas<span class="type-signature"> :HTMLCanvasElement</span></h4>
665
-
666
-
667
-
668
-
669
-
670
- <dl class="details">
671
-
672
-
673
- <dt class="tag-source">Source:</dt>
674
- <dd class="tag-source"><ul class="dummy"><li>
675
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line550">line 550</a>
676
- </li></ul></dd>
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
- </dl>
709
-
710
-
711
-
712
-
713
-
714
- <div class="description">
715
- The rendering canvas
716
- </div>
717
-
718
-
719
-
720
- <h5>Type:</h5>
721
- <ul>
722
- <li>
723
-
724
- <span class="param-type">HTMLCanvasElement</span>
725
-
726
-
727
- </li>
728
- </ul>
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
- <h4 class="name" id="cctx"><span class="type-signature"></span>cctx<span class="type-signature"> :CanvasRenderingContext2D</span></h4>
738
-
739
-
740
-
741
-
742
-
743
- <dl class="details">
744
-
745
-
746
- <dt class="tag-source">Source:</dt>
747
- <dd class="tag-source"><ul class="dummy"><li>
748
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line558">line 558</a>
749
- </li></ul></dd>
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
- </dl>
782
-
783
-
784
-
785
-
786
-
787
- <div class="description">
788
- The rendering canvas's context
789
- </div>
790
-
791
-
792
-
793
- <h5>Type:</h5>
794
- <ul>
795
- <li>
796
-
797
- <span class="param-type">CanvasRenderingContext2D</span>
798
-
799
-
800
- </li>
801
- </ul>
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
- <h4 class="name" id="currentTime"><span class="type-signature"></span>currentTime<span class="type-signature"> :number</span></h4>
811
-
812
-
813
-
814
-
815
-
816
- <dl class="details">
817
-
818
-
819
- <dt class="tag-source">Source:</dt>
820
- <dd class="tag-source"><ul class="dummy"><li>
821
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line513">line 513</a>
822
- </li></ul></dd>
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
- </dl>
855
-
856
-
857
-
858
-
859
-
860
- <div class="description">
861
- The current playback position
862
- </div>
863
-
864
-
865
-
866
- <h5>Type:</h5>
867
- <ul>
868
- <li>
869
-
870
- <span class="param-type">number</span>
871
-
872
-
873
- </li>
874
- </ul>
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
- <h4 class="name" id="duration"><span class="type-signature"></span>duration<span class="type-signature"> :number</span></h4>
884
-
885
-
886
-
887
-
888
-
889
- <dl class="details">
890
-
891
-
892
- <dt class="tag-source">Source:</dt>
893
- <dd class="tag-source"><ul class="dummy"><li>
894
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line457">line 457</a>
895
- </li></ul></dd>
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
- </dl>
928
-
929
-
930
-
931
-
932
-
933
- <div class="description">
934
- The combined duration of all layers
935
- </div>
936
-
937
-
938
-
939
- <h5>Type:</h5>
940
- <ul>
941
- <li>
942
-
943
- <span class="param-type">number</span>
944
-
945
-
946
- </li>
947
- </ul>
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
- <h4 class="name" id="effects"><span class="type-signature"></span>effects<span class="type-signature"> :Array.&lt;effect.Base></span></h4>
957
-
958
-
959
-
960
-
961
-
962
- <dl class="details">
963
-
964
-
965
- <dt class="tag-source">Source:</dt>
966
- <dd class="tag-source"><ul class="dummy"><li>
967
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line481">line 481</a>
968
- </li></ul></dd>
969
-
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
-
978
-
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
- </dl>
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
- <h5>Type:</h5>
1009
- <ul>
1010
- <li>
1011
-
1012
- <span class="param-type">Array.&lt;effect.Base></span>
1013
-
1014
-
1015
- </li>
1016
- </ul>
1017
-
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
- <h4 class="name" id="ended"><span class="type-signature"></span>ended<span class="type-signature"> :boolean</span></h4>
1026
-
1027
-
1028
-
1029
-
1030
-
1031
- <dl class="details">
1032
-
1033
-
1034
- <dt class="tag-source">Source:</dt>
1035
- <dd class="tag-source"><ul class="dummy"><li>
1036
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line505">line 505</a>
1037
- </li></ul></dd>
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
-
1069
- </dl>
1070
-
1071
-
1072
-
1073
-
1074
-
1075
- <div class="description">
1076
- If the playback position is at the end of the movie
1077
- </div>
1078
-
1079
-
1080
-
1081
- <h5>Type:</h5>
1082
- <ul>
1083
- <li>
1084
-
1085
- <span class="param-type">boolean</span>
1086
-
1087
-
1088
- </li>
1089
- </ul>
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
- <h4 class="name" id="height"><span class="type-signature"></span>height<span class="type-signature"> :number</span></h4>
1099
-
1100
-
1101
-
1102
-
1103
-
1104
- <dl class="details">
1105
-
1106
-
1107
- <dt class="tag-source">Source:</dt>
1108
- <dd class="tag-source"><ul class="dummy"><li>
1109
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line582">line 582</a>
1110
- </li></ul></dd>
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
- </dl>
1143
-
1144
-
1145
-
1146
-
1147
-
1148
- <div class="description">
1149
- The height of the rendering canvas
1150
- </div>
1151
-
1152
-
1153
-
1154
- <h5>Type:</h5>
1155
- <ul>
1156
- <li>
1157
-
1158
- <span class="param-type">number</span>
1159
-
1160
-
1161
- </li>
1162
- </ul>
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
- <h4 class="name" id="layers"><span class="type-signature"></span>layers<span class="type-signature"> :Array.&lt;layer.Base></span></h4>
1172
-
1173
-
1174
-
1175
-
1176
-
1177
- <dl class="details">
1178
-
1179
-
1180
- <dt class="tag-source">Source:</dt>
1181
- <dd class="tag-source"><ul class="dummy"><li>
1182
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line464">line 464</a>
1183
- </li></ul></dd>
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
-
1205
-
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
- </dl>
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
- <h5>Type:</h5>
1224
- <ul>
1225
- <li>
1226
-
1227
- <span class="param-type">Array.&lt;layer.Base></span>
1228
-
1229
-
1230
- </li>
1231
- </ul>
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
- <h4 class="name" id="paused"><span class="type-signature"></span>paused<span class="type-signature"> :boolean</span></h4>
1241
-
1242
-
1243
-
1244
-
1245
-
1246
- <dl class="details">
1247
-
1248
-
1249
- <dt class="tag-source">Source:</dt>
1250
- <dd class="tag-source"><ul class="dummy"><li>
1251
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line497">line 497</a>
1252
- </li></ul></dd>
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
-
1278
-
1279
-
1280
-
1281
-
1282
-
1283
-
1284
- </dl>
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
- <h5>Type:</h5>
1293
- <ul>
1294
- <li>
1295
-
1296
- <span class="param-type">boolean</span>
1297
-
1298
-
1299
- </li>
1300
- </ul>
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
- <h4 class="name" id="recording"><span class="type-signature"></span>recording<span class="type-signature"> :boolean</span></h4>
1310
-
1311
-
1312
-
1313
-
1314
-
1315
- <dl class="details">
1316
-
1317
-
1318
- <dt class="tag-source">Source:</dt>
1319
- <dd class="tag-source"><ul class="dummy"><li>
1320
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line449">line 449</a>
1321
- </li></ul></dd>
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
-
1339
-
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
- </dl>
1354
-
1355
-
1356
-
1357
-
1358
-
1359
- <div class="description">
1360
- If the movie is recording
1361
- </div>
1362
-
1363
-
1364
-
1365
- <h5>Type:</h5>
1366
- <ul>
1367
- <li>
1368
-
1369
- <span class="param-type">boolean</span>
1370
-
1371
-
1372
- </li>
1373
- </ul>
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
-
1381
-
1382
- <h4 class="name" id="rendering"><span class="type-signature"></span>rendering<span class="type-signature"> :boolean</span></h4>
1383
-
1384
-
1385
-
1386
-
1387
-
1388
- <dl class="details">
1389
-
1390
-
1391
- <dt class="tag-source">Source:</dt>
1392
- <dd class="tag-source"><ul class="dummy"><li>
1393
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line433">line 433</a>
1394
- </li></ul></dd>
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
- </dl>
1427
-
1428
-
1429
-
1430
-
1431
-
1432
- <div class="description">
1433
- If the movie is playing, recording or refreshing
1434
- </div>
1435
-
1436
-
1437
-
1438
- <h5>Type:</h5>
1439
- <ul>
1440
- <li>
1441
-
1442
- <span class="param-type">boolean</span>
1443
-
1444
-
1445
- </li>
1446
- </ul>
1447
-
1448
-
1449
-
1450
-
1451
-
1452
-
1453
-
1454
-
1455
- <h4 class="name" id="renderingFrame"><span class="type-signature"></span>renderingFrame<span class="type-signature"> :boolean</span></h4>
1456
-
1457
-
1458
-
1459
-
1460
-
1461
- <dl class="details">
1462
-
1463
-
1464
- <dt class="tag-source">Source:</dt>
1465
- <dd class="tag-source"><ul class="dummy"><li>
1466
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line441">line 441</a>
1467
- </li></ul></dd>
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
-
1476
-
1477
-
1478
-
1479
-
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
- </dl>
1500
-
1501
-
1502
-
1503
-
1504
-
1505
- <div class="description">
1506
- If the movie is refreshing current frame
1507
- </div>
1508
-
1509
-
1510
-
1511
- <h5>Type:</h5>
1512
- <ul>
1513
- <li>
1514
-
1515
- <span class="param-type">boolean</span>
1516
-
1517
-
1518
- </li>
1519
- </ul>
1520
-
1521
-
1522
-
1523
-
1524
-
1525
-
1526
-
1527
-
1528
- <h4 class="name" id="repeat"><span class="type-signature"></span>repeat<span class="type-signature"> :boolean</span></h4>
1529
-
1530
-
1531
-
1532
-
1533
-
1534
- <dl class="details">
1535
-
1536
-
1537
- <dt class="tag-source">Source:</dt>
1538
- <dd class="tag-source"><ul class="dummy"><li>
1539
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line606">line 606</a>
1540
- </li></ul></dd>
1541
-
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
-
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
- </dl>
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
- <h5>Type:</h5>
1581
- <ul>
1582
- <li>
1583
-
1584
- <span class="param-type">boolean</span>
1585
-
1586
-
1587
- </li>
1588
- </ul>
1589
-
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
- <h4 class="name" id="width"><span class="type-signature"></span>width<span class="type-signature"> :number</span></h4>
1598
-
1599
-
1600
-
1601
-
1602
-
1603
- <dl class="details">
1604
-
1605
-
1606
- <dt class="tag-source">Source:</dt>
1607
- <dd class="tag-source"><ul class="dummy"><li>
1608
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line574">line 574</a>
1609
- </li></ul></dd>
1610
-
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
- </dl>
1642
-
1643
-
1644
-
1645
-
1646
-
1647
- <div class="description">
1648
- The width of the rendering canvas
1649
- </div>
1650
-
1651
-
1652
-
1653
- <h5>Type:</h5>
1654
- <ul>
1655
- <li>
1656
-
1657
- <span class="param-type">number</span>
1658
-
1659
-
1660
- </li>
1661
- </ul>
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
-
1671
-
1672
- <h3 class="subsection-title">Methods</h3>
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
- <h4 class="name" id="addEffect"><span class="type-signature"></span>addEffect<span class="signature">(effect)</span><span class="type-signature"> &rarr; {Movie}</span></h4>
1680
-
1681
-
1682
-
1683
-
1684
-
1685
-
1686
- <dl class="details">
1687
-
1688
-
1689
- <dt class="tag-source">Source:</dt>
1690
- <dd class="tag-source"><ul class="dummy"><li>
1691
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line490">line 490</a>
1692
- </li></ul></dd>
1693
-
1694
-
1695
-
1696
-
1697
-
1698
-
1699
-
1700
-
1701
-
1702
-
1703
-
1704
-
1705
-
1706
-
1707
-
1708
-
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
-
1723
-
1724
- </dl>
1725
-
1726
-
1727
-
1728
-
1729
-
1730
- <div class="description">
1731
- Convienence method for <code>effects.push()</code>
1732
- </div>
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
- <h5>Parameters:</h5>
1745
-
1746
-
1747
- <table class="params">
1748
- <thead>
1749
- <tr>
1750
-
1751
- <th>Name</th>
1752
-
1753
-
1754
- <th>Type</th>
1755
-
1756
-
1757
-
1758
-
1759
-
1760
- <th class="last">Description</th>
1761
- </tr>
1762
- </thead>
1763
-
1764
- <tbody>
1765
-
1766
-
1767
- <tr>
1768
-
1769
- <td class="name"><code>effect</code></td>
1770
-
1771
-
1772
- <td class="type">
1773
-
1774
-
1775
- <span class="param-type">BaseEffect</span>
1776
-
1777
-
1778
-
1779
- </td>
1780
-
1781
-
1782
-
1783
-
1784
-
1785
- <td class="description last"></td>
1786
- </tr>
1787
-
1788
-
1789
- </tbody>
1790
- </table>
1791
-
1792
-
1793
-
1794
-
1795
-
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
- <h5>Returns:</h5>
1808
-
1809
-
1810
- <div class="param-desc">
1811
- the movie (for chaining)
1812
- </div>
1813
-
1814
-
1815
-
1816
- <dl class="param-type">
1817
- <dt>
1818
- Type
1819
- </dt>
1820
- <dd>
1821
-
1822
- <span class="param-type">Movie</span>
1823
-
1824
-
1825
- </dd>
1826
- </dl>
1827
-
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
-
1835
-
1836
-
1837
- <h4 class="name" id="addLayer"><span class="type-signature"></span>addLayer<span class="signature">(layer)</span><span class="type-signature"> &rarr; {Movie}</span></h4>
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
- <dl class="details">
1845
-
1846
-
1847
- <dt class="tag-source">Source:</dt>
1848
- <dd class="tag-source"><ul class="dummy"><li>
1849
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line474">line 474</a>
1850
- </li></ul></dd>
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
-
1873
-
1874
-
1875
-
1876
-
1877
-
1878
-
1879
-
1880
-
1881
-
1882
- </dl>
1883
-
1884
-
1885
-
1886
-
1887
-
1888
- <div class="description">
1889
- Convienence method for <code>layers.push()</code>
1890
- </div>
1891
-
1892
-
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
-
1902
- <h5>Parameters:</h5>
1903
-
1904
-
1905
- <table class="params">
1906
- <thead>
1907
- <tr>
1908
-
1909
- <th>Name</th>
1910
-
1911
-
1912
- <th>Type</th>
1913
-
1914
-
1915
-
1916
-
1917
-
1918
- <th class="last">Description</th>
1919
- </tr>
1920
- </thead>
1921
-
1922
- <tbody>
1923
-
1924
-
1925
- <tr>
1926
-
1927
- <td class="name"><code>layer</code></td>
1928
-
1929
-
1930
- <td class="type">
1931
-
1932
-
1933
- <span class="param-type">BaseLayer</span>
1934
-
1935
-
1936
-
1937
- </td>
1938
-
1939
-
1940
-
1941
-
1942
-
1943
- <td class="description last"></td>
1944
- </tr>
1945
-
1946
-
1947
- </tbody>
1948
- </table>
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
- <h5>Returns:</h5>
1966
-
1967
-
1968
- <div class="param-desc">
1969
- the movie (for chaining)
1970
- </div>
1971
-
1972
-
1973
-
1974
- <dl class="param-type">
1975
- <dt>
1976
- Type
1977
- </dt>
1978
- <dd>
1979
-
1980
- <span class="param-type">Movie</span>
1981
-
1982
-
1983
- </dd>
1984
- </dl>
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
-
1994
-
1995
- <h4 class="name" id="pause"><span class="type-signature"></span>pause<span class="signature">()</span><span class="type-signature"> &rarr; {Movie}</span></h4>
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
- <dl class="details">
2003
-
2004
-
2005
- <dt class="tag-source">Source:</dt>
2006
- <dd class="tag-source"><ul class="dummy"><li>
2007
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line245">line 245</a>
2008
- </li></ul></dd>
2009
-
2010
-
2011
-
2012
-
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
-
2025
-
2026
-
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
-
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
- </dl>
2041
-
2042
-
2043
-
2044
-
2045
-
2046
- <div class="description">
2047
- Stops the movie, without reseting the playback position
2048
- </div>
2049
-
2050
-
2051
-
2052
-
2053
-
2054
-
2055
-
2056
-
2057
-
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
-
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
-
2074
- <h5>Returns:</h5>
2075
-
2076
-
2077
- <div class="param-desc">
2078
- the movie (for chaining)
2079
- </div>
2080
-
2081
-
2082
-
2083
- <dl class="param-type">
2084
- <dt>
2085
- Type
2086
- </dt>
2087
- <dd>
2088
-
2089
- <span class="param-type">Movie</span>
2090
-
2091
-
2092
- </dd>
2093
- </dl>
2094
-
2095
-
2096
-
2097
-
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
- <h4 class="name" id="play"><span class="type-signature"></span>play<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4>
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
- <dl class="details">
2112
-
2113
-
2114
- <dt class="tag-source">Source:</dt>
2115
- <dd class="tag-source"><ul class="dummy"><li>
2116
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line144">line 144</a>
2117
- </li></ul></dd>
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
- </dl>
2150
-
2151
-
2152
-
2153
-
2154
-
2155
- <div class="description">
2156
- Plays the movie
2157
- </div>
2158
-
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
- <h5>Returns:</h5>
2184
-
2185
-
2186
- <div class="param-desc">
2187
- fulfilled when done playing, never fails
2188
- </div>
2189
-
2190
-
2191
-
2192
- <dl class="param-type">
2193
- <dt>
2194
- Type
2195
- </dt>
2196
- <dd>
2197
-
2198
- <span class="param-type">Promise</span>
2199
-
2200
-
2201
- </dd>
2202
- </dl>
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
-
2212
-
2213
- <h4 class="name" id="publishToLayers"><span class="type-signature"></span>publishToLayers<span class="signature">()</span><span class="type-signature"></span></h4>
2214
-
2215
-
2216
-
2217
-
2218
-
2219
-
2220
- <dl class="details">
2221
-
2222
-
2223
- <dt class="tag-source">Source:</dt>
2224
- <dd class="tag-source"><ul class="dummy"><li>
2225
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line423">line 423</a>
2226
- </li></ul></dd>
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
-
2234
-
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
-
2250
-
2251
-
2252
-
2253
-
2254
-
2255
-
2256
-
2257
-
2258
- <dt class="tag-todo">To Do:</dt>
2259
- <dd class="tag-todo">
2260
- <ul>
2261
- <li>Make private</li>
2262
- </ul>
2263
- </dd>
2264
-
2265
- </dl>
2266
-
2267
-
2268
-
2269
-
2270
-
2271
- <div class="description">
2272
- Convienence method
2273
- </div>
2274
-
2275
-
2276
-
2277
-
2278
-
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
-
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
-
2307
- <h4 class="name" id="record"><span class="type-signature"></span>record<span class="signature">(framerate, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
2308
-
2309
-
2310
-
2311
-
2312
-
2313
-
2314
- <dl class="details">
2315
-
2316
-
2317
- <dt class="tag-source">Source:</dt>
2318
- <dd class="tag-source"><ul class="dummy"><li>
2319
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line177">line 177</a>
2320
- </li></ul></dd>
2321
-
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
- </dl>
2353
-
2354
-
2355
-
2356
-
2357
-
2358
- <div class="description">
2359
- Plays the movie in the background and records it
2360
- </div>
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
-
2370
-
2371
-
2372
- <h5>Parameters:</h5>
2373
-
2374
-
2375
- <table class="params">
2376
- <thead>
2377
- <tr>
2378
-
2379
- <th>Name</th>
2380
-
2381
-
2382
- <th>Type</th>
2383
-
2384
-
2385
- <th>Attributes</th>
2386
-
2387
-
2388
-
2389
-
2390
- <th class="last">Description</th>
2391
- </tr>
2392
- </thead>
2393
-
2394
- <tbody>
2395
-
2396
-
2397
- <tr>
2398
-
2399
- <td class="name"><code>framerate</code></td>
2400
-
2401
-
2402
- <td class="type">
2403
-
2404
-
2405
- <span class="param-type">number</span>
2406
-
2407
-
2408
-
2409
- </td>
2410
-
2411
-
2412
- <td class="attributes">
2413
-
2414
-
2415
-
2416
-
2417
-
2418
- </td>
2419
-
2420
-
2421
-
2422
-
2423
- <td class="description last"></td>
2424
- </tr>
2425
-
2426
-
2427
-
2428
- <tr>
2429
-
2430
- <td class="name"><code>options</code></td>
2431
-
2432
-
2433
- <td class="type">
2434
-
2435
-
2436
- <span class="param-type">object</span>
2437
-
2438
-
2439
-
2440
- </td>
2441
-
2442
-
2443
- <td class="attributes">
2444
-
2445
- &lt;optional><br>
2446
-
2447
-
2448
-
2449
-
2450
-
2451
- </td>
2452
-
2453
-
2454
-
2455
-
2456
- <td class="description last">
2457
- <h6>Properties</h6>
2458
-
2459
-
2460
- <table class="params">
2461
- <thead>
2462
- <tr>
2463
-
2464
- <th>Name</th>
2465
-
2466
-
2467
- <th>Type</th>
2468
-
2469
-
2470
- <th>Attributes</th>
2471
-
2472
-
2473
-
2474
- <th>Default</th>
2475
-
2476
-
2477
- <th class="last">Description</th>
2478
- </tr>
2479
- </thead>
2480
-
2481
- <tbody>
2482
-
2483
-
2484
- <tr>
2485
-
2486
- <td class="name"><code>video</code></td>
2487
-
2488
-
2489
- <td class="type">
2490
-
2491
-
2492
- <span class="param-type">boolean</span>
2493
-
2494
-
2495
-
2496
- </td>
2497
-
2498
-
2499
- <td class="attributes">
2500
-
2501
- &lt;optional><br>
2502
-
2503
-
2504
-
2505
-
2506
-
2507
- </td>
2508
-
2509
-
2510
-
2511
- <td class="default">
2512
-
2513
- <code>true</code>
2514
-
2515
- </td>
2516
-
2517
-
2518
- <td class="description last">whether to include video in recording</td>
2519
- </tr>
2520
-
2521
-
2522
-
2523
- <tr>
2524
-
2525
- <td class="name"><code>audio</code></td>
2526
-
2527
-
2528
- <td class="type">
2529
-
2530
-
2531
- <span class="param-type">boolean</span>
2532
-
2533
-
2534
-
2535
- </td>
2536
-
2537
-
2538
- <td class="attributes">
2539
-
2540
- &lt;optional><br>
2541
-
2542
-
2543
-
2544
-
2545
-
2546
- </td>
2547
-
2548
-
2549
-
2550
- <td class="default">
2551
-
2552
- <code>true</code>
2553
-
2554
- </td>
2555
-
2556
-
2557
- <td class="description last">whether to include audio in recording</td>
2558
- </tr>
2559
-
2560
-
2561
-
2562
- <tr>
2563
-
2564
- <td class="name"><code>mediaRecorderOptions</code></td>
2565
-
2566
-
2567
- <td class="type">
2568
-
2569
-
2570
- <span class="param-type">object</span>
2571
-
2572
-
2573
-
2574
- </td>
2575
-
2576
-
2577
- <td class="attributes">
2578
-
2579
- &lt;optional><br>
2580
-
2581
-
2582
-
2583
-
2584
-
2585
- </td>
2586
-
2587
-
2588
-
2589
- <td class="default">
2590
-
2591
- </td>
2592
-
2593
-
2594
- <td class="description last">options to pass to the <code>MediaRecorder</code>
2595
- constructor</td>
2596
- </tr>
2597
-
2598
-
2599
- </tbody>
2600
- </table>
2601
-
2602
- </td>
2603
- </tr>
2604
-
2605
-
2606
- </tbody>
2607
- </table>
2608
-
2609
-
2610
-
2611
-
2612
-
2613
-
2614
-
2615
-
2616
-
2617
-
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
- <h5>Returns:</h5>
2625
-
2626
-
2627
- <div class="param-desc">
2628
- resolves when done recording, rejects when internal media recorder errors
2629
- </div>
2630
-
2631
-
2632
-
2633
- <dl class="param-type">
2634
- <dt>
2635
- Type
2636
- </dt>
2637
- <dd>
2638
-
2639
- <span class="param-type">Promise</span>
2640
-
2641
-
2642
- </dd>
2643
- </dl>
2644
-
2645
-
2646
-
2647
-
2648
-
2649
-
2650
-
2651
-
2652
-
2653
-
2654
- <h4 class="name" id="refresh"><span class="type-signature"></span>refresh<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4>
2655
-
2656
-
2657
-
2658
-
2659
-
2660
-
2661
- <dl class="details">
2662
-
2663
-
2664
- <dt class="tag-source">Source:</dt>
2665
- <dd class="tag-source"><ul class="dummy"><li>
2666
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line408">line 408</a>
2667
- </li></ul></dd>
2668
-
2669
-
2670
-
2671
-
2672
-
2673
-
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
-
2681
-
2682
-
2683
-
2684
-
2685
-
2686
-
2687
-
2688
-
2689
-
2690
-
2691
-
2692
-
2693
-
2694
-
2695
-
2696
-
2697
-
2698
-
2699
- </dl>
2700
-
2701
-
2702
-
2703
-
2704
-
2705
- <div class="description">
2706
- Refreshes the screen (only use this if auto-refresh is disabled)
2707
- </div>
2708
-
2709
-
2710
-
2711
-
2712
-
2713
-
2714
-
2715
-
2716
-
2717
-
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
-
2730
-
2731
-
2732
-
2733
- <h5>Returns:</h5>
2734
-
2735
-
2736
- <div class="param-desc">
2737
- - resolves when the frame is loaded
2738
- </div>
2739
-
2740
-
2741
-
2742
- <dl class="param-type">
2743
- <dt>
2744
- Type
2745
- </dt>
2746
- <dd>
2747
-
2748
- <span class="param-type">Promise</span>
2749
-
2750
-
2751
- </dd>
2752
- </dl>
2753
-
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
-
2762
-
2763
- <h4 class="name" id="setCurrentTime"><span class="type-signature"></span>setCurrentTime<span class="signature">(time, refresh<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
2764
-
2765
-
2766
-
2767
-
2768
-
2769
-
2770
- <dl class="details">
2771
-
2772
-
2773
- <dt class="tag-source">Source:</dt>
2774
- <dd class="tag-source"><ul class="dummy"><li>
2775
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line527">line 527</a>
2776
- </li></ul></dd>
2777
-
2778
-
2779
-
2780
-
2781
-
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
-
2789
-
2790
-
2791
-
2792
-
2793
-
2794
-
2795
-
2796
-
2797
-
2798
-
2799
-
2800
-
2801
-
2802
-
2803
-
2804
-
2805
-
2806
-
2807
-
2808
- <dt class="tag-todo">To Do:</dt>
2809
- <dd class="tag-todo">
2810
- <ul>
2811
- <li>Refresh ionly f auto-refreshing is enabled</li>
2812
- </ul>
2813
- </dd>
2814
-
2815
- </dl>
2816
-
2817
-
2818
-
2819
-
2820
-
2821
- <div class="description">
2822
- Sets the current playback position. This is a more powerful version of `set currentTime`.
2823
- </div>
2824
-
2825
-
2826
-
2827
-
2828
-
2829
-
2830
-
2831
-
2832
-
2833
-
2834
-
2835
- <h5>Parameters:</h5>
2836
-
2837
-
2838
- <table class="params">
2839
- <thead>
2840
- <tr>
2841
-
2842
- <th>Name</th>
2843
-
2844
-
2845
- <th>Type</th>
2846
-
2847
-
2848
- <th>Attributes</th>
2849
-
2850
-
2851
-
2852
- <th>Default</th>
2853
-
2854
-
2855
- <th class="last">Description</th>
2856
- </tr>
2857
- </thead>
2858
-
2859
- <tbody>
2860
-
2861
-
2862
- <tr>
2863
-
2864
- <td class="name"><code>time</code></td>
2865
-
2866
-
2867
- <td class="type">
2868
-
2869
-
2870
- <span class="param-type">number</span>
2871
-
2872
-
2873
-
2874
- </td>
2875
-
2876
-
2877
- <td class="attributes">
2878
-
2879
-
2880
-
2881
-
2882
-
2883
- </td>
2884
-
2885
-
2886
-
2887
- <td class="default">
2888
-
2889
- </td>
2890
-
2891
-
2892
- <td class="description last">the new cursor's time value in seconds</td>
2893
- </tr>
2894
-
2895
-
2896
-
2897
- <tr>
2898
-
2899
- <td class="name"><code>refresh</code></td>
2900
-
2901
-
2902
- <td class="type">
2903
-
2904
-
2905
- <span class="param-type">boolean</span>
2906
-
2907
-
2908
-
2909
- </td>
2910
-
2911
-
2912
- <td class="attributes">
2913
-
2914
- &lt;optional><br>
2915
-
2916
-
2917
-
2918
-
2919
-
2920
- </td>
2921
-
2922
-
2923
-
2924
- <td class="default">
2925
-
2926
- <code>true</code>
2927
-
2928
- </td>
2929
-
2930
-
2931
- <td class="description last">whether to render a single frame to match new time or not</td>
2932
- </tr>
2933
-
2934
-
2935
- </tbody>
2936
- </table>
2937
-
2938
-
2939
-
2940
-
2941
-
2942
-
2943
-
2944
-
2945
-
2946
-
2947
-
2948
-
2949
-
2950
-
2951
-
2952
-
2953
- <h5>Returns:</h5>
2954
-
2955
-
2956
- <div class="param-desc">
2957
- resolves when the current frame is rendered if <code>refresh</code> is true,
2958
- otherwise resolves immediately
2959
- </div>
2960
-
2961
-
2962
-
2963
- <dl class="param-type">
2964
- <dt>
2965
- Type
2966
- </dt>
2967
- <dd>
2968
-
2969
- <span class="param-type">Promise</span>
2970
-
2971
-
2972
- </dd>
2973
- </dl>
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
-
2984
- <h4 class="name" id="stop"><span class="type-signature"></span>stop<span class="signature">()</span><span class="type-signature"> &rarr; {Movie}</span></h4>
2985
-
2986
-
2987
-
2988
-
2989
-
2990
-
2991
- <dl class="details">
2992
-
2993
-
2994
- <dt class="tag-source">Source:</dt>
2995
- <dd class="tag-source"><ul class="dummy"><li>
2996
- <a href="movie.js.html">movie.js</a>, <a href="movie.js.html#line261">line 261</a>
2997
- </li></ul></dd>
2998
-
2999
-
3000
-
3001
-
3002
-
3003
-
3004
-
3005
-
3006
-
3007
-
3008
-
3009
-
3010
-
3011
-
3012
-
3013
-
3014
-
3015
-
3016
-
3017
-
3018
-
3019
-
3020
-
3021
-
3022
-
3023
-
3024
-
3025
-
3026
-
3027
-
3028
-
3029
- </dl>
3030
-
3031
-
3032
-
3033
-
3034
-
3035
- <div class="description">
3036
- Stops playback and resets the playback position
3037
- </div>
3038
-
3039
-
3040
-
3041
-
3042
-
3043
-
3044
-
3045
-
3046
-
3047
-
3048
-
3049
-
3050
-
3051
-
3052
-
3053
-
3054
-
3055
-
3056
-
3057
-
3058
-
3059
-
3060
-
3061
-
3062
-
3063
- <h5>Returns:</h5>
3064
-
3065
-
3066
- <div class="param-desc">
3067
- the movie (for chaining)
3068
- </div>
3069
-
3070
-
3071
-
3072
- <dl class="param-type">
3073
- <dt>
3074
- Type
3075
- </dt>
3076
- <dd>
3077
-
3078
- <span class="param-type">Movie</span>
3079
-
3080
-
3081
- </dd>
3082
- </dl>
3083
-
3084
-
3085
-
3086
-
3087
-
3088
-
3089
-
3090
-
3091
-
3092
-
3093
-
3094
- </article>
3095
-
3096
- </section>
3097
-
3098
-
3099
-
3100
-
3101
-
3102
-
3103
- </div>
3104
-
3105
- <br class="clear">
3106
-
3107
- <footer>
3108
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sun Oct 13 2019 15:38:43 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3109
- </footer>
3110
-
3111
- <script>prettyPrint();</script>
3112
- <script src="scripts/polyfill.js"></script>
3113
- <script src="scripts/linenumber.js"></script>
3114
-
3115
-
3116
-
3117
- </body>
3118
- </html>