p5 2.2.3-rc.1 → 2.2.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/README.md +4 -5
- 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-BUwWryrh.js → constants-BdTiYOQI.js} +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +1 -1
- package/dist/core/filterShaders.js +1 -1
- package/dist/core/friendly_errors/fes_core.js +1 -1
- package/dist/core/friendly_errors/file_errors.js +1 -1
- package/dist/core/friendly_errors/index.js +1 -1
- package/dist/core/friendly_errors/param_validator.js +1 -1
- package/dist/core/friendly_errors/sketch_verifier.js +1 -1
- package/dist/core/helpers.js +1 -1
- package/dist/core/init.js +4 -4
- package/dist/core/internationalization.js +1 -1
- 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/p5.Renderer3D.js +3 -3
- package/dist/core/rendering.js +3 -3
- package/dist/data/local_storage.js +13 -9
- package/dist/dom/dom.js +30 -29
- package/dist/dom/index.js +1 -1
- package/dist/dom/p5.Element.js +3 -3
- package/dist/dom/p5.MediaElement.js +4 -5
- package/dist/events/pointer.js +1 -1
- 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/io/p5.XML.js +8 -8
- package/dist/{main-DFpoFdvM.js → main-H_nu4eDs.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-D-EuAodU.js → p5.Renderer-BmD2P6Wv.js} +4 -3
- package/dist/{rendering-DE9-Hl7Y.js → rendering-CC8JNTwG.js} +8 -35
- 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/enums.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 -6
- 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.Texture.js +3 -3
- package/dist/webgl/text.js +3 -3
- package/dist/webgl/utils.js +3 -3
- package/dist/webgpu/index.js +1 -1
- package/dist/webgpu/p5.RendererWebGPU.js +1 -1
- package/lib/p5.esm.js +68 -92
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +68 -92
- package/lib/p5.min.js +1 -1
- package/lib/p5.webgpu.esm.js +1 -1
- package/lib/p5.webgpu.js +1 -1
- package/lib/p5.webgpu.min.js +1 -1
- package/package.json +1 -1
- package/types/global.d.ts +601 -623
- package/types/p5.d.ts +297 -308
package/dist/dom/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import file from './p5.File.js';
|
|
|
5
5
|
import '../creating_reading-C7hu6sg1.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-BdTiYOQI.js';
|
|
9
9
|
import '../io/p5.XML.js';
|
|
10
10
|
|
|
11
11
|
function dom(p5){
|
package/dist/dom/p5.Element.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { File } from './p5.File.js';
|
|
2
2
|
import { C as Color } from '../creating_reading-C7hu6sg1.js';
|
|
3
|
-
import { a4 as AUTO } from '../constants-
|
|
3
|
+
import { a4 as AUTO } from '../constants-BdTiYOQI.js';
|
|
4
4
|
import '../io/p5.XML.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
@@ -96,9 +96,9 @@ class Element {
|
|
|
96
96
|
/**
|
|
97
97
|
* Attaches the element to a parent element.
|
|
98
98
|
*
|
|
99
|
-
* For example, a
|
|
99
|
+
* For example, a `<div></div>` element may be used as a box to
|
|
100
100
|
* hold two pieces of text, a header and a paragraph. The
|
|
101
|
-
*
|
|
101
|
+
* `<div></div>` is the parent element of both the header and
|
|
102
102
|
* paragraph.
|
|
103
103
|
*
|
|
104
104
|
* The parameter `parent` can have one of three types. `parent` can be a
|
|
@@ -4,7 +4,7 @@ import '../io/p5.XML.js';
|
|
|
4
4
|
import '../creating_reading-C7hu6sg1.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BdTiYOQI.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @module DOM
|
|
@@ -1177,7 +1177,6 @@ class MediaElement extends Element {
|
|
|
1177
1177
|
removeCue(id) {
|
|
1178
1178
|
for (let i = 0; i < this._cues.length; i++) {
|
|
1179
1179
|
if (this._cues[i].id === id) {
|
|
1180
|
-
console.log(id);
|
|
1181
1180
|
this._cues.splice(i, 1);
|
|
1182
1181
|
}
|
|
1183
1182
|
}
|
|
@@ -1327,7 +1326,7 @@ function media(p5, fn){
|
|
|
1327
1326
|
}
|
|
1328
1327
|
|
|
1329
1328
|
/**
|
|
1330
|
-
* Creates a
|
|
1329
|
+
* Creates a `<video>` element for simple audio/video playback.
|
|
1331
1330
|
*
|
|
1332
1331
|
* `createVideo()` returns a new
|
|
1333
1332
|
* <a href="#/p5.MediaElement">p5.MediaElement</a> object. Videos are shown by
|
|
@@ -1415,7 +1414,7 @@ function media(p5, fn){
|
|
|
1415
1414
|
/* AUDIO STUFF */
|
|
1416
1415
|
|
|
1417
1416
|
/**
|
|
1418
|
-
* Creates a hidden
|
|
1417
|
+
* Creates a hidden `<audio>` element for simple audio playback.
|
|
1419
1418
|
*
|
|
1420
1419
|
* `createAudio()` returns a new
|
|
1421
1420
|
* <a href="#/p5.MediaElement">p5.MediaElement</a> object.
|
|
@@ -1492,7 +1491,7 @@ function media(p5, fn){
|
|
|
1492
1491
|
}
|
|
1493
1492
|
|
|
1494
1493
|
/**
|
|
1495
|
-
* Creates a
|
|
1494
|
+
* Creates a `<video>` element that "captures" the audio/video stream from
|
|
1496
1495
|
* the webcam and microphone.
|
|
1497
1496
|
*
|
|
1498
1497
|
* `createCapture()` returns a new
|
package/dist/events/pointer.js
CHANGED
|
@@ -1861,7 +1861,7 @@ function pointer(p5, fn, lifecycles){
|
|
|
1861
1861
|
canvas.requestPointerLock =
|
|
1862
1862
|
canvas.requestPointerLock || canvas.mozRequestPointerLock;
|
|
1863
1863
|
if (!canvas.requestPointerLock) {
|
|
1864
|
-
|
|
1864
|
+
p5._friendlyError('requestPointerLock is not implemented in this browser', 'requestPointerLock');
|
|
1865
1865
|
return false;
|
|
1866
1866
|
}
|
|
1867
1867
|
canvas.requestPointerLock();
|
package/dist/image/const.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Shader } from '../webgl/p5.Shader.js';
|
|
2
|
-
import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-
|
|
3
|
-
import { I as Image } from '../p5.Renderer-
|
|
4
|
-
import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-
|
|
2
|
+
import { s as setWebGLUniformValue, e as setWebGLTextureParams, g as getWebGLUniformMetadata, h as getWebGLShaderAttributes, j as populateGLSLHooks, T as Texture } from '../rendering-CC8JNTwG.js';
|
|
3
|
+
import { I as Image } from '../p5.Renderer-BmD2P6Wv.js';
|
|
4
|
+
import { C as CLAMP, aa as WEBGL2, p as CORNER, B as BLEND, ab as BLUR, ac as WEBGL } from '../constants-BdTiYOQI.js';
|
|
5
5
|
import { filterParamDefaults } from './const.js';
|
|
6
6
|
import { w as webgl2CompatibilityShader, f as filterBaseVert, a as filterBaseFrag, n as noiseGLSL } from '../noise3DGLSL-Bwrdi4gi.js';
|
|
7
7
|
import { glslBackend } from '../webgl/strands_glslBackend.js';
|
package/dist/image/image.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import 'omggif';
|
|
2
2
|
import '../dom/p5.Element.js';
|
|
3
|
-
export { i as default } from '../rendering-
|
|
3
|
+
export { i as default } from '../rendering-CC8JNTwG.js';
|
|
4
4
|
import '../dom/p5.File.js';
|
|
5
5
|
import '../io/p5.XML.js';
|
|
6
6
|
import '../creating_reading-C7hu6sg1.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
8
8
|
import '../color/color_spaces/hsb.js';
|
|
9
|
-
import '../constants-
|
|
10
|
-
import '../p5.Renderer-
|
|
9
|
+
import '../constants-BdTiYOQI.js';
|
|
10
|
+
import '../p5.Renderer-BmD2P6Wv.js';
|
|
11
11
|
import './filters.js';
|
|
12
12
|
import '../math/p5.Vector.js';
|
|
13
13
|
import '../shape/custom_shapes.js';
|
package/dist/image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-
|
|
2
|
-
import { i as image$2 } from '../p5.Renderer-
|
|
1
|
+
import { i as image$1, b as loadingDisplaying, t as texture } from '../rendering-CC8JNTwG.js';
|
|
2
|
+
import { i as image$2 } from '../p5.Renderer-BmD2P6Wv.js';
|
|
3
3
|
import pixels from './pixels.js';
|
|
4
4
|
import shader from '../webgl/p5.Shader.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-BdTiYOQI.js';
|
|
6
6
|
import '../creating_reading-C7hu6sg1.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
8
8
|
import '../color/color_spaces/hsb.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../core/helpers.js';
|
|
2
|
-
import '../constants-
|
|
3
|
-
export { b as default } from '../rendering-
|
|
2
|
+
import '../constants-BdTiYOQI.js';
|
|
3
|
+
export { b as default } from '../rendering-CC8JNTwG.js';
|
|
4
4
|
import 'omggif';
|
|
5
5
|
import 'gifenc';
|
|
6
6
|
import '../creating_reading-C7hu6sg1.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-BmD2P6Wv.js';
|
|
13
13
|
import './filters.js';
|
|
14
14
|
import '../math/p5.Vector.js';
|
|
15
15
|
import '../shape/custom_shapes.js';
|
package/dist/image/p5.Image.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './filters.js';
|
|
2
|
-
export { I as Image, i as default } from '../p5.Renderer-
|
|
2
|
+
export { I as Image, i as default } from '../p5.Renderer-BmD2P6Wv.js';
|
|
3
3
|
import '../io/utilities.js';
|
|
4
4
|
import '../creating_reading-C7hu6sg1.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BdTiYOQI.js';
|
|
8
8
|
import '../math/p5.Vector.js';
|
|
9
9
|
import '../shape/custom_shapes.js';
|
|
10
10
|
import '../core/States.js';
|
package/dist/io/files.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../p5.Renderer-
|
|
2
|
-
export { d as default, a as request } from '../rendering-
|
|
1
|
+
import '../p5.Renderer-BmD2P6Wv.js';
|
|
2
|
+
export { d as default, a as request } from '../rendering-CC8JNTwG.js';
|
|
3
3
|
import './csv.js';
|
|
4
4
|
import './utilities.js';
|
|
5
5
|
import '../creating_reading-C7hu6sg1.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-BdTiYOQI.js';
|
|
9
9
|
import '../image/filters.js';
|
|
10
10
|
import '../math/p5.Vector.js';
|
|
11
11
|
import '../shape/custom_shapes.js';
|
package/dist/io/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as files } from '../rendering-
|
|
1
|
+
import { d as files } from '../rendering-CC8JNTwG.js';
|
|
2
2
|
import table from './p5.Table.js';
|
|
3
3
|
import tableRow from './p5.TableRow.js';
|
|
4
4
|
import xml from './p5.XML.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-BdTiYOQI.js';
|
|
6
6
|
import '../creating_reading-C7hu6sg1.js';
|
|
7
7
|
import 'colorjs.io/fn';
|
|
8
8
|
import '../color/color_spaces/hsb.js';
|
|
9
9
|
import '../dom/p5.Element.js';
|
|
10
10
|
import '../dom/p5.File.js';
|
|
11
|
-
import '../p5.Renderer-
|
|
11
|
+
import '../p5.Renderer-BmD2P6Wv.js';
|
|
12
12
|
import '../image/filters.js';
|
|
13
13
|
import '../math/p5.Vector.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
package/dist/io/p5.XML.js
CHANGED
|
@@ -62,7 +62,7 @@ class XML {
|
|
|
62
62
|
* Returns the element's name as a `String`.
|
|
63
63
|
*
|
|
64
64
|
* An XML element's name is given by its tag. For example, the element
|
|
65
|
-
*
|
|
65
|
+
* `<language>JavaScript</language>` has the name `language`.
|
|
66
66
|
*
|
|
67
67
|
* @return {String} name of the element.
|
|
68
68
|
*
|
|
@@ -105,11 +105,11 @@ class XML {
|
|
|
105
105
|
* Sets the element's tag name.
|
|
106
106
|
*
|
|
107
107
|
* An XML element's name is given by its tag. For example, the element
|
|
108
|
-
*
|
|
108
|
+
* `<language>JavaScript</language>` has the name `language`.
|
|
109
109
|
*
|
|
110
110
|
* The parameter, `name`, is the element's new name as a string. For example,
|
|
111
111
|
* calling `myXML.setName('planet')` will make the element's new tag name
|
|
112
|
-
*
|
|
112
|
+
* `<planet></planet>`.
|
|
113
113
|
*
|
|
114
114
|
* @param {String} name new tag name of the element.
|
|
115
115
|
*
|
|
@@ -251,7 +251,7 @@ class XML {
|
|
|
251
251
|
*
|
|
252
252
|
* The parameter, `name`, is optional. If a string is passed, as in
|
|
253
253
|
* `myXML.getChildren('cat')`, then the method will only return child elements
|
|
254
|
-
* with the tag
|
|
254
|
+
* with the tag `<cat>`.
|
|
255
255
|
*
|
|
256
256
|
* @param {String} [name] name of the elements to return.
|
|
257
257
|
* @return {p5.XML[]} child elements.
|
|
@@ -345,7 +345,7 @@ class XML {
|
|
|
345
345
|
*
|
|
346
346
|
* The parameter, `name`, is optional. If a string is passed, as in
|
|
347
347
|
* `myXML.getChild('cat')`, then the first child element with the tag
|
|
348
|
-
*
|
|
348
|
+
* `<cat>` will be returned. If a number is passed, as in
|
|
349
349
|
* `myXML.getChild(1)`, then the child element at that index will be returned.
|
|
350
350
|
*
|
|
351
351
|
* @param {String|Integer} name element name or index.
|
|
@@ -478,7 +478,7 @@ class XML {
|
|
|
478
478
|
*
|
|
479
479
|
* The parameter, `name`, is the child element to remove. If a string is
|
|
480
480
|
* passed, as in `myXML.removeChild('cat')`, then the first child element
|
|
481
|
-
* with the tag
|
|
481
|
+
* with the tag `<cat>` will be removed. If a number is passed, as in
|
|
482
482
|
* `myXML.removeChild(1)`, then the child element at that index will be
|
|
483
483
|
* removed.
|
|
484
484
|
*
|
|
@@ -1032,7 +1032,7 @@ class XML {
|
|
|
1032
1032
|
* Sets the element's content.
|
|
1033
1033
|
*
|
|
1034
1034
|
* An element's content is the text between its tags. For example, the element
|
|
1035
|
-
*
|
|
1035
|
+
* `<language>JavaScript</language>` has the content `JavaScript`.
|
|
1036
1036
|
*
|
|
1037
1037
|
* The parameter, `content`, is a string with the element's new content.
|
|
1038
1038
|
*
|
|
@@ -1150,7 +1150,7 @@ function xml(p5, fn){
|
|
|
1150
1150
|
* (<a href="https://developer.mozilla.org/en-US/docs/Web/XML/XML_introduction" target="_blank">XML</a>)
|
|
1151
1151
|
* is a standard format for sending data between applications. Like HTML, the
|
|
1152
1152
|
* XML format is based on tags and attributes, as in
|
|
1153
|
-
*
|
|
1153
|
+
* `<time units="s">1234</time>`.
|
|
1154
1154
|
*
|
|
1155
1155
|
* Note: Use <a href="#/p5/loadXML">loadXML()</a> to load external XML files.
|
|
1156
1156
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as P2D, ac as WEBGL, B as BLEND, al as _DEFAULT_FILL, am as _DEFAULT_STROKE, w as ROUND, b as REMOVE, S as SUBTRACT, D as DARKEST, L as LIGHTEST, an as DIFFERENCE, M as MULTIPLY, E as EXCLUSION, a as SCREEN, R as REPLACE, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, as as BURN, A as ADD, at as PIE, au as CHORD, q as TWO_PI, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER, a9 as RIGHT, v as CENTER, av as LEFT, aw as BOTTOM, ax as BASELINE, ay as TOP, Q as OPEN, az as VERSION, a3 as constants } from './constants-
|
|
1
|
+
import { P as P2D, ac as WEBGL, B as BLEND, al as _DEFAULT_FILL, am as _DEFAULT_STROKE, w as ROUND, b as REMOVE, S as SUBTRACT, D as DARKEST, L as LIGHTEST, an as DIFFERENCE, M as MULTIPLY, E as EXCLUSION, a as SCREEN, R as REPLACE, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, as as BURN, A as ADD, at as PIE, au as CHORD, q as TWO_PI, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER, a9 as RIGHT, v as CENTER, av as LEFT, aw as BOTTOM, ax as BASELINE, ay as TOP, Q as OPEN, az as VERSION, a3 as constants } from './constants-BdTiYOQI.js';
|
|
2
2
|
import transform from './core/transform.js';
|
|
3
3
|
import structure from './core/structure.js';
|
|
4
4
|
import environment from './core/environment.js';
|
|
5
|
-
import { G as Graphics, k as rendering, n as graphics } from './rendering-
|
|
6
|
-
import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-
|
|
5
|
+
import { G as Graphics, k as rendering, n as graphics } from './rendering-CC8JNTwG.js';
|
|
6
|
+
import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-BmD2P6Wv.js';
|
|
7
7
|
import { Element } from './dom/p5.Element.js';
|
|
8
8
|
import { MediaElement } from './dom/p5.MediaElement.js';
|
|
9
9
|
import { b as RGBHDR } from './creating_reading-C7hu6sg1.js';
|
|
@@ -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-BdTiYOQI.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-BdTiYOQI.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-C7hu6sg1.js';
|
|
2
|
-
import { a2 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, v as CENTER, p as CORNER, J as INCLUDE } from './constants-
|
|
2
|
+
import { a2 as NORMAL, aA as WORD, ax as BASELINE, av as LEFT, v as CENTER, p as CORNER, J as INCLUDE } from './constants-BdTiYOQI.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';
|
|
@@ -1601,8 +1601,9 @@ class Image {
|
|
|
1601
1601
|
props.displayIndex = index;
|
|
1602
1602
|
this.drawingContext.putImageData(props.frames[index].image, 0, 0);
|
|
1603
1603
|
} else {
|
|
1604
|
-
|
|
1605
|
-
'Cannot set GIF to a frame number that is higher than total number of frames or below zero.'
|
|
1604
|
+
p5._friendlyError(
|
|
1605
|
+
'Cannot set GIF to a frame number that is higher than total number of frames or below zero.',
|
|
1606
|
+
'setFrame'
|
|
1606
1607
|
);
|
|
1607
1608
|
}
|
|
1608
1609
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as CORNER, t as CORNERS, v as CENTER, aB as COVER, aC as CONTAIN, a9 as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ad as IMAGE, C as CLAMP, w as ROUND, Y as LINES, X as POINTS, c as TRIANGLES, ab as BLUR, D as DARKEST, L as LIGHTEST, A as ADD, S as SUBTRACT, a as SCREEN, E as EXCLUSION, R as REPLACE, M as MULTIPLY, b as REMOVE, as as BURN, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, d as UNSIGNED_INT, U as UNSIGNED_BYTE, av as LEFT, ax as BASELINE, ay as TOP, aE as SIMPLE, aF as FULL, q as TWO_PI, Q as OPEN, a2 as NORMAL, V as CLOSE, at as PIE, au as CHORD, h as TEXTURE, P as P2D, g as LINEAR, aa as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ac as WEBGL, H as HALF_FLOAT } from './constants-
|
|
1
|
+
import { p as CORNER, t as CORNERS, v as CENTER, aB as COVER, aC as CONTAIN, a9 as RIGHT, aw as BOTTOM, B as BLEND, aD as FILL, ad as IMAGE, C as CLAMP, w as ROUND, Y as LINES, X as POINTS, c as TRIANGLES, ab as BLUR, D as DARKEST, L as LIGHTEST, A as ADD, S as SUBTRACT, a as SCREEN, E as EXCLUSION, R as REPLACE, M as MULTIPLY, b as REMOVE, as as BURN, ao as OVERLAY, ap as HARD_LIGHT, aq as SOFT_LIGHT, ar as DODGE, d as UNSIGNED_INT, U as UNSIGNED_BYTE, av as LEFT, ax as BASELINE, ay as TOP, aE as SIMPLE, aF as FULL, q as TWO_PI, Q as OPEN, a2 as NORMAL, V as CLOSE, at as PIE, au as CHORD, h as TEXTURE, P as P2D, g as LINEAR, aa as WEBGL2, N as NEAREST, aG as LINEAR_MIPMAP, f as REPEAT, e as MIRROR, F as FLOAT, ac as WEBGL, H as HALF_FLOAT } from './constants-BdTiYOQI.js';
|
|
2
2
|
import { C as Color, c as creatingReading, h as RGBA, R as RGB } from './creating_reading-C7hu6sg1.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-BmD2P6Wv.js';
|
|
5
5
|
import { MediaElement } from './dom/p5.MediaElement.js';
|
|
6
6
|
import primitives from './shape/2d_primitives.js';
|
|
7
7
|
import attributes from './shape/attributes.js';
|
|
@@ -1277,7 +1277,7 @@ function files(p5, fn){
|
|
|
1277
1277
|
* (<a href="https://developer.mozilla.org/en-US/docs/Web/XML/XML_introduction" target="_blank">XML</a>)
|
|
1278
1278
|
* is a standard format for sending data between applications. Like HTML, the
|
|
1279
1279
|
* XML format is based on tags and attributes, as in
|
|
1280
|
-
*
|
|
1280
|
+
* `<time units="s">1234</time>`.
|
|
1281
1281
|
*
|
|
1282
1282
|
* The first parameter, `path`, is always a string with the path to the file.
|
|
1283
1283
|
* Paths to local files should be relative, as in
|
|
@@ -10176,11 +10176,6 @@ function primitives3D(p5, fn){
|
|
|
10176
10176
|
* The parameter, `callback`, is a function with the drawing instructions for
|
|
10177
10177
|
* the new <a href="#/p5.Geometry">p5.Geometry</a> object. It will be called
|
|
10178
10178
|
* once to create the new 3D shape.
|
|
10179
|
-
*
|
|
10180
|
-
* See <a href="#/p5/beginGeometry">beginGeometry()</a> and
|
|
10181
|
-
* <a href="#/p5/endGeometry">endGeometry()</a> for another way to build 3D
|
|
10182
|
-
* shapes.
|
|
10183
|
-
*
|
|
10184
10179
|
* Note: `buildGeometry()` can only be used in WebGL mode.
|
|
10185
10180
|
*
|
|
10186
10181
|
* @method buildGeometry
|
|
@@ -10384,12 +10379,8 @@ function primitives3D(p5, fn){
|
|
|
10384
10379
|
* <a href="#/p5.Geometry">p5.Geometry</a> objects can contain lots of data
|
|
10385
10380
|
* about their vertices, surface normals, colors, and so on. Complex 3D shapes
|
|
10386
10381
|
* can use lots of memory which is a limited resource in many GPUs. Calling
|
|
10387
|
-
* `freeGeometry()` can improve performance by freeing a
|
|
10388
|
-
* <a href="#/p5.Geometry">p5.Geometry</a> object’s resources from GPU memory.
|
|
10389
10382
|
* `freeGeometry()` works with <a href="#/p5.Geometry">p5.Geometry</a> objects
|
|
10390
|
-
* created with <a href="#/p5/
|
|
10391
|
-
* <a href="#/p5/endGeometry">endGeometry()</a>,
|
|
10392
|
-
* <a href="#/p5/buildGeometry">buildGeometry()</a>, and
|
|
10383
|
+
* created with <a href="#/p5/buildGeometry">buildGeometry()</a> and
|
|
10393
10384
|
* <a href="#/p5/loadModel">loadModel()</a>.
|
|
10394
10385
|
*
|
|
10395
10386
|
* The parameter, `geometry`, is the <a href="#/p5.Geometry">p5.Geometry</a>
|
|
@@ -10405,24 +10396,6 @@ function primitives3D(p5, fn){
|
|
|
10405
10396
|
* @param {p5.Geometry} geometry 3D shape whose resources should be freed.
|
|
10406
10397
|
*
|
|
10407
10398
|
* @example
|
|
10408
|
-
* function setup() {
|
|
10409
|
-
* createCanvas(100, 100, WEBGL);
|
|
10410
|
-
*
|
|
10411
|
-
* background(200);
|
|
10412
|
-
*
|
|
10413
|
-
* // Create a p5.Geometry object.
|
|
10414
|
-
* beginGeometry();
|
|
10415
|
-
* cone();
|
|
10416
|
-
* let shape = endGeometry();
|
|
10417
|
-
*
|
|
10418
|
-
* // Draw the shape.
|
|
10419
|
-
* model(shape);
|
|
10420
|
-
*
|
|
10421
|
-
* // Free the shape's resources.
|
|
10422
|
-
* freeGeometry(shape);
|
|
10423
|
-
* }
|
|
10424
|
-
*
|
|
10425
|
-
* @example
|
|
10426
10399
|
* // Click and drag the mouse to view the scene from different angles.
|
|
10427
10400
|
*
|
|
10428
10401
|
* let button;
|
|
@@ -18484,7 +18457,7 @@ class Graphics {
|
|
|
18484
18457
|
* Removes the graphics buffer from the web page.
|
|
18485
18458
|
*
|
|
18486
18459
|
* Calling `myGraphics.remove()` removes the graphics buffer's
|
|
18487
|
-
*
|
|
18460
|
+
* `<canvas>` element from the web page. The graphics buffer also uses
|
|
18488
18461
|
* a bit of memory on the CPU that can be freed like so:
|
|
18489
18462
|
*
|
|
18490
18463
|
* ```js
|
|
@@ -18840,7 +18813,7 @@ function graphics(p5, fn){
|
|
|
18840
18813
|
* @param {Number} h height height of the graphics buffer in pixels.
|
|
18841
18814
|
* @param {(P2D|WEBGL|P2DHDR)} renderer the renderer to use, either P2D or WEBGL.
|
|
18842
18815
|
* @param {p5} [pInst] sketch instance.
|
|
18843
|
-
* @param {HTMLCanvasElement} [canvas] existing
|
|
18816
|
+
* @param {HTMLCanvasElement} [canvas] existing `<canvas>` element to use.
|
|
18844
18817
|
*
|
|
18845
18818
|
* @example
|
|
18846
18819
|
* let pg;
|
|
@@ -21819,9 +21792,9 @@ function rendering(p5, fn){
|
|
|
21819
21792
|
|
|
21820
21793
|
/**
|
|
21821
21794
|
* A system variable that provides direct access to the sketch's
|
|
21822
|
-
*
|
|
21795
|
+
* `<canvas>` element.
|
|
21823
21796
|
*
|
|
21824
|
-
* The
|
|
21797
|
+
* The `<canvas>` element provides many specialized features that aren't
|
|
21825
21798
|
* included in the p5.js library. The `drawingContext` system variable
|
|
21826
21799
|
* provides access to these features by exposing the sketch's
|
|
21827
21800
|
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">CanvasRenderingContext2D</a>
|
package/dist/shape/attributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER, w as ROUND, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER } from '../constants-
|
|
1
|
+
import { p as CORNER, t as CORNERS, u as RADIUS, v as CENTER, w as ROUND, x as SQUARE, y as PROJECT, z as BEVEL, I as MITER } from '../constants-BdTiYOQI.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Shape
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as Color } from '../creating_reading-C7hu6sg1.js';
|
|
2
2
|
import { Vector } from '../math/p5.Vector.js';
|
|
3
|
-
import { J as INCLUDE, K as PATH, O as EMPTY_PATH, Q as OPEN, V as CLOSE, X as POINTS, Y as LINES, c as TRIANGLES, Z as QUADS, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, $ as QUAD_STRIP, a0 as EXCLUDE, a1 as JOIN } from '../constants-
|
|
3
|
+
import { J as INCLUDE, K as PATH, O as EMPTY_PATH, Q as OPEN, V as CLOSE, X as POINTS, Y as LINES, c as TRIANGLES, Z as QUADS, _ as TRIANGLE_FAN, T as TRIANGLE_STRIP, $ as QUAD_STRIP, a0 as EXCLUDE, a1 as JOIN } from '../constants-BdTiYOQI.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-BdTiYOQI.js';
|
|
7
7
|
import '../core/helpers.js';
|
|
8
8
|
import '../creating_reading-C7hu6sg1.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-BmD2P6Wv.js';
|
|
4
4
|
import '../creating_reading-C7hu6sg1.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-BdTiYOQI.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,11 +1,11 @@
|
|
|
1
1
|
import { textCoreConstants } from './textCore.js';
|
|
2
|
-
import { v as CENTER, a9 as RIGHT, u as RADIUS } from '../constants-
|
|
2
|
+
import { v as CENTER, a9 as RIGHT, u as RADIUS } from '../constants-BdTiYOQI.js';
|
|
3
3
|
import { UnicodeRange } from '@japont/unicode-range';
|
|
4
4
|
import { unicodeRanges } from './unicodeRanges.js';
|
|
5
5
|
import { Vector } from '../math/p5.Vector.js';
|
|
6
6
|
import Typr from './lib/Typr.js';
|
|
7
7
|
import { createFromCommands } from '@davepagurek/bezier-path';
|
|
8
|
-
import '../p5.Renderer-
|
|
8
|
+
import '../p5.Renderer-BmD2P6Wv.js';
|
|
9
9
|
import '../creating_reading-C7hu6sg1.js';
|
|
10
10
|
import 'colorjs.io/fn';
|
|
11
11
|
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-BmD2P6Wv.js';
|
|
2
2
|
import '../creating_reading-C7hu6sg1.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import '../color/color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-BdTiYOQI.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-BdTiYOQI.js';
|
|
2
|
+
export { p as default } from '../rendering-CC8JNTwG.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-BmD2P6Wv.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 { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants-
|
|
1
|
+
import { T as TRIANGLE_STRIP, $ as QUAD_STRIP, _ as TRIANGLE_FAN, c as TRIANGLES } from '../constants-BdTiYOQI.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 { 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-
|
|
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-BdTiYOQI.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/enums.js
CHANGED
package/dist/webgl/index.js
CHANGED
|
@@ -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-
|
|
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-CC8JNTwG.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 rendererGL from './p5.RendererGL.js';
|
|
11
|
-
import '../constants-
|
|
11
|
+
import '../constants-BdTiYOQI.js';
|
|
12
12
|
import '../creating_reading-C7hu6sg1.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-BmD2P6Wv.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-CC8JNTwG.js';
|
|
2
2
|
import '../math/p5.Vector.js';
|
|
3
3
|
import '../creating_reading-C7hu6sg1.js';
|
|
4
|
-
import '../constants-
|
|
4
|
+
import '../constants-BdTiYOQI.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-BmD2P6Wv.js';
|
|
11
11
|
import '../image/filters.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
|
13
13
|
import '../core/States.js';
|