p5 2.0.0 → 2.0.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 (267) hide show
  1. package/{src → dist}/accessibility/color_namer.js +48 -3
  2. package/{src → dist}/accessibility/describe.js +12 -2
  3. package/{src → dist}/accessibility/gridOutput.js +2 -2
  4. package/dist/accessibility/index.js +60 -0
  5. package/{src → dist}/accessibility/outputs.js +23 -2
  6. package/{src → dist}/accessibility/textOutput.js +2 -2
  7. package/dist/app.js +120 -0
  8. package/{src → dist}/color/color_conversion.js +48 -10
  9. package/{src → dist}/color/color_spaces/hsb.js +3 -1
  10. package/dist/color/creating_reading.js +3 -0
  11. package/dist/color/index.js +13 -0
  12. package/dist/color/p5.Color.culori.js +1 -0
  13. package/dist/color/p5.Color.js +3 -0
  14. package/{src → dist}/color/setting.js +9 -6
  15. package/{src/core/constants.js → dist/constants-tYr0tCl8.js} +284 -132
  16. package/{src → dist}/core/States.js +3 -1
  17. package/dist/core/constants.js +1 -0
  18. package/{src → dist}/core/environment.js +12 -10
  19. package/{src → dist}/core/friendly_errors/browser_errors.js +1 -1
  20. package/{src → dist}/core/friendly_errors/fes_core.js +14 -44
  21. package/{src → dist}/core/friendly_errors/file_errors.js +6 -3
  22. package/dist/core/friendly_errors/index.js +23 -0
  23. package/dist/core/friendly_errors/param_validator.js +5421 -0
  24. package/{src → dist}/core/friendly_errors/sketch_reader.js +50 -4
  25. package/{src → dist}/core/friendly_errors/sketch_verifier.js +6 -6
  26. package/{src → dist}/core/friendly_errors/stacktrace.js +3 -5
  27. package/{src → dist}/core/friendly_errors/validate_params.js +50 -41
  28. package/{src → dist}/core/helpers.js +9 -6
  29. package/dist/core/init.js +105 -0
  30. package/dist/core/internationalization.js +302 -0
  31. package/dist/core/legacy.js +73 -0
  32. package/dist/core/main.js +44 -0
  33. package/dist/core/noop.js +3 -0
  34. package/dist/core/p5.Graphics.js +40 -0
  35. package/dist/core/p5.Renderer.js +11 -0
  36. package/dist/core/p5.Renderer2D.js +44 -0
  37. package/dist/core/reference.js +1 -0
  38. package/dist/core/rendering.js +40 -0
  39. package/{src → dist}/core/structure.js +3 -3
  40. package/{src → dist}/core/transform.js +2 -2
  41. package/{src/color/creating_reading.js → dist/creating_reading-Cr8L2Jnm.js} +841 -13
  42. package/{src → dist}/data/index.js +3 -1
  43. package/{src → dist}/data/local_storage.js +2 -8
  44. package/{src → dist}/dom/dom.js +19 -13
  45. package/dist/dom/index.js +18 -0
  46. package/{src → dist}/dom/p5.Element.js +14 -12
  47. package/{src → dist}/dom/p5.File.js +4 -4
  48. package/{src → dist}/dom/p5.MediaElement.js +10 -4
  49. package/{src → dist}/events/acceleration.js +26 -26
  50. package/{src → dist}/events/index.js +3 -1
  51. package/{src → dist}/events/keyboard.js +14 -12
  52. package/{src → dist}/events/pointer.js +16 -17
  53. package/dist/image/const.js +9 -0
  54. package/{src → dist}/image/filterRenderer2D.js +57 -37
  55. package/{src → dist}/image/filters.js +1 -3
  56. package/dist/image/image.js +40 -0
  57. package/dist/image/index.js +51 -0
  58. package/dist/image/loading_displaying.js +40 -0
  59. package/dist/image/p5.Image.js +11 -0
  60. package/{src → dist}/image/pixels.js +5 -3
  61. package/{src → dist}/io/csv.js +72 -70
  62. package/dist/io/files.js +40 -0
  63. package/dist/io/index.js +51 -0
  64. package/{src → dist}/io/p5.Table.js +6 -6
  65. package/{src → dist}/io/p5.TableRow.js +5 -6
  66. package/{src → dist}/io/p5.XML.js +2 -5
  67. package/{src → dist}/io/utilities.js +1 -1
  68. package/{src/core/p5.Renderer2D.js → dist/main-CAxvgiOV.js} +738 -57
  69. package/{src → dist}/math/Matrices/Matrix.js +10 -8
  70. package/{src → dist}/math/Matrices/MatrixInterface.js +5 -3
  71. package/{src → dist}/math/Matrices/MatrixNumjs.js +12 -26
  72. package/{src → dist}/math/calculation.js +2 -2
  73. package/{src → dist}/math/index.js +6 -3
  74. package/{src → dist}/math/math.js +3 -3
  75. package/{src → dist}/math/noise.js +2 -2
  76. package/{src → dist}/math/p5.Matrix.js +7 -4
  77. package/{src → dist}/math/p5.Vector.js +6 -6
  78. package/{src → dist}/math/random.js +2 -2
  79. package/{src → dist}/math/trigonometry.js +16 -15
  80. package/{src/image/p5.Image.js → dist/p5.Renderer-Swjl9HQO.js} +393 -22
  81. package/dist/rendering-B5TRR7aY.js +24960 -0
  82. package/{src → dist}/shape/2d_primitives.js +18 -17
  83. package/{src → dist}/shape/attributes.js +18 -17
  84. package/{src → dist}/shape/curves.js +2 -2
  85. package/{src → dist}/shape/custom_shapes.js +44 -64
  86. package/{src → dist}/shape/index.js +10 -2
  87. package/{src → dist}/shape/vertex.js +2 -3
  88. package/dist/type/index.js +25 -0
  89. package/{src → dist}/type/lib/Typr.js +76 -94
  90. package/{src → dist}/type/p5.Font.js +37 -63
  91. package/{src → dist}/type/textCore.js +35 -58
  92. package/{src → dist}/type/unicodeRanges.js +3 -1
  93. package/{src → dist}/utilities/conversion.js +2 -2
  94. package/{src → dist}/utilities/index.js +3 -1
  95. package/{src → dist}/utilities/time_date.js +6 -7
  96. package/{src → dist}/utilities/utility_functions.js +2 -2
  97. package/dist/webgl/3d_primitives.js +40 -0
  98. package/{src → dist}/webgl/GeometryBufferCache.js +3 -1
  99. package/{src → dist}/webgl/GeometryBuilder.js +12 -8
  100. package/{src → dist}/webgl/ShaderGenerator.js +79 -82
  101. package/{src → dist}/webgl/ShapeBuilder.js +26 -23
  102. package/dist/webgl/index.js +76 -0
  103. package/{src → dist}/webgl/interaction.js +7 -6
  104. package/dist/webgl/light.js +40 -0
  105. package/{src → dist}/webgl/loading.js +45 -12
  106. package/dist/webgl/material.js +40 -0
  107. package/dist/webgl/p5.Camera.js +40 -0
  108. package/{src → dist}/webgl/p5.DataArray.js +3 -5
  109. package/dist/webgl/p5.Framebuffer.js +40 -0
  110. package/{src → dist}/webgl/p5.Geometry.js +12 -15
  111. package/{src → dist}/webgl/p5.Quat.js +5 -4
  112. package/{src → dist}/webgl/p5.RenderBuffer.js +2 -3
  113. package/dist/webgl/p5.RendererGL.js +40 -0
  114. package/dist/webgl/p5.Shader.js +40 -0
  115. package/dist/webgl/p5.Texture.js +40 -0
  116. package/{src → dist}/webgl/text.js +78 -38
  117. package/lib/p5.esm.js +296 -194
  118. package/lib/p5.js +296 -194
  119. package/lib/p5.min.js +1 -1
  120. package/package.json +17 -17
  121. package/translations/dev.js +6 -6
  122. package/translations/index.js +1 -1
  123. package/types/accessibility/color_namer.d.ts +8 -0
  124. package/types/accessibility/describe.d.ts +184 -0
  125. package/types/accessibility/gridOutput.d.ts +8 -0
  126. package/types/accessibility/outputs.d.ts +235 -0
  127. package/types/accessibility/textOutput.d.ts +8 -0
  128. package/types/color/color_conversion.d.ts +47 -0
  129. package/types/color/creating_reading.d.ts +1348 -0
  130. package/types/color/p5.Color.d.ts +1070 -0
  131. package/types/color/setting.d.ts +2085 -0
  132. package/types/core/constants.d.ts +341 -0
  133. package/types/core/environment.d.ts +668 -0
  134. package/types/core/friendly_errors/fes_core.d.ts +8 -0
  135. package/types/core/friendly_errors/file_errors.d.ts +8 -0
  136. package/types/core/friendly_errors/param_validator.d.ts +30 -0
  137. package/types/core/friendly_errors/sketch_reader.d.ts +8 -0
  138. package/types/core/friendly_errors/stacktrace.d.ts +11 -0
  139. package/types/core/friendly_errors/validate_params.d.ts +8 -0
  140. package/types/core/helpers.d.ts +8 -0
  141. package/types/core/legacy.d.ts +8 -0
  142. package/types/core/main.d.ts +5996 -0
  143. package/types/core/p5.Graphics.d.ts +484 -0
  144. package/types/core/p5.Renderer.d.ts +14 -0
  145. package/types/core/reference.d.ts +8 -0
  146. package/types/core/rendering.d.ts +481 -0
  147. package/types/core/structure.d.ts +492 -0
  148. package/types/core/transform.d.ts +1638 -0
  149. package/types/data/local_storage.d.ts +323 -0
  150. package/types/dom/dom.d.ts +1295 -0
  151. package/types/dom/p5.Element.d.ts +2011 -0
  152. package/types/dom/p5.File.d.ts +13 -0
  153. package/types/dom/p5.MediaElement.d.ts +1249 -0
  154. package/types/events/acceleration.d.ts +193 -0
  155. package/types/events/keyboard.d.ts +499 -0
  156. package/types/events/pointer.d.ts +782 -0
  157. package/types/global.d.ts +5542 -0
  158. package/types/image/filterRenderer2D.d.ts +54 -0
  159. package/types/image/image.d.ts +326 -0
  160. package/types/image/loading_displaying.d.ts +580 -0
  161. package/types/image/p5.Image.d.ts +5882 -0
  162. package/types/image/pixels.d.ts +832 -0
  163. package/types/io/files.d.ts +1447 -0
  164. package/types/io/p5.Table.d.ts +1247 -0
  165. package/types/io/p5.TableRow.d.ts +343 -0
  166. package/types/io/p5.XML.d.ts +1188 -0
  167. package/types/math/Matrices/Matrix.d.ts +1029 -0
  168. package/types/math/Matrices/MatrixNumjs.d.ts +8 -0
  169. package/types/math/calculation.d.ts +923 -0
  170. package/types/math/math.d.ts +90 -0
  171. package/types/math/noise.d.ts +311 -0
  172. package/types/math/p5.Matrix.d.ts +8 -0
  173. package/types/math/p5.Vector.d.ts +3416 -0
  174. package/types/math/random.d.ts +267 -0
  175. package/types/math/trigonometry.d.ts +663 -0
  176. package/types/p5.d.ts +6663 -0
  177. package/types/shape/2d_primitives.d.ts +1033 -0
  178. package/types/shape/attributes.d.ts +466 -0
  179. package/types/shape/curves.d.ts +740 -0
  180. package/types/shape/custom_shapes.d.ts +888 -0
  181. package/types/shape/vertex.d.ts +1141 -0
  182. package/types/type/p5.Font.d.ts +575 -0
  183. package/types/type/textCore.d.ts +1198 -0
  184. package/types/utilities/conversion.d.ts +894 -0
  185. package/types/utilities/time_date.d.ts +295 -0
  186. package/types/utilities/utility_functions.d.ts +587 -0
  187. package/types/webgl/3d_primitives.d.ts +1432 -0
  188. package/types/webgl/ShaderGenerator.d.ts +8 -0
  189. package/types/webgl/interaction.d.ts +371 -0
  190. package/types/webgl/light.d.ts +1184 -0
  191. package/types/webgl/loading.d.ts +481 -0
  192. package/types/webgl/material.d.ts +2656 -0
  193. package/types/webgl/p5.Camera.d.ts +3023 -0
  194. package/types/webgl/p5.DataArray.d.ts +61 -0
  195. package/types/webgl/p5.Framebuffer.d.ts +760 -0
  196. package/types/webgl/p5.Geometry.d.ts +1191 -0
  197. package/types/webgl/p5.Quat.d.ts +45 -0
  198. package/types/webgl/p5.RendererGL.d.ts +234 -0
  199. package/types/webgl/p5.Shader.d.ts +660 -0
  200. package/types/webgl/p5.Texture.d.ts +61 -0
  201. package/types/webgl/text.d.ts +74 -0
  202. package/src/README.md +0 -27
  203. package/src/accessibility/index.js +0 -13
  204. package/src/app.js +0 -61
  205. package/src/color/index.js +0 -9
  206. package/src/color/p5.Color.culori.js +0 -66
  207. package/src/color/p5.Color.js +0 -851
  208. package/src/core/README.md +0 -91
  209. package/src/core/friendly_errors/index.js +0 -13
  210. package/src/core/friendly_errors/param_validator.js +0 -561
  211. package/src/core/init.js +0 -58
  212. package/src/core/internationalization.js +0 -195
  213. package/src/core/legacy.js +0 -29
  214. package/src/core/main.js +0 -689
  215. package/src/core/noop.js +0 -1
  216. package/src/core/p5.Graphics.js +0 -696
  217. package/src/core/p5.Renderer.js +0 -408
  218. package/src/core/reference.js +0 -2060
  219. package/src/core/rendering.js +0 -697
  220. package/src/dom/index.js +0 -11
  221. package/src/image/const.js +0 -6
  222. package/src/image/image.js +0 -731
  223. package/src/image/index.js +0 -15
  224. package/src/image/loading_displaying.js +0 -1431
  225. package/src/io/files.js +0 -2210
  226. package/src/io/index.js +0 -11
  227. package/src/math/README.md +0 -40
  228. package/src/type/index.js +0 -9
  229. package/src/webgl/3d_primitives.js +0 -2741
  230. package/src/webgl/index.js +0 -37
  231. package/src/webgl/light.js +0 -1851
  232. package/src/webgl/material.js +0 -3854
  233. package/src/webgl/p5.Camera.js +0 -4010
  234. package/src/webgl/p5.Framebuffer.js +0 -1865
  235. package/src/webgl/p5.RendererGL.js +0 -2867
  236. package/src/webgl/p5.Shader.js +0 -1505
  237. package/src/webgl/p5.Texture.js +0 -541
  238. package/src/webgl/shaders/basic.frag +0 -6
  239. package/src/webgl/shaders/filters/base.frag +0 -22
  240. package/src/webgl/shaders/filters/base.vert +0 -19
  241. package/src/webgl/shaders/filters/blur.frag +0 -60
  242. package/src/webgl/shaders/filters/default.vert +0 -18
  243. package/src/webgl/shaders/filters/dilate.frag +0 -39
  244. package/src/webgl/shaders/filters/erode.frag +0 -39
  245. package/src/webgl/shaders/filters/gray.frag +0 -16
  246. package/src/webgl/shaders/filters/invert.frag +0 -15
  247. package/src/webgl/shaders/filters/opaque.frag +0 -12
  248. package/src/webgl/shaders/filters/posterize.frag +0 -29
  249. package/src/webgl/shaders/filters/threshold.frag +0 -23
  250. package/src/webgl/shaders/font.frag +0 -216
  251. package/src/webgl/shaders/font.vert +0 -44
  252. package/src/webgl/shaders/imageLight.vert +0 -33
  253. package/src/webgl/shaders/imageLightDiffused.frag +0 -82
  254. package/src/webgl/shaders/imageLightSpecular.frag +0 -134
  255. package/src/webgl/shaders/light.vert +0 -37
  256. package/src/webgl/shaders/light_texture.frag +0 -26
  257. package/src/webgl/shaders/lighting.glsl +0 -227
  258. package/src/webgl/shaders/line.frag +0 -74
  259. package/src/webgl/shaders/line.vert +0 -294
  260. package/src/webgl/shaders/normal.frag +0 -6
  261. package/src/webgl/shaders/normal.vert +0 -72
  262. package/src/webgl/shaders/phong.frag +0 -84
  263. package/src/webgl/shaders/phong.vert +0 -87
  264. package/src/webgl/shaders/point.frag +0 -29
  265. package/src/webgl/shaders/point.vert +0 -19
  266. package/src/webgl/shaders/sphereMapping.frag +0 -26
  267. package/src/webgl/shaders/webgl2Compatibility.glsl +0 -34
