p5 2.2.1-rc.0 → 2.2.1

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 (117) hide show
  1. package/dist/accessibility/color_namer.js +5 -6
  2. package/dist/accessibility/describe.js +4 -26
  3. package/dist/accessibility/index.js +5 -6
  4. package/dist/accessibility/outputs.js +6 -38
  5. package/dist/app.js +5 -6
  6. package/dist/color/color_conversion.js +5 -6
  7. package/dist/color/creating_reading.js +1 -1
  8. package/dist/color/index.js +2 -2
  9. package/dist/color/p5.Color.js +1 -1
  10. package/dist/color/setting.js +59 -357
  11. package/dist/{constants-DEJVKr9Z.js → constants-DQyACdzq.js} +11 -61
  12. package/dist/core/constants.js +1 -1
  13. package/dist/core/environment.js +26 -158
  14. package/dist/core/filterShaders.js +1 -1
  15. package/dist/core/friendly_errors/fes_core.js +1 -1
  16. package/dist/core/friendly_errors/file_errors.js +1 -1
  17. package/dist/core/friendly_errors/index.js +1 -1
  18. package/dist/core/friendly_errors/param_validator.js +1 -1
  19. package/dist/core/friendly_errors/sketch_verifier.js +1 -1
  20. package/dist/core/helpers.js +1 -1
  21. package/dist/core/init.js +5 -6
  22. package/dist/core/internationalization.js +1 -1
  23. package/dist/core/legacy.js +5 -6
  24. package/dist/core/main.js +5 -6
  25. package/dist/core/p5.Graphics.js +4 -5
  26. package/dist/core/p5.Renderer.js +3 -4
  27. package/dist/core/p5.Renderer2D.js +5 -6
  28. package/dist/core/p5.Renderer3D.js +4 -5
  29. package/dist/core/rendering.js +4 -5
  30. package/dist/core/structure.js +13 -52
  31. package/dist/core/transform.js +32 -176
  32. package/dist/{creating_reading-CgHCHxqN.js → creating_reading-ZXzcZEsb.js} +3 -196
  33. package/dist/data/local_storage.js +4 -30
  34. package/dist/dom/dom.js +24 -159
  35. package/dist/dom/index.js +2 -2
  36. package/dist/dom/p5.Element.js +31 -208
  37. package/dist/dom/p5.File.js +1 -32
  38. package/dist/dom/p5.MediaElement.js +10 -113
  39. package/dist/events/acceleration.js +11 -64
  40. package/dist/events/keyboard.js +13 -81
  41. package/dist/events/pointer.js +18 -160
  42. package/dist/image/const.js +1 -1
  43. package/dist/image/filterRenderer2D.js +4 -5
  44. package/dist/image/image.js +4 -5
  45. package/dist/image/index.js +4 -5
  46. package/dist/image/loading_displaying.js +4 -5
  47. package/dist/image/p5.Image.js +3 -4
  48. package/dist/image/pixels.js +17 -100
  49. package/dist/io/files.js +4 -5
  50. package/dist/io/index.js +4 -5
  51. package/dist/io/p5.Table.js +66 -158
  52. package/dist/io/p5.TableRow.js +48 -71
  53. package/dist/io/p5.XML.js +6 -99
  54. package/dist/io/utilities.js +8 -3
  55. package/dist/{main-_RXV5Lx8.js → main-DvN69W3f.js} +13 -42
  56. package/dist/math/Matrices/Matrix.js +87 -126
  57. package/dist/math/Matrices/MatrixNumjs.js +1 -5
  58. package/dist/math/calculation.js +10 -112
  59. package/dist/math/index.js +1 -1
  60. package/dist/math/math.js +2 -12
  61. package/dist/math/noise.js +5 -32
  62. package/dist/math/p5.Matrix.js +3 -3
  63. package/dist/math/p5.Vector.js +104 -345
  64. package/dist/math/random.js +5 -32
  65. package/dist/math/trigonometry.js +15 -105
  66. package/dist/{p5.Renderer-QoFcvj3f.js → p5.Renderer-D-5LdCRz.js} +25 -178
  67. package/dist/{rendering-CsICjEXA.js → rendering-h9unX5K0.js} +254 -1156
  68. package/dist/shape/2d_primitives.js +33 -194
  69. package/dist/shape/attributes.js +12 -73
  70. package/dist/shape/curves.js +30 -95
  71. package/dist/shape/custom_shapes.js +63 -144
  72. package/dist/shape/index.js +2 -2
  73. package/dist/shape/vertex.js +21 -106
  74. package/dist/strands/p5.strands.js +248 -46
  75. package/dist/type/index.js +3 -4
  76. package/dist/type/p5.Font.js +4 -49
  77. package/dist/type/textCore.js +5 -158
  78. package/dist/utilities/conversion.js +17 -104
  79. package/dist/utilities/time_date.js +3 -40
  80. package/dist/utilities/utility_functions.js +6 -48
  81. package/dist/webgl/3d_primitives.js +4 -5
  82. package/dist/webgl/GeometryBuilder.js +1 -2
  83. package/dist/webgl/ShapeBuilder.js +22 -2
  84. package/dist/webgl/enums.js +1 -1
  85. package/dist/webgl/index.js +4 -5
  86. package/dist/webgl/interaction.js +6 -33
  87. package/dist/webgl/light.js +4 -5
  88. package/dist/webgl/loading.js +12 -46
  89. package/dist/webgl/material.js +4 -5
  90. package/dist/webgl/p5.Camera.js +4 -5
  91. package/dist/webgl/p5.DataArray.js +0 -4
  92. package/dist/webgl/p5.Framebuffer.js +4 -5
  93. package/dist/webgl/p5.Geometry.js +12 -106
  94. package/dist/webgl/p5.Quat.js +1 -1
  95. package/dist/webgl/p5.RendererGL.js +7 -18
  96. package/dist/webgl/p5.Shader.js +12 -36
  97. package/dist/webgl/p5.Texture.js +4 -5
  98. package/dist/webgl/text.js +4 -5
  99. package/dist/webgl/utils.js +4 -5
  100. package/dist/webgpu/index.js +1 -1
  101. package/dist/webgpu/p5.RendererWebGPU.js +529 -208
  102. package/dist/webgpu/shaders/color.js +32 -17
  103. package/dist/webgpu/shaders/filters/base.js +18 -7
  104. package/dist/webgpu/shaders/font.js +52 -40
  105. package/dist/webgpu/shaders/line.js +50 -36
  106. package/dist/webgpu/shaders/material.js +90 -83
  107. package/dist/webgpu/strands_wgslBackend.js +5 -2
  108. package/lib/p5.esm.js +5576 -7811
  109. package/lib/p5.esm.min.js +1 -1
  110. package/lib/p5.js +5576 -7811
  111. package/lib/p5.min.js +1 -1
  112. package/lib/p5.webgpu.esm.js +786 -453
  113. package/lib/p5.webgpu.js +786 -453
  114. package/lib/p5.webgpu.min.js +1 -1
  115. package/package.json +13 -13
  116. package/types/global.d.ts +16905 -16783
  117. package/types/p5.d.ts +11142 -11081
