etro 0.7.0 → 0.8.2

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 (158) hide show
  1. package/.github/workflows/nodejs.yml +4 -2
  2. package/.github/workflows/shipjs-trigger.yml +29 -0
  3. package/CHANGELOG.md +73 -12
  4. package/CODE_OF_CONDUCT.md +5 -5
  5. package/CONTRIBUTING.md +31 -77
  6. package/README.md +81 -26
  7. package/dist/effect/base.d.ts +51 -0
  8. package/dist/effect/brightness.d.ts +16 -0
  9. package/dist/effect/channels.d.ts +23 -0
  10. package/dist/effect/chroma-key.d.ts +23 -0
  11. package/dist/effect/contrast.d.ts +15 -0
  12. package/dist/effect/elliptical-mask.d.ts +31 -0
  13. package/dist/effect/gaussian-blur.d.ts +60 -0
  14. package/dist/effect/grayscale.d.ts +7 -0
  15. package/dist/effect/index.d.ts +15 -0
  16. package/dist/effect/pixelate.d.ts +18 -0
  17. package/dist/effect/shader.d.ts +99 -0
  18. package/dist/effect/stack.d.ts +23 -0
  19. package/dist/effect/transform.d.ts +73 -0
  20. package/dist/etro-cjs.js +9287 -3331
  21. package/dist/etro-iife.js +9229 -3273
  22. package/dist/etro.d.ts +7 -0
  23. package/dist/event.d.ts +35 -0
  24. package/dist/index.d.ts +6 -0
  25. package/dist/layer/audio-source.d.ts +24 -0
  26. package/dist/layer/audio.d.ts +14 -0
  27. package/dist/layer/base.d.ts +82 -0
  28. package/dist/layer/image.d.ts +6 -0
  29. package/dist/layer/index.d.ts +11 -0
  30. package/dist/layer/text.d.ts +60 -0
  31. package/dist/layer/video.d.ts +11 -0
  32. package/dist/layer/visual-source.d.ts +32 -0
  33. package/dist/layer/visual.d.ts +58 -0
  34. package/dist/movie.d.ts +192 -0
  35. package/dist/object.d.ts +12 -0
  36. package/dist/util.d.ts +125 -0
  37. package/eslint.conf.js +2 -9
  38. package/eslint.example-conf.js +9 -0
  39. package/eslint.test-conf.js +1 -0
  40. package/eslint.typescript-conf.js +5 -0
  41. package/examples/application/readme-screenshot.html +16 -17
  42. package/examples/application/video-player.html +10 -11
  43. package/examples/application/webcam.html +6 -6
  44. package/examples/introduction/audio.html +30 -18
  45. package/examples/introduction/effects.html +37 -14
  46. package/examples/introduction/export.html +32 -25
  47. package/examples/introduction/functions.html +6 -4
  48. package/examples/introduction/hello-world1.html +9 -5
  49. package/examples/introduction/hello-world2.html +5 -5
  50. package/examples/introduction/keyframes.html +35 -23
  51. package/examples/introduction/media.html +26 -18
  52. package/examples/introduction/text.html +9 -5
  53. package/karma.conf.js +5 -3
  54. package/package.json +36 -14
  55. package/rollup.config.js +15 -4
  56. package/scripts/gen-effect-samples.html +26 -25
  57. package/scripts/save-effect-samples.js +14 -15
  58. package/ship.config.js +80 -0
  59. package/src/effect/base.ts +115 -0
  60. package/src/effect/brightness.ts +43 -0
  61. package/src/effect/channels.ts +50 -0
  62. package/src/effect/chroma-key.ts +82 -0
  63. package/src/effect/contrast.ts +42 -0
  64. package/src/effect/elliptical-mask.ts +75 -0
  65. package/src/effect/gaussian-blur.ts +232 -0
  66. package/src/effect/grayscale.ts +34 -0
  67. package/src/effect/index.ts +22 -0
  68. package/src/effect/pixelate.ts +58 -0
  69. package/src/effect/shader.ts +557 -0
  70. package/src/effect/stack.ts +78 -0
  71. package/src/effect/transform.ts +193 -0
  72. package/src/etro.ts +26 -0
  73. package/src/event.ts +112 -0
  74. package/src/index.ts +8 -0
  75. package/src/layer/audio-source.ts +219 -0
  76. package/src/layer/audio.ts +34 -0
  77. package/src/layer/base.ts +175 -0
  78. package/src/layer/image.ts +8 -0
  79. package/src/layer/index.ts +13 -0
  80. package/src/layer/text.ts +138 -0
  81. package/src/layer/video.ts +15 -0
  82. package/src/layer/visual-source.ts +150 -0
  83. package/src/layer/visual.ts +197 -0
  84. package/src/movie.ts +707 -0
  85. package/src/object.ts +14 -0
  86. package/src/util.ts +466 -0
  87. package/tsconfig.json +8 -0
  88. package/docs/effect.js.html +0 -1215
  89. package/docs/event.js.html +0 -145
  90. package/docs/index.html +0 -81
  91. package/docs/index.js.html +0 -92
  92. package/docs/layer.js.html +0 -888
  93. package/docs/module-effect-GaussianBlurComponent.html +0 -345
  94. package/docs/module-effect.Brightness.html +0 -339
  95. package/docs/module-effect.Channels.html +0 -319
  96. package/docs/module-effect.ChromaKey.html +0 -611
  97. package/docs/module-effect.Contrast.html +0 -339
  98. package/docs/module-effect.EllipticalMask.html +0 -200
  99. package/docs/module-effect.GaussianBlur.html +0 -202
  100. package/docs/module-effect.GaussianBlurHorizontal.html +0 -242
  101. package/docs/module-effect.GaussianBlurVertical.html +0 -242
  102. package/docs/module-effect.Pixelate.html +0 -330
  103. package/docs/module-effect.Shader.html +0 -1227
  104. package/docs/module-effect.Stack.html +0 -406
  105. package/docs/module-effect.Transform.Matrix.html +0 -193
  106. package/docs/module-effect.Transform.html +0 -1174
  107. package/docs/module-effect.html +0 -148
  108. package/docs/module-event.html +0 -473
  109. package/docs/module-index.html +0 -186
  110. package/docs/module-layer-Media.html +0 -1116
  111. package/docs/module-layer-MediaMixin.html +0 -164
  112. package/docs/module-layer.Audio.html +0 -1188
  113. package/docs/module-layer.Base.html +0 -629
  114. package/docs/module-layer.Image.html +0 -1421
  115. package/docs/module-layer.Text.html +0 -1731
  116. package/docs/module-layer.Video.html +0 -1938
  117. package/docs/module-layer.Visual.html +0 -1698
  118. package/docs/module-layer.html +0 -137
  119. package/docs/module-movie.html +0 -3118
  120. package/docs/module-util.Color.html +0 -702
  121. package/docs/module-util.Font.html +0 -395
  122. package/docs/module-util.html +0 -845
  123. package/docs/movie.js.html +0 -689
  124. package/docs/scripts/collapse.js +0 -20
  125. package/docs/scripts/linenumber.js +0 -25
  126. package/docs/scripts/nav.js +0 -12
  127. package/docs/scripts/polyfill.js +0 -4
  128. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  129. package/docs/scripts/prettify/lang-css.js +0 -2
  130. package/docs/scripts/prettify/prettify.js +0 -28
  131. package/docs/scripts/search.js +0 -83
  132. package/docs/styles/jsdoc.css +0 -671
  133. package/docs/styles/prettify.css +0 -79
  134. package/docs/util.js.html +0 -503
  135. package/screenshots/2019-08-17_0.png +0 -0
  136. package/spec/assets/effect/gaussian-blur-horizontal.png +0 -0
  137. package/spec/assets/effect/gaussian-blur-vertical.png +0 -0
  138. package/spec/assets/effect/original.png +0 -0
  139. package/spec/assets/effect/pixelate.png +0 -0
  140. package/spec/assets/effect/transform/multiply.png +0 -0
  141. package/spec/assets/effect/transform/rotate.png +0 -0
  142. package/spec/assets/effect/transform/scale-fraction.png +0 -0
  143. package/spec/assets/effect/transform/scale.png +0 -0
  144. package/spec/assets/effect/transform/translate-fraction.png +0 -0
  145. package/spec/assets/effect/transform/translate.png +0 -0
  146. package/spec/assets/layer/audio.wav +0 -0
  147. package/spec/assets/layer/image.jpg +0 -0
  148. package/spec/effect.spec.js +0 -352
  149. package/spec/event.spec.js +0 -25
  150. package/spec/layer.spec.js +0 -150
  151. package/spec/movie.spec.js +0 -162
  152. package/spec/util.spec.js +0 -285
  153. package/src/effect.js +0 -1268
  154. package/src/event.js +0 -78
  155. package/src/index.js +0 -23
  156. package/src/layer.js +0 -897
  157. package/src/movie.js +0 -637
  158. package/src/util.js +0 -505
@@ -1,1731 +0,0 @@
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>