@@ -11,18 +11,34 @@ const _PI = Math.PI;
11
11
  * @property {String} VERSION
12
12
  * @final
13
13
  */
14
- export const VERSION = 'VERSION_WILL_BE_REPLACED_BY_BUILD';
14
+ const VERSION = '2.0.2';
15
15
 
16
16
  // GRAPHICS RENDERER
17
17
  /**
18
- * The default, two-dimensional renderer.
19
- * @typedef {unique symbol} P2D
18
+ * The default, two-dimensional renderer in p5.js.
19
+ *
20
+ * Use this when calling <a href="#/p5/createCanvas"> (for example,
21
+ * `createCanvas(400, 400, P2D)`) to specify a 2D context.
22
+ *
23
+ * @typedef {'p2d'} P2D
20
24
  * @property {P2D} P2D
21
25
  * @final
22
26
  */
23
- export const P2D = 'p2d';
27
+ const P2D = 'p2d';
28
+
29
+ /**
30
+ * A high-dynamic-range (HDR) variant of the default, two-dimensional renderer.
31
+ *
32
+ * When available, this mode can allow for extended color ranges and more
33
+ * dynamic color representation. Use it similarly to `P2D`:
34
+ * `createCanvas(400, 400, P2DHDR)`.
35
+ *
36
+ * @typedef {'p2d-hdr'} P2DHDR
37
+ * @property {P2DHDR} P2DHDR
38
+ * @final
39
+ */
24
40
 
