p5 2.2.3-rc.0 → 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 +5 -5
- package/dist/accessibility/index.js +5 -5
- package/dist/app.js +5 -5
- package/dist/color/color_conversion.js +5 -5
- package/dist/color/index.js +1 -1
- package/dist/color/setting.js +1 -1
- package/dist/{constants-D3ryGa0m.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 +5 -5
- package/dist/core/internationalization.js +1 -1
- package/dist/core/legacy.js +5 -5
- package/dist/core/main.js +5 -5
- package/dist/core/p5.Graphics.js +3 -3
- package/dist/core/p5.Renderer.js +2 -2
- package/dist/core/p5.Renderer2D.js +5 -5
- 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 +4 -4
- 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/{ir_builders-DMfaOLIL.js → ir_builders-Cd6rU9Vm.js} +0 -6
- package/dist/{main-CGwYa9-f.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-C0e0XesC.js → p5.Renderer-BmD2P6Wv.js} +4 -3
- package/dist/{rendering-4Z2qdE_W.js → rendering-CC8JNTwG.js} +21 -58
- 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/strands/ir_builders.js +1 -1
- package/dist/strands/p5.strands.js +10 -34
- package/dist/strands/strands_api.js +1 -2
- package/dist/strands/strands_codegen.js +0 -12
- package/dist/strands/strands_conditionals.js +1 -1
- package/dist/strands/strands_for.js +1 -1
- package/dist/strands/strands_node.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 +4 -4
- 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 +4 -4
- package/dist/webgl/p5.Shader.js +14 -6
- package/dist/webgl/p5.Texture.js +3 -3
- package/dist/webgl/strands_glslBackend.js +1 -1
- package/dist/webgl/text.js +3 -3
- package/dist/webgl/utils.js +3 -3
- package/dist/webgpu/index.js +2 -2
- package/dist/webgpu/p5.RendererWebGPU.js +2 -2
- package/dist/webgpu/strands_wgslBackend.js +1 -1
- package/lib/p5.esm.js +104 -173
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +104 -173
- package/lib/p5.min.js +1 -1
- package/lib/p5.webgpu.esm.js +1 -7
- package/lib/p5.webgpu.js +1 -7
- package/lib/p5.webgpu.min.js +1 -1
- package/package.json +1 -1
- package/types/global.d.ts +1170 -1210
- package/types/p5.d.ts +645 -658
package/lib/p5.webgpu.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ const _PI = Math.PI;
|
|
|
11
11
|
* @property {String} VERSION
|
|
12
12
|
* @final
|
|
13
13
|
*/
|
|
14
|
-
const VERSION = '2.2.3
|
|
14
|
+
const VERSION = '2.2.3';
|
|
15
15
|
|
|
16
16
|
// GRAPHICS RENDERER
|
|
17
17
|
/**
|
|
@@ -3039,9 +3039,6 @@ class StrandsNode {
|
|
|
3039
3039
|
const assignmentID = getOrCreateNode(dag, assignmentNode);
|
|
3040
3040
|
recordInBasicBlock(cfg, cfg.currentBlock, assignmentID);
|
|
3041
3041
|
|
|
3042
|
-
// Track for global assignments processing
|
|
3043
|
-
this.strandsContext.globalAssignments.push(assignmentID);
|
|
3044
|
-
|
|
3045
3042
|
// Simply update this node to be a variable node with the identifier
|
|
3046
3043
|
// This ensures it always generates the variable name in expressions
|
|
3047
3044
|
const variableNodeData = createNodeData({
|
|
@@ -3105,9 +3102,6 @@ class StrandsNode {
|
|
|
3105
3102
|
const assignmentID = getOrCreateNode(dag, assignmentNode);
|
|
3106
3103
|
recordInBasicBlock(cfg, cfg.currentBlock, assignmentID);
|
|
3107
3104
|
|
|
3108
|
-
// Track for global assignments processing in the current hook context
|
|
3109
|
-
this.strandsContext.globalAssignments.push(assignmentID);
|
|
3110
|
-
|
|
3111
3105
|
// Simply update this node to be a variable node with the identifier
|
|
3112
3106
|
// This ensures it always generates the variable name in expressions
|
|
3113
3107
|
const variableNodeData = createNodeData({
|
package/lib/p5.webgpu.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @property {String} VERSION
|
|
15
15
|
* @final
|
|
16
16
|
*/
|
|
17
|
-
const VERSION = '2.2.3
|
|
17
|
+
const VERSION = '2.2.3';
|
|
18
18
|
|
|
19
19
|
// GRAPHICS RENDERER
|
|
20
20
|
/**
|
|
@@ -3042,9 +3042,6 @@ fn main(input: FragmentInput) -> @location(0) vec4<f32> {
|
|
|
3042
3042
|
const assignmentID = getOrCreateNode(dag, assignmentNode);
|
|
3043
3043
|
recordInBasicBlock(cfg, cfg.currentBlock, assignmentID);
|
|
3044
3044
|
|
|
3045
|
-
// Track for global assignments processing
|
|
3046
|
-
this.strandsContext.globalAssignments.push(assignmentID);
|
|
3047
|
-
|
|
3048
3045
|
// Simply update this node to be a variable node with the identifier
|
|
3049
3046
|
// This ensures it always generates the variable name in expressions
|
|
3050
3047
|
const variableNodeData = createNodeData({
|
|
@@ -3108,9 +3105,6 @@ fn main(input: FragmentInput) -> @location(0) vec4<f32> {
|
|
|
3108
3105
|
const assignmentID = getOrCreateNode(dag, assignmentNode);
|
|
3109
3106
|
recordInBasicBlock(cfg, cfg.currentBlock, assignmentID);
|
|
3110
3107
|
|
|
3111
|
-
// Track for global assignments processing in the current hook context
|
|
3112
|
-
this.strandsContext.globalAssignments.push(assignmentID);
|
|
3113
|
-
|
|
3114
3108
|
// Simply update this node to be a variable node with the identifier
|
|
3115
3109
|
// This ensures it always generates the variable name in expressions
|
|
3116
3110
|
const variableNodeData = createNodeData({
|