etro 0.6.0

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 (103) hide show
  1. package/.env +2 -0
  2. package/.github/workflows/nodejs.yml +27 -0
  3. package/CHANGELOG.md +109 -0
  4. package/CODE_OF_CONDUCT.md +77 -0
  5. package/CONTRIBUTING.md +155 -0
  6. package/LICENSE +674 -0
  7. package/README.md +57 -0
  8. package/dist/etro.js +3397 -0
  9. package/docs/effect.js.html +1215 -0
  10. package/docs/event.js.html +145 -0
  11. package/docs/index.html +81 -0
  12. package/docs/index.js.html +92 -0
  13. package/docs/layer.js.html +888 -0
  14. package/docs/module-effect-GaussianBlurComponent.html +345 -0
  15. package/docs/module-effect.Brightness.html +339 -0
  16. package/docs/module-effect.Channels.html +319 -0
  17. package/docs/module-effect.ChromaKey.html +611 -0
  18. package/docs/module-effect.Contrast.html +339 -0
  19. package/docs/module-effect.EllipticalMask.html +200 -0
  20. package/docs/module-effect.GaussianBlur.html +202 -0
  21. package/docs/module-effect.GaussianBlurHorizontal.html +242 -0
  22. package/docs/module-effect.GaussianBlurVertical.html +242 -0
  23. package/docs/module-effect.Pixelate.html +330 -0
  24. package/docs/module-effect.Shader.html +1227 -0
  25. package/docs/module-effect.Stack.html +406 -0
  26. package/docs/module-effect.Transform.Matrix.html +193 -0
  27. package/docs/module-effect.Transform.html +1174 -0
  28. package/docs/module-effect.html +148 -0
  29. package/docs/module-event.html +473 -0
  30. package/docs/module-index.html +186 -0
  31. package/docs/module-layer-Media.html +1116 -0
  32. package/docs/module-layer-MediaMixin.html +164 -0
  33. package/docs/module-layer.Audio.html +1188 -0
  34. package/docs/module-layer.Base.html +629 -0
  35. package/docs/module-layer.Image.html +1421 -0
  36. package/docs/module-layer.Text.html +1731 -0
  37. package/docs/module-layer.Video.html +1938 -0
  38. package/docs/module-layer.Visual.html +1698 -0
  39. package/docs/module-layer.html +137 -0
  40. package/docs/module-movie.html +3118 -0
  41. package/docs/module-util.Color.html +702 -0
  42. package/docs/module-util.Font.html +395 -0
  43. package/docs/module-util.html +845 -0
  44. package/docs/movie.js.html +689 -0
  45. package/docs/scripts/collapse.js +20 -0
  46. package/docs/scripts/linenumber.js +25 -0
  47. package/docs/scripts/nav.js +12 -0
  48. package/docs/scripts/polyfill.js +4 -0
  49. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/prettify/lang-css.js +2 -0
  51. package/docs/scripts/prettify/prettify.js +28 -0
  52. package/docs/scripts/search.js +83 -0
  53. package/docs/styles/jsdoc.css +671 -0
  54. package/docs/styles/prettify.css +79 -0
  55. package/docs/util.js.html +503 -0
  56. package/eslint.conf.js +28 -0
  57. package/eslint.test-conf.js +4 -0
  58. package/examples/application/readme-screenshot.html +86 -0
  59. package/examples/application/video-player.html +131 -0
  60. package/examples/application/webcam.html +28 -0
  61. package/examples/introduction/audio.html +52 -0
  62. package/examples/introduction/effects.html +56 -0
  63. package/examples/introduction/export.html +70 -0
  64. package/examples/introduction/functions.html +35 -0
  65. package/examples/introduction/hello-world1.html +33 -0
  66. package/examples/introduction/hello-world2.html +32 -0
  67. package/examples/introduction/keyframes.html +67 -0
  68. package/examples/introduction/media.html +55 -0
  69. package/examples/introduction/text.html +27 -0
  70. package/jsdoc.conf.json +3 -0
  71. package/karma.conf.js +60 -0
  72. package/package.json +63 -0
  73. package/private-todo.txt +70 -0
  74. package/rename-file.sh +18 -0
  75. package/rename-versions.sh +14 -0
  76. package/rename.sh +22 -0
  77. package/rollup.config.js +31 -0
  78. package/screenshots/2019-08-17_0.png +0 -0
  79. package/scripts/gen-effect-samples.html +99 -0
  80. package/scripts/save-effect-samples.js +43 -0
  81. package/spec/assets/effect/gaussian-blur-horizontal.png +0 -0
  82. package/spec/assets/effect/gaussian-blur-vertical.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 +352 -0
  94. package/spec/event.spec.js +25 -0
  95. package/spec/layer.spec.js +128 -0
  96. package/spec/movie.spec.js +154 -0
  97. package/spec/util.spec.js +285 -0
  98. package/src/effect.js +1265 -0
  99. package/src/event.js +78 -0
  100. package/src/index.js +23 -0
  101. package/src/layer.js +875 -0
  102. package/src/movie.js +636 -0
  103. package/src/util.js +487 -0