25
- export const P2DHDR = 'p2d-hdr';
41
+ const P2DHDR = 'p2d-hdr';
26
42
 
27
43
  /**
28
44
  * One of the two render modes in p5.js, used for computationally intensive tasks like 3D rendering and shaders.
@@ -45,7 +61,7 @@ export const P2DHDR = 'p2d-hdr';
45
61
  * @property {WEBGL} WEBGL
46
62
  * @final
47
63
  */
48
- export const WEBGL = 'webgl';
64
+ const WEBGL = 'webgl';
49
65
  /**
50
66
  * One of the two possible values of a WebGL canvas (either WEBGL or WEBGL2),
51
67
  * which can be used to determine what capabilities the rendering environment
@@ -54,7 +70,7 @@ export const WEBGL = 'webgl';
54
70
  * @property {WEBGL2} WEBGL2
55
71
  * @final
56
72
  */
57
- export const WEBGL2 = 'webgl2';
73
+ const WEBGL2 = 'webgl2';
58
74
 
59
75
  // ENVIRONMENT
60
76
  /**
@@ -62,49 +78,49 @@ export const WEBGL2 = 'webgl2';
62
78
  * @property {ARROW} ARROW
63
79
  * @final
64
80
  */
65
- export const ARROW = 'default';
81
+ const ARROW = 'default';
66
82
 
67
83
  /**
68
84
  * @property {String} SIMPLE
69
85
  * @final
70
86
  */
71
- export const SIMPLE = 'simple';
87
+ const SIMPLE = 'simple';
72
88
  /**
73
89
  * @property {String} FULL
74
90
  * @final
75
91
  */
76
- export const FULL = 'full';
92
+ const FULL = 'full';
77
93
 
78
94
  /**
79
95
  * @typedef {'crosshair'} CROSS
80
96
  * @property {CROSS} CROSS
81
97
  * @final
82
98
  */
83
- export const CROSS = 'crosshair';
99
+ const CROSS = 'crosshair';
84
100
  /**
85
101
  * @typedef {'pointer'} HAND
86
102
  * @property {HAND} HAND
87
103
  * @final
88
104
  */
89
- export const HAND = 'pointer';
105
+ const HAND = 'pointer';
90
106
  /**
91
107
  * @typedef {'move'} MOVE
92
108
  * @property {MOVE} MOVE
93
109
  * @final
94
110
  */
95
- export const MOVE = 'move';
111
+ const MOVE = 'move';
96
112
  /**
97
113
  * @typedef {'text'} TEXT
98
114
  * @property {TEXT} TEXT
99
115
  * @final
100
116
  */
101
- export const TEXT = 'text';
117
+ const TEXT = 'text';
102
118
  /**
103
119
  * @typedef {'wait'} WAIT
104
120
  * @property {WAIT} WAIT
105
121
  * @final
106
122
  */
107
- export const WAIT = 'wait';
123
+ const WAIT = 'wait';
108
124
 
109
125
  // TRIGONOMETRY
110
126
 
@@ -196,7 +212,7 @@ export const WAIT = 'wait';
196
212
  * </code>
197
213
  * </div>
198
214
  */
199
- export const HALF_PI = _PI / 2;
215
+ const HALF_PI = _PI / 2;
200
216
 
201
217
  /**
202
218
  * A `Number` constant that's approximately 3.1416.
@@ -285,7 +301,7 @@ export const HALF_PI = _PI / 2;
285
301
  * </code>
286
302
  * </div>
287
303
  */
288
- export const PI = _PI;
304
+ const PI = _PI;
289
305
 
290
306
  /**
291
307
  * A `Number` constant that's approximately 0.7854.
@@ -375,7 +391,7 @@ export const PI = _PI;
375
391
  * </code>
376
392
  * </div>
377
393
  */
378
- export const QUARTER_PI = _PI / 4;
394
+ const QUARTER_PI = _PI / 4;
379
395
 
380
396
  /**
381
397
  * A `Number` constant that's approximately 6.2382.
@@ -470,7 +486,7 @@ export const QUARTER_PI = _PI / 4;
470
486
  * </code>
471
487
  * </div>
472
488
  */
473
- export const TAU = _PI * 2;
489
+ const TAU = _PI * 2;
474
490
 
475
491
  /**
476
492
  * A `Number` constant that's approximately 6.2382.
@@ -565,7 +581,7 @@ export const TAU = _PI * 2;
565
581
  * </code>
566
582
  * </div>
567
583
  */
568
- export const TWO_PI = _PI * 2;
584
+ const TWO_PI = _PI * 2;
569
585
 
570
586
  /**
571
587
  * A `String` constant that's used to set the
@@ -653,8 +669,8 @@ export const TWO_PI = _PI * 2;
653
669
  * </div>
654
670
  */
655
671
  // export const RADIANS = Symbol('radians');
656
- export const DEG_TO_RAD = _PI / 180.0;
657
- export const RAD_TO_DEG = 180.0 / _PI;
672
+ const DEG_TO_RAD = _PI / 180.0;
673
+ const RAD_TO_DEG = 180.0 / _PI;
658
674
 
659
675
  // SHAPE
660
676
  /**
@@ -662,181 +678,181 @@ export const RAD_TO_DEG = 180.0 / _PI;
662
678
  * @property {CORNER} CORNER
663
679
  * @final
664
680
  */
665
- export const CORNER = 'corner';
681
+ const CORNER = 'corner';
666
682
  /**
667
683
  * @typedef {'corners'} CORNERS
668
684
  * @property {CORNERS} CORNERS
669
685
  * @final
670
686
  */
671
- export const CORNERS = 'corners';
687
+ const CORNERS = 'corners';
672
688
  /**
673
689
  * @typedef {'radius'} RADIUS
674
690
  * @property {RADIUS} RADIUS
675
691
  * @final
676
692
  */
