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,1174 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>Transform - 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">Transform</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- <span class="ancestors"><a href="module-effect.html">effect</a>.</span>
49
-
50
- Transform
51
- </h2>
52
-
53
- <div class="class-description">Transforms a layer or movie using a transformation matrix. Use Transform.Matrix
54
- to either A) calculate those values based on a series of translations, scalings and rotations)
55
- or B) input the matrix values directly, using the optional argument in the constructor.</div>
56
-
57
-
58
- </header>
59
-
60
- <article>
61
-
62
- <div class="container-overview">
63
-
64
-
65
-
66
-
67
- <h2>Constructor</h2>
68
-
69
-
70
- <h4 class="name" id="Transform"><span class="type-signature"></span>new Transform<span class="signature">(matrix)</span><span class="type-signature"></span></h4>
71
-
72
-
73
-
74
-
75
-
76
-
77
- <dl class="details">
78
-
79
-
80
- <dt class="tag-source">Source:</dt>
81
- <dd class="tag-source"><ul class="dummy"><li>
82
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line943">line 943</a>
83
- </li></ul></dd>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- </dl>
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <h5>Parameters:</h5>
132
-
133
-
134
- <table class="params">
135
- <thead>
136
- <tr>
137
-
138
- <th>Name</th>
139
-
140
-
141
- <th>Type</th>
142
-
143
-
144
-
145
-
146
-
147
- <th class="last">Description</th>
148
- </tr>
149
- </thead>
150
-
151
- <tbody>
152
-
153
-
154
- <tr>
155
-
156
- <td class="name"><code>matrix</code></td>
157
-
158
-
159
- <td class="type">
160
-
161
-
162
- <span class="param-type"><a href="module-effect.Transform.Matrix.html">module:effect.Transform.Matrix</a></span>
163
-
164
-
165
-
166
- </td>
167
-
168
-
169
-
170
-
171
-
172
- <td class="description last">how to transform the target</td>
173
- </tr>
174
-
175
-
176
- </tbody>
177
- </table>
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- </div>
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <h3 class="subsection-title">Classes</h3>
207
-
208
- <dl>
209
- <dt><a href="module-effect.Transform.Matrix.html">Matrix</a></dt>
210
- <dd></dd>
211
- </dl>
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
- <h3 class="subsection-title">Members</h3>
222
-
223
-
224
-
225
- <h4 class="name" id=".Matrix.IDENTITY"><span class="type-signature">(static) </span>Matrix.IDENTITY<span class="type-signature"></span></h4>
226
-
227
-
228
-
229
-
230
-
231
- <dl class="details">
232
-
233
-
234
- <dt class="tag-source">Source:</dt>
235
- <dd class="tag-source"><ul class="dummy"><li>
236
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1101">line 1101</a>
237
- </li></ul></dd>
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
- </dl>
270
-
271
-
272
-
273
-
274
-
275
- <div class="description">
276
- The identity matrix
277
- </div>
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
- <h4 class="name" id="matrix"><span class="type-signature"></span>matrix<span class="type-signature"> :<a href="module-effect.Transform.Matrix.html">module:effect.Transform.Matrix</a></span></h4>
289
-
290
-
291
-
292
-
293
-
294
- <dl class="details">
295
-
296
-
297
- <dt class="tag-source">Source:</dt>
298
- <dd class="tag-source"><ul class="dummy"><li>
299
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line949">line 949</a>
300
- </li></ul></dd>
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
- </dl>
333
-
334
-
335
-
336
-
337
-
338
- <div class="description">
339
- How to transform the target
340
- </div>
341
-
342
-
343
-
344
- <h5>Type:</h5>
345
- <ul>
346
- <li>
347
-
348
- <span class="param-type"><a href="module-effect.Transform.Matrix.html">module:effect.Transform.Matrix</a></span>
349
-
350
-
351
- </li>
352
- </ul>
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
- <h3 class="subsection-title">Methods</h3>
364
-
365
-
366
-
367
-
368
-
369
-
370
- <h4 class="name" id="cell"><span class="type-signature">(static) </span>Matrix#cell<span class="signature">(x, y, val<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
371
-
372
-
373
-
374
-
375
-
376
-
377
- <dl class="details">
378
-
379
-
380
- <dt class="tag-source">Source:</dt>
381
- <dd class="tag-source"><ul class="dummy"><li>
382
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1001">line 1001</a>
383
- </li></ul></dd>
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
- </dl>
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
- <h5>Parameters:</h5>
432
-
433
-
434
- <table class="params">
435
- <thead>
436
- <tr>
437
-
438
- <th>Name</th>
439
-
440
-
441
- <th>Type</th>
442
-
443
-
444
- <th>Attributes</th>
445
-
446
-
447
-
448
-
449
- <th class="last">Description</th>
450
- </tr>
451
- </thead>
452
-
453
- <tbody>
454
-
455
-
456
- <tr>
457
-
458
- <td class="name"><code>x</code></td>
459
-
460
-
461
- <td class="type">
462
-
463
-
464
- <span class="param-type">number</span>
465
-
466
-
467
-
468
- </td>
469
-
470
-
471
- <td class="attributes">
472
-
473
-
474
-
475
-
476
-
477
- </td>
478
-
479
-
480
-
481
-
482
- <td class="description last"></td>
483
- </tr>
484
-
485
-
486
-
487
- <tr>
488
-
489
- <td class="name"><code>y</code></td>
490
-
491
-
492
- <td class="type">
493
-
494
-
495
- <span class="param-type">number</span>
496
-
497
-
498
-
499
- </td>
500
-
501
-
502
- <td class="attributes">
503
-
504
-
505
-
506
-
507
-
508
- </td>
509
-
510
-
511
-
512
-
513
- <td class="description last"></td>
514
- </tr>
515
-
516
-
517
-
518
- <tr>
519
-
520
- <td class="name"><code>val</code></td>
521
-
522
-
523
- <td class="type">
524
-
525
-
526
- <span class="param-type">number</span>
527
-
528
-
529
-
530
- </td>
531
-
532
-
533
- <td class="attributes">
534
-
535
- &lt;optional><br>
536
-
537
-
538
-
539
-
540
-
541
- </td>
542
-
543
-
544
-
545
-
546
- <td class="description last"></td>
547
- </tr>
548
-
549
-
550
- </tbody>
551
- </table>
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
- <h4 class="name" id="multiply"><span class="type-signature">(static) </span>Matrix#multiply<span class="signature">(other)</span><span class="type-signature"></span></h4>
577
-
578
-
579
-
580
-
581
-
582
-
583
- <dl class="details">
584
-
585
-
586
- <dt class="tag-source">Source:</dt>
587
- <dd class="tag-source"><ul class="dummy"><li>
588
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1037">line 1037</a>
589
- </li></ul></dd>
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
- </dl>
622
-
623
-
624
-
625
-
626
-
627
- <div class="description">
628
- Combines <code>this</code> with another matrix <code>other</code>
629
- </div>
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
- <h5>Parameters:</h5>
642
-
643
-
644
- <table class="params">
645
- <thead>
646
- <tr>
647
-
648
- <th>Name</th>
649
-
650
-
651
- <th>Type</th>
652
-
653
-
654
-
655
-
656
-
657
- <th class="last">Description</th>
658
- </tr>
659
- </thead>
660
-
661
- <tbody>
662
-
663
-
664
- <tr>
665
-
666
- <td class="name"><code>other</code></td>
667
-
668
-
669
- <td class="type">
670
-
671
- </td>
672
-
673
-
674
-
675
-
676
-
677
- <td class="description last"></td>
678
- </tr>
679
-
680
-
681
- </tbody>
682
- </table>
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
- <h4 class="name" id="rotate"><span class="type-signature">(static) </span>Matrix#rotate<span class="signature">(a)</span><span class="type-signature"></span></h4>
708
-
709
-
710
-
711
-
712
-
713
-
714
- <dl class="details">
715
-
716
-
717
- <dt class="tag-source">Source:</dt>
718
- <dd class="tag-source"><ul class="dummy"><li>
719
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1087">line 1087</a>
720
- </li></ul></dd>
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
- </dl>
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
- <h5>Parameters:</h5>
769
-
770
-
771
- <table class="params">
772
- <thead>
773
- <tr>
774
-
775
- <th>Name</th>
776
-
777
-
778
- <th>Type</th>
779
-
780
-
781
-
782
-
783
-
784
- <th class="last">Description</th>
785
- </tr>
786
- </thead>
787
-
788
- <tbody>
789
-
790
-
791
- <tr>
792
-
793
- <td class="name"><code>a</code></td>
794
-
795
-
796
- <td class="type">
797
-
798
-
799
- <span class="param-type">number</span>
800
-
801
-
802
-
803
- </td>
804
-
805
-
806
-
807
-
808
-
809
- <td class="description last">the angle or rotation in radians</td>
810
- </tr>
811
-
812
-
813
- </tbody>
814
- </table>
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
- <h4 class="name" id="scale"><span class="type-signature">(static) </span>Matrix#scale<span class="signature">(x, y)</span><span class="type-signature"></span></h4>
840
-
841
-
842
-
843
-
844
-
845
-
846
- <dl class="details">
847
-
848
-
849
- <dt class="tag-source">Source:</dt>
850
- <dd class="tag-source"><ul class="dummy"><li>
851
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1074">line 1074</a>
852
- </li></ul></dd>
853
-
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
- </dl>
885
-
886
-
887
-
888
-
889
-
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
- <h5>Parameters:</h5>
901
-
902
-
903
- <table class="params">
904
- <thead>
905
- <tr>
906
-
907
- <th>Name</th>
908
-
909
-
910
- <th>Type</th>
911
-
912
-
913
-
914
-
915
-
916
- <th class="last">Description</th>
917
- </tr>
918
- </thead>
919
-
920
- <tbody>
921
-
922
-
923
- <tr>
924
-
925
- <td class="name"><code>x</code></td>
926
-
927
-
928
- <td class="type">
929
-
930
-
931
- <span class="param-type">number</span>
932
-
933
-
934
-
935
- </td>
936
-
937
-
938
-
939
-
940
-
941
- <td class="description last"></td>
942
- </tr>
943
-
944
-
945
-
946
- <tr>
947
-
948
- <td class="name"><code>y</code></td>
949
-
950
-
951
- <td class="type">
952
-
953
-
954
- <span class="param-type">number</span>
955
-
956
-
957
-
958
- </td>
959
-
960
-
961
-
962
-
963
-
964
- <td class="description last"></td>
965
- </tr>
966
-
967
-
968
- </tbody>
969
- </table>
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
- <h4 class="name" id="translate"><span class="type-signature">(static) </span>Matrix#translate<span class="signature">(x, y)</span><span class="type-signature"></span></h4>
995
-
996
-
997
-
998
-
999
-
1000
-
1001
- <dl class="details">
1002
-
1003
-
1004
- <dt class="tag-source">Source:</dt>
1005
- <dd class="tag-source"><ul class="dummy"><li>
1006
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line1060">line 1060</a>
1007
- </li></ul></dd>
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
-
1038
-
1039
- </dl>
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
-
1055
- <h5>Parameters:</h5>
1056
-
1057
-
1058
- <table class="params">
1059
- <thead>
1060
- <tr>
1061
-
1062
- <th>Name</th>
1063
-
1064
-
1065
- <th>Type</th>
1066
-
1067
-
1068
-
1069
-
1070
-
1071
- <th class="last">Description</th>
1072
- </tr>
1073
- </thead>
1074
-
1075
- <tbody>
1076
-
1077
-
1078
- <tr>
1079
-
1080
- <td class="name"><code>x</code></td>
1081
-
1082
-
1083
- <td class="type">
1084
-
1085
-
1086
- <span class="param-type">number</span>
1087
-
1088
-
1089
-
1090
- </td>
1091
-
1092
-
1093
-
1094
-
1095
-
1096
- <td class="description last"></td>
1097
- </tr>
1098
-
1099
-
1100
-
1101
- <tr>
1102
-
1103
- <td class="name"><code>y</code></td>
1104
-
1105
-
1106
- <td class="type">
1107
-
1108
-
1109
- <span class="param-type">number</span>
1110
-
1111
-
1112
-
1113
- </td>
1114
-
1115
-
1116
-
1117
-
1118
-
1119
- <td class="description last"></td>
1120
- </tr>
1121
-
1122
-
1123
- </tbody>
1124
- </table>
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
- </article>
1151
-
1152
- </section>
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
- </div>
1160
-
1161
- <br class="clear">
1162
-
1163
- <footer>
1164
- 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.
1165
- </footer>
1166
-
1167
- <script>prettyPrint();</script>
1168
- <script src="scripts/polyfill.js"></script>
1169
- <script src="scripts/linenumber.js"></script>
1170
-
1171
-
1172
-
1173
- </body>
1174
- </html>