p5 2.2.3-rc.1 → 2.3.0-rc.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 (138) hide show
  1. package/README.md +4 -5
  2. package/dist/accessibility/color_namer.js +9 -11
  3. package/dist/accessibility/describe.js +0 -1
  4. package/dist/accessibility/gridOutput.js +0 -1
  5. package/dist/accessibility/index.js +9 -10
  6. package/dist/accessibility/outputs.js +0 -1
  7. package/dist/accessibility/textOutput.js +0 -1
  8. package/dist/app.js +11 -10
  9. package/dist/app.node.js +122 -0
  10. package/dist/color/color_conversion.js +9 -11
  11. package/dist/color/creating_reading.js +1 -1
  12. package/dist/color/index.js +2 -2
  13. package/dist/color/p5.Color.js +1 -1
  14. package/dist/color/setting.js +25 -12
  15. package/dist/{constants-BUwWryrh.js → constants-CYF6mp5_.js} +2 -2
  16. package/dist/core/States.js +1 -1
  17. package/dist/core/constants.js +1 -1
  18. package/dist/core/environment.js +28 -29
  19. package/dist/core/filterShaders.js +1 -1
  20. package/dist/core/friendly_errors/fes_core.js +9 -8
  21. package/dist/core/friendly_errors/file_errors.js +1 -2
  22. package/dist/core/friendly_errors/index.js +1 -1
  23. package/dist/core/friendly_errors/param_validator.js +737 -640
  24. package/dist/core/friendly_errors/sketch_verifier.js +1 -1
  25. package/dist/core/friendly_errors/stacktrace.js +0 -1
  26. package/dist/core/helpers.js +3 -4
  27. package/dist/core/init.js +24 -21
  28. package/dist/core/internationalization.js +1 -1
  29. package/dist/core/legacy.js +9 -11
  30. package/dist/core/main.js +9 -10
  31. package/dist/core/p5.Graphics.js +5 -5
  32. package/dist/core/p5.Renderer.js +3 -3
  33. package/dist/core/p5.Renderer2D.js +9 -10
  34. package/dist/core/p5.Renderer3D.js +5 -5
  35. package/dist/core/rendering.js +5 -5
  36. package/dist/core/structure.js +0 -1
  37. package/dist/core/transform.js +7 -16
  38. package/dist/{creating_reading-C7hu6sg1.js → creating_reading-DLkHH80h.js} +11 -8
  39. package/dist/data/local_storage.js +13 -10
  40. package/dist/dom/dom.js +31 -31
  41. package/dist/dom/index.js +2 -2
  42. package/dist/dom/p5.Element.js +4 -4
  43. package/dist/dom/p5.MediaElement.js +5 -6
  44. package/dist/events/acceleration.js +5 -3
  45. package/dist/events/keyboard.js +0 -1
  46. package/dist/events/pointer.js +1 -3
  47. package/dist/image/const.js +1 -1
  48. package/dist/image/filterRenderer2D.js +19 -12
  49. package/dist/image/image.js +5 -5
  50. package/dist/image/index.js +5 -5
  51. package/dist/image/loading_displaying.js +5 -5
  52. package/dist/image/p5.Image.js +3 -3
  53. package/dist/image/pixels.js +0 -1
  54. package/dist/io/files.js +5 -5
  55. package/dist/io/index.js +5 -5
  56. package/dist/io/p5.Table.js +0 -1
  57. package/dist/io/p5.TableRow.js +0 -1
  58. package/dist/io/p5.XML.js +8 -9
  59. package/dist/{ir_builders-Cd6rU9Vm.js → ir_builders-C2ebb6Lu.js} +234 -1
  60. package/dist/{main-DFpoFdvM.js → main-D2MtO721.js} +107 -136
  61. package/dist/math/Matrices/Matrix.js +1 -1
  62. package/dist/math/Matrices/MatrixNumjs.js +1 -1
  63. package/dist/math/calculation.js +0 -1
  64. package/dist/math/index.js +3 -1
  65. package/dist/math/math.js +3 -17
  66. package/dist/math/noise.js +0 -1
  67. package/dist/math/p5.Matrix.js +1 -2
  68. package/dist/math/p5.Vector.js +233 -279
  69. package/dist/math/patch-vector.js +75 -0
  70. package/dist/math/random.js +0 -1
  71. package/dist/math/trigonometry.js +3 -4
  72. package/dist/{p5.Renderer-D-EuAodU.js → p5.Renderer-C0Kzy71d.js} +33 -25
  73. package/dist/{rendering-DE9-Hl7Y.js → rendering-CvNr0bB8.js} +738 -77
  74. package/dist/shape/2d_primitives.js +1 -4
  75. package/dist/shape/attributes.js +43 -8
  76. package/dist/shape/curves.js +0 -1
  77. package/dist/shape/custom_shapes.js +260 -5
  78. package/dist/shape/index.js +2 -2
  79. package/dist/shape/vertex.js +0 -2
  80. package/dist/strands/ir_builders.js +1 -1
  81. package/dist/strands/ir_types.js +5 -1
  82. package/dist/strands/p5.strands.js +286 -31
  83. package/dist/strands/strands_api.js +179 -8
  84. package/dist/strands/strands_codegen.js +26 -8
  85. package/dist/strands/strands_conditionals.js +1 -1
  86. package/dist/strands/strands_for.js +1 -1
  87. package/dist/strands/strands_node.js +1 -1
  88. package/dist/strands/strands_ternary.js +56 -0
  89. package/dist/strands/strands_transpiler.js +416 -251
  90. package/dist/strands_glslBackend-i-ReKgZo.js +423 -0
  91. package/dist/type/index.js +3 -3
  92. package/dist/type/lib/Typr.js +1 -1
  93. package/dist/type/p5.Font.js +3 -3
  94. package/dist/type/textCore.js +31 -24
  95. package/dist/utilities/conversion.js +0 -1
  96. package/dist/utilities/time_date.js +0 -1
  97. package/dist/utilities/utility_functions.js +0 -1
  98. package/dist/webgl/3d_primitives.js +5 -5
  99. package/dist/webgl/GeometryBuilder.js +1 -1
  100. package/dist/webgl/ShapeBuilder.js +26 -1
  101. package/dist/webgl/enums.js +1 -1
  102. package/dist/webgl/index.js +8 -9
  103. package/dist/webgl/interaction.js +8 -4
  104. package/dist/webgl/light.js +5 -5
  105. package/dist/webgl/loading.js +61 -24
  106. package/dist/webgl/material.js +5 -5
  107. package/dist/webgl/p5.Camera.js +5 -5
  108. package/dist/webgl/p5.Framebuffer.js +5 -5
  109. package/dist/webgl/p5.Geometry.js +3 -5
  110. package/dist/webgl/p5.Quat.js +1 -1
  111. package/dist/webgl/p5.RendererGL.js +17 -21
  112. package/dist/webgl/p5.Shader.js +129 -36
  113. package/dist/webgl/p5.Texture.js +5 -5
  114. package/dist/webgl/strands_glslBackend.js +5 -386
  115. package/dist/webgl/text.js +5 -5
  116. package/dist/webgl/utils.js +5 -5
  117. package/dist/webgl2Compatibility-DA7DLMuq.js +7 -0
  118. package/dist/webgpu/index.js +7 -3
  119. package/dist/webgpu/p5.RendererWebGPU.js +1036 -180
  120. package/dist/webgpu/shaders/color.js +1 -1
  121. package/dist/webgpu/shaders/compute.js +32 -0
  122. package/dist/webgpu/shaders/functions/randomComputeWGSL.js +31 -0
  123. package/dist/webgpu/shaders/functions/randomVertWGSL.js +30 -0
  124. package/dist/webgpu/shaders/functions/randomWGSL.js +30 -0
  125. package/dist/webgpu/shaders/line.js +1 -1
  126. package/dist/webgpu/shaders/material.js +3 -3
  127. package/dist/webgpu/strands_wgslBackend.js +137 -15
  128. package/lib/p5.esm.js +4153 -2039
  129. package/lib/p5.esm.min.js +1 -1
  130. package/lib/p5.js +4153 -2039
  131. package/lib/p5.min.js +1 -1
  132. package/lib/p5.webgpu.esm.js +1638 -306
  133. package/lib/p5.webgpu.js +1637 -305
  134. package/lib/p5.webgpu.min.js +1 -1
  135. package/package.json +6 -1
  136. package/types/global.d.ts +4572 -2853
  137. package/types/p5.d.ts +2965 -1932
  138. package/dist/noise3DGLSL-Bwrdi4gi.js +0 -9