677
- export const RADIUS = 'radius';
693
+ const RADIUS = 'radius';
678
694
  /**
679
695
  * @typedef {'right'} RIGHT
680
696
  * @property {RIGHT} RIGHT
681
697
  * @final
682
698
  */
683
- export const RIGHT = 'right';
699
+ const RIGHT = 'right';
684
700
  /**
685
701
  * @typedef {'left'} LEFT
686
702
  * @property {LEFT} LEFT
687
703
  * @final
688
704
  */
689
- export const LEFT = 'left';
705
+ const LEFT = 'left';
690
706
  /**
691
707
  * @typedef {'center'} CENTER
692
708
  * @property {CENTER} CENTER
693
709
  * @final
694
710
  */
695
- export const CENTER = 'center';
711
+ const CENTER = 'center';
696
712
  /**
697
713
  * @typedef {'top'} TOP
698
714
  * @property {TOP} TOP
699
715
  * @final
700
716
  */
701
- export const TOP = 'top';
717
+ const TOP = 'top';
702
718
  /**
703
719
  * @typedef {'bottom'} BOTTOM
704
720
  * @property {BOTTOM} BOTTOM
705
721
  * @final
706
722
  */
707
- export const BOTTOM = 'bottom';
723
+ const BOTTOM = 'bottom';
708
724
  /**
709
725
  * @typedef {'alphabetic'} BASELINE
710
726
  * @property {BASELINE} BASELINE
711
727
  * @final
712
728
  */
713
- export const BASELINE = 'alphabetic';
729
+ const BASELINE = 'alphabetic';
714
730
  /**
715
731
  * @typedef {0x0000} POINTS
716
732
  * @property {POINTS} POINTS
717
733
  * @final
718
734
  */
719
- export const POINTS = 0x0000;
735
+ const POINTS = 0x0000;
720
736
  /**
721
737
  * @typedef {0x0001} LINES
722
738
  * @property {LINES} LINES
723
739
  * @final
724
740
  */
725
- export const LINES = 0x0001;
741
+ const LINES = 0x0001;
726
742
  /**
727
743
  * @property {0x0003} LINE_STRIP
728
744
  * @property {LINE_STRIP} LINE_STRIP
729
745
  * @final
730
746
  */
731
- export const LINE_STRIP = 0x0003;
747
+ const LINE_STRIP = 0x0003;
732
748
  /**
733
749
  * @typedef {0x0002} LINE_LOOP
734
750
  * @property {LINE_LOOP} LINE_LOOP
735
751
  * @final
736
752
  */
737
- export const LINE_LOOP = 0x0002;
753
+ const LINE_LOOP = 0x0002;
738
754
  /**
739
755
  * @typedef {0x0004} TRIANGLES
740
756
  * @property {TRIANGLES} TRIANGLES
741
757
  * @final
742
758
  */
743
- export const TRIANGLES = 0x0004;
759
+ const TRIANGLES = 0x0004;
744
760
  /**
745
761
  * @typedef {0x0006} TRIANGLE_FAN
746
762
  * @property {TRIANGLE_FAN} TRIANGLE_FAN
747
763
  * @final
748
764
  */
749
- export const TRIANGLE_FAN = 0x0006;
765
+ const TRIANGLE_FAN = 0x0006;
750
766
  /**
751
767
  * @typedef {0x0005} TRIANGLE_STRIP
752
768
  * @property {TRIANGLE_STRIP} TRIANGLE_STRIP
753
769
  * @final
754
770
  */
755
- export const TRIANGLE_STRIP = 0x0005;
771
+ const TRIANGLE_STRIP = 0x0005;
756
772
  /**
757
773
  * @typedef {'quads'} QUADS
758
774
  * @property {QUADS} QUADS
759
775
  * @final
760
776
  */
761
- export const QUADS = 'quads';
777
+ const QUADS = 'quads';
762
778
  /**
763
779
  * @typedef {'quad_strip'} QUAD_STRIP
764
780
  * @property {QUAD_STRIP} QUAD_STRIP
765
781
  * @final
766
782
  */
767
- export const QUAD_STRIP = 'quad_strip';
783
+ const QUAD_STRIP = 'quad_strip';
768
784
  /**
769
785
  * @typedef {'tess'} TESS
770
786
  * @property {TESS} TESS
771
787
  * @final
772
788
  */
773
- export const TESS = 'tess';
789
+ const TESS = 'tess';
774
790
  /**
775
791
  * @typedef {0x0007} EMPTY_PATH
776
792
  * @property {EMPTY_PATH} EMPTY_PATH
777
793
  * @final
778
794
  */
779
- export const EMPTY_PATH = 0x0007;
795
+ const EMPTY_PATH = 0x0007;
780
796
  /**
781
797
  * @typedef {0x0008} PATH
782
798
  * @property {PATH} PATH
783
799
  * @final
784
800
  */
785
- export const PATH = 0x0008;
801
+ const PATH = 0x0008;
786
802
  /**
787
803
  * @typedef {'close'} CLOSE
788
804
  * @property {CLOSE} CLOSE
789
805
  * @final
790
806
  */
791
- export const CLOSE = 'close';
807
+ const CLOSE = 'close';
792
808
  /**
793
809
  * @typedef {'open'} OPEN
794
810
  * @property {OPEN} OPEN
795
811
  * @final
796
812
  */
797
- export const OPEN = 'open';
813
+ const OPEN = 'open';
798
814
  /**
799
815
  * @typedef {'chord'} CHORD
800
816
  * @property {CHORD} CHORD
801
817
  * @final
802
818
  */
803
- export const CHORD = 'chord';
819
+ const CHORD = 'chord';
804
820
  /**
805
821
  * @typedef {'pie'} PIE
806
822
  * @property {PIE} PIE
807
823
  * @final
808
824
  */
809
- export const PIE = 'pie';
825
+ const PIE = 'pie';
810
826
  /**
811
827
  * @typedef {'square'} PROJECT
812
828
  * @property {PROJECT} PROJECT
813
829
  * @final
814
830
  */
815
- export const PROJECT = 'square'; // PEND: careful this is counterintuitive
831
+ const PROJECT = 'square'; // PEND: careful this is counterintuitive
816
832
  /**
817
833
  * @typedef {'butt'} SQUARE
818
834
  * @property {SQUERE} SQUARE
819
835
  * @final
820
836
  */
821
- export const SQUARE = 'butt';
837
+ const SQUARE = 'butt';
822
838
  /**
823
839
  * @typedef {'round'} ROUND
824
840
  * @property {ROUND} ROUND
825
841
  * @final
826
842
  */
827
- export const ROUND = 'round';
843
+ const ROUND = 'round';
828
844
  /**
829
845
  * @typedef {'bevel'} BEVEL
830
846
  * @property {BEVEL} BEVEL
831
847
  * @final
832
848
  */
833
- export const BEVEL = 'bevel';
849
+ const BEVEL = 'bevel';
834
850
  /**
835
851
  * @typedef {'miter'} MITER
836
852
  * @property {MITER} MITER
837
853
  * @final
838
854
  */
839
- export const MITER = 'miter';
855
+ const MITER = 'miter';
840
856
 
841
857
  // DOM EXTENSION
842
858
  /**
@@ -848,105 +864,105 @@ export const MITER = 'miter';
848
864
  * @property {AUTO} AUTO
849
865
  * @final
850
866
  */
851
- export const AUTO = 'auto';
867
+ const AUTO = 'auto';
852
868
  // INPUT
853
869
  /**
854
870
  * @typedef {'Alt'} ALT
855
871
  * @property {ALT} ALT
856
872
  * @final
857
873
  */
858
- export const ALT = 'Alt';
874
+ const ALT = 'Alt';
859
875
 
860
876
  /**
861
877
  * @typedef {'Backspace'} BACKSPACE
862
878
  * @property {BACKSPACE} BACKSPACE
863
879
  * @final
864
880
  */
865
- export const BACKSPACE = 'Backspace';
881
+ const BACKSPACE = 'Backspace';
866
882
 
867
883
  /**
868
884
  * @typedef {'Control' | 'Control'} CONTROL
869
885
  * @property {CONTROL} CONTROL
870
886
  * @final
871
887
  */
