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,1421 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>Image - 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">Image</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- <span class="ancestors"><a href="module-layer.html">layer</a>.</span>
49
-
50
- Image
51
- </h2>
52
-
53
-
54
- </header>
55
-
56
- <article>
57
-
58
- <div class="container-overview">
59
-
60
-
61
-
62
-
63
-
64
- <h4 class="name" id="Image"><span class="type-signature"></span>new Image<span class="signature">(startTime, duration, image, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
65
-
66
-
67
-
68
-
69
-
70
-
71
- <dl class="details">
72
-
73
-
74
- <dt class="tag-source">Source:</dt>
75
- <dd class="tag-source"><ul class="dummy"><li>
76
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line442">line 442</a>
77
- </li></ul></dd>
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
-
108
-
109
- </dl>
110
-
111
-
112
-
113
-
114
-
115
- <div class="description">
116
- Creates a new image layer
117
- </div>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <h5>Parameters:</h5>
130
-
131
-
132
- <table class="params">
133
- <thead>
134
- <tr>
135
-
136
- <th>Name</th>
137
-
138
-
139
- <th>Type</th>
140
-
141
-
142
- <th>Attributes</th>
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>startTime</code></td>
157
-
158
-
159
- <td class="type">
160
-
161
-
162
- <span class="param-type">number</span>
163
-
164
-
165
-
166
- </td>
167
-
168
-
169
- <td class="attributes">
170
-
171
-
172
-
173
-
174
-
175
- </td>
176
-
177
-
178
-
179
-
180
- <td class="description last"></td>
181
- </tr>
182
-
183
-
184
-
185
- <tr>
186
-
187
- <td class="name"><code>duration</code></td>
188
-
189
-
190
- <td class="type">
191
-
192
-
193
- <span class="param-type">number</span>
194
-
195
-
196
-
197
- </td>
198
-
199
-
200
- <td class="attributes">
201
-
202
-
203
-
204
-
205
-
206
- </td>
207
-
208
-
209
-
210
-
211
- <td class="description last"></td>
212
- </tr>
213
-
214
-
215
-
216
- <tr>
217
-
218
- <td class="name"><code>image</code></td>
219
-
220
-
221
- <td class="type">
222
-
223
-
224
- <span class="param-type">HTMLImageElement</span>
225
-
226
-
227
-
228
- </td>
229
-
230
-
231
- <td class="attributes">
232
-
233
-
234
-
235
-
236
-
237
- </td>
238
-
239
-
240
-
241
-
242
- <td class="description last"></td>
243
- </tr>
244
-
245
-
246
-
247
- <tr>
248
-
249
- <td class="name"><code>options</code></td>
250
-
251
-
252
- <td class="type">
253
-
254
-
255
- <span class="param-type">object</span>
256
-
257
-
258
-
259
- </td>
260
-
261
-
262
- <td class="attributes">
263
-
264
- &lt;optional><br>
265
-
266
-
267
-
268
-
269
-
270
- </td>
271
-
272
-
273
-
274
-
275
- <td class="description last">
276
- <h6>Properties</h6>
277
-
278
-
279
- <table class="params">
280
- <thead>
281
- <tr>
282
-
283
- <th>Name</th>
284
-
285
-
286
- <th>Type</th>
287
-
288
-
289
- <th>Attributes</th>
290
-
291
-
292
-
293
- <th>Default</th>
294
-
295
-
296
- <th class="last">Description</th>
297
- </tr>
298
- </thead>
299
-
300
- <tbody>
301
-
302
-
303
- <tr>
304
-
305
- <td class="name"><code>x</code></td>
306
-
307
-
308
- <td class="type">
309
-
310
-
311
- <span class="param-type">number</span>
312
-
313
-
314
-
315
- </td>
316
-
317
-
318
- <td class="attributes">
319
-
320
- &lt;optional><br>
321
-
322
-
323
-
324
-
325
-
326
- </td>
327
-
328
-
329
-
330
- <td class="default">
331
-
332
- <code>0</code>
333
-
334
- </td>
335
-
336
-
337
- <td class="description last">the offset of the layer relative to the movie</td>
338
- </tr>
339
-
340
-
341
-
342
- <tr>
343
-
344
- <td class="name"><code>y</code></td>
345
-
346
-
347
- <td class="type">
348
-
349
-
350
- <span class="param-type">number</span>
351
-
352
-
353
-
354
- </td>
355
-
356
-
357
- <td class="attributes">
358
-
359
- &lt;optional><br>
360
-
361
-
362
-
363
-
364
-
365
- </td>
366
-
367
-
368
-
369
- <td class="default">
370
-
371
- <code>0</code>
372
-
373
- </td>
374
-
375
-
376
- <td class="description last">the offset of the layer relative to the movie</td>
377
- </tr>
378
-
379
-
380
-
381
- <tr>
382
-
383
- <td class="name"><code>background</code></td>
384
-
385
-
386
- <td class="type">
387
-
388
-
389
- <span class="param-type">string</span>
390
-
391
-
392
-
393
- </td>
394
-
395
-
396
- <td class="attributes">
397
-
398
- &lt;optional><br>
399
-
400
-
401
-
402
-
403
-
404
- </td>
405
-
406
-
407
-
408
- <td class="default">
409
-
410
- <code>null</code>
411
-
412
- </td>
413
-
414
-
415
- <td class="description last">the background color of the layer, or <code>null</code>
416
- for transparency</td>
417
- </tr>
418
-
419
-
420
-
421
- <tr>
422
-
423
- <td class="name"><code>border</code></td>
424
-
425
-
426
- <td class="type">
427
-
428
-
429
- <span class="param-type">object</span>
430
-
431
-
432
-
433
- </td>
434
-
435
-
436
- <td class="attributes">
437
-
438
- &lt;optional><br>
439
-
440
-
441
-
442
-
443
-
444
- </td>
445
-
446
-
447
-
448
- <td class="default">
449
-
450
- <code>null</code>
451
-
452
- </td>
453
-
454
-
455
- <td class="description last">the layer"s outline, or <code>null</code> for no outline
456
- <h6>Properties</h6>
457
-
458
-
459
- <table class="params">
460
- <thead>
461
- <tr>
462
-
463
- <th>Name</th>
464
-
465
-
466
- <th>Type</th>
467
-
468
-
469
- <th>Attributes</th>
470
-
471
-
472
-
473
- <th>Default</th>
474
-
475
-
476
- <th class="last">Description</th>
477
- </tr>
478
- </thead>
479
-
480
- <tbody>
481
-
482
-
483
- <tr>
484
-
485
- <td class="name"><code>color</code></td>
486
-
487
-
488
- <td class="type">
489
-
490
-
491
- <span class="param-type">string</span>
492
-
493
-
494
-
495
- </td>
496
-
497
-
498
- <td class="attributes">
499
-
500
- &lt;optional><br>
501
-
502
-
503
-
504
-
505
-
506
- </td>
507
-
508
-
509
-
510
- <td class="default">
511
-
512
- </td>
513
-
514
-
515
- <td class="description last">the outline"s color; required for a border</td>
516
- </tr>
517
-
518
-
519
-
520
- <tr>
521
-
522
- <td class="name"><code>thickness</code></td>
523
-
524
-
525
- <td class="type">
526
-
527
-
528
- <span class="param-type">string</span>
529
-
530
-
531
-
532
- </td>
533
-
534
-
535
- <td class="attributes">
536
-
537
- &lt;optional><br>
538
-
539
-
540
-
541
-
542
-
543
- </td>
544
-
545
-
546
-
547
- <td class="default">
548
-
549
- <code>1</code>
550
-
551
- </td>
552
-
553
-
554
- <td class="description last">the outline"s weight</td>
555
- </tr>
556
-
557
-
558
- </tbody>
559
- </table>
560
-
561
- </td>
562
- </tr>
563
-
564
-
565
-
566
- <tr>
567
-
568
- <td class="name"><code>opacity</code></td>
569
-
570
-
571
- <td class="type">
572
-
573
-
574
- <span class="param-type">number</span>
575
-
576
-
577
-
578
- </td>
579
-
580
-
581
- <td class="attributes">
582
-
583
- &lt;optional><br>
584
-
585
-
586
-
587
-
588
-
589
- </td>
590
-
591
-
592
-
593
- <td class="default">
594
-
595
- <code>1</code>
596
-
597
- </td>
598
-
599
-
600
- <td class="description last">the layer"s opacity; <code>1</cod> for full opacity
601
- and <code>0</code> for full transparency</td>
602
- </tr>
603
-
604
-
605
-
606
- <tr>
607
-
608
- <td class="name"><code>clipX</code></td>
609
-
610
-
611
- <td class="type">
612
-
613
-
614
- <span class="param-type">number</span>
615
-
616
-
617
-
618
- </td>
619
-
620
-
621
- <td class="attributes">
622
-
623
- &lt;optional><br>
624
-
625
-
626
-
627
-
628
-
629
- </td>
630
-
631
-
632
-
633
- <td class="default">
634
-
635
- <code>0</code>
636
-
637
- </td>
638
-
639
-
640
- <td class="description last">image source x</td>
641
- </tr>
642
-
643
-
644
-
645
- <tr>
646
-
647
- <td class="name"><code>clipY</code></td>
648
-
649
-
650
- <td class="type">
651
-
652
-
653
- <span class="param-type">number</span>
654
-
655
-
656
-
657
- </td>
658
-
659
-
660
- <td class="attributes">
661
-
662
- &lt;optional><br>
663
-
664
-
665
-
666
-
667
-
668
- </td>
669
-
670
-
671
-
672
- <td class="default">
673
-
674
- <code>0</code>
675
-
676
- </td>
677
-
678
-
679
- <td class="description last">image source y</td>
680
- </tr>
681
-
682
-
683
-
684
- <tr>
685
-
686
- <td class="name"><code>clipWidth</code></td>
687
-
688
-
689
- <td class="type">
690
-
691
-
692
- <span class="param-type">number</span>
693
-
694
-
695
-
696
- </td>
697
-
698
-
699
- <td class="attributes">
700
-
701
- &lt;optional><br>
702
-
703
-
704
-
705
-
706
-
707
- </td>
708
-
709
-
710
-
711
- <td class="default">
712
-
713
- </td>
714
-
715
-
716
- <td class="description last">image source width, or <code>undefined</code> to fill the entire layer</td>
717
- </tr>
718
-
719
-
720
-
721
- <tr>
722
-
723
- <td class="name"><code>clipHeight</code></td>
724
-
725
-
726
- <td class="type">
727
-
728
-
729
- <span class="param-type">number</span>
730
-
731
-
732
-
733
- </td>
734
-
735
-
736
- <td class="attributes">
737
-
738
- &lt;optional><br>
739
-
740
-
741
-
742
-
743
-
744
- </td>
745
-
746
-
747
-
748
- <td class="default">
749
-
750
- </td>
751
-
752
-
753
- <td class="description last">image source height, or <code>undefined</code> to fill the entire layer</td>
754
- </tr>
755
-
756
-
757
-
758
- <tr>
759
-
760
- <td class="name"><code>imageX</code></td>
761
-
762
-
763
- <td class="type">
764
-
765
-
766
- <span class="param-type">number</span>
767
-
768
-
769
-
770
- </td>
771
-
772
-
773
- <td class="attributes">
774
-
775
- &lt;optional><br>
776
-
777
-
778
-
779
-
780
-
781
- </td>
782
-
783
-
784
-
785
- <td class="default">
786
-
787
- <code>0</code>
788
-
789
- </td>
790
-
791
-
792
- <td class="description last">offset of the image relative to the layer</td>
793
- </tr>
794
-
795
-
796
-
797
- <tr>
798
-
799
- <td class="name"><code>imageY</code></td>
800
-
801
-
802
- <td class="type">
803
-
804
-
805
- <span class="param-type">number</span>
806
-
807
-
808
-
809
- </td>
810
-
811
-
812
- <td class="attributes">
813
-
814
- &lt;optional><br>
815
-
816
-
817
-
818
-
819
-
820
- </td>
821
-
822
-
823
-
824
- <td class="default">
825
-
826
- <code>0</code>
827
-
828
- </td>
829
-
830
-
831
- <td class="description last">offset of the image relative to the layer</td>
832
- </tr>
833
-
834
-
835
- </tbody>
836
- </table>
837
-
838
- </td>
839
- </tr>
840
-
841
-
842
- </tbody>
843
- </table>
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
- </div>
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
- <h3 class="subsection-title">Members</h3>
881
-
882
-
883
-
884
- <h4 class="name" id="clipHeight"><span class="type-signature"></span>clipHeight<span class="type-signature"> :number</span></h4>
885
-
886
-
887
-
888
-
889
-
890
- <dl class="details">
891
-
892
-
893
- <dt class="tag-source">Source:</dt>
894
- <dd class="tag-source"><ul class="dummy"><li>
895
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line502">line 502</a>
896
- </li></ul></dd>
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
-
928
- </dl>
929
-
930
-
931
-
932
-
933
-
934
- <div class="description">
935
- Image source height, or <code>undefined</code> to fill the entire layer
936
- </div>
937
-
938
-
939
-
940
- <h5>Type:</h5>
941
- <ul>
942
- <li>
943
-
944
- <span class="param-type">number</span>
945
-
946
-
947
- </li>
948
- </ul>
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
- <h4 class="name" id="clipWidth"><span class="type-signature"></span>clipWidth<span class="type-signature"> :number</span></h4>
958
-
959
-
960
-
961
-
962
-
963
- <dl class="details">
964
-
965
-
966
- <dt class="tag-source">Source:</dt>
967
- <dd class="tag-source"><ul class="dummy"><li>
968
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line496">line 496</a>
969
- </li></ul></dd>
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
-
1001
- </dl>
1002
-
1003
-
1004
-
1005
-
1006
-
1007
- <div class="description">
1008
- Image source width, or <code>undefined</code> to fill the entire layer
1009
- </div>
1010
-
1011
-
1012
-
1013
- <h5>Type:</h5>
1014
- <ul>
1015
- <li>
1016
-
1017
- <span class="param-type">number</span>
1018
-
1019
-
1020
- </li>
1021
- </ul>
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
- <h4 class="name" id="clipX"><span class="type-signature"></span>clipX<span class="type-signature"> :number</span></h4>
1031
-
1032
-
1033
-
1034
-
1035
-
1036
- <dl class="details">
1037
-
1038
-
1039
- <dt class="tag-source">Source:</dt>
1040
- <dd class="tag-source"><ul class="dummy"><li>
1041
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line484">line 484</a>
1042
- </li></ul></dd>
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
-
1070
-
1071
-
1072
-
1073
-
1074
- </dl>
1075
-
1076
-
1077
-
1078
-
1079
-
1080
- <div class="description">
1081
- Image source x
1082
- </div>
1083
-
1084
-
1085
-
1086
- <h5>Type:</h5>
1087
- <ul>
1088
- <li>
1089
-
1090
- <span class="param-type">number</span>
1091
-
1092
-
1093
- </li>
1094
- </ul>
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
- <h4 class="name" id="clipY"><span class="type-signature"></span>clipY<span class="type-signature"> :number</span></h4>
1104
-
1105
-
1106
-
1107
-
1108
-
1109
- <dl class="details">
1110
-
1111
-
1112
- <dt class="tag-source">Source:</dt>
1113
- <dd class="tag-source"><ul class="dummy"><li>
1114
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line490">line 490</a>
1115
- </li></ul></dd>
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
-
1143
-
1144
-
1145
-
1146
-
1147
- </dl>
1148
-
1149
-
1150
-
1151
-
1152
-
1153
- <div class="description">
1154
- Image source y
1155
- </div>
1156
-
1157
-
1158
-
1159
- <h5>Type:</h5>
1160
- <ul>
1161
- <li>
1162
-
1163
- <span class="param-type">number</span>
1164
-
1165
-
1166
- </li>
1167
- </ul>
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
- <h4 class="name" id="image"><span class="type-signature"></span>image<span class="type-signature"> :HTMLImageElement</span></h4>
1177
-
1178
-
1179
-
1180
-
1181
-
1182
- <dl class="details">
1183
-
1184
-
1185
- <dt class="tag-source">Source:</dt>
1186
- <dd class="tag-source"><ul class="dummy"><li>
1187
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line477">line 477</a>
1188
- </li></ul></dd>
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
-
1216
-
1217
-
1218
-
1219
-
1220
- </dl>
1221
-
1222
-
1223
-
1224
-
1225
-
1226
-
1227
-
1228
- <h5>Type:</h5>
1229
- <ul>
1230
- <li>
1231
-
1232
- <span class="param-type">HTMLImageElement</span>
1233
-
1234
-
1235
- </li>
1236
- </ul>
1237
-
1238
-
1239
-
1240
-
1241
-
1242
-
1243
-
1244
-
1245
- <h4 class="name" id="imageX"><span class="type-signature"></span>imageX<span class="type-signature"> :number</span></h4>
1246
-
1247
-
1248
-
1249
-
1250
-
1251
- <dl class="details">
1252
-
1253
-
1254
- <dt class="tag-source">Source:</dt>
1255
- <dd class="tag-source"><ul class="dummy"><li>
1256
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line508">line 508</a>
1257
- </li></ul></dd>
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
-
1285
-
1286
-
1287
-
1288
-
1289
- </dl>
1290
-
1291
-
1292
-
1293
-
1294
-
1295
- <div class="description">
1296
- Offset of the image relative to the layer
1297
- </div>
1298
-
1299
-
1300
-
1301
- <h5>Type:</h5>
1302
- <ul>
1303
- <li>
1304
-
1305
- <span class="param-type">number</span>
1306
-
1307
-
1308
- </li>
1309
- </ul>
1310
-
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
- <h4 class="name" id="imageX"><span class="type-signature"></span>imageX<span class="type-signature"> :number</span></h4>
1319
-
1320
-
1321
-
1322
-
1323
-
1324
- <dl class="details">
1325
-
1326
-
1327
- <dt class="tag-source">Source:</dt>
1328
- <dd class="tag-source"><ul class="dummy"><li>
1329
- <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line514">line 514</a>
1330
- </li></ul></dd>
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
-
1339
-
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
-
1358
-
1359
-
1360
-
1361
-
1362
- </dl>
1363
-
1364
-
1365
-
1366
-
1367
-
1368
- <div class="description">
1369
- Offset of the image relative to the layer
1370
- </div>
1371
-
1372
-
1373
-
1374
- <h5>Type:</h5>
1375
- <ul>
1376
- <li>
1377
-
1378
- <span class="param-type">number</span>
1379
-
1380
-
1381
- </li>
1382
- </ul>
1383
-
1384
-
1385
-
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
-
1397
- </article>
1398
-
1399
- </section>
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
- </div>
1407
-
1408
- <br class="clear">
1409
-
1410
- <footer>
1411
- 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.
1412
- </footer>
1413
-
1414
- <script>prettyPrint();</script>
1415
- <script src="scripts/polyfill.js"></script>
1416
- <script src="scripts/linenumber.js"></script>
1417
-
1418
-
1419
-
1420
- </body>
1421
- </html>