p5 2.0.2 → 2.0.3
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.
- package/dist/accessibility/color_namer.js +4 -4
- package/dist/accessibility/index.js +4 -4
- package/dist/app.js +4 -4
- package/dist/color/color_conversion.js +4 -4
- package/dist/color/index.js +1 -1
- package/dist/color/setting.js +1 -1
- package/dist/{constants-tYr0tCl8.js → constants-BRcElHU3.js} +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +1 -1
- package/dist/core/friendly_errors/fes_core.js +1 -1
- package/dist/core/friendly_errors/index.js +1 -1
- package/dist/core/friendly_errors/param_validator.js +6 -19
- package/dist/core/friendly_errors/sketch_reader.js +4 -4
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/friendly_errors/validate_params.js +4 -4
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +4 -4
- package/dist/core/legacy.js +4 -4
- package/dist/core/main.js +4 -4
- package/dist/core/p5.Graphics.js +3 -3
- package/dist/core/p5.Renderer.js +2 -2
- package/dist/core/p5.Renderer2D.js +4 -4
- package/dist/core/rendering.js +3 -3
- package/dist/dom/dom.js +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/dom/p5.Element.js +1 -1
- package/dist/dom/p5.MediaElement.js +1 -1
- package/dist/events/keyboard.js +10 -4
- package/dist/image/const.js +1 -1
- package/dist/image/filterRenderer2D.js +3 -3
- package/dist/image/image.js +3 -3
- package/dist/image/index.js +3 -3
- package/dist/image/loading_displaying.js +3 -3
- package/dist/image/p5.Image.js +2 -2
- package/dist/io/files.js +3 -3
- package/dist/io/index.js +3 -3
- package/dist/{main-CAxvgiOV.js → main-BKN5yFoS.js} +3 -3
- package/dist/math/Matrices/Matrix.js +1 -1
- package/dist/math/Matrices/MatrixNumjs.js +1 -1
- package/dist/math/index.js +1 -1
- package/dist/math/p5.Matrix.js +1 -1
- package/dist/math/p5.Vector.js +1 -1
- package/dist/math/trigonometry.js +1 -1
- package/dist/{p5.Renderer-Swjl9HQO.js → p5.Renderer-R23xoC7s.js} +1 -1
- package/dist/{rendering-B5TRR7aY.js → rendering-CvUVN-Vb.js} +2 -2
- package/dist/shape/2d_primitives.js +1 -1
- package/dist/shape/attributes.js +1 -1
- package/dist/shape/custom_shapes.js +1 -1
- package/dist/shape/index.js +1 -1
- package/dist/type/index.js +2 -2
- package/dist/type/p5.Font.js +2 -2
- package/dist/type/textCore.js +2 -2
- package/dist/webgl/3d_primitives.js +3 -3
- package/dist/webgl/GeometryBuilder.js +1 -1
- package/dist/webgl/ShapeBuilder.js +1 -1
- package/dist/webgl/index.js +3 -3
- package/dist/webgl/interaction.js +1 -1
- package/dist/webgl/light.js +3 -3
- package/dist/webgl/loading.js +4 -3
- package/dist/webgl/material.js +3 -3
- package/dist/webgl/p5.Camera.js +3 -3
- package/dist/webgl/p5.Framebuffer.js +3 -3
- package/dist/webgl/p5.Geometry.js +1 -1
- package/dist/webgl/p5.Quat.js +1 -1
- package/dist/webgl/p5.RendererGL.js +3 -3
- package/dist/webgl/p5.Shader.js +3 -3
- package/dist/webgl/p5.Texture.js +3 -3
- package/dist/webgl/text.js +3 -3
- package/lib/p5.esm.js +18 -24
- package/lib/p5.js +18 -24
- package/lib/p5.min.js +1 -1
- package/package.json +1 -1
- package/types/core/main.d.ts +8 -5
- package/types/events/keyboard.d.ts +6 -4
- package/types/global.d.ts +7 -5
- package/types/p5.d.ts +8 -5
- package/types/webgl/loading.d.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import nj from '@d4c/numjs/build/module/numjs.min.js';
|
|
2
2
|
import { Vector } from '../p5.Vector.js';
|
|
3
3
|
import { MatrixInterface } from './MatrixInterface.js';
|
|
4
|
-
import '../../constants-
|
|
4
|
+
import '../../constants-BRcElHU3.js';
|
|
5
5
|
|
|
6
6
|
let isMatrixArray = (x) => Array.isArray(x);
|
|
7
7
|
if (typeof Float32Array !== "undefined") {
|
package/dist/math/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import random from './random.js';
|
|
|
4
4
|
import trigonometry from './trigonometry.js';
|
|
5
5
|
import math$1 from './math.js';
|
|
6
6
|
import vector from './p5.Vector.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BRcElHU3.js';
|
|
8
8
|
|
|
9
9
|
function math(p5){
|
|
10
10
|
p5.registerAddon(calculation);
|
package/dist/math/p5.Matrix.js
CHANGED
package/dist/math/p5.Vector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Color } from './creating_reading-Cr8L2Jnm.js';
|
|
2
|
-
import { N as NORMAL, am as WORD, an as BASELINE, ao as LEFT, C as CENTER, e as CORNER, I as INCLUDE } from './constants-
|
|
2
|
+
import { N as NORMAL, am as WORD, an as BASELINE, ao as LEFT, C as CENTER, e as CORNER, I as INCLUDE } from './constants-BRcElHU3.js';
|
|
3
3
|
import Filters from './image/filters.js';
|
|
4
4
|
import { Vector } from './math/p5.Vector.js';
|
|
5
5
|
import { Shape } from './shape/custom_shapes.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as CORNER, i as CORNERS, C as CENTER, ap as COVER, aq as CONTAIN, R as RIGHT, ar as BOTTOM, u as BLEND, as as FILL, a1 as IMAGE, at as CLAMP, z as WEBGL2, j as ROUND, o as POINTS, L as LINES, p as TRIANGLES, a0 as WEBGL, $ as BLUR, a6 as DARKEST, a7 as LIGHTEST, ai as ADD, a5 as SUBTRACT, ab as SCREEN, aa as EXCLUSION, ac as REPLACE, a9 as MULTIPLY, a4 as REMOVE, ah as BURN, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, au as UNSIGNED_INT, av as UNSIGNED_BYTE, Z as THRESHOLD, _ as INVERT, K as OPAQUE, U as POSTERIZE, V as DILATE, Y as ERODE, X as GRAY, v as constants, aw as SIMPLE, ax as FULL, f as TWO_PI, O as OPEN, N as NORMAL, n as CLOSE, aj as PIE, ak as CHORD, T as TEXTURE, P as P2D, ay as NEAREST, az as REPEAT, aA as MIRROR, aB as FLOAT, aC as LINEAR, aD as HALF_FLOAT } from './constants-
|
|
1
|
+
import { e as CORNER, i as CORNERS, C as CENTER, ap as COVER, aq as CONTAIN, R as RIGHT, ar as BOTTOM, u as BLEND, as as FILL, a1 as IMAGE, at as CLAMP, z as WEBGL2, j as ROUND, o as POINTS, L as LINES, p as TRIANGLES, a0 as WEBGL, $ as BLUR, a6 as DARKEST, a7 as LIGHTEST, ai as ADD, a5 as SUBTRACT, ab as SCREEN, aa as EXCLUSION, ac as REPLACE, a9 as MULTIPLY, a4 as REMOVE, ah as BURN, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, au as UNSIGNED_INT, av as UNSIGNED_BYTE, Z as THRESHOLD, _ as INVERT, K as OPAQUE, U as POSTERIZE, V as DILATE, Y as ERODE, X as GRAY, v as constants, aw as SIMPLE, ax as FULL, f as TWO_PI, O as OPEN, N as NORMAL, n as CLOSE, aj as PIE, ak as CHORD, T as TEXTURE, P as P2D, ay as NEAREST, az as REPEAT, aA as MIRROR, aB as FLOAT, aC as LINEAR, aD as HALF_FLOAT } from './constants-BRcElHU3.js';
|
|
2
2
|
import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-Cr8L2Jnm.js';
|
|
3
3
|
import { Element } from './dom/p5.Element.js';
|
|
4
|
-
import { R as Renderer, I as Image } from './p5.Renderer-
|
|
4
|
+
import { R as Renderer, I as Image } from './p5.Renderer-R23xoC7s.js';
|
|
5
5
|
import './dom/p5.MediaElement.js';
|
|
6
6
|
import primitives from './shape/2d_primitives.js';
|
|
7
7
|
import attributes from './shape/attributes.js';
|
package/dist/shape/attributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CORNER, i as CORNERS, a as RADIUS, C as CENTER, j as ROUND, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER } from '../constants-
|
|
1
|
+
import { e as CORNER, i as CORNERS, a as RADIUS, C as CENTER, j as ROUND, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER } from '../constants-BRcElHU3.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Shape
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as Color } from '../creating_reading-Cr8L2Jnm.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { I as INCLUDE, m as PATH, E as EMPTY_PATH, O as OPEN, n as CLOSE, o as POINTS, L as LINES, p as TRIANGLES, Q as QUADS, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, s as QUAD_STRIP, t as EXCLUDE, J as JOIN } from '../constants-
|
|
3
|
+
import { I as INCLUDE, m as PATH, E as EMPTY_PATH, O as OPEN, n as CLOSE, o as POINTS, L as LINES, p as TRIANGLES, Q as QUADS, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, s as QUAD_STRIP, t as EXCLUDE, J as JOIN } from '../constants-BRcElHU3.js';
|
|
4
4
|
import 'colorjs.io/fn';
|
|
5
5
|
import '../color/color_spaces/hsb.js';
|
|
6
6
|
|
package/dist/shape/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import attributes from './attributes.js';
|
|
|
3
3
|
import curves from './curves.js';
|
|
4
4
|
import vertex from './vertex.js';
|
|
5
5
|
import customShapes from './custom_shapes.js';
|
|
6
|
-
import '../constants-
|
|
6
|
+
import '../constants-BRcElHU3.js';
|
|
7
7
|
import '../core/helpers.js';
|
|
8
8
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
package/dist/type/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import textCore from './textCore.js';
|
|
2
2
|
import font from './p5.Font.js';
|
|
3
|
-
import '../p5.Renderer-
|
|
3
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
4
4
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BRcElHU3.js';
|
|
8
8
|
import '../image/filters.js';
|
|
9
9
|
import '../math/p5.Vector.js';
|
|
10
10
|
import '../shape/custom_shapes.js';
|
package/dist/type/p5.Font.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { textCoreConstants } from './textCore.js';
|
|
2
|
-
import { C as CENTER, R as RIGHT, a as RADIUS } from '../constants-
|
|
2
|
+
import { C as CENTER, R as RIGHT, a as RADIUS } from '../constants-BRcElHU3.js';
|
|
3
3
|
import { UnicodeRange } from '@japont/unicode-range';
|
|
4
4
|
import { unicodeRanges } from './unicodeRanges.js';
|
|
5
5
|
import Typr from './lib/Typr.js';
|
|
6
6
|
import { createFromCommands } from '@davepagurek/bezier-path';
|
|
7
|
-
import '../p5.Renderer-
|
|
7
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
8
8
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
package/dist/type/textCore.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Renderer } from '../p5.Renderer-
|
|
1
|
+
import { R as Renderer } from '../p5.Renderer-R23xoC7s.js';
|
|
2
2
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import '../color/color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-BRcElHU3.js';
|
|
6
6
|
import '../image/filters.js';
|
|
7
7
|
import '../math/p5.Vector.js';
|
|
8
8
|
import '../shape/custom_shapes.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { p as default } from '../rendering-
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
|
+
export { p as default } from '../rendering-CvUVN-Vb.js';
|
|
3
3
|
import '../math/p5.Vector.js';
|
|
4
4
|
import './p5.Geometry.js';
|
|
5
5
|
import '../math/p5.Matrix.js';
|
|
@@ -10,7 +10,7 @@ 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-
|
|
13
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
14
14
|
import '../image/filters.js';
|
|
15
15
|
import '../shape/custom_shapes.js';
|
|
16
16
|
import '../core/States.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as TRIANGLE_STRIP, s as QUAD_STRIP, q as TRIANGLE_FAN } from '../constants-
|
|
1
|
+
import { r as TRIANGLE_STRIP, s as QUAD_STRIP, q as TRIANGLE_FAN } from '../constants-BRcElHU3.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as PATH, Q as QUADS, s as QUAD_STRIP, r as TRIANGLE_STRIP, p as TRIANGLES, a1 as IMAGE, L as LINES, q as TRIANGLE_FAN } from '../constants-
|
|
1
|
+
import { m as PATH, Q as QUADS, s as QUAD_STRIP, r as TRIANGLE_STRIP, p as TRIANGLES, a1 as IMAGE, L as LINES, q as TRIANGLE_FAN } from '../constants-BRcElHU3.js';
|
|
2
2
|
import { Geometry } from './p5.Geometry.js';
|
|
3
3
|
import libtess from 'libtess';
|
|
4
4
|
import { Vector } from '../math/p5.Vector.js';
|
package/dist/webgl/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as rendererGL, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, s as shader, t as texture } from '../rendering-
|
|
1
|
+
import { r as rendererGL, p as primitives3D, l as light, m as material, c as camera, f as framebuffer, s as shader, t as texture } from '../rendering-CvUVN-Vb.js';
|
|
2
2
|
import interaction from './interaction.js';
|
|
3
3
|
import loading from './loading.js';
|
|
4
4
|
import text from './text.js';
|
|
@@ -8,14 +8,14 @@ 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 shadergenerator from './ShaderGenerator.js';
|
|
11
|
-
import '../constants-
|
|
11
|
+
import '../constants-BRcElHU3.js';
|
|
12
12
|
import '../creating_reading-Cr8L2Jnm.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-
|
|
18
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
19
19
|
import '../image/filters.js';
|
|
20
20
|
import '../math/p5.Vector.js';
|
|
21
21
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/light.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { l as default } from '../rendering-
|
|
1
|
+
export { l as default } from '../rendering-CvUVN-Vb.js';
|
|
2
2
|
import '../math/p5.Vector.js';
|
|
3
3
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
4
|
-
import '../constants-
|
|
4
|
+
import '../constants-BRcElHU3.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-
|
|
10
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
|
13
13
|
import '../core/States.js';
|
package/dist/webgl/loading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Geometry } from './p5.Geometry.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { a as request } from '../rendering-
|
|
4
|
-
import '../constants-
|
|
3
|
+
import { a as request } from '../rendering-CvUVN-Vb.js';
|
|
4
|
+
import '../constants-BRcElHU3.js';
|
|
5
5
|
import './p5.DataArray.js';
|
|
6
6
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
@@ -9,7 +9,7 @@ import '../color/color_spaces/hsb.js';
|
|
|
9
9
|
import '../dom/p5.Element.js';
|
|
10
10
|
import '../dom/p5.File.js';
|
|
11
11
|
import '../io/p5.XML.js';
|
|
12
|
-
import '../p5.Renderer-
|
|
12
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
13
13
|
import '../image/filters.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
|
15
15
|
import '../core/States.js';
|
|
@@ -1020,6 +1020,7 @@ function loading(p5, fn){
|
|
|
1020
1020
|
* @method model
|
|
1021
1021
|
* @param {p5.Geometry} model 3D shape to be drawn.
|
|
1022
1022
|
*
|
|
1023
|
+
* @param {Number} [count=1] number of instances to draw.
|
|
1023
1024
|
* @example
|
|
1024
1025
|
* <div>
|
|
1025
1026
|
* <code>
|
package/dist/webgl/material.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { m as default } from '../rendering-
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
|
+
export { m as default } from '../rendering-CvUVN-Vb.js';
|
|
3
3
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
4
4
|
import '../dom/p5.Element.js';
|
|
5
5
|
import '../dom/p5.File.js';
|
|
6
6
|
import '../io/p5.XML.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
8
8
|
import '../color/color_spaces/hsb.js';
|
|
9
|
-
import '../p5.Renderer-
|
|
9
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
10
10
|
import '../image/filters.js';
|
|
11
11
|
import '../math/p5.Vector.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/p5.Camera.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
4
|
+
export { C as Camera, c as default } from '../rendering-CvUVN-Vb.js';
|
|
5
5
|
import '../math/Matrices/Matrix.js';
|
|
6
|
-
import '../constants-
|
|
6
|
+
import '../constants-BRcElHU3.js';
|
|
7
7
|
import '../math/Matrices/MatrixInterface.js';
|
|
8
8
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
@@ -11,7 +11,7 @@ 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-
|
|
14
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../shape/custom_shapes.js';
|
|
17
17
|
import '../core/States.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
2
|
import '../creating_reading-Cr8L2Jnm.js';
|
|
3
|
-
export { H as Framebuffer, E as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-
|
|
4
|
-
import '../p5.Renderer-
|
|
3
|
+
export { H as Framebuffer, E as FramebufferCamera, F as FramebufferTexture, f as default } from '../rendering-CvUVN-Vb.js';
|
|
4
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
7
|
import '../dom/p5.Element.js';
|
package/dist/webgl/p5.Quat.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
2
|
import './GeometryBuilder.js';
|
|
3
|
-
import '../p5.Renderer-
|
|
3
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
4
4
|
import '../math/p5.Matrix.js';
|
|
5
|
-
export { R as RendererGL, r as default, B as readPixelWebGL, A as readPixelsWebGL } from '../rendering-
|
|
5
|
+
export { R as RendererGL, r as default, B as readPixelWebGL, A as readPixelsWebGL } from '../rendering-CvUVN-Vb.js';
|
|
6
6
|
import '../math/p5.Vector.js';
|
|
7
7
|
import './p5.RenderBuffer.js';
|
|
8
8
|
import './p5.DataArray.js';
|
package/dist/webgl/p5.Shader.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { S as Shader, s as default } from '../rendering-
|
|
2
|
-
import '../constants-
|
|
1
|
+
export { S as Shader, s as default } from '../rendering-CvUVN-Vb.js';
|
|
2
|
+
import '../constants-BRcElHU3.js';
|
|
3
3
|
import '../creating_reading-Cr8L2Jnm.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-
|
|
9
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
10
10
|
import '../image/filters.js';
|
|
11
11
|
import '../math/p5.Vector.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
package/dist/webgl/p5.Texture.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-BRcElHU3.js';
|
|
2
2
|
import '../dom/p5.Element.js';
|
|
3
|
-
import '../p5.Renderer-
|
|
3
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
4
4
|
import '../dom/p5.MediaElement.js';
|
|
5
|
-
export { M as MipmapTexture, T as Texture, D as checkWebGLCapabilities, t as default } from '../rendering-
|
|
5
|
+
export { M as MipmapTexture, T as Texture, D as checkWebGLCapabilities, t as default } from '../rendering-CvUVN-Vb.js';
|
|
6
6
|
import '../dom/p5.File.js';
|
|
7
7
|
import '../io/p5.XML.js';
|
|
8
8
|
import '../creating_reading-Cr8L2Jnm.js';
|
package/dist/webgl/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TEXTURE } from '../constants-
|
|
2
|
-
import { R as RendererGL } from '../rendering-
|
|
1
|
+
import { T as TEXTURE } from '../constants-BRcElHU3.js';
|
|
2
|
+
import { R as RendererGL } from '../rendering-CvUVN-Vb.js';
|
|
3
3
|
import { Vector } from '../math/p5.Vector.js';
|
|
4
4
|
import { Geometry } from './p5.Geometry.js';
|
|
5
5
|
import { Font, arrayCommandsToObjects } from '../type/p5.Font.js';
|
|
@@ -9,7 +9,7 @@ import '../color/color_spaces/hsb.js';
|
|
|
9
9
|
import '../dom/p5.Element.js';
|
|
10
10
|
import '../dom/p5.File.js';
|
|
11
11
|
import '../io/p5.XML.js';
|
|
12
|
-
import '../p5.Renderer-
|
|
12
|
+
import '../p5.Renderer-R23xoC7s.js';
|
|
13
13
|
import '../image/filters.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
|
15
15
|
import '../core/States.js';
|
package/lib/p5.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! p5.js v2.0.
|
|
1
|
+
/*! p5.js v2.0.3 May 30, 2025 */
|
|
2
2
|
/**
|
|
3
3
|
* @module Constants
|
|
4
4
|
* @submodule Constants
|
|
@@ -12,7 +12,7 @@ const _PI = Math.PI;
|
|
|
12
12
|
* @property {String} VERSION
|
|
13
13
|
* @final
|
|
14
14
|
*/
|
|
15
|
-
const VERSION = '2.0.
|
|
15
|
+
const VERSION = '2.0.3';
|
|
16
16
|
|
|
17
17
|
// GRAPHICS RENDERER
|
|
18
18
|
/**
|
|
@@ -83919,7 +83919,6 @@ var p5$1 = {
|
|
|
83919
83919
|
"String",
|
|
83920
83920
|
"String?",
|
|
83921
83921
|
"Object?",
|
|
83922
|
-
"String|String[]?",
|
|
83923
83922
|
"Function?",
|
|
83924
83923
|
"Function?"
|
|
83925
83924
|
],
|
|
@@ -84681,20 +84680,15 @@ var p5$1 = {
|
|
|
84681
84680
|
],
|
|
84682
84681
|
[
|
|
84683
84682
|
"String|Request",
|
|
84684
|
-
"Object?"
|
|
84685
|
-
"String?",
|
|
84686
|
-
"function(p5.Geometry)?",
|
|
84687
|
-
"function(Event)?",
|
|
84688
|
-
"Boolean?",
|
|
84689
|
-
"Boolean?",
|
|
84690
|
-
"Boolean?"
|
|
84683
|
+
"Object?"
|
|
84691
84684
|
]
|
|
84692
84685
|
]
|
|
84693
84686
|
},
|
|
84694
84687
|
model: {
|
|
84695
84688
|
overloads: [
|
|
84696
84689
|
[
|
|
84697
|
-
"p5.Geometry"
|
|
84690
|
+
"p5.Geometry",
|
|
84691
|
+
"Number?"
|
|
84698
84692
|
]
|
|
84699
84693
|
]
|
|
84700
84694
|
},
|
|
@@ -84716,12 +84710,7 @@ var p5$1 = {
|
|
|
84716
84710
|
[
|
|
84717
84711
|
"String",
|
|
84718
84712
|
"String?",
|
|
84719
|
-
"Object?"
|
|
84720
|
-
"function(p5.Geometry)?",
|
|
84721
|
-
"function(Event)?",
|
|
84722
|
-
"boolean?",
|
|
84723
|
-
"boolean?",
|
|
84724
|
-
"boolean?"
|
|
84713
|
+
"Object?"
|
|
84725
84714
|
]
|
|
84726
84715
|
]
|
|
84727
84716
|
},
|
|
@@ -86508,9 +86497,7 @@ var dataDoc = {
|
|
|
86508
86497
|
"Number",
|
|
86509
86498
|
"Number",
|
|
86510
86499
|
"Number",
|
|
86511
|
-
"Object?"
|
|
86512
|
-
"Number?",
|
|
86513
|
-
"Number?"
|
|
86500
|
+
"Object?"
|
|
86514
86501
|
]
|
|
86515
86502
|
]
|
|
86516
86503
|
}
|
|
@@ -98085,10 +98072,16 @@ function keyboard(p5, fn){
|
|
|
98085
98072
|
* }
|
|
98086
98073
|
* ```
|
|
98087
98074
|
*
|
|
98088
|
-
* `keyIsDown()` can check for key presses using
|
|
98089
|
-
* <a href="
|
|
98090
|
-
*
|
|
98091
|
-
*
|
|
98075
|
+
* `keyIsDown()` can check for key presses using strings based on
|
|
98076
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key" target="_blank">KeyboardEvent.key</a>
|
|
98077
|
+
* or <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code" target="_blank">KeyboardEvent.code</a> values,
|
|
98078
|
+
* such as `keyIsDown('x')` or `keyIsDown('ArrowLeft')`.
|
|
98079
|
+
*
|
|
98080
|
+
* Note: In p5.js 2.0 and newer, numeric keycodes (such as 88 for 'X') are no longer supported.
|
|
98081
|
+
* This is a breaking change from previous versions.
|
|
98082
|
+
*
|
|
98083
|
+
* You can still use the p5 constants like `LEFT_ARROW` which now map to string values
|
|
98084
|
+
* internally rather than numeric codes.
|
|
98092
98085
|
*
|
|
98093
98086
|
* @method keyIsDown
|
|
98094
98087
|
* @param {Number|String} code key to check.
|
|
@@ -108268,6 +108261,7 @@ function loading$1(p5, fn){
|
|
|
108268
108261
|
* @method model
|
|
108269
108262
|
* @param {p5.Geometry} model 3D shape to be drawn.
|
|
108270
108263
|
*
|
|
108264
|
+
* @param {Number} [count=1] number of instances to draw.
|
|
108271
108265
|
* @example
|
|
108272
108266
|
* <div>
|
|
108273
108267
|
* <code>
|
package/lib/p5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! p5.js v2.0.
|
|
1
|
+
/*! p5.js v2.0.3 May 30, 2025 */
|
|
2
2
|
var p5 = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ var p5 = (function () {
|
|
|
15
15
|
* @property {String} VERSION
|
|
16
16
|
* @final
|
|
17
17
|
*/
|
|
18
|
-
const VERSION = '2.0.
|
|
18
|
+
const VERSION = '2.0.3';
|
|
19
19
|
|
|
20
20
|
// GRAPHICS RENDERER
|
|
21
21
|
/**
|
|
@@ -83922,7 +83922,6 @@ var p5 = (function () {
|
|
|
83922
83922
|
"String",
|
|
83923
83923
|
"String?",
|
|
83924
83924
|
"Object?",
|
|
83925
|
-
"String|String[]?",
|
|
83926
83925
|
"Function?",
|
|
83927
83926
|
"Function?"
|
|
83928
83927
|
],
|
|
@@ -84684,20 +84683,15 @@ var p5 = (function () {
|
|
|
84684
84683
|
],
|
|
84685
84684
|
[
|
|
84686
84685
|
"String|Request",
|
|
84687
|
-
"Object?"
|
|
84688
|
-
"String?",
|
|
84689
|
-
"function(p5.Geometry)?",
|
|
84690
|
-
"function(Event)?",
|
|
84691
|
-
"Boolean?",
|
|
84692
|
-
"Boolean?",
|
|
84693
|
-
"Boolean?"
|
|
84686
|
+
"Object?"
|
|
84694
84687
|
]
|
|
84695
84688
|
]
|
|
84696
84689
|
},
|
|
84697
84690
|
model: {
|
|
84698
84691
|
overloads: [
|
|
84699
84692
|
[
|
|
84700
|
-
"p5.Geometry"
|
|
84693
|
+
"p5.Geometry",
|
|
84694
|
+
"Number?"
|
|
84701
84695
|
]
|
|
84702
84696
|
]
|
|
84703
84697
|
},
|
|
@@ -84719,12 +84713,7 @@ var p5 = (function () {
|
|
|
84719
84713
|
[
|
|
84720
84714
|
"String",
|
|
84721
84715
|
"String?",
|
|
84722
|
-
"Object?"
|
|
84723
|
-
"function(p5.Geometry)?",
|
|
84724
|
-
"function(Event)?",
|
|
84725
|
-
"boolean?",
|
|
84726
|
-
"boolean?",
|
|
84727
|
-
"boolean?"
|
|
84716
|
+
"Object?"
|
|
84728
84717
|
]
|
|
84729
84718
|
]
|
|
84730
84719
|
},
|
|
@@ -86511,9 +86500,7 @@ var p5 = (function () {
|
|
|
86511
86500
|
"Number",
|
|
86512
86501
|
"Number",
|
|
86513
86502
|
"Number",
|
|
86514
|
-
"Object?"
|
|
86515
|
-
"Number?",
|
|
86516
|
-
"Number?"
|
|
86503
|
+
"Object?"
|
|
86517
86504
|
]
|
|
86518
86505
|
]
|
|
86519
86506
|
}
|
|
@@ -98088,10 +98075,16 @@ var p5 = (function () {
|
|
|
98088
98075
|
* }
|
|
98089
98076
|
* ```
|
|
98090
98077
|
*
|
|
98091
|
-
* `keyIsDown()` can check for key presses using
|
|
98092
|
-
* <a href="
|
|
98093
|
-
*
|
|
98094
|
-
*
|
|
98078
|
+
* `keyIsDown()` can check for key presses using strings based on
|
|
98079
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key" target="_blank">KeyboardEvent.key</a>
|
|
98080
|
+
* or <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code" target="_blank">KeyboardEvent.code</a> values,
|
|
98081
|
+
* such as `keyIsDown('x')` or `keyIsDown('ArrowLeft')`.
|
|
98082
|
+
*
|
|
98083
|
+
* Note: In p5.js 2.0 and newer, numeric keycodes (such as 88 for 'X') are no longer supported.
|
|
98084
|
+
* This is a breaking change from previous versions.
|
|
98085
|
+
*
|
|
98086
|
+
* You can still use the p5 constants like `LEFT_ARROW` which now map to string values
|
|
98087
|
+
* internally rather than numeric codes.
|
|
98095
98088
|
*
|
|
98096
98089
|
* @method keyIsDown
|
|
98097
98090
|
* @param {Number|String} code key to check.
|
|
@@ -108271,6 +108264,7 @@ var p5 = (function () {
|
|
|
108271
108264
|
* @method model
|
|
108272
108265
|
* @param {p5.Geometry} model 3D shape to be drawn.
|
|
108273
108266
|
*
|
|
108267
|
+
* @param {Number} [count=1] number of instances to draw.
|
|
108274
108268
|
* @example
|
|
108275
108269
|
* <div>
|
|
108276
108270
|
* <code>
|