872
- export const CONTROL = 'Control';
888
+ const CONTROL = 'Control';
873
889
 
874
890
  /**
875
891
  * @typedef {'Delete'} DELETE
876
892
  * @property {DELETE} DELETE
877
893
  * @final
878
894
  */
879
- export const DELETE = 'Delete';
895
+ const DELETE = 'Delete';
880
896
 
881
897
  /**
882
898
  * @typedef {'ArrowDown'} DOWN_ARROW
883
899
  * @property {DOWN_ARROW} DOWN_ARROW
884
900
  * @final
885
901
  */
886
- export const DOWN_ARROW = 'ArrowDown';
902
+ const DOWN_ARROW = 'ArrowDown';
887
903
 
888
904
  /**
889
905
  * @typedef {'Enter'} ENTER
890
906
  * @property {ENTER} ENTER
891
907
  * @final
892
908
  */
893
- export const ENTER = 'Enter';
909
+ const ENTER = 'Enter';
894
910
 
895
911
  /**
896
912
  * @typedef {'Escape'} ESCAPE
897
913
  * @property {ESCAPE} ESCAPE
898
914
  * @final
899
915
  */
900
- export const ESCAPE = 'Escape';
916
+ const ESCAPE = 'Escape';
901
917
 
902
918
  /**
903
919
  * @typedef {'ArrowLeft'} LEFT_ARROW
904
920
  * @property {LEFT_ARROW} LEFT_ARROW
905
921
  * @final
906
922
  */
907
- export const LEFT_ARROW = 'ArrowLeft';
923
+ const LEFT_ARROW = 'ArrowLeft';
908
924
 
909
925
  /**
910
926
  * @typedef {'Alt'} OPTION
911
927
  * @property {OPTION} OPTION
912
928
  * @final
913
929
  */
914
- export const OPTION = 'Alt';
930
+ const OPTION = 'Alt';
915
931
 
916
932
  /**
917
933
  * @typedef {'Enter'} RETURN
918
934
  * @property {RETURN} RETURN
919
935
  * @final
920
936
  */
921
- export const RETURN = 'Enter';
937
+ const RETURN = 'Enter';
922
938
 
923
939
  /**
924
940
  * @typedef {'ArrowRight'} RIGHT_ARROW
925
941
  * @property {RIGHT_ARROW} RIGHT_ARROW
926
942
  * @final
927
943
  */
928
- export const RIGHT_ARROW = 'ArrowRight';
944
+ const RIGHT_ARROW = 'ArrowRight';
929
945
 
930
946
  /**
931
947
  * @typedef {'Shift'} SHIFT
932
948
  * @property {SHIFT} SHIFT
933
949
  * @final
934
950
  */
935
- export const SHIFT = 'Shift';
951
+ const SHIFT = 'Shift';
936
952
 
937
953
  /**
938
954
  * @typedef {'Tab'} TAB
939
955
  * @property {TAB} TAB
940
956
  * @final
941
957
  */
942
- export const TAB = 'Tab';
958
+ const TAB = 'Tab';
943
959
 
944
960
  /**
945
961
  * @typedef {'ArrowUp'} UP_ARROW
946
962
  * @property {UP_ARROW} UP_ARROW
947
963
  * @final
948
964
  */
949
- export const UP_ARROW = 'ArrowUp';
965
+ const UP_ARROW = 'ArrowUp';
950
966
 
951
967
  // RENDERING
952
968
  /**
@@ -954,97 +970,97 @@ export const UP_ARROW = 'ArrowUp';
954
970
  * @property {BLEND} BLEND
955
971
  * @final
956
972
  */
957
- export const BLEND = 'source-over';
973
+ const BLEND = 'source-over';
958
974
  /**
959
975
  * @typedef {'destination-out'} REMOVE
960
976
  * @property {REMOVE} REMOVE
961
977
  * @final
962
978
  */
963
- export const REMOVE = 'destination-out';
979
+ const REMOVE = 'destination-out';
964
980
  /**
965
981
  * @typedef {'lighter'} ADD
966
982
  * @property {ADD} ADD
967
983
  * @final
968
984
  */
969
- export const ADD = 'lighter';
985
+ const ADD = 'lighter';
970
986
  /**
971
987
  * @typedef {'darken'} DARKEST
972
988
  * @property {DARKEST} DARKEST
973
989
  * @final
974
990
  */
975
- export const DARKEST = 'darken';
991
+ const DARKEST = 'darken';
976
992
  /**
977
993
  * @typedef {'lighten'} LIGHTEST
978
994
  * @property {LIGHTEST} LIGHTEST
979
995
  * @final
980
996
  */
981
- export const LIGHTEST = 'lighten';
997
+ const LIGHTEST = 'lighten';
982
998
  /**
983
999
  * @typedef {'difference'} DIFFERENCE
984
1000
  * @property {DIFFERENCE} DIFFERENCE
985
1001
  * @final
986
1002
  */
987
- export const DIFFERENCE = 'difference';
1003
+ const DIFFERENCE = 'difference';
988
1004
  /**
989
1005
  * @typedef {'subtract'} SUBTRACT
990
1006
  * @property {SUBTRACT} SUBTRACT
991
1007
  * @final
992
1008
  */
993
- export const SUBTRACT = 'subtract';
1009
+ const SUBTRACT = 'subtract';
994
1010
  /**
995
1011
  * @typedef {'exclusion'} EXCLUSION
996
1012
  * @property {EXCLUSION} EXCLUSION
997
1013
  * @final
998
1014
  */
999
- export const EXCLUSION = 'exclusion';
1015
+ const EXCLUSION = 'exclusion';
1000
1016
  /**
1001
1017
  * @typedef {'multiply'} MULTIPLY
1002
1018
  * @property {MULTIPLY} MULTIPLY
1003
1019
  * @final
1004
1020
  */
1005
- export const MULTIPLY = 'multiply';
1021
+ const MULTIPLY = 'multiply';
1006
1022
  /**
1007
1023
  * @typedef {'screen'} SCREEN
1008
1024
  * @property {SCREEN} SCREEN
1009
1025
  * @final
1010
1026
  */
1011
- export const SCREEN = 'screen';
1027
+ const SCREEN = 'screen';
1012
1028
  /**
1013
1029
  * @typedef {'copy'} REPLACE
1014
1030
  * @property {REPLACE} REPLACE
1015
1031
  * @final
1016
1032
  */
1017
- export const REPLACE = 'copy';
1033
+ const REPLACE = 'copy';
1018
1034
  /**
1019
1035
  * @typedef {'overlay'} OVERLAY
1020
1036
  * @property {OVERLAY} OVERLAY
1021
1037
  * @final
1022
1038
  */
1023
- export const OVERLAY = 'overlay';
1039
+ const OVERLAY = 'overlay';
1024
1040
  /**
1025
1041
  * @typedef {'hard-light'} HARD_LIGHT
1026
1042
  * @property {HARD_LIGHT} HARD_LIGHT
1027
1043
  * @final
1028
1044
  */
1029
- export const HARD_LIGHT = 'hard-light';
1045
+ const HARD_LIGHT = 'hard-light';
1030
1046
  /**
1031
1047
  * @typedef {'soft-light'} SOFT_LIGHT
1032
1048
  * @property {SOFT_LIGHT} SOFT_LIGHT
1033
1049
  * @final
1034
1050
  */
1035
- export const SOFT_LIGHT = 'soft-light';
1051
+ const SOFT_LIGHT = 'soft-light';
1036
1052
  /**
1037
1053
  * @typedef {'color-dodge'} DODGE
1038
1054
  * @property {DODGE} DODGE
1039
1055
  * @final
1040
1056
  */
1041
- export const DODGE = 'color-dodge';
1057
+ const DODGE = 'color-dodge';
1042
1058
  /**
1043
1059
  * @typedef {'color-burn'} BURN
1044
1060
  * @property {BURN} BURN
1045
1061
  * @final
1046
1062
  */
1047
- export const BURN = 'color-burn';
1063
+ const BURN = 'color-burn';
1048
1064
 
1049
1065
  // FILTERS