@@ -1,21 +1,20 @@
1
- import '../constants-DEJVKr9Z.js';
2
- export { p as default } from '../rendering-CsICjEXA.js';
1
+ import '../constants-DQyACdzq.js';
2
+ export { p as default } from '../rendering-h9unX5K0.js';
3
3
  import '../math/p5.Vector.js';
4
4
  import './p5.Geometry.js';
5
5
  import '../math/p5.Matrix.js';
6
6
  import '../math/Matrices/Matrix.js';
7
- import '../creating_reading-CgHCHxqN.js';
7
+ import '../creating_reading-ZXzcZEsb.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
10
  import '../dom/p5.Element.js';
11
11
  import '../dom/p5.File.js';
12
12
  import '../io/p5.XML.js';
13
- import '../p5.Renderer-QoFcvj3f.js';
13
+ import '../p5.Renderer-D-5LdCRz.js';
14
14
  import '../image/filters.js';
15
15
  import '../shape/custom_shapes.js';
16
16
  import '../core/States.js';
17
17
  import '../io/utilities.js';
18
- import 'file-saver';
19
18
  import '../dom/p5.MediaElement.js';
20
19
  import '../shape/2d_primitives.js';
21
20
  import '../core/helpers.js';
@@ -1,4 +1,4 @@
1
- import { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants-DEJVKr9Z.js';
1
+ import { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants-DQyACdzq.js';
2
2
  import '../math/p5.Matrix.js';
3
3
  import { Geometry } from './p5.Geometry.js';
4
4
  import { Matrix } from '../math/Matrices/Matrix.js';
@@ -6,7 +6,6 @@ import '../math/p5.Vector.js';
6
6
  import '../math/Matrices/MatrixInterface.js';
7
7
  import './p5.DataArray.js';
8
8
  import '../io/utilities.js';
9
- import 'file-saver';
10
9
 
11
10
  /**
12
11
  * @private
@@ -1,11 +1,10 @@
1
- import { K as PATH, Z as QUADS, $ as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ad as IMAGE, Y as LINES, _ as TRIANGLE_FAN } from '../constants-DEJVKr9Z.js';
1
+ import { K as PATH, Z as QUADS, $ as QUAD_STRIP, T as TRIANGLE_STRIP, c as TRIANGLES, ad as IMAGE, Y as LINES, _ as TRIANGLE_FAN } from '../constants-DQyACdzq.js';
2
2
  import { Geometry } from './p5.Geometry.js';
3
3
  import libtess from 'libtess';
4
4
  import { Vector } from '../math/p5.Vector.js';
5
5
  import { RenderBuffer } from './p5.RenderBuffer.js';
6
6
  import './p5.DataArray.js';
7
7
  import '../io/utilities.js';
8
- import 'file-saver';
9
8
 
10
9
  const INITIAL_BUFFER_STRIDES = {
11
10
  vertices: 1,
@@ -316,6 +315,27 @@ class ShapeBuilder {
316
315
  }
317
316
  }
318
317
 
318
+ // Normalize nearly identical consecutive vertices to prevent tessellation artifacts
319
+ // This addresses numerical precision issues in libtess when consecutive vertices
320
+ // have coordinates that are almost (but not exactly) equal (e.g., differing by ~1e-8)
321
+ const epsilon = 1e-6;
322
+ for (const contour of contours) {
323
+ const stride = this.tessyVertexSize;
324
+ for (let i = stride; i < contour.length; i += stride) {
325
+ const prevX = contour[i - stride];
326
+ const prevY = contour[i - stride + 1];
327
+ const currX = contour[i];
328
+ const currY = contour[i + 1];
329
+
330
+ if (Math.abs(currX - prevX) < epsilon) {
331
+ contour[i] = prevX;
332
+ }
333
+ if (Math.abs(currY - prevY) < epsilon) {
334
+ contour[i + 1] = prevY;
335
+ }
336
+ }
337
+ }
338
+
319
339
  const polyTriangles = this._triangulate(contours);
320
340
 
321
341
  // If there were no valid faces, we still want to use the original vertices
@@ -1,4 +1,4 @@
1
- import { a3 as constants } from '../constants-DEJVKr9Z.js';
1
+ import { a3 as constants } from '../constants-DQyACdzq.js';
2
2
 
3
3
  function getStrokeDefs(shaderConstant) {
4
4
  const STROKE_CAP_ENUM = {};
@@ -1,4 +1,4 @@
1
- import { r as renderer3D, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, t as texture } from '../rendering-CsICjEXA.js';
1
+ import { r as renderer3D, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, t as texture } from '../rendering-h9unX5K0.js';
2
2
  import interaction from './interaction.js';
3
3
  import loading from './loading.js';
4
4
  import text from './text.js';
@@ -8,20 +8,19 @@ import matrix from '../math/p5.Matrix.js';
8
8
  import geometry from './p5.Geometry.js';
9
9
  import dataArray from './p5.DataArray.js';
10
10
  import rendererGL from './p5.RendererGL.js';
11
- import '../constants-DEJVKr9Z.js';
12
- import '../creating_reading-CgHCHxqN.js';
11
+ import '../constants-DQyACdzq.js';
12
+ import '../creating_reading-ZXzcZEsb.js';
13
13
  import 'colorjs.io/fn';
14
14
  import '../color/color_spaces/hsb.js';
15
15
  import '../dom/p5.Element.js';
16
16
  import '../dom/p5.File.js';
17
17
  import '../io/p5.XML.js';
18
- import '../p5.Renderer-QoFcvj3f.js';
18
+ import '../p5.Renderer-D-5LdCRz.js';
19
19
  import '../image/filters.js';
20
20
  import '../math/p5.Vector.js';
21
21
  import '../shape/custom_shapes.js';
22
22
  import '../core/States.js';
23
23
  import '../io/utilities.js';
24
- import 'file-saver';
25
24
  import '../dom/p5.MediaElement.js';
26
25
  import '../shape/2d_primitives.js';
27
26
  import '../core/helpers.js';
@@ -1,4 +1,4 @@
1
- import { G as GRID, i as AXES } from '../constants-DEJVKr9Z.js';
1
+ import { G as GRID, i as AXES } from '../constants-DQyACdzq.js';
2
2
  import { Vector } from '../math/p5.Vector.js';
3
3
 
4
4
  /**
@@ -76,8 +76,6 @@ function interaction(p5, fn){
76
76
  * @chainable
77
77
  *
78
78
  * @example
79
- * <div>
80
- * <code>
81
79
  * // Click and drag the mouse to view the scene from different angles.
82
80
  *
83
81
  * function setup() {
@@ -98,11 +96,8 @@ function interaction(p5, fn){
98
96
  * // Draw the box.
99
97
  * box(30, 50);
100
98
  * }
101
- * </code>
102
- * </div>
103
99
  *
104
- * <div>
105
- * <code>
100
+ * @example
106
101
  * // Click and drag the mouse to view the scene from different angles.
107
102
  *
108
103
  * function setup() {
@@ -124,11 +119,8 @@ function interaction(p5, fn){
124
119
  * // Draw the box.
125
120
  * box(30, 50);
126
121
  * }
127
- * </code>
128
- * </div>
129
122
  *
130
- * <div>
131
- * <code>
123
+ * @example
132
124
  * // Click and drag the mouse to view the scene from different angles.
133
125
  *
134
126
  * function setup() {
@@ -157,8 +149,6 @@ function interaction(p5, fn){
157
149
  * // Draw the box.
158
150
  * box(30, 50);
159
151
  * }
160
- * </code>
161
- * </div>
162
152
  */
163
153
 
164
154
  // implementation based on three.js 'orbitControls':
@@ -522,8 +512,6 @@ function interaction(p5, fn){
522
512
  * @method debugMode
523
513
  *
524
514
  * @example
525
- * <div>
526
- * <code>
527
515
  * // Click and drag the mouse to view the scene from different angles.
528
516
  *
529
517
  * function setup() {
@@ -547,11 +535,8 @@ function interaction(p5, fn){
547
535
  * // Draw the box.
548
536
  * box(20, 40);
549
537
  * }
550
- * </code>
551
- * </div>
552
538
  *
553
- * <div>
554
- * <code>
539
+ * @example
555
540
  * // Click and drag the mouse to view the scene from different angles.
556
541
  *
557
542
  * function setup() {
@@ -576,11 +561,8 @@ function interaction(p5, fn){
576
561
  * // Draw the box.
577
562
  * box(20, 40);
578
563
  * }
579
- * </code>
580
- * </div>
581
564
  *
582
- * <div>
583
- * <code>
565
+ * @example
584
566
  * // Click and drag the mouse to view the scene from different angles.
585
567
  *
586
568
  * function setup() {
@@ -608,11 +590,8 @@ function interaction(p5, fn){
608
590
  * // Draw the box.
609
591
  * box(20, 40);
610
592
  * }
611
- * </code>
612
- * </div>
613
593
  *
614
- * <div>
615
- * <code>
594
+ * @example
616
595
  * // Click and drag the mouse to view the scene from different angles.
617
596
  *
618
597
  * function setup() {
@@ -646,8 +625,6 @@ function interaction(p5, fn){
646
625
  * // Draw the box.
647
626
  * box(20, 40);
648
627
  * }
649
- * </code>
650
- * </div>
651
628
  */
652
629
 
653
630
  /**
@@ -727,8 +704,6 @@ function interaction(p5, fn){
727
704
  * @method noDebugMode
728
705
  *
729
706
  * @example
730
- * <div>
731
- * <code>
732
707
  * // Click and drag the mouse to view the scene from different angles.
733
708
  *
734
709
  * function setup() {
@@ -756,8 +731,6 @@ function interaction(p5, fn){
756
731
  * function doubleClicked() {
757
732
  * noDebugMode();
758
733
  * }
759
- * </code>
760
- * </div>
761
734
  */
762
735
  fn.noDebugMode = function() {
763
736
  this._assert3d('noDebugMode');
@@ -1,18 +1,17 @@
1
- export { l as default } from '../rendering-CsICjEXA.js';
1
+ export { l as default } from '../rendering-h9unX5K0.js';
2
2
  import '../math/p5.Vector.js';
3
- import '../creating_reading-CgHCHxqN.js';
4
- import '../constants-DEJVKr9Z.js';
3
+ import '../creating_reading-ZXzcZEsb.js';
4
+ import '../constants-DQyACdzq.js';
5
5
  import '../dom/p5.Element.js';
6
6
  import '../dom/p5.File.js';
7
7
  import '../io/p5.XML.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
- import '../p5.Renderer-QoFcvj3f.js';
10
+ import '../p5.Renderer-D-5LdCRz.js';
11
11
  import '../image/filters.js';
12
12
  import '../shape/custom_shapes.js';
13
13
  import '../core/States.js';
14
14
  import '../io/utilities.js';
15
- import 'file-saver';
16
15
  import '../dom/p5.MediaElement.js';
17
16
  import '../shape/2d_primitives.js';
18
17
  import '../core/helpers.js';
@@ -1,17 +1,16 @@
1
1
  import { Geometry } from './p5.Geometry.js';
2
2
  import { Vector } from '../math/p5.Vector.js';
3
- import { a as request } from '../rendering-CsICjEXA.js';
4
- import '../constants-DEJVKr9Z.js';
3
+ import { a as request } from '../rendering-h9unX5K0.js';
4
+ import '../constants-DQyACdzq.js';
5
5
  import './p5.DataArray.js';
6
6
  import '../io/utilities.js';
7
- import 'file-saver';
8
- import '../creating_reading-CgHCHxqN.js';
7
+ import '../creating_reading-ZXzcZEsb.js';
9
8
  import 'colorjs.io/fn';
10
9
  import '../color/color_spaces/hsb.js';
11
10
  import '../dom/p5.Element.js';
12
11
  import '../dom/p5.File.js';
13
12
  import '../io/p5.XML.js';
14
- import '../p5.Renderer-QoFcvj3f.js';
13
+ import '../p5.Renderer-D-5LdCRz.js';
15
14
  import '../image/filters.js';
16
15
  import '../shape/custom_shapes.js';
17
16
  import '../core/States.js';
@@ -148,8 +147,6 @@ function loading(p5, fn){
148
147
  * @return {Promise<p5.Geometry>} the <a href="#/p5.Geometry">p5.Geometry</a> object
149
148
  *
150
149
  * @example
151
- * <div>
152
- * <code>
153
150
  * // Click and drag the mouse to view the scene from different angles.
154
151
  *
155
152
  * let shape;
@@ -172,11 +169,8 @@ function loading(p5, fn){
172
169
  * // Draw the shape.
173
170
  * model(shape);
174
171
  * }
175
- * </code>
176
- * </div>
177
172
  *
178
- * <div>
179
- * <code>
173
+ * @example
180
174
  * // Click and drag the mouse to view the scene from different angles.
181
175
  *
182
176
  * let shape;
@@ -200,11 +194,8 @@ function loading(p5, fn){
200
194
  * // Draw the shape.
201
195
  * model(shape);
202
196
  * }
203
- * </code>
204
- * </div>
205
197
  *
206
- * <div>
207
- * <code>
198
+ * @example
208
199
  * // Click and drag the mouse to view the scene from different angles.
209
200
  *
210
201
  * let shape;
@@ -234,11 +225,8 @@ function loading(p5, fn){
234
225
  * shape = data;
235
226
  * console.log(shape.gid);
236
227
  * }
237
- * </code>
238
- * </div>
239
228
  *
240
- * <div class='notest'>
241
- * <code>
229
+ * @example
242
230
  * // Click and drag the mouse to view the scene from different angles.
243
231
  *
244
232
  * let shape;
@@ -273,11 +261,8 @@ function loading(p5, fn){
273
261
  * function handleError(error) {
274
262
  * console.error('Oops!', error);
275
263
  * }
276
- * </code>
277
- * </div>
278
264
  *
279
- * <div>
280
- * <code>
265
+ * @example
281
266
  * // Click and drag the mouse to view the scene from different angles.
282
267
  *
283
268
  * let shape;
@@ -312,11 +297,8 @@ function loading(p5, fn){
312
297
  * function handleError(error) {
313
298
  * console.error('Oops!', error);
314
299
  * }
315
- * </code>
316
- * </div>
317
300
  *
318
- * <div>
319
- * <code>
301
+ * @example
320
302
  * // Click and drag the mouse to view the scene from different angles.
321
303
  *
322
304
  * let shape;
@@ -357,8 +339,6 @@ function loading(p5, fn){
357
339
  * function handleError(error) {
358
340
  * console.error('Oops!', error);
359
341
  * }
360
- * </code>
361
- * </div>
362
342
  */
363
343
  /**
364
344
  * @method loadModel
@@ -1036,8 +1016,6 @@ function loading(p5, fn){
1036
1016
  *
1037
1017
  * @param {Number} [count=1] number of instances to draw.
1038
1018
  * @example
1039
- * <div>
1040
- * <code>
1041
1019
  * // Click and drag the mouse to view the scene from different angles.
1042
1020
  *
1043
1021
  * let shape;
@@ -1065,11 +1043,8 @@ function loading(p5, fn){
1065
1043
  * function createShape() {
1066
1044
  * cone();
1067
1045
  * }
1068
- * </code>
1069
- * </div>
1070
1046
  *
1071
- * <div>
1072
- * <code>
1047
+ * @example
1073
1048
  * // Click and drag the mouse to view the scene from different angles.
1074
1049
  *
1075
1050
  * let shape;
@@ -1115,11 +1090,8 @@ function loading(p5, fn){
1115
1090
  * cylinder(3, 20);
1116
1091
  * pop();
1117
1092
  * }
1118
- * </code>
1119
- * </div>
1120
1093
  *
1121
- * <div>
1122
- * <code>
1094
+ * @example
1123
1095
  * // Click and drag the mouse to view the scene from different angles.
1124
1096
  *
1125
1097
  * let shape;
@@ -1141,8 +1113,6 @@ function loading(p5, fn){
1141
1113
  * // Draw the shape.
1142
1114
  * model(shape);
1143
1115
  * }
1144
- * </code>
1145
- * </div>
1146
1116
  */
1147
1117
  fn.model = function (model, count = 1) {
1148
1118
  this._assert3d('model');
@@ -1184,8 +1154,6 @@ function loading(p5, fn){
1184
1154
  * @return {p5.Geometry} the <a href="#/p5.Geometry">p5.Geometry</a> object
1185
1155
  *
1186
1156
  * @example
1187
- * <div>
1188
- * <code>
1189
1157
  * const octahedron_model = `
1190
1158
  * v 0.000000E+00 0.000000E+00 40.0000
1191
1159
  * v 22.5000 22.5000 0.000000E+00
@@ -1216,9 +1184,7 @@ function loading(p5, fn){
1216
1184
  * rotateX(frameCount * 0.01);
1217
1185
  * rotateY(frameCount * 0.01);
1218
1186
  * model(octahedron);
1219
- *}
1220
- * </code>
1221
- * </div>
1187
+ * }
1222
1188
  */
1223
1189
  /**
1224
1190
  * @method createModel
@@ -1,19 +1,18 @@
1
- import '../constants-DEJVKr9Z.js';
2
- export { m as default } from '../rendering-CsICjEXA.js';
1
+ import '../constants-DQyACdzq.js';
2
+ export { m as default } from '../rendering-h9unX5K0.js';
3
3
  import './p5.Shader.js';
4
- import '../creating_reading-CgHCHxqN.js';
4
+ import '../creating_reading-ZXzcZEsb.js';
5
5
  import '../dom/p5.Element.js';
6
6
  import '../dom/p5.File.js';
7
7
  import '../io/p5.XML.js';
8
8
  import 'colorjs.io/fn';
9
9
  import '../color/color_spaces/hsb.js';
10
- import '../p5.Renderer-QoFcvj3f.js';
10
+ import '../p5.Renderer-D-5LdCRz.js';
11
11
  import '../image/filters.js';
12
12
  import '../math/p5.Vector.js';
13
13
  import '../shape/custom_shapes.js';
14
14
  import '../core/States.js';
15
15
  import '../io/utilities.js';
16
- import 'file-saver';
17
16
  import '../dom/p5.MediaElement.js';
18
17
  import '../shape/2d_primitives.js';
19
18
  import '../core/helpers.js';
@@ -1,22 +1,21 @@
1
1
  import '../math/p5.Matrix.js';
2
2
  import '../math/p5.Vector.js';
3
3
  import './p5.Quat.js';
4
- export { C as Camera, c as default } from '../rendering-CsICjEXA.js';
4
+ export { C as Camera, c as default } from '../rendering-h9unX5K0.js';
5
5
  import '../math/Matrices/Matrix.js';
6
- import '../constants-DEJVKr9Z.js';
6
+ import '../constants-DQyACdzq.js';
7
7
  import '../math/Matrices/MatrixInterface.js';
8
- import '../creating_reading-CgHCHxqN.js';
8
+ import '../creating_reading-ZXzcZEsb.js';
9
9
  import 'colorjs.io/fn';
10
10
  import '../color/color_spaces/hsb.js';
11
11
  import '../dom/p5.Element.js';
12
12
  import '../dom/p5.File.js';
13
13
  import '../io/p5.XML.js';
14
- import '../p5.Renderer-QoFcvj3f.js';
14
+ import '../p5.Renderer-D-5LdCRz.js';
15
15
  import '../image/filters.js';
16
16
  import '../shape/custom_shapes.js';
17
17
  import '../core/States.js';
18
18
  import '../io/utilities.js';
19
- import 'file-saver';
20
19
  import '../dom/p5.MediaElement.js';
21
20
  import '../shape/2d_primitives.js';
22
21
  import '../core/helpers.js';
@@ -90,8 +90,6 @@ function dataArray(p5, fn){
90
90
  * double in size when it goes over its capacity.
91
91
  *
92
92
  * @example
93
- * <div>
94
- * <code>
95
93
  * // Initialize storage with a capacity of 4
96
94
  * const storage = new DataArray(4);
97
95
  * console.log(storage.data.length); // 4
@@ -102,8 +100,6 @@ function dataArray(p5, fn){
102
100
  * console.log(storage.data.length); // 8
103
101
  * console.log(storage.length); // 6
104
102
  * console.log(storage.dataArray()); // Float32Array{1, 2, 3, 4, 5, 6}
105
- * </code>
106
- * </div>
107
103
  */
108
104
  p5.DataArray = DataArray;
109
105
  }
@@ -1,18 +1,17 @@
1
- import '../constants-DEJVKr9Z.js';
2
- import '../creating_reading-CgHCHxqN.js';
3
- export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-CsICjEXA.js';
1
+ import '../constants-DQyACdzq.js';
2
+ import '../creating_reading-ZXzcZEsb.js';
3
+ export { w as Framebuffer, v as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-h9unX5K0.js';
4
4
  import 'colorjs.io/fn';
5
5
  import '../color/color_spaces/hsb.js';
6
6
  import '../dom/p5.Element.js';
7
7
  import '../dom/p5.File.js';
8
8
  import '../io/p5.XML.js';
9
- import '../p5.Renderer-QoFcvj3f.js';
9
+ import '../p5.Renderer-D-5LdCRz.js';
10
10
  import '../image/filters.js';
11
11
  import '../math/p5.Vector.js';
12
12
  import '../shape/custom_shapes.js';
13
13
  import '../core/States.js';
14
14
  import '../io/utilities.js';
15
- import 'file-saver';
16
15
  import '../dom/p5.MediaElement.js';
17
16
  import '../shape/2d_primitives.js';
18
17
  import '../core/helpers.js';