@@ -0,0 +1,1731 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Text - 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">Text</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
+ Text
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="Text"><span class="type-signature"></span>new Text<span class="signature">(startTime, duration, text, width, height, 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#line299">line 299</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
+ <dt class="tag-todo">To Do:</dt>
110
+ <dd class="tag-todo">
111
+ <ul>
112
+ <li>add padding options</li>
113
+ </ul>
114
+ </dd>
115
+
116
+ </dl>
117
+
118
+
119
+
120
+
121
+
122
+ <div class="description">
123
+ Creates a new text layer
124
+ </div>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <h5>Parameters:</h5>
137
+
138
+
139
+ <table class="params">
140
+ <thead>
141
+ <tr>
142
+
143
+ <th>Name</th>
144
+
145
+
146
+ <th>Type</th>
147
+
148
+
149
+ <th>Attributes</th>
150
+
151
+
152
+
153
+
154
+ <th class="last">Description</th>
155
+ </tr>
156
+ </thead>
157
+
158
+ <tbody>
159
+
160
+
161
+ <tr>
162
+
163
+ <td class="name"><code>startTime</code></td>
164
+
165
+
166
+ <td class="type">
167
+
168
+
169
+ <span class="param-type">number</span>
170
+
171
+
172
+
173
+ </td>
174
+
175
+
176
+ <td class="attributes">
177
+
178
+
179
+
180
+
181
+
182
+ </td>
183
+
184
+
185
+
186
+
187
+ <td class="description last"></td>
188
+ </tr>
189
+
190
+
191
+
192
+ <tr>
193
+
194
+ <td class="name"><code>duration</code></td>
195
+
196
+
197
+ <td class="type">
198
+
199
+
200
+ <span class="param-type">number</span>
201
+
202
+
203
+
204
+ </td>
205
+
206
+
207
+ <td class="attributes">
208
+
209
+
210
+
211
+
212
+
213
+ </td>
214
+
215
+
216
+
217
+
218
+ <td class="description last"></td>
219
+ </tr>
220
+
221
+
222
+
223
+ <tr>
224
+
225
+ <td class="name"><code>text</code></td>
226
+
227
+
228
+ <td class="type">
229
+
230
+
231
+ <span class="param-type">string</span>
232
+
233
+
234
+
235
+ </td>
236
+
237
+
238
+ <td class="attributes">
239
+
240
+
241
+
242
+
243
+
244
+ </td>
245
+
246
+
247
+
248
+
249
+ <td class="description last">the text to display</td>
250
+ </tr>
251
+
252
+
253
+
254
+ <tr>
255
+
256
+ <td class="name"><code>width</code></td>
257
+
258
+
259
+ <td class="type">
260
+
261
+
262
+ <span class="param-type">number</span>
263
+
264
+
265
+
266
+ </td>
267
+
268
+
269
+ <td class="attributes">
270
+
271
+
272
+
273
+
274
+
275
+ </td>
276
+
277
+
278
+
279
+
280
+ <td class="description last">the width of the entire layer</td>
281
+ </tr>
282
+
283
+
284
+
285
+ <tr>
286
+
287
+ <td class="name"><code>height</code></td>
288
+
289
+
290
+ <td class="type">
291
+
292
+
293
+ <span class="param-type">number</span>
294
+
295
+
296
+
297
+ </td>
298
+
299
+
300
+ <td class="attributes">
301
+
302
+
303
+
304
+
305
+
306
+ </td>
307
+
308
+
309
+
310
+
311
+ <td class="description last">the height of the entire layer</td>
312
+ </tr>
313
+
314
+
315
+
316
+ <tr>
317
+
318
+ <td class="name"><code>options</code></td>
319
+
320
+
321
+ <td class="type">
322
+
323
+
324
+ <span class="param-type">object</span>
325
+
326
+
327
+
328
+ </td>
329
+
330
+
331
+ <td class="attributes">
332
+
333
+ &lt;optional><br>
334
+
335
+
336
+
337
+
338
+
339
+ </td>
340
+
341
+
342
+
343
+
344
+ <td class="description last">various optional arguments
345
+ <h6>Properties</h6>
346
+
347
+
348
+ <table class="params">
349
+ <thead>
350
+ <tr>
351
+
352
+ <th>Name</th>
353
+
354
+
355
+ <th>Type</th>
356
+
357
+
358
+ <th>Attributes</th>
359
+
360
+
361
+
362
+ <th>Default</th>
363
+
364
+
365
+ <th class="last">Description</th>
366
+ </tr>
367
+ </thead>
368
+
369
+ <tbody>
370
+
371
+
372
+ <tr>
373
+
374
+ <td class="name"><code>x</code></td>
375
+
376
+
377
+ <td class="type">
378
+
379
+
380
+ <span class="param-type">number</span>
381
+
382
+
383
+
384
+ </td>
385
+
386
+
387
+ <td class="attributes">
388
+
389
+ &lt;optional><br>
390
+
391
+
392
+
393
+
394
+
395
+ </td>
396
+
397
+
398
+
399
+ <td class="default">
400
+
401
+ <code>0</code>
402
+
403
+ </td>
404
+
405
+
406
+ <td class="description last">the horizontal position of the layer (relative to the movie)</td>
407
+ </tr>
408
+
409
+
410
+
411
+ <tr>
412
+
413
+ <td class="name"><code>y</code></td>
414
+
415
+
416
+ <td class="type">
417
+
418
+
419
+ <span class="param-type">number</span>
420
+
421
+
422
+
423
+ </td>
424
+
425
+
426
+ <td class="attributes">
427
+
428
+ &lt;optional><br>
429
+
430
+
431
+
432
+
433
+
434
+ </td>
435
+
436
+
437
+
438
+ <td class="default">
439
+
440
+ <code>0</code>
441
+
442
+ </td>
443
+
444
+
445
+ <td class="description last">the vertical position of the layer (relative to the movie)</td>
446
+ </tr>
447
+
448
+
449
+
450
+ <tr>
451
+
452
+ <td class="name"><code>background</code></td>
453
+
454
+
455
+ <td class="type">
456
+
457
+
458
+ <span class="param-type">string</span>
459
+
460
+
461
+
462
+ </td>
463
+
464
+
465
+ <td class="attributes">
466
+
467
+ &lt;optional><br>
468
+
469
+
470
+
471
+
472
+
473
+ </td>
474
+
475
+
476
+
477
+ <td class="default">
478
+
479
+ <code>null</code>
480
+
481
+ </td>
482
+
483
+
484
+ <td class="description last">the background color of the layer, or <code>null</code>
485
+ for a transparent background</td>
486
+ </tr>
487
+
488
+
489
+
490
+ <tr>
491
+
492
+ <td class="name"><code>border</code></td>
493
+
494
+
495
+ <td class="type">
496
+
497
+
498
+ <span class="param-type">object</span>
499
+
500
+
501
+
502
+ </td>
503
+
504
+
505
+ <td class="attributes">
506
+
507
+ &lt;optional><br>
508
+
509
+
510
+
511
+
512
+
513
+ </td>
514
+
515
+
516
+
517
+ <td class="default">
518
+
519
+ <code>null</code>
520
+
521
+ </td>
522
+
523
+
524
+ <td class="description last">the layer's outline, or <code>null</code> for no outline
525
+ <h6>Properties</h6>
526
+
527
+
528
+ <table class="params">
529
+ <thead>
530
+ <tr>
531
+
532
+ <th>Name</th>
533
+
534
+
535
+ <th>Type</th>
536
+
537
+
538
+ <th>Attributes</th>
539
+
540
+
541
+
542
+ <th>Default</th>
543
+
544
+
545
+ <th class="last">Description</th>
546
+ </tr>
547
+ </thead>
548
+
549
+ <tbody>
550
+
551
+
552
+ <tr>
553
+
554
+ <td class="name"><code>color</code></td>
555
+
556
+
557
+ <td class="type">
558
+
559
+
560
+ <span class="param-type">string</span>
561
+
562
+
563
+
564
+ </td>
565
+
566
+
567
+ <td class="attributes">
568
+
569
+ &lt;optional><br>
570
+
571
+
572
+
573
+
574
+
575
+ </td>
576
+
577
+
578
+
579
+ <td class="default">
580
+
581
+ </td>
582
+
583
+
584
+ <td class="description last">the outline"s color; required for a border</td>
585
+ </tr>
586
+
587
+
588
+
589
+ <tr>
590
+
591
+ <td class="name"><code>thickness</code></td>
592
+
593
+
594
+ <td class="type">
595
+
596
+
597
+ <span class="param-type">string</span>
598
+
599
+
600
+
601
+ </td>
602
+
603
+
604
+ <td class="attributes">
605
+
606
+ &lt;optional><br>
607
+
608
+
609
+
610
+
611
+
612
+ </td>
613
+
614
+
615
+
616
+ <td class="default">
617
+
618
+ <code>1</code>
619
+
620
+ </td>
621
+
622
+
623
+ <td class="description last">the outline"s weight</td>
624
+ </tr>
625
+
626
+
627
+ </tbody>
628
+ </table>
629
+
630
+ </td>
631
+ </tr>
632
+
633
+
634
+
635
+ <tr>
636
+
637
+ <td class="name"><code>opacity</code></td>
638
+
639
+
640
+ <td class="type">
641
+
642
+
643
+ <span class="param-type">number</span>
644
+
645
+
646
+
647
+ </td>
648
+
649
+
650
+ <td class="attributes">
651
+
652
+ &lt;optional><br>
653
+
654
+
655
+
656
+
657
+
658
+ </td>
659
+
660
+
661
+
662
+ <td class="default">
663
+
664
+ <code>1</code>
665
+
666
+ </td>
667
+
668
+
669
+ <td class="description last">the layer"s opacity; <code>1</cod> for full opacity
670
+ and <code>0</code> for full transparency</td>
671
+ </tr>
672
+
673
+
674
+
675
+ <tr>
676
+
677
+ <td class="name"><code>font</code></td>
678
+
679
+
680
+ <td class="type">
681
+
682
+
683
+ <span class="param-type">string</span>
684
+
685
+
686
+
687
+ </td>
688
+
689
+
690
+ <td class="attributes">
691
+
692
+ &lt;optional><br>
693
+
694
+
695
+
696
+
697
+
698
+ </td>
699
+
700
+
701
+
702
+ <td class="default">
703
+
704
+ <code>"10px sans-serif"</code>
705
+
706
+ </td>
707
+
708
+
709
+ <td class="description last"></td>
710
+ </tr>
711
+
712
+
713
+
714
+ <tr>
715
+
716
+ <td class="name"><code>color</code></td>
717
+
718
+
719
+ <td class="type">
720
+
721
+
722
+ <span class="param-type">string</span>
723
+
724
+
725
+
726
+ </td>
727
+
728
+
729
+ <td class="attributes">
730
+
731
+ &lt;optional><br>
732
+
733
+
734
+
735
+
736
+
737
+ </td>
738
+
739
+
740
+
741
+ <td class="default">
742
+
743
+ <code>"#fff"</code>
744
+
745
+ </td>
746
+
747
+
748
+ <td class="description last"></td>
749
+ </tr>
750
+
751
+
752
+
753
+ <tr>
754
+
755
+ <td class="name"><code>textX</code></td>
756
+
757
+
758
+ <td class="type">
759
+
760
+
761
+ <span class="param-type">number</span>
762
+
763
+
764
+
765
+ </td>
766
+
767
+
768
+ <td class="attributes">
769
+
770
+ &lt;optional><br>
771
+
772
+
773
+
774
+
775
+
776
+ </td>
777
+
778
+
779
+
780
+ <td class="default">
781
+
782
+ <code>0</code>
783
+
784
+ </td>
785
+
786
+
787
+ <td class="description last">the text's horizontal offset relative to the layer</td>
788
+ </tr>
789
+
790
+
791
+
792
+ <tr>
793
+
794
+ <td class="name"><code>textY</code></td>
795
+
796
+
797
+ <td class="type">
798
+
799
+
800
+ <span class="param-type">number</span>
801
+
802
+
803
+
804
+ </td>
805
+
806
+
807
+ <td class="attributes">
808
+
809
+ &lt;optional><br>
810
+
811
+
812
+
813
+
814
+
815
+ </td>
816
+
817
+
818
+
819
+ <td class="default">
820
+
821
+ <code>0</code>
822
+
823
+ </td>
824
+
825
+
826
+ <td class="description last">the text's vertical offset relative to the layer</td>
827
+ </tr>
828
+
829
+
830
+
831
+ <tr>
832
+
833
+ <td class="name"><code>maxWidth</code></td>
834
+
835
+
836
+ <td class="type">
837
+
838
+
839
+ <span class="param-type">number</span>
840
+
841
+
842
+
843
+ </td>
844
+
845
+
846
+ <td class="attributes">
847
+
848
+ &lt;optional><br>
849
+
850
+
851
+
852
+
853
+
854
+ </td>
855
+
856
+
857
+
858
+ <td class="default">
859
+
860
+ <code>null</code>
861
+
862
+ </td>
863
+
864
+
865
+ <td class="description last">the maximum width of a line of text</td>
866
+ </tr>
867
+
868
+
869
+
870
+ <tr>
871
+
872
+ <td class="name"><code>textAlign</code></td>
873
+
874
+
875
+ <td class="type">
876
+
877
+
878
+ <span class="param-type">string</span>
879
+
880
+
881
+
882
+ </td>
883
+
884
+
885
+ <td class="attributes">
886
+
887
+ &lt;optional><br>
888
+
889
+
890
+
891
+
892
+
893
+ </td>
894
+
895
+
896
+
897
+ <td class="default">
898
+
899
+ <code>"start"</code>
900
+
901
+ </td>
902
+
903
+
904
+ <td class="description last">horizontal align</td>
905
+ </tr>
906
+
907
+
908
+
909
+ <tr>
910
+
911
+ <td class="name"><code>textBaseline</code></td>
912
+
913
+
914
+ <td class="type">
915
+
916
+
917
+ <span class="param-type">string</span>
918
+
919
+
920
+
921
+ </td>
922
+
923
+
924
+ <td class="attributes">
925
+
926
+ &lt;optional><br>
927
+
928
+
929
+
930
+
931
+
932
+ </td>
933
+
934
+
935
+
936
+ <td class="default">
937
+
938
+ <code>"top"</code>
939
+
940
+ </td>
941
+
942
+
943
+ <td class="description last">vertical align</td>
944
+ </tr>
945
+
946
+
947
+
948
+ <tr>
949
+
950
+ <td class="name"><code>textDirection</code></td>
951
+
952
+
953
+ <td class="type">
954
+
955
+
956
+ <span class="param-type">string</span>
957
+
958
+
959
+
960
+ </td>
961
+
962
+
963
+ <td class="attributes">
964
+
965
+ &lt;optional><br>
966
+
967
+
968
+
969
+
970
+
971
+ </td>
972
+
973
+
974
+
975
+ <td class="default">
976
+
977
+ <code>"ltr"</code>
978
+
979
+ </td>
980
+
981
+
982
+ <td class="description last">the text direction</td>
983
+ </tr>
984
+
985
+
986
+ </tbody>
987
+ </table>
988
+
989
+ </td>
990
+ </tr>
991
+
992
+
993
+ </tbody>
994
+ </table>
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ </div>
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+ <h3 class="subsection-title">Members</h3>
1032
+
1033
+
1034
+
1035
+ <h4 class="name" id="font"><span class="type-signature"></span>font<span class="type-signature"> :string</span></h4>
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+ <dl class="details">
1042
+
1043
+
1044
+ <dt class="tag-source">Source:</dt>
1045
+ <dd class="tag-source"><ul class="dummy"><li>
1046
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line366">line 366</a>
1047
+ </li></ul></dd>
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
+
1075
+
1076
+
1077
+
1078
+
1079
+ </dl>
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ <div class="description">
1086
+ The css font to render with
1087
+ </div>
1088
+
1089
+
1090
+
1091
+ <h5>Type:</h5>
1092
+ <ul>
1093
+ <li>
1094
+
1095
+ <span class="param-type">string</span>
1096
+
1097
+
1098
+ </li>
1099
+ </ul>
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+ <h4 class="name" id="font"><span class="type-signature"></span>font<span class="type-signature"> :string</span></h4>
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+ <dl class="details">
1115
+
1116
+
1117
+ <dt class="tag-source">Source:</dt>
1118
+ <dd class="tag-source"><ul class="dummy"><li>
1119
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line372">line 372</a>
1120
+ </li></ul></dd>
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
+
1148
+
1149
+
1150
+
1151
+
1152
+ </dl>
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+ <div class="description">
1159
+ The css color to render with
1160
+ </div>
1161
+
1162
+
1163
+
1164
+ <h5>Type:</h5>
1165
+ <ul>
1166
+ <li>
1167
+
1168
+ <span class="param-type">string</span>
1169
+
1170
+
1171
+ </li>
1172
+ </ul>
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+ <h4 class="name" id="maxWidth"><span class="type-signature"></span>maxWidth<span class="type-signature"> :number</span></h4>
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+ <dl class="details">
1188
+
1189
+
1190
+ <dt class="tag-source">Source:</dt>
1191
+ <dd class="tag-source"><ul class="dummy"><li>
1192
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line390">line 390</a>
1193
+ </li></ul></dd>
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
+
1221
+
1222
+
1223
+
1224
+
1225
+ </dl>
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+ <h5>Type:</h5>
1234
+ <ul>
1235
+ <li>
1236
+
1237
+ <span class="param-type">number</span>
1238
+
1239
+
1240
+ </li>
1241
+ </ul>
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+ <h4 class="name" id="text"><span class="type-signature"></span>text<span class="type-signature"> :string</span></h4>
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+ <dl class="details">
1257
+
1258
+
1259
+ <dt class="tag-source">Source:</dt>
1260
+ <dd class="tag-source"><ul class="dummy"><li>
1261
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line307">line 307</a>
1262
+ </li></ul></dd>
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
+
1290
+
1291
+
1292
+
1293
+
1294
+ </dl>
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+ <h5>Type:</h5>
1303
+ <ul>
1304
+ <li>
1305
+
1306
+ <span class="param-type">string</span>
1307
+
1308
+
1309
+ </li>
1310
+ </ul>
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+ <h4 class="name" id="textAlign"><span class="type-signature"></span>textAlign<span class="type-signature"> :string</span></h4>
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+ <dl class="details">
1326
+
1327
+
1328
+ <dt class="tag-source">Source:</dt>
1329
+ <dd class="tag-source"><ul class="dummy"><li>
1330
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line395">line 395</a>
1331
+ </li></ul></dd>
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
+ <dt class="tag-see">See:</dt>
1362
+ <dd class="tag-see">
1363
+ <ul>
1364
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign"><code>CanvasRenderingContext2D#textAlign</code></a></li>
1365
+ </ul>
1366
+ </dd>
1367
+
1368
+
1369
+
1370
+ </dl>
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+ <div class="description">
1377
+ The horizontal alignment
1378
+ </div>
1379
+
1380
+
1381
+
1382
+ <h5>Type:</h5>
1383
+ <ul>
1384
+ <li>
1385
+
1386
+ <span class="param-type">string</span>
1387
+
1388
+
1389
+ </li>
1390
+ </ul>
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+ <h4 class="name" id="textAlign"><span class="type-signature"></span>textAlign<span class="type-signature"> :string</span></h4>
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+ <dl class="details">
1406
+
1407
+
1408
+ <dt class="tag-source">Source:</dt>
1409
+ <dd class="tag-source"><ul class="dummy"><li>
1410
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line402">line 402</a>
1411
+ </li></ul></dd>
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+ <dt class="tag-see">See:</dt>
1442
+ <dd class="tag-see">
1443
+ <ul>
1444
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline"><code>CanvasRenderingContext2D#textBaseline</code></a></li>
1445
+ </ul>
1446
+ </dd>
1447
+
1448
+
1449
+
1450
+ </dl>
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+ <div class="description">
1457
+ the vertical alignment
1458
+ </div>
1459
+
1460
+
1461
+
1462
+ <h5>Type:</h5>
1463
+ <ul>
1464
+ <li>
1465
+
1466
+ <span class="param-type">string</span>
1467
+
1468
+
1469
+ </li>
1470
+ </ul>
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+ <h4 class="name" id="textDirection"><span class="type-signature"></span>textDirection<span class="type-signature"> :string</span></h4>
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+ <dl class="details">
1486
+
1487
+
1488
+ <dt class="tag-source">Source:</dt>
1489
+ <dd class="tag-source"><ul class="dummy"><li>
1490
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line409">line 409</a>
1491
+ </li></ul></dd>
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+ <dt class="tag-see">See:</dt>
1522
+ <dd class="tag-see">
1523
+ <ul>
1524
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline"><code>CanvasRenderingContext2D#direction</code></a></li>
1525
+ </ul>
1526
+ </dd>
1527
+
1528
+
1529
+
1530
+ </dl>
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <h5>Type:</h5>
1539
+ <ul>
1540
+ <li>
1541
+
1542
+ <span class="param-type">string</span>
1543
+
1544
+
1545
+ </li>
1546
+ </ul>
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+ <h4 class="name" id="textX"><span class="type-signature"></span>textX<span class="type-signature"> :number</span></h4>
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+ <dl class="details">
1562
+
1563
+
1564
+ <dt class="tag-source">Source:</dt>
1565
+ <dd class="tag-source"><ul class="dummy"><li>
1566
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line378">line 378</a>
1567
+ </li></ul></dd>
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+ </dl>
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+ <div class="description">
1606
+ Offset of the text relative to the layer
1607
+ </div>
1608
+
1609
+
1610
+
1611
+ <h5>Type:</h5>
1612
+ <ul>
1613
+ <li>
1614
+
1615
+ <span class="param-type">number</span>
1616
+
1617
+
1618
+ </li>
1619
+ </ul>
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+ <h4 class="name" id="textY"><span class="type-signature"></span>textY<span class="type-signature"> :number</span></h4>
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+ <dl class="details">
1635
+
1636
+
1637
+ <dt class="tag-source">Source:</dt>
1638
+ <dd class="tag-source"><ul class="dummy"><li>
1639
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line384">line 384</a>
1640
+ </li></ul></dd>
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+ </dl>
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+ <div class="description">
1679
+ Offset of the text relative to the layer
1680
+ </div>
1681
+
1682
+
1683
+
1684
+ <h5>Type:</h5>
1685
+ <ul>
1686
+ <li>
1687
+
1688
+ <span class="param-type">number</span>
1689
+
1690
+
1691
+ </li>
1692
+ </ul>
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+ </article>
1708
+
1709
+ </section>
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+ </div>
1717
+
1718
+ <br class="clear">
1719
+
1720
+ <footer>
1721
+ 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.
1722
+ </footer>
1723
+
1724
+ <script>prettyPrint();</script>
1725
+ <script src="scripts/polyfill.js"></script>
1726
+ <script src="scripts/linenumber.js"></script>
1727
+
1728
+
1729
+
1730
+ </body>
1731
+ </html>