1050
1066
  /**
@@ -1052,49 +1068,49 @@ export const BURN = 'color-burn';
1052
1068
  * @property {THRESHOLD} THRESHOLD
1053
1069
  * @final
1054
1070
  */
1055
- export const THRESHOLD = 'threshold';
1071
+ const THRESHOLD = 'threshold';
1056
1072
  /**
1057
1073
  * @typedef {'gray'} GRAY
1058
1074
  * @property {GRAY} GRAY
1059
1075
  * @final
1060
1076
  */
1061
- export const GRAY = 'gray';
1077
+ const GRAY = 'gray';
1062
1078
  /**
1063
1079
  * @typedef {'opaque'} OPAQUE
1064
1080
  * @property {OPAQUE} OPAQUE
1065
1081
  * @final
1066
1082
  */
1067
- export const OPAQUE = 'opaque';
1083
+ const OPAQUE = 'opaque';
1068
1084
  /**
1069
1085
  * @typedef {'invert'} INVERT
1070
1086
  * @property {INVERT} INVERT
1071
1087
  * @final
1072
1088
  */
1073
- export const INVERT = 'invert';
1089
+ const INVERT = 'invert';
1074
1090
  /**
1075
1091
  * @typedef {'posterize'} POSTERIZE
1076
1092
  * @property {POSTERIZE} POSTERIZE
1077
1093
  * @final
1078
1094
  */
1079
- export const POSTERIZE = 'posterize';
1095
+ const POSTERIZE = 'posterize';
1080
1096
  /**
1081
1097
  * @typedef {'dilate'} DILATE
1082
1098
  * @property {DILATE} DILATE
1083
1099
  * @final
1084
1100
  */
1085
- export const DILATE = 'dilate';
1101
+ const DILATE = 'dilate';
1086
1102
  /**
1087
1103
  * @typedef {'erode'} ERODE
1088
1104
  * @property {ERODE} ERODE
1089
1105
  * @final
1090
1106
  */
1091
- export const ERODE = 'erode';
1107
+ const ERODE = 'erode';
1092
1108
  /**
1093
1109
  * @typedef {'blur'} BLUR
1094
1110
  * @property {BLUR} BLUR
1095
1111
  * @final
1096
1112
  */
1097
- export const BLUR = 'blur';
1113
+ const BLUR = 'blur';
1098
1114
 
1099
1115
  // TYPOGRAPHY
1100
1116
  /**
@@ -1102,42 +1118,42 @@ export const BLUR = 'blur';
1102
1118
  * @property {NORMAL} NORMAL
1103
1119
  * @final
1104
1120
  */
1105
- export const NORMAL = 'normal';
1121
+ const NORMAL = 'normal';
1106
1122
  /**
1107
1123
  * @typedef {'italic'} ITALIC
1108
1124
  * @property {ITALIC} ITALIC
1109
1125
  * @final
1110
1126
  */
1111
- export const ITALIC = 'italic';
1127
+ const ITALIC = 'italic';
1112
1128
  /**
1113
1129
  * @typedef {'bold'} BOLD
1114
1130
  * @property {BOLD} BOLD
1115
1131
  * @final
1116
1132
  */
1117
- export const BOLD = 'bold';
1133
+ const BOLD = 'bold';
1118
1134
  /**
1119
1135
  * @typedef {'bold italic'} BOLDITALIC
1120
1136
  * @property {BOLDITALIC} BOLDITALIC
1121
1137
  * @final
1122
1138
  */
1123
- export const BOLDITALIC = 'bold italic';
1139
+ const BOLDITALIC = 'bold italic';
1124
1140
  /**
1125
1141
  * @typedef {'CHAR'} CHAR
1126
1142
  * @property {CHAR} CHAR
1127
1143
  * @final
1128
1144
  */
1129
- export const CHAR = 'CHAR';
1145
+ const CHAR = 'CHAR';
1130
1146
  /**
1131
1147
  * @typedef {'WORD'} WORD
1132
1148
  * @property {WORD} WORD
1133
1149
  * @final
1134
1150
  */
1135
- export const WORD = 'WORD';
1151
+ const WORD = 'WORD';
1136
1152
 
1137
1153
  // TYPOGRAPHY-INTERNAL
1138
- export const _DEFAULT_TEXT_FILL = '#000000';
1139
- export const _DEFAULT_LEADMULT = 1.25;
1140
- export const _CTX_MIDDLE = 'middle';
1154
+ const _DEFAULT_TEXT_FILL = '#000000';
1155
+ const _DEFAULT_LEADMULT = 1.25;
1156
+ const _CTX_MIDDLE = 'middle';
1141
1157
 
1142
1158
  // VERTICES
1143
1159
  /**
@@ -1145,25 +1161,25 @@ export const _CTX_MIDDLE = 'middle';
1145
1161
  * @property {LINEAR} LINEAR
1146
1162
  * @final
1147
1163
  */
1148
- export const LINEAR = 'linear';
1164
+ const LINEAR = 'linear';
1149
1165
  /**
1150
1166
  * @typedef {'quadratic'} QUADRATIC
1151
1167
  * @property {QUADRATIC} QUADRATIC
1152
1168
  * @final
1153
1169
  */
1154
- export const QUADRATIC = 'quadratic';
1170
+ const QUADRATIC = 'quadratic';
1155
1171
  /**
1156
1172
  * @typedef {'bezier'} BEZIER
1157
1173
  * @property {BEZIER} BEZIER
1158
1174
  * @final
1159
1175
  */
1160
- export const BEZIER = 'bezier';
1176
+ const BEZIER = 'bezier';
1161
1177
  /**
1162
1178
  * @typedef {'curve'} CURVE
1163
1179
  * @property {CURVE} CURVE
1164
1180
  * @final
1165
1181
  */
1166
- export const CURVE = 'curve';
1182
+ const CURVE = 'curve';
1167
1183
 
1168
1184
  // WEBGL DRAWMODES
1169
1185
  /**
@@ -1171,25 +1187,25 @@ export const CURVE = 'curve';
1171
1187
  * @property {STROKE} STROKE
1172
1188
  * @final
1173
1189
  */
1174
- export const STROKE = 'stroke';
1190
+ const STROKE = 'stroke';
1175
1191
  /**
1176
1192
  * @typedef {'fill'} FILL
1177
1193
  * @property {FILL} FILL
1178
1194
  * @final
1179
1195
  */
1180
- export const FILL = 'fill';
1196
+ const FILL = 'fill';
1181
1197
  /**
1182
1198
  * @typedef {'texture'} TEXTURE
1183
1199
  * @property {TEXTURE} TEXTURE
1184
1200
  * @final
1185
1201
  */
1186
- export const TEXTURE = 'texture';
1202
+ const TEXTURE = 'texture';
1187
1203
  /**
1188
1204
  * @typedef {'immediate'} IMMEDIATE
1189
1205
  * @property {IMMEDIATE} IMMEDIATE
1190
1206
  * @final
1191
1207
  */
1192
- export const IMMEDIATE = 'immediate';
1208
+ const IMMEDIATE = 'immediate';
1193
1209
 
1194
1210
  // WEBGL TEXTURE MODE
1195
1211
  // NORMAL already exists for typography
@@ -1198,7 +1214,7 @@ export const IMMEDIATE = 'immediate';
1198
1214
  * @property {IMAGE} IMAGE
1199
1215
  * @final
1200
1216
  */
1201
- export const IMAGE = 'image';
1217
+ const IMAGE = 'image';
1202
1218
 
1203
1219
  // WEBGL TEXTURE WRAP AND FILTERING
1204
1220
  // LINEAR already exists above
@@ -1207,25 +1223,25 @@ export const IMAGE = 'image';
1207
1223
  * @property {NEAREST} NEAREST
1208
1224
  * @final
1209
1225
  */
1210
- export const NEAREST = 'nearest';
1226
+ const NEAREST = 'nearest';
1211
1227
  /**
1212
1228
  * @typedef {'repeat'} REPEAT
1213
1229
  * @property {REPEAT} REPEAT
1214
1230
  * @final
1215
1231
  */