package/README.md CHANGED
@@ -32,7 +32,7 @@ function draw() {
32
32
  </tr>
33
33
  </table>
34
34
 
35
- [Get Started](https://p5js.org/tutorials/get-started/) — [Reference](https://p5js.org/reference) — [Tutorials](https://p5js.org/tutorials) — [Examples](https://p5js.org/examples/) — [Libraries](https://p5js.org/libraries) — [Forum](https://discourse.processing.org/c/p5js) — [Discord](https://discord.gg/SHQ8dH25r9)
35
+ [Get Started](https://p5js.org/tutorials/get-started/) — [Reference](https://p5js.org/reference) — [Tutorials](https://p5js.org/tutorials) — [Examples](https://p5js.org/examples/) — [Libraries](https://p5js.org/libraries) — [Forum](https://discourse.processing.org/c/p5js) — [Discord](https://discord.p5js.org)
36
36
 
37
37
  ## About
38
38
 
@@ -80,7 +80,7 @@ Stewards are contributors who are particularly involved, familiar, or responsive
80
80
 
81
81
  Anyone interested can volunteer to be a steward! There are no specific requirements for expertise, just an interest in actively learning and participating. If you’re familiar with or interested in actively learning and participating in some of the p5.js areas below, please reply to [this issue](https://github.com/processing/p5.js/issues/5719) mentioning which area(s) you are interested in volunteering as a steward! 👋👋👋
82
82
 
83
- p5.js was created by [Lauren Lee McCarthy](https://github.com/lmccart) in 2013 as a new interpretation of Processing for the context of the web. Since then we have allowed ourselves space to deviate and grow, while drawing inspiration from Processing and our shared community. p5.js is sustained by a community of contributors, with support from the Processing Foundation. p5.js follows a rotating leadership model started in 2020, and [Qianqian Ye](https://github.com/qianqianye) has been leading p5.js since 2021. Learn more about the [people](https://p5js.org/people/) behind p5.js.
83
+ p5.js was created by [Lauren Lee McCarthy](https://github.com/lmccart) in 2013 as a new interpretation of Processing for the context of the web. Since then we have allowed ourselves space to deviate and grow, while drawing inspiration from Processing and our shared community. p5.js is sustained by a community of contributors, with support from the Processing Foundation. p5.js follows a rotating leadership model started in 2020. Learn more about the [people](https://p5js.org/people/) behind p5.js.
84
84
 
85
85
  Current Lead/Mentor
86
86
  * [@ksen0](https://github.com/ksen0) - p5.js Lead,2024-present
@@ -88,15 +88,14 @@ Current Lead/Mentor
88
88
 
89
89
  Lead/Mentor Alumni
90
90
  * [@lmccart](https://github.com/lmccart) - p5.js Creator
91
- * [@qianqianye](https://github.com/qianqianye) - p5.js Lead,2021-present (on leave)
91
+ * [@qianqianye](https://github.com/qianqianye) - p5.js Lead,2021-2025
92
92
  * [@outofambit](https://github.com/outofambit) - p5.js Co-Lead 2021-22, Mentor 2022-2023
93
93
  * [@mcturner1995](https://github.com/mcturner1995) - p5.js Lead 2020
94
94
 
95
-
96
95
  <!-- STEWARDS-LIST:START - Do not remove or modify this section -->
97
96
  | Area | Steward(s) |
98
97
  |------|-------------|
99
- | Maintainers | [@davepagurek](https://github.com/davepagurek), [@ksen0](https://github.com/ksen0), [@limzykenneth](https://github.com/limzykenneth), [@perminder-17](https://github.com/perminder-17), [@qianqianye](https://github.com/qianqianye) |
98
+ | Maintainers | [@davepagurek](https://github.com/davepagurek), [@doradocodes](https://github.com/doradocodes), [@ksen0](https://github.com/ksen0), [@limzykenneth](https://github.com/limzykenneth), [@perminder-17](https://github.com/perminder-17), [@qianqianye](https://github.com/qianqianye) |
100
99
  | Accessibility | [@calebfoss](https://github.com/calebfoss) |
101
100
  | Accessibility (p5.js-website) | [@coseeian](https://github.com/coseeian) |
102
101
  | Color | [@limzykenneth](https://github.com/limzykenneth) |
@@ -1,17 +1,18 @@
1
1
  import color_conversion from '../color/color_conversion.js';
2
- import '../main-DFpoFdvM.js';
3
- import '../constants-BUwWryrh.js';
2
+ import '../main-D2MtO721.js';
3
+ import '../constants-CYF6mp5_.js';
4
4
  import '../core/transform.js';
5
5
  import '../core/structure.js';
6
6
  import '../core/environment.js';
7
- import '../rendering-DE9-Hl7Y.js';
8
- import '../creating_reading-C7hu6sg1.js';
7
+ import '../rendering-CvNr0bB8.js';
8
+ import '../creating_reading-DLkHH80h.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
+ import '../strands/ir_types.js';
11
12
  import '../dom/p5.Element.js';
12
13
  import '../dom/p5.File.js';
13
14
  import '../io/p5.XML.js';
14
- import '../p5.Renderer-D-EuAodU.js';
15
+ import '../p5.Renderer-C0Kzy71d.js';
15
16
  import '../image/filters.js';
16
17
  import '../math/p5.Vector.js';
17
18
  import '../shape/custom_shapes.js';
@@ -26,7 +27,6 @@ import '../shape/vertex.js';
26
27
  import '../color/setting.js';
27
28
  import 'omggif';
28
29
  import '../io/csv.js';
29
- import 'gifenc';
30
30
  import '../image/pixels.js';
31
31
  import '../webgl/GeometryBuilder.js';
32
32
  import '../math/p5.Matrix.js';
@@ -46,12 +46,11 @@ import '../webgl/enums.js';
46
46
  import '../webgl/p5.Shader.js';
47
47
  import '../math/trigonometry.js';
48
48
  import '../image/filterRenderer2D.js';
49
- import '../noise3DGLSL-Bwrdi4gi.js';
50
- import '../webgl/strands_glslBackend.js';
51
- import '../strands/ir_types.js';
49
+ import '../webgl2Compatibility-DA7DLMuq.js';
50
+ import '../strands_glslBackend-i-ReKgZo.js';
52
51
  import '../strands/ir_dag.js';
53
52
  import '../strands/strands_FES.js';
54
- import '../ir_builders-Cd6rU9Vm.js';
53
+ import '../ir_builders-C2ebb6Lu.js';
55
54
  import '../strands/ir_cfg.js';
56
55
  import '../strands/strands_builtins.js';
57
56
  import '../webgl/shaderHookUtils.js';
@@ -60,7 +59,6 @@ import '../webgl/shaderHookUtils.js';
60
59
  * @module Environment
61
60
  * @submodule Environment
62
61
  * @for p5
63
- * @requires core
64
62
  */
65
63
 
66
64
 
@@ -2,7 +2,6 @@
2
2
  * @module Environment
3
3
  * @submodule Environment
4
4
  * @for p5
5
- * @requires core
6
5
  */
7
6
 
8
7
  function describe(p5, fn){
@@ -2,7 +2,6 @@
2
2
  * @module Environment
3
3
  * @submodule Environment
4
4
  * @for p5
5
- * @requires core
6
5
  */
7
6
 
8
7
  function gridOutput(p5, fn){
@@ -4,19 +4,20 @@ import textOutput from './textOutput.js';
4
4
  import outputs from './outputs.js';
5
5
  import colorNamer from './color_namer.js';
6
6
  import '../color/color_conversion.js';
7
- import '../main-DFpoFdvM.js';
8
- import '../constants-BUwWryrh.js';
7
+ import '../main-D2MtO721.js';
8
+ import '../constants-CYF6mp5_.js';
9
9
  import '../core/transform.js';
10
10
  import '../core/structure.js';
11
11
  import '../core/environment.js';
12
- import '../rendering-DE9-Hl7Y.js';
13
- import '../creating_reading-C7hu6sg1.js';
12
+ import '../rendering-CvNr0bB8.js';
13
+ import '../creating_reading-DLkHH80h.js';
14
14
  import 'colorjs.io/fn';
15
15
  import '../color/color_spaces/hsb.js';
16
+ import '../strands/ir_types.js';
16
17
  import '../dom/p5.Element.js';
17
18
  import '../dom/p5.File.js';
18
19
  import '../io/p5.XML.js';
19
- import '../p5.Renderer-D-EuAodU.js';
20
+ import '../p5.Renderer-C0Kzy71d.js';
20
21
  import '../image/filters.js';
21
22
  import '../math/p5.Vector.js';
22
23
  import '../shape/custom_shapes.js';
@@ -31,7 +32,6 @@ import '../shape/vertex.js';
31
32
  import '../color/setting.js';
32
33
  import 'omggif';
33
34
  import '../io/csv.js';
34
- import 'gifenc';
35
35
  import '../image/pixels.js';
36
36
  import '../webgl/GeometryBuilder.js';
37
37
  import '../math/p5.Matrix.js';
@@ -51,12 +51,11 @@ import '../webgl/enums.js';
51
51
  import '../webgl/p5.Shader.js';
52
52
  import '../math/trigonometry.js';
53
53
  import '../image/filterRenderer2D.js';
54
- import '../noise3DGLSL-Bwrdi4gi.js';
55
- import '../webgl/strands_glslBackend.js';
56
- import '../strands/ir_types.js';
54
+ import '../webgl2Compatibility-DA7DLMuq.js';
55
+ import '../strands_glslBackend-i-ReKgZo.js';
57
56
  import '../strands/ir_dag.js';
58
57
  import '../strands/strands_FES.js';
59
- import '../ir_builders-Cd6rU9Vm.js';
58
+ import '../ir_builders-C2ebb6Lu.js';
60
59
  import '../strands/ir_cfg.js';
61
60
  import '../strands/strands_builtins.js';
62
61
  import '../webgl/shaderHookUtils.js';
@@ -2,7 +2,6 @@
2
2
  * @module Environment
3
3
  * @submodule Environment
4
4
  * @for p5
5
- * @requires core
6
5
  */
7
6
 
8
7
  function outputs(p5, fn){
@@ -2,7 +2,6 @@
2
2
  * @module Environment
3
3
  * @submodule Environment
4
4
  * @for p5
5
- * @requires core
6
5
  */
7
6
 
8
7
  function textOutput(p5, fn){
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as p5 } from './main-DFpoFdvM.js';
1
+ import { p as p5 } from './main-D2MtO721.js';
2
2
  import shape from './shape/index.js';
3
3
  import accessibility from './accessibility/index.js';
4
4
  import color from './color/index.js';
@@ -15,18 +15,19 @@ import type from './type/index.js';
15
15
  import shader from './webgl/p5.Shader.js';
16
16
  import strands from './strands/p5.strands.js';
17
17
  import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init.js';
18
- import './constants-BUwWryrh.js';
18
+ import './constants-CYF6mp5_.js';
19
19
  import './core/transform.js';
20
20
  import './core/structure.js';
21
21
  import './core/environment.js';
22
- import './rendering-DE9-Hl7Y.js';
23
- import './creating_reading-C7hu6sg1.js';
22
+ import './rendering-CvNr0bB8.js';
23
+ import './creating_reading-DLkHH80h.js';
24
24
  import 'colorjs.io/fn';
25
25
  import './color/color_spaces/hsb.js';
26
+ import './strands/ir_types.js';
26
27
  import './dom/p5.Element.js';
27
28
  import './dom/p5.File.js';
28
29
  import './io/p5.XML.js';
29
- import './p5.Renderer-D-EuAodU.js';
30
+ import './p5.Renderer-C0Kzy71d.js';
30
31
  import './image/filters.js';
31
32
  import './math/p5.Vector.js';
32
33
  import './shape/custom_shapes.js';
@@ -41,7 +42,6 @@ import './shape/vertex.js';
41
42
  import './color/setting.js';
42
43
  import 'omggif';
43
44
  import './io/csv.js';
44
- import 'gifenc';
45
45
  import './image/pixels.js';
46
46
  import './webgl/GeometryBuilder.js';
47
47
  import './math/p5.Matrix.js';
@@ -60,12 +60,11 @@ import './core/filterShaders.js';
60
60
  import './webgl/enums.js';
61
61
  import './math/trigonometry.js';
62
62
  import './image/filterRenderer2D.js';
63
- import './noise3DGLSL-Bwrdi4gi.js';
64
- import './webgl/strands_glslBackend.js';
65
- import './strands/ir_types.js';
63
+ import './webgl2Compatibility-DA7DLMuq.js';
64
+ import './strands_glslBackend-i-ReKgZo.js';
66
65
  import './strands/ir_dag.js';
67
66
  import './strands/strands_FES.js';
68
- import './ir_builders-Cd6rU9Vm.js';
67
+ import './ir_builders-C2ebb6Lu.js';
69
68
  import './strands/ir_cfg.js';
70
69
  import './strands/strands_builtins.js';
71
70
  import './webgl/shaderHookUtils.js';
@@ -98,6 +97,7 @@ import './math/calculation.js';
98
97
  import './math/noise.js';
99
98
  import './math/random.js';
100
99
  import './math/math.js';
100
+ import './math/patch-vector.js';
101
101
  import './utilities/conversion.js';
102
102
  import './utilities/utility_functions.js';
103
103
  import './utilities/time_date.js';
@@ -118,6 +118,7 @@ import './strands/strands_api.js';
118
118
  import './strands/strands_conditionals.js';
119
119
  import './strands/strands_phi_utils.js';
120
120
  import './strands/strands_for.js';
121
+ import './strands/strands_ternary.js';
121
122
 
122
123
  // core
123
124
  shape(p5);
@@ -0,0 +1,122 @@
1
+ import { p as p5 } from './main-D2MtO721.js';
2
+ import shape from './shape/index.js';
3
+ import accessibility from './accessibility/index.js';
4
+ import color from './color/index.js';
5
+ import data from './data/index.js';
6
+ import dom from './dom/index.js';
7
+ import image from './image/index.js';
8
+ import io from './io/index.js';
9
+ import math from './math/index.js';
10
+ import utilities from './utilities/index.js';
11
+ import webgl from './webgl/index.js';
12
+ import type from './type/index.js';
13
+ import shader from './webgl/p5.Shader.js';
14
+ import strands from './strands/p5.strands.js';
15
+ import './constants-CYF6mp5_.js';
16
+ import './core/transform.js';
17
+ import './core/structure.js';
18
+ import './core/environment.js';
19
+ import './rendering-CvNr0bB8.js';
20
+ import './creating_reading-DLkHH80h.js';
21
+ import 'colorjs.io/fn';
22
+ import './color/color_spaces/hsb.js';
23
+ import './strands/ir_types.js';
24
+ import './dom/p5.Element.js';
25
+ import './dom/p5.File.js';
26
+ import './io/p5.XML.js';
27
+ import './p5.Renderer-C0Kzy71d.js';
28
+ import './image/filters.js';
29
+ import './math/p5.Vector.js';
30
+ import './shape/custom_shapes.js';
31
+ import './core/States.js';
32
+ import './io/utilities.js';
33
+ import './dom/p5.MediaElement.js';
34
+ import './shape/2d_primitives.js';
35
+ import './core/helpers.js';
36
+ import './shape/attributes.js';
37
+ import './shape/curves.js';
38
+ import './shape/vertex.js';
39
+ import './color/setting.js';
40
+ import 'omggif';
41
+ import './io/csv.js';
42
+ import './image/pixels.js';
43
+ import './webgl/GeometryBuilder.js';
44
+ import './math/p5.Matrix.js';
45
+ import './math/Matrices/Matrix.js';
46
+ import './math/Matrices/MatrixInterface.js';
47
+ import './webgl/p5.Geometry.js';
48
+ import './webgl/p5.DataArray.js';
49
+ import './webgl/p5.Quat.js';
50
+ import './webgl/ShapeBuilder.js';
51
+ import 'libtess';
52
+ import './webgl/p5.RenderBuffer.js';
53
+ import './webgl/GeometryBufferCache.js';
54
+ import './image/const.js';
55
+ import './type/textCore.js';
56
+ import './core/filterShaders.js';
57
+ import './webgl/enums.js';
58
+ import './math/trigonometry.js';
59
+ import './image/filterRenderer2D.js';
60
+ import './webgl2Compatibility-DA7DLMuq.js';
61
+ import './strands_glslBackend-i-ReKgZo.js';
62
+ import './strands/ir_dag.js';
63
+ import './strands/strands_FES.js';
64
+ import './ir_builders-C2ebb6Lu.js';
65
+ import './strands/ir_cfg.js';
66
+ import './strands/strands_builtins.js';
67
+ import './webgl/shaderHookUtils.js';
68
+ import './accessibility/describe.js';
69
+ import './accessibility/gridOutput.js';
70
+ import './accessibility/textOutput.js';
71
+ import './accessibility/outputs.js';
72
+ import './accessibility/color_namer.js';
73
+ import './color/color_conversion.js';
74
+ import './data/local_storage.js';
75
+ import './dom/dom.js';
76
+ import './io/p5.Table.js';
77
+ import './io/p5.TableRow.js';
78
+ import './math/calculation.js';
79
+ import './math/noise.js';
80
+ import './math/random.js';
81
+ import './math/math.js';
82
+ import './math/patch-vector.js';
83
+ import './utilities/conversion.js';
84
+ import './utilities/utility_functions.js';
85
+ import './utilities/time_date.js';
86
+ import './webgl/interaction.js';
87
+ import './webgl/loading.js';
88
+ import './webgl/text.js';
89
+ import './type/p5.Font.js';
90
+ import '@japont/unicode-range';
91
+ import './type/unicodeRanges.js';
92
+ import './type/lib/Typr.js';
93
+ import 'pako';
94
+ import '@davepagurek/bezier-path';
95
+ import './webgl/p5.RendererGL.js';
96
+ import './strands/strands_transpiler.js';
97
+ import 'acorn';
98
+ import 'acorn-walk';
99
+ import 'escodegen';
100
+ import './strands/strands_codegen.js';
101
+ import './strands/strands_api.js';
102
+ import './strands/strands_conditionals.js';
103
+ import './strands/strands_phi_utils.js';
104
+ import './strands/strands_for.js';
105
+ import './strands/strands_ternary.js';
106
+
107
+ // core
108
+ shape(p5);
109
+ accessibility(p5);
110
+ color(p5);
111
+ data(p5);
112
+ dom(p5);
113
+ image(p5);
114
+ io(p5);
115
+ math(p5);
116
+ utilities(p5);
117
+ webgl(p5);
118
+ type(p5);
119
+ p5.registerAddon(shader);
120
+ p5.registerAddon(strands);
121
+
122
+ export { p5 as default };
@@ -1,16 +1,17 @@
1
- import { p as p5 } from '../main-DFpoFdvM.js';
2
- import '../constants-BUwWryrh.js';
1
+ import { p as p5 } from '../main-D2MtO721.js';
2
+ import '../constants-CYF6mp5_.js';
3
3
  import '../core/transform.js';
4
4
  import '../core/structure.js';
5
5
  import '../core/environment.js';
6
- import '../rendering-DE9-Hl7Y.js';
7
- import '../creating_reading-C7hu6sg1.js';
6
+ import '../rendering-CvNr0bB8.js';
7
+ import '../creating_reading-DLkHH80h.js';
8
8
  import 'colorjs.io/fn';
9
9
  import './color_spaces/hsb.js';
10
+ import '../strands/ir_types.js';
10
11
  import '../dom/p5.Element.js';
11
12
  import '../dom/p5.File.js';
12
13
  import '../io/p5.XML.js';
13
- import '../p5.Renderer-D-EuAodU.js';
14
+ import '../p5.Renderer-C0Kzy71d.js';
14
15
  import '../image/filters.js';
15
16
  import '../math/p5.Vector.js';
16
17
  import '../shape/custom_shapes.js';
@@ -25,7 +26,6 @@ import '../shape/vertex.js';
25
26
  import './setting.js';
26
27
  import 'omggif';
27
28
  import '../io/csv.js';
28
- import 'gifenc';
29
29
  import '../image/pixels.js';
30
30
  import '../webgl/GeometryBuilder.js';
31
31
  import '../math/p5.Matrix.js';
@@ -45,12 +45,11 @@ import '../webgl/enums.js';
45
45
  import '../webgl/p5.Shader.js';
46
46
  import '../math/trigonometry.js';
47
47
  import '../image/filterRenderer2D.js';
48
- import '../noise3DGLSL-Bwrdi4gi.js';
49
- import '../webgl/strands_glslBackend.js';
50
- import '../strands/ir_types.js';
48
+ import '../webgl2Compatibility-DA7DLMuq.js';
49
+ import '../strands_glslBackend-i-ReKgZo.js';
51
50
  import '../strands/ir_dag.js';
52
51
  import '../strands/strands_FES.js';
53
- import '../ir_builders-Cd6rU9Vm.js';
52
+ import '../ir_builders-C2ebb6Lu.js';
54
53
  import '../strands/ir_cfg.js';
55
54
  import '../strands/strands_builtins.js';
56
55
  import '../webgl/shaderHookUtils.js';
@@ -59,7 +58,6 @@ import '../webgl/shaderHookUtils.js';
59
58
  * @module Color
60
59
  * @submodule Color Conversion
61
60
  * @for p5
62
- * @requires core
63
61
  */
64
62
 
65
63
  p5.ColorConversion = {
@@ -1,3 +1,3 @@
1
- export { H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH, R as RGB, h as RGBA, b as RGBHDR, c as default } from '../creating_reading-C7hu6sg1.js';
1
+ export { H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH, R as RGB, h as RGBA, b as RGBHDR, c as default } from '../creating_reading-DLkHH80h.js';
2
2
  import 'colorjs.io/fn';
3
3
  import './color_spaces/hsb.js';
@@ -1,8 +1,8 @@
1
- import { c as creatingReading, a as color$1 } from '../creating_reading-C7hu6sg1.js';
1
+ import { c as creatingReading, a as color$1 } from '../creating_reading-DLkHH80h.js';
2
2
  import setting from './setting.js';
3
3
  import 'colorjs.io/fn';
4
4
  import './color_spaces/hsb.js';
5
- import '../constants-BUwWryrh.js';
5
+ import '../constants-CYF6mp5_.js';
6
6
 
7
7
  function color(p5){
8
8
  p5.registerAddon(creatingReading);
@@ -1,3 +1,3 @@
1
- export { C as Color, a as default } from '../creating_reading-C7hu6sg1.js';
1
+ export { C as Color, a as default } from '../creating_reading-DLkHH80h.js';
2
2
  import 'colorjs.io/fn';
3
3
  import './color_spaces/hsb.js';
@@ -1,5 +1,5 @@
1
- import { a2 as NORMAL, B as BLEND } from '../constants-BUwWryrh.js';
2
- import { R as RGB, b as RGBHDR, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-C7hu6sg1.js';
1
+ import { a1 as NORMAL, B as BLEND } from '../constants-CYF6mp5_.js';
2
+ import { R as RGB, b as RGBHDR, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-DLkHH80h.js';
3
3
  import 'colorjs.io/fn';
4
4
  import './color_spaces/hsb.js';
5
5
 
@@ -7,8 +7,6 @@ import './color_spaces/hsb.js';
7
7
  * @module Color
8
8
  * @submodule Setting
9
9
  * @for p5
10
- * @requires core
11
- * @requires constants
12
10
  */
13
11
 
14
12
 
@@ -512,7 +510,7 @@ function setting(p5, fn){
512
510
  *
513
511
  * describe('A canvas with a transparent green background.');
514
512
  * }
515
- * <
513
+ *
516
514
  * @example
517
515
  * function setup() {
518
516
  * createCanvas(100, 100);
@@ -583,8 +581,7 @@ function setting(p5, fn){
583
581
  * @chainable
584
582
  */
585
583
  fn.background = function(...args) {
586
- this._renderer.background(...args);
587
- return this;
584
+ return this._renderer.background(...args);
588
585
  };
589
586
 
590
587
  /**
@@ -1099,6 +1096,8 @@ function setting(p5, fn){
1099
1096
  * or `HSLA` colors, depending on the current <a href="#/p5/colorMode">colorMode()</a>. The last parameter
1100
1097
  * sets the alpha (transparency) value.
1101
1098
  *
1099
+ * Calling `fill()` without an argument returns the current fill as a <a href="#/p5.Color">p5.Color</a> object.
1100
+ *
1102
1101
  * @method fill
1103
1102
  * @param {Number} v1 red value if color mode is RGB or hue value if color mode is HSB.
1104
1103
  * @param {Number} v2 green value if color mode is RGB or saturation value if color mode is HSB.
@@ -1287,9 +1286,12 @@ function setting(p5, fn){
1287
1286
  * @param {p5.Color} color the fill color.
1288
1287
  * @chainable
1289
1288
  */
1289
+ /**
1290
+ * @method fill
1291
+ * @return {p5.Color} the current fill color.
1292
+ */
1290
1293
  fn.fill = function(...args) {
1291
- this._renderer.fill(...args);
1292
- return this;
1294
+ return this._renderer.fill(...args);
1293
1295
  };
1294
1296
 
1295
1297
  /**
@@ -1418,6 +1420,8 @@ function setting(p5, fn){
1418
1420
  * or HSLA colors, depending on the current `colorMode()`. The last parameter
1419
1421
  * sets the alpha (transparency) value.
1420
1422
  *
1423
+ * Calling `stroke()` without an argument returns the current stroke as a <a href="#/p5.Color">p5.Color</a> object.
1424
+ *
1421
1425
  * @method stroke
1422
1426
  * @param {Number} v1 red value if color mode is RGB or hue value if color mode is HSB.
1423
1427
  * @param {Number} v2 green value if color mode is RGB or saturation value if color mode is HSB.
@@ -1604,9 +1608,12 @@ function setting(p5, fn){
1604
1608
  * @param {p5.Color} color the stroke color.
1605
1609
  * @chainable
1606
1610
  */
1611
+ /**
1612
+ * @method stroke
1613
+ * @return {p5.Color} the current stroke color.
1614
+ */
1607
1615
  fn.stroke = function(...args) {
1608
- this._renderer.stroke(...args);
1609
- return this;
1616
+ return this._renderer.stroke(...args);
1610
1617
  };
1611
1618
 
1612
1619
  /**
@@ -1771,6 +1778,8 @@ function setting(p5, fn){
1771
1778
  * EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,
1772
1779
  * SOFT_LIGHT, DODGE, BURN, ADD, REMOVE or SUBTRACT
1773
1780
  *
1781
+ * Calling `blendMode()` without an argument returns the current blendMode.
1782
+ *
1774
1783
  * @example
1775
1784
  * function setup() {
1776
1785
  * createCanvas(100, 100);
@@ -2139,6 +2148,10 @@ function setting(p5, fn){
2139
2148
  * describe('A yellow line and a turquoise line form an X on a gray background. The area where they overlap is green.');
2140
2149
  * }
2141
2150
  */
2151
+ /**
2152
+ * @method blendMode
2153
+ * @return {(BLEND|DARKEST|LIGHTEST|DIFFERENCE|MULTIPLY|EXCLUSION|SCREEN|REPLACE|OVERLAY|HARD_LIGHT|SOFT_LIGHT|DODGE|BURN|ADD|REMOVE|SUBTRACT)} the current blend mode.
2154
+ */
2142
2155
  fn.blendMode = function (mode) {
2143
2156
  // p5._validateParameters('blendMode', arguments);
2144
2157
  if (mode === NORMAL) {
@@ -2148,7 +2161,7 @@ function setting(p5, fn){
2148
2161
  );
2149
2162
  mode = BLEND;
2150
2163
  }
2151
- this._renderer.blendMode(mode);
2164
+ return this._renderer.blendMode(mode);
2152
2165
  };
2153
2166
  }
2154
2167
 
@@ -11,7 +11,7 @@ const _PI = Math.PI;
11
11
  * @property {String} VERSION
12
12
  * @final
13
13
  */
14
- const VERSION = '2.2.3-rc.1';
14
+ const VERSION = '2.3.0-rc.0';
15
15
 
16
16
  // GRAPHICS RENDERER
17
17
  /**
@@ -1395,4 +1395,4 @@ var constants = /*#__PURE__*/Object.freeze({
1395
1395
  _DEFAULT_TEXT_FILL: _DEFAULT_TEXT_FILL
1396
1396
  });
1397
1397
 
1398
- export { QUAD_STRIP as $, ADD as A, BLEND as B, CLAMP as C, DARKEST as D, EXCLUSION as E, FLOAT as F, GRID as G, HALF_FLOAT as H, MITER as I, INCLUDE as J, PATH as K, LIGHTEST as L, MULTIPLY as M, NEAREST as N, EMPTY_PATH as O, P2D as P, OPEN as Q, REPLACE as R, SUBTRACT as S, TRIANGLE_STRIP as T, UNSIGNED_BYTE as U, CLOSE as V, WEBGPU as W, POINTS as X, LINES as Y, QUADS as Z, TRIANGLE_FAN as _, SCREEN as a, ITALIC as a$, EXCLUDE as a0, JOIN as a1, NORMAL as a2, constants as a3, AUTO as a4, RAD_TO_DEG as a5, DEG_TO_RAD as a6, FLAT as a7, SMOOTH as a8, RIGHT as a9, WORD as aA, COVER as aB, CONTAIN as aC, FILL as aD, SIMPLE as aE, FULL as aF, LINEAR_MIPMAP as aG, P2DHDR as aH, QUARTER_PI as aI, TAU as aJ, LINE_STRIP as aK, LINE_LOOP as aL, TESS as aM, ALT as aN, BACKSPACE as aO, CONTROL as aP, DELETE as aQ, DOWN_ARROW as aR, ENTER as aS, ESCAPE as aT, LEFT_ARROW as aU, OPTION as aV, RETURN as aW, RIGHT_ARROW as aX, SHIFT as aY, TAB as aZ, UP_ARROW as a_, WEBGL2 as aa, BLUR as ab, WEBGL as ac, IMAGE as ad, THRESHOLD as ae, POSTERIZE as af, OPAQUE as ag, DILATE as ah, ERODE as ai, INVERT as aj, GRAY as ak, _DEFAULT_FILL as al, _DEFAULT_STROKE as am, DIFFERENCE as an, OVERLAY as ao, HARD_LIGHT as ap, SOFT_LIGHT as aq, DODGE as ar, BURN as as, PIE as at, CHORD as au, LEFT as av, BOTTOM as aw, BASELINE as ax, TOP as ay, VERSION as az, REMOVE as b, BOLD as b0, BOLDITALIC as b1, CHAR as b2, _DEFAULT_TEXT_FILL as b3, _DEFAULT_LEADMULT as b4, _CTX_MIDDLE as b5, QUADRATIC as b6, BEZIER as b7, CURVE as b8, STROKE as b9, IMMEDIATE as ba, LANDSCAPE as bb, PORTRAIT as bc, LABEL as bd, FALLBACK as be, TRIANGLES as c, UNSIGNED_INT as d, MIRROR as e, REPEAT as f, LINEAR as g, TEXTURE as h, AXES as i, ARROW as j, CROSS as k, HAND as l, MOVE as m, TEXT as n, WAIT as o, CORNER as p, TWO_PI as q, HALF_PI as r, PI as s, CORNERS as t, RADIUS as u, CENTER as v, ROUND as w, SQUARE as x, PROJECT as y, BEVEL as z };
1398
+ export { CHORD as $, ADD as A, BLEND as B, CLAMP as C, DARKEST as D, EXCLUSION as E, FLOAT as F, EMPTY_PATH as G, HALF_FLOAT as H, INCLUDE as I, CLOSE as J, POINTS as K, LIGHTEST as L, MULTIPLY as M, NEAREST as N, OPEN as O, P2D as P, LINES as Q, REPLACE as R, SUBTRACT as S, TRIANGLE_STRIP as T, UNSIGNED_BYTE as U, QUADS as V, WEBGPU as W, TRIANGLE_FAN as X, QUAD_STRIP as Y, EXCLUDE as Z, JOIN as _, SCREEN as a, ITALIC as a$, PIE as a0, NORMAL as a1, AUTO as a2, RAD_TO_DEG as a3, DEG_TO_RAD as a4, GRID as a5, AXES as a6, TEXTURE as a7, FLAT as a8, SMOOTH as a9, WORD as aA, COVER as aB, CONTAIN as aC, FILL as aD, SIMPLE as aE, FULL as aF, LINEAR_MIPMAP as aG, P2DHDR as aH, QUARTER_PI as aI, TAU as aJ, LINE_STRIP as aK, LINE_LOOP as aL, TESS as aM, ALT as aN, BACKSPACE as aO, CONTROL as aP, DELETE as aQ, DOWN_ARROW as aR, ENTER as aS, ESCAPE as aT, LEFT_ARROW as aU, OPTION as aV, RETURN as aW, RIGHT_ARROW as aX, SHIFT as aY, TAB as aZ, UP_ARROW as a_, RIGHT as aa, WEBGL2 as ab, BLUR as ac, WEBGL as ad, IMAGE as ae, THRESHOLD as af, POSTERIZE as ag, OPAQUE as ah, DILATE as ai, ERODE as aj, INVERT as ak, GRAY as al, constants as am, _DEFAULT_FILL as an, _DEFAULT_STROKE as ao, DIFFERENCE as ap, OVERLAY as aq, HARD_LIGHT as ar, SOFT_LIGHT as as, DODGE as at, BURN as au, LEFT as av, BOTTOM as aw, BASELINE as ax, TOP as ay, VERSION as az, REMOVE as b, BOLD as b0, BOLDITALIC as b1, CHAR as b2, _DEFAULT_TEXT_FILL as b3, _DEFAULT_LEADMULT as b4, _CTX_MIDDLE as b5, QUADRATIC as b6, BEZIER as b7, CURVE as b8, STROKE as b9, IMMEDIATE as ba, LANDSCAPE as bb, PORTRAIT as bc, LABEL as bd, FALLBACK as be, TRIANGLES as c, UNSIGNED_INT as d, MIRROR as e, REPEAT as f, LINEAR as g, ARROW as h, CROSS as i, HAND as j, MOVE as k, TEXT as l, WAIT as m, CORNER as n, TWO_PI as o, HALF_PI as p, PI as q, CORNERS as r, RADIUS as s, CENTER as t, ROUND as u, SQUARE as v, PROJECT as w, BEVEL as x, MITER as y, PATH as z };
@@ -14,7 +14,7 @@ class States {
14
14
  this[key] = value;
15
15
  }
16
16
 
17
- getDiff() {
17
+ takeDiff() {
18
18
  const diff = this.#modified;
19
19
  this.#modified = {};
20
20
  return diff;
@@ -1 +1 @@
1
- export { A as ADD, aN as ALT, j as ARROW, a4 as AUTO, i as AXES, aO as BACKSPACE, ax as BASELINE, z as BEVEL, b7 as BEZIER, B as BLEND, ab as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, as as BURN, v as CENTER, b2 as CHAR, au as CHORD, C as CLAMP, V as CLOSE, aC as CONTAIN, aP as CONTROL, p as CORNER, t as CORNERS, aB as COVER, k as CROSS, b8 as CURVE, D as DARKEST, a6 as DEG_TO_RAD, aQ as DELETE, an as DIFFERENCE, ah as DILATE, ar as DODGE, aR as DOWN_ARROW, O as EMPTY_PATH, aS as ENTER, ai as ERODE, aT as ESCAPE, a0 as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a7 as FLAT, F as FLOAT, aF as FULL, ak as GRAY, G as GRID, H as HALF_FLOAT, r as HALF_PI, l as HAND, ap as HARD_LIGHT, ad as IMAGE, ba as IMMEDIATE, J as INCLUDE, aj as INVERT, a$ as ITALIC, a1 as JOIN, bd as LABEL, bb as LANDSCAPE, av as LEFT, aU as LEFT_ARROW, L as LIGHTEST, g as LINEAR, aG as LINEAR_MIPMAP, Y as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, I as MITER, m as MOVE, M as MULTIPLY, N as NEAREST, a2 as NORMAL, ag as OPAQUE, Q as OPEN, aV as OPTION, ao as OVERLAY, P as P2D, aH as P2DHDR, K as PATH, s as PI, at as PIE, X as POINTS, bc as PORTRAIT, af as POSTERIZE, y as PROJECT, b6 as QUADRATIC, Z as QUADS, $ as QUAD_STRIP, aI as QUARTER_PI, u as RADIUS, a5 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, a9 as RIGHT, aX as RIGHT_ARROW, w as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a8 as SMOOTH, aq as SOFT_LIGHT, x as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, n as TEXT, h as TEXTURE, ae as THRESHOLD, ay as TOP, c as TRIANGLES, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, q as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, o as WAIT, ac as WEBGL, aa as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, al as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, am as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-BUwWryrh.js';
1
+ export { A as ADD, aN as ALT, h as ARROW, a2 as AUTO, a6 as AXES, aO as BACKSPACE, ax as BASELINE, x as BEVEL, b7 as BEZIER, B as BLEND, ac as BLUR, b0 as BOLD, b1 as BOLDITALIC, aw as BOTTOM, au as BURN, t as CENTER, b2 as CHAR, $ as CHORD, C as CLAMP, J as CLOSE, aC as CONTAIN, aP as CONTROL, n as CORNER, r as CORNERS, aB as COVER, i as CROSS, b8 as CURVE, D as DARKEST, a4 as DEG_TO_RAD, aQ as DELETE, ap as DIFFERENCE, ai as DILATE, at as DODGE, aR as DOWN_ARROW, G as EMPTY_PATH, aS as ENTER, aj as ERODE, aT as ESCAPE, Z as EXCLUDE, E as EXCLUSION, be as FALLBACK, aD as FILL, a8 as FLAT, F as FLOAT, aF as FULL, al as GRAY, a5 as GRID, H as HALF_FLOAT, p as HALF_PI, j as HAND, ar as HARD_LIGHT, ae as IMAGE, ba as IMMEDIATE, I as INCLUDE, ak as INVERT, a$ as ITALIC, _ as JOIN, bd as LABEL, bb as LANDSCAPE, av as LEFT, aU as LEFT_ARROW, L as LIGHTEST, g as LINEAR, aG as LINEAR_MIPMAP, Q as LINES, aL as LINE_LOOP, aK as LINE_STRIP, e as MIRROR, y as MITER, k as MOVE, M as MULTIPLY, N as NEAREST, a1 as NORMAL, ah as OPAQUE, O as OPEN, aV as OPTION, aq as OVERLAY, P as P2D, aH as P2DHDR, z as PATH, q as PI, a0 as PIE, K as POINTS, bc as PORTRAIT, ag as POSTERIZE, w as PROJECT, b6 as QUADRATIC, V as QUADS, Y as QUAD_STRIP, aI as QUARTER_PI, s as RADIUS, a3 as RAD_TO_DEG, b as REMOVE, f as REPEAT, R as REPLACE, aW as RETURN, aa as RIGHT, aX as RIGHT_ARROW, u as ROUND, a as SCREEN, aY as SHIFT, aE as SIMPLE, a9 as SMOOTH, as as SOFT_LIGHT, v as SQUARE, b9 as STROKE, S as SUBTRACT, aZ as TAB, aJ as TAU, aM as TESS, l as TEXT, a7 as TEXTURE, af as THRESHOLD, ay as TOP, c as TRIANGLES, X as TRIANGLE_FAN, T as TRIANGLE_STRIP, o as TWO_PI, U as UNSIGNED_BYTE, d as UNSIGNED_INT, a_ as UP_ARROW, az as VERSION, m as WAIT, ad as WEBGL, ab as WEBGL2, W as WEBGPU, aA as WORD, b5 as _CTX_MIDDLE, an as _DEFAULT_FILL, b4 as _DEFAULT_LEADMULT, ao as _DEFAULT_STROKE, b3 as _DEFAULT_TEXT_FILL } from '../constants-CYF6mp5_.js';