1216
- export const REPEAT = 'repeat';
1232
+ const REPEAT = 'repeat';
1217
1233
  /**
1218
1234
  * @typedef {'clamp'} CLAMP
1219
1235
  * @property {CLAMP} CLAMP
1220
1236
  * @final
1221
1237
  */
1222
- export const CLAMP = 'clamp';
1238
+ const CLAMP = 'clamp';
1223
1239
  /**
1224
1240
  * @typedef {'mirror'} MIRROR
1225
1241
  * @property {MIRROR} MIRROR
1226
1242
  * @final
1227
1243
  */
1228
- export const MIRROR = 'mirror';
1244
+ const MIRROR = 'mirror';
1229
1245
 
1230
1246
  // WEBGL GEOMETRY SHADING
1231
1247
  /**
@@ -1233,13 +1249,13 @@ export const MIRROR = 'mirror';
1233
1249
  * @property {FLAT} FLAT
1234
1250
  * @final
1235
1251
  */
1236
- export const FLAT = 'flat';
1252
+ const FLAT = 'flat';
1237
1253
  /**
1238
1254
  * @typedef {'smooth'} SMOOTH
1239
1255
  * @property {SMOOTH} SMOOTH
1240
1256
  * @final
1241
1257
  */
1242
- export const SMOOTH = 'smooth';
1258
+ const SMOOTH = 'smooth';
1243
1259
 
1244
1260
  // DEVICE-ORIENTATION
1245
1261
  /**
@@ -1247,86 +1263,86 @@ export const SMOOTH = 'smooth';
1247
1263
  * @property {LANDSCAPE} LANDSCAPE
1248
1264
  * @final
1249
1265
  */
1250
- export const LANDSCAPE = 'landscape';
1266
+ const LANDSCAPE = 'landscape';
1251
1267
  /**
1252
1268
  * @typedef {'portrait'} PORTRAIT
1253
1269
  * @property {PORTRAIT} PORTRAIT
1254
1270
  * @final
1255
1271
  */
1256
- export const PORTRAIT = 'portrait';
1272
+ const PORTRAIT = 'portrait';
1257
1273
 
1258
1274
  // DEFAULTS
1259
- export const _DEFAULT_STROKE = '#000000';
1260
- export const _DEFAULT_FILL = '#FFFFFF';
1275
+ const _DEFAULT_STROKE = '#000000';
1276
+ const _DEFAULT_FILL = '#FFFFFF';
1261
1277
 
1262
1278
  /**
1263
1279
  * @typedef {'grid'} GRID
1264
1280
  * @property {GRID} GRID
1265
1281
  * @final
1266
1282
  */
1267
- export const GRID = 'grid';
1283
+ const GRID = 'grid';
1268
1284
 
1269
1285
  /**
1270
1286
  * @typedef {'axes'} AXES
1271
1287
  * @property {AXES} AXES
1272
1288
  * @final
1273
1289
  */
1274
- export const AXES = 'axes';
1290
+ const AXES = 'axes';
1275
1291
 
1276
1292
  /**
1277
1293
  * @typedef {'label'} LABEL
1278
1294
  * @property {LABEL} LABEL
1279
1295
  * @final
1280
1296
  */
1281
- export const LABEL = 'label';
1297
+ const LABEL = 'label';
1282
1298
  /**
1283
1299
  * @typedef {'fallback'} FALLBACK
1284
1300
  * @property {FALLBACK} FALLBACK
1285
1301
  * @final
1286
1302
  */
1287
- export const FALLBACK = 'fallback';
1303
+ const FALLBACK = 'fallback';
1288
1304
 
1289
1305
  /**
1290
1306
  * @typedef {'contain'} CONTAIN
1291
1307
  * @property {CONTAIN} CONTAIN
1292
1308
  * @final
1293
1309
  */
1294
- export const CONTAIN = 'contain';
1310
+ const CONTAIN = 'contain';
1295
1311
 
1296
1312
  /**
1297
1313
  * @typedef {'cover'} COVER
1298
1314
  * @property {COVER} COVER
1299
1315
  * @final
1300
1316
  */
1301
- export const COVER = 'cover';
1317
+ const COVER = 'cover';
1302
1318
 
1303
1319
  /**
1304
1320
  * @typedef {'unsigned-byte'} UNSIGNED_BYTE
1305
1321
  * @property {UNSIGNED_BYTE} UNSIGNED_BYTE
1306
1322
  * @final
1307
1323
  */
1308
- export const UNSIGNED_BYTE = 'unsigned-byte';
1324
+ const UNSIGNED_BYTE = 'unsigned-byte';
1309
1325
 
1310
1326
  /**
1311
1327
  * @typedef {'unsigned-int'} UNSIGNED_INT
1312
1328
  * @property {UNSIGNED_INT} UNSIGNED_INT
1313
1329
  * @final
1314
1330
  */
1315
- export const UNSIGNED_INT = 'unsigned-int';
1331
+ const UNSIGNED_INT = 'unsigned-int';
1316
1332
 
1317
1333
  /**
1318
1334
  * @typedef {'float'} FLOAT
1319
1335
  * @property {FLOAT} FLOAT
1320
1336
  * @final
1321
1337
  */
1322
- export const FLOAT = 'float';
1338
+ const FLOAT = 'float';
1323
1339
 
1324
1340
  /**
1325
1341
  * @typedef {'half-float'} HALF_FLOAT
1326
1342
  * @property {HALF_FLOAT} HALF_FLOAT
1327
1343
  * @final
1328
1344
  */
1329
- export const HALF_FLOAT = 'half-float';
1345
+ const HALF_FLOAT = 'half-float';
1330
1346
 
1331
1347
  /**
1332
1348
  * The `splineProperty('ends')` mode where splines curve through
@@ -1335,7 +1351,7 @@ export const HALF_FLOAT = 'half-float';
1335
1351
  * @property {INCLUDE} INCLUDE
1336
1352
  * @final
1337
1353
  */
1338
- export const INCLUDE = Symbol('include');
1354
+ const INCLUDE = Symbol('include');
1339
1355
 
1340
1356
  /**
1341
1357
  * The `splineProperty('ends')` mode where the first and last points in a spline
@@ -1344,7 +1360,7 @@ export const INCLUDE = Symbol('include');
1344
1360
  * @property {EXCLUDE} EXCLUDE
1345
1361
  * @final
1346
1362
  */
1347
- export const EXCLUDE = Symbol('exclude');
1363
+ const EXCLUDE = Symbol('exclude');
1348
1364
 
1349
1365
  /**
1350
1366
  * The `splineProperty('ends')` mode where the spline loops back to its first point.
@@ -1354,4 +1370,140 @@ export const EXCLUDE = Symbol('exclude');
1354
1370
  * @final
1355
1371
  * @private
1356
1372
  */
1357
- export const JOIN = Symbol('join');
1373
+ const JOIN = Symbol('join');
1374
+
1375
+ var constants = /*#__PURE__*/Object.freeze({
1376
+ __proto__: null,
1377
+ ADD: ADD,
1378
+ ALT: ALT,
1379
+ ARROW: ARROW,
1380
+ AUTO: AUTO,
1381
+ AXES: AXES,
1382
+ BACKSPACE: BACKSPACE,
1383
+ BASELINE: BASELINE,
1384
+ BEVEL: BEVEL,
1385
+ BEZIER: BEZIER,
1386
+ BLEND: BLEND,
1387
+ BLUR: BLUR,
1388
+ BOLD: BOLD,
1389
+ BOLDITALIC: BOLDITALIC,
1390
+ BOTTOM: BOTTOM,
1391
+ BURN: BURN,
1392
+ CENTER: CENTER,
1393
+ CHAR: CHAR,
1394
+ CHORD: CHORD,
1395
+ CLAMP: CLAMP,
1396
+ CLOSE: CLOSE,
1397
+ CONTAIN: CONTAIN,
1398
+ CONTROL: CONTROL,
1399
+ CORNER: CORNER,
1400
+ CORNERS: CORNERS,
1401
+ COVER: COVER,
1402
+ CROSS: CROSS,
1403
+ CURVE: CURVE,
1404
+ DARKEST: DARKEST,
1405
+ DEG_TO_RAD: DEG_TO_RAD,
1406
+ DELETE: DELETE,
1407
+ DIFFERENCE: DIFFERENCE,
1408
+ DILATE: DILATE,
1409
+ DODGE: DODGE,
1410
+ DOWN_ARROW: DOWN_ARROW,
1411
+ EMPTY_PATH: EMPTY_PATH,
1412
+ ENTER: ENTER,
1413
+ ERODE: ERODE,
1414
+ ESCAPE: ESCAPE,
1415
+ EXCLUDE: EXCLUDE,
1416
+ EXCLUSION: EXCLUSION,
1417
+ FALLBACK: FALLBACK,
1418
+ FILL: FILL,
1419
+ FLAT: FLAT,
1420
+ FLOAT: FLOAT,
1421
+ FULL: FULL,
1422
+ GRAY: GRAY,
1423
+ GRID: GRID,
1424
+ HALF_FLOAT: HALF_FLOAT,
1425
+ HALF_PI: HALF_PI,
1426
+ HAND: HAND,
1427
+ HARD_LIGHT: HARD_LIGHT,
1428
+ IMAGE: IMAGE,
1429
+ IMMEDIATE: IMMEDIATE,
1430
+ INCLUDE: INCLUDE,
1431
+ INVERT: INVERT,
1432
+ ITALIC: ITALIC,
1433
+ JOIN: JOIN,
1434
+ LABEL: LABEL,
1435
+ LANDSCAPE: LANDSCAPE,
1436
+ LEFT: LEFT,
1437
+ LEFT_ARROW: LEFT_ARROW,
1438
+ LIGHTEST: LIGHTEST,
1439
+ LINEAR: LINEAR,
1440
+ LINES: LINES,
1441
+ LINE_LOOP: LINE_LOOP,
1442
+ LINE_STRIP: LINE_STRIP,
1443
+ MIRROR: MIRROR,
1444
+ MITER: MITER,
1445
+ MOVE: MOVE,
1446
+ MULTIPLY: MULTIPLY,
1447
+ NEAREST: NEAREST,
1448
+ NORMAL: NORMAL,
1449
+ OPAQUE: OPAQUE,
1450
+ OPEN: OPEN,
1451
+ OPTION: OPTION,
1452
+ OVERLAY: OVERLAY,
1453
+ P2D: P2D,
1454
+ P2DHDR: P2DHDR,
1455
+ PATH: PATH,
1456
+ PI: PI,
1457
+ PIE: PIE,
1458
+ POINTS: POINTS,
1459
+ PORTRAIT: PORTRAIT,
1460
+ POSTERIZE: POSTERIZE,
1461
+ PROJECT: PROJECT,
1462
+ QUADRATIC: QUADRATIC,
1463
+ QUADS: QUADS,
1464
+ QUAD_STRIP: QUAD_STRIP,
1465
+ QUARTER_PI: QUARTER_PI,
1466
+ RADIUS: RADIUS,
1467
+ RAD_TO_DEG: RAD_TO_DEG,
1468
+ REMOVE: REMOVE,
1469
+ REPEAT: REPEAT,
1470
+ REPLACE: REPLACE,
1471
+ RETURN: RETURN,
1472
+ RIGHT: RIGHT,
1473
+ RIGHT_ARROW: RIGHT_ARROW,
1474
+ ROUND: ROUND,
1475
+ SCREEN: SCREEN,
1476
+ SHIFT: SHIFT,
1477
+ SIMPLE: SIMPLE,
1478
+ SMOOTH: SMOOTH,
1479
+ SOFT_LIGHT: SOFT_LIGHT,
1480
+ SQUARE: SQUARE,
1481
+ STROKE: STROKE,
1482
+ SUBTRACT: SUBTRACT,
1483
+ TAB: TAB,
1484
+ TAU: TAU,
1485
+ TESS: TESS,
1486
+ TEXT: TEXT,
1487
+ TEXTURE: TEXTURE,
1488
+ THRESHOLD: THRESHOLD,
1489
+ TOP: TOP,
1490
+ TRIANGLES: TRIANGLES,
1491
+ TRIANGLE_FAN: TRIANGLE_FAN,
1492
+ TRIANGLE_STRIP: TRIANGLE_STRIP,
1493
+ TWO_PI: TWO_PI,
1494
+ UNSIGNED_BYTE: UNSIGNED_BYTE,
1495
+ UNSIGNED_INT: UNSIGNED_INT,
1496
+ UP_ARROW: UP_ARROW,
1497
+ VERSION: VERSION,
1498
+ WAIT: WAIT,
1499
+ WEBGL: WEBGL,
1500
+ WEBGL2: WEBGL2,
1501
+ WORD: WORD,
1502
+ _CTX_MIDDLE: _CTX_MIDDLE,
1503
+ _DEFAULT_FILL: _DEFAULT_FILL,
1504
+ _DEFAULT_LEADMULT: _DEFAULT_LEADMULT,
1505
+ _DEFAULT_STROKE: _DEFAULT_STROKE,
1506
+ _DEFAULT_TEXT_FILL: _DEFAULT_TEXT_FILL
1507
+ });
1508
+
1509
+ export { BLUR as $, AXES as A, BEVEL as B, CENTER as C, DEG_TO_RAD as D, EMPTY_PATH as E, FLAT as F, GRID as G, HAND as H, INCLUDE as I, JOIN as J, OPAQUE as K, LINES as L, MOVE as M, NORMAL as N, OPEN as O, P2D as P, QUADS as Q, RIGHT as R, SQUARE as S, TEXTURE as T, POSTERIZE as U, DILATE as V, WAIT as W, GRAY as X, ERODE as Y, THRESHOLD as Z, INVERT as _, RADIUS as a, BOLDITALIC as a$, WEBGL as a0, IMAGE as a1, _DEFAULT_FILL as a2, _DEFAULT_STROKE as a3, REMOVE as a4, SUBTRACT as a5, DARKEST as a6, LIGHTEST as a7, DIFFERENCE as a8, MULTIPLY as a9, MIRROR as aA, FLOAT as aB, LINEAR as aC, HALF_FLOAT as aD, P2DHDR as aE, QUARTER_PI as aF, TAU as aG, TOP as aH, LINE_STRIP as aI, LINE_LOOP as aJ, TESS as aK, ALT as aL, BACKSPACE as aM, CONTROL as aN, DELETE as aO, DOWN_ARROW as aP, ENTER as aQ, ESCAPE as aR, LEFT_ARROW as aS, OPTION as aT, RETURN as aU, RIGHT_ARROW as aV, SHIFT as aW, TAB as aX, UP_ARROW as aY, ITALIC as aZ, BOLD as a_, EXCLUSION as aa, SCREEN as ab, REPLACE as ac, OVERLAY as ad, HARD_LIGHT as ae, SOFT_LIGHT as af, DODGE as ag, BURN as ah, ADD as ai, PIE as aj, CHORD as ak, VERSION as al, WORD as am, BASELINE as an, LEFT as ao, COVER as ap, CONTAIN as aq, BOTTOM as ar, FILL as as, CLAMP as at, UNSIGNED_INT as au, UNSIGNED_BYTE as av, SIMPLE as aw, FULL as ax, NEAREST as ay, REPEAT as az, ARROW as b, CHAR as b0, _DEFAULT_TEXT_FILL as b1, _DEFAULT_LEADMULT as b2, _CTX_MIDDLE as b3, QUADRATIC as b4, BEZIER as b5, CURVE as b6, STROKE as b7, IMMEDIATE as b8, LANDSCAPE as b9, PORTRAIT as ba, LABEL as bb, FALLBACK as bc, CROSS as c, TEXT as d, CORNER as e, TWO_PI as f, HALF_PI as g, PI as h, CORNERS as i, ROUND as j, PROJECT as k, MITER as l, PATH as m, CLOSE as n, POINTS as o, TRIANGLES as p, TRIANGLE_FAN as q, TRIANGLE_STRIP as r, QUAD_STRIP as s, EXCLUDE as t, BLEND as u, constants as v, AUTO as w, RAD_TO_DEG as x, SMOOTH as y, WEBGL2 as z };