p5 2.1.0 → 2.1.2
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 +5 -5
- 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-X3LC6Lv0.js → constants-Bt1VTUeD.js} +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/environment.js +4 -3
- 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/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/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/{ir_builders-CWOp5cp1.js → ir_builders-Cn4s8QTL.js} +13 -5
- package/dist/{main-a0b0Jyju.js → main-IPkchNDB.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/noise.js +16 -0
- 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-CVM7QAdK.js → p5.Renderer-C-tu2oim.js} +1 -1
- package/dist/{rendering-sFPd8TZd.js → rendering-COLWmJqb.js} +17 -4
- package/dist/shape/2d_primitives.js +11 -2
- package/dist/shape/attributes.js +1 -1
- package/dist/shape/custom_shapes.js +106 -10
- package/dist/shape/index.js +1 -1
- package/dist/strands/ir_builders.js +1 -1
- package/dist/strands/ir_dag.js +1 -1
- package/dist/strands/p5.strands.js +30 -28
- package/dist/strands/strands_api.js +40 -6
- package/dist/strands/strands_conditionals.js +1 -1
- package/dist/strands/strands_for.js +1 -1
- package/dist/strands/strands_glslBackend.js +1 -1
- package/dist/strands/strands_node.js +1 -1
- package/dist/type/index.js +2 -2
- package/dist/type/p5.Font.js +153 -71
- package/dist/type/textCore.js +37 -24
- 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 +4 -4
- package/dist/webgl/interaction.js +1 -1
- package/dist/webgl/light.js +3 -3
- package/dist/webgl/loading.js +3 -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 +415 -141
- package/lib/p5.esm.min.js +1 -1
- package/lib/p5.js +415 -141
- package/lib/p5.min.js +1 -1
- package/package.json +1 -1
- package/types/global.d.ts +54 -16
- package/types/p5.d.ts +34 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import color_conversion from '../color/color_conversion.js';
|
|
2
|
-
import '../main-
|
|
3
|
-
import '../constants-
|
|
2
|
+
import '../main-IPkchNDB.js';
|
|
3
|
+
import '../constants-Bt1VTUeD.js';
|
|
4
4
|
import '../core/transform.js';
|
|
5
5
|
import '../core/structure.js';
|
|
6
6
|
import '../core/environment.js';
|
|
7
|
-
import '../rendering-
|
|
7
|
+
import '../rendering-COLWmJqb.js';
|
|
8
8
|
import '../creating_reading-p2iQtNm5.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-
|
|
14
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../math/p5.Vector.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
@@ -4,19 +4,19 @@ import textOutput from './textOutput.js';
|
|
|
4
4
|
import outputs from './outputs.js';
|
|
5
5
|
import colorNamer from './color_namer.js';
|
|
6
6
|
import '../color/color_conversion.js';
|
|
7
|
-
import '../main-
|
|
8
|
-
import '../constants-
|
|
7
|
+
import '../main-IPkchNDB.js';
|
|
8
|
+
import '../constants-Bt1VTUeD.js';
|
|
9
9
|
import '../core/transform.js';
|
|
10
10
|
import '../core/structure.js';
|
|
11
11
|
import '../core/environment.js';
|
|
12
|
-
import '../rendering-
|
|
12
|
+
import '../rendering-COLWmJqb.js';
|
|
13
13
|
import '../creating_reading-p2iQtNm5.js';
|
|
14
14
|
import 'colorjs.io/fn';
|
|
15
15
|
import '../color/color_spaces/hsb.js';
|
|
16
16
|
import '../dom/p5.Element.js';
|
|
17
17
|
import '../dom/p5.File.js';
|
|
18
18
|
import '../io/p5.XML.js';
|
|
19
|
-
import '../p5.Renderer-
|
|
19
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
20
20
|
import '../image/filters.js';
|
|
21
21
|
import '../math/p5.Vector.js';
|
|
22
22
|
import '../shape/custom_shapes.js';
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as p5 } from './main-
|
|
1
|
+
import { p as p5 } from './main-IPkchNDB.js';
|
|
2
2
|
import shape from './shape/index.js';
|
|
3
3
|
import accessibility from './accessibility/index.js';
|
|
4
4
|
import color from './color/index.js';
|
|
@@ -13,18 +13,18 @@ import utilities from './utilities/index.js';
|
|
|
13
13
|
import webgl from './webgl/index.js';
|
|
14
14
|
import type from './type/index.js';
|
|
15
15
|
import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init.js';
|
|
16
|
-
import './constants-
|
|
16
|
+
import './constants-Bt1VTUeD.js';
|
|
17
17
|
import './core/transform.js';
|
|
18
18
|
import './core/structure.js';
|
|
19
19
|
import './core/environment.js';
|
|
20
|
-
import './rendering-
|
|
20
|
+
import './rendering-COLWmJqb.js';
|
|
21
21
|
import './creating_reading-p2iQtNm5.js';
|
|
22
22
|
import 'colorjs.io/fn';
|
|
23
23
|
import './color/color_spaces/hsb.js';
|
|
24
24
|
import './dom/p5.Element.js';
|
|
25
25
|
import './dom/p5.File.js';
|
|
26
26
|
import './io/p5.XML.js';
|
|
27
|
-
import './p5.Renderer-
|
|
27
|
+
import './p5.Renderer-C-tu2oim.js';
|
|
28
28
|
import './image/filters.js';
|
|
29
29
|
import './math/p5.Vector.js';
|
|
30
30
|
import './shape/custom_shapes.js';
|
|
@@ -108,7 +108,7 @@ import 'escodegen';
|
|
|
108
108
|
import './strands/ir_cfg.js';
|
|
109
109
|
import './strands/strands_codegen.js';
|
|
110
110
|
import './strands/strands_api.js';
|
|
111
|
-
import './ir_builders-
|
|
111
|
+
import './ir_builders-Cn4s8QTL.js';
|
|
112
112
|
import './strands/strands_builtins.js';
|
|
113
113
|
import './strands/strands_conditionals.js';
|
|
114
114
|
import './strands/strands_phi_utils.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { p as p5 } from '../main-IPkchNDB.js';
|
|
2
|
+
import '../constants-Bt1VTUeD.js';
|
|
3
3
|
import '../core/transform.js';
|
|
4
4
|
import '../core/structure.js';
|
|
5
5
|
import '../core/environment.js';
|
|
6
|
-
import '../rendering-
|
|
6
|
+
import '../rendering-COLWmJqb.js';
|
|
7
7
|
import '../creating_reading-p2iQtNm5.js';
|
|
8
8
|
import 'colorjs.io/fn';
|
|
9
9
|
import './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-C-tu2oim.js';
|
|
14
14
|
import '../image/filters.js';
|
|
15
15
|
import '../math/p5.Vector.js';
|
|
16
16
|
import '../shape/custom_shapes.js';
|
package/dist/color/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { c as creatingReading, a as color$1 } from '../creating_reading-p2iQtNm5
|
|
|
2
2
|
import setting from './setting.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import './color_spaces/hsb.js';
|
|
5
|
-
import '../constants-
|
|
5
|
+
import '../constants-Bt1VTUeD.js';
|
|
6
6
|
|
|
7
7
|
function color(p5){
|
|
8
8
|
p5.registerAddon(creatingReading);
|
package/dist/color/setting.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NORMAL, u as BLEND } from '../constants-
|
|
1
|
+
import { N as NORMAL, u as BLEND } from '../constants-Bt1VTUeD.js';
|
|
2
2
|
import { R as RGB, b as RGBHDR, H as HSB, d as HSL, e as HWB, L as LAB, f as LCH, O as OKLAB, g as OKLCH } from '../creating_reading-p2iQtNm5.js';
|
|
3
3
|
import 'colorjs.io/fn';
|
|
4
4
|
import './color_spaces/hsb.js';
|
package/dist/core/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ai as ADD, aL as ALT, b as ARROW, w as AUTO, A as AXES, aM as BACKSPACE, an as BASELINE, B as BEVEL, b5 as BEZIER, u as BLEND, $ as BLUR, a_ as BOLD, a$ as BOLDITALIC, ar as BOTTOM, ah as BURN, C as CENTER, b0 as CHAR, ak as CHORD, at as CLAMP, n as CLOSE, aq as CONTAIN, aN as CONTROL, e as CORNER, i as CORNERS, ap as COVER, c as CROSS, b6 as CURVE, a6 as DARKEST, D as DEG_TO_RAD, aO as DELETE, a8 as DIFFERENCE, V as DILATE, ag as DODGE, aP as DOWN_ARROW, E as EMPTY_PATH, aQ as ENTER, Y as ERODE, aR as ESCAPE, t as EXCLUDE, aa as EXCLUSION, bc as FALLBACK, as as FILL, F as FLAT, aB as FLOAT, ax as FULL, X as GRAY, G as GRID, aD as HALF_FLOAT, g as HALF_PI, H as HAND, ae as HARD_LIGHT, a1 as IMAGE, b8 as IMMEDIATE, I as INCLUDE, _ as INVERT, aZ as ITALIC, J as JOIN, bb as LABEL, b9 as LANDSCAPE, ao as LEFT, aS as LEFT_ARROW, a7 as LIGHTEST, aC as LINEAR, L as LINES, aJ as LINE_LOOP, aI as LINE_STRIP, aA as MIRROR, l as MITER, M as MOVE, a9 as MULTIPLY, ay as NEAREST, N as NORMAL, K as OPAQUE, O as OPEN, aT as OPTION, ad as OVERLAY, P as P2D, aE as P2DHDR, m as PATH, h as PI, aj as PIE, o as POINTS, ba as PORTRAIT, U as POSTERIZE, k as PROJECT, b4 as QUADRATIC, Q as QUADS, s as QUAD_STRIP, aF as QUARTER_PI, a as RADIUS, x as RAD_TO_DEG, a4 as REMOVE, az as REPEAT, ac as REPLACE, aU as RETURN, R as RIGHT, aV as RIGHT_ARROW, j as ROUND, ab as SCREEN, aW as SHIFT, aw as SIMPLE, y as SMOOTH, af as SOFT_LIGHT, S as SQUARE, b7 as STROKE, a5 as SUBTRACT, aX as TAB, aG as TAU, aK as TESS, d as TEXT, T as TEXTURE, Z as THRESHOLD, aH as TOP, p as TRIANGLES, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, f as TWO_PI, av as UNSIGNED_BYTE, au as UNSIGNED_INT, aY as UP_ARROW, al as VERSION, W as WAIT, a0 as WEBGL, z as WEBGL2, am as WORD, b3 as _CTX_MIDDLE, a2 as _DEFAULT_FILL, b2 as _DEFAULT_LEADMULT, a3 as _DEFAULT_STROKE, b1 as _DEFAULT_TEXT_FILL } from '../constants-
|
|
1
|
+
export { ai as ADD, aL as ALT, b as ARROW, w as AUTO, A as AXES, aM as BACKSPACE, an as BASELINE, B as BEVEL, b5 as BEZIER, u as BLEND, $ as BLUR, a_ as BOLD, a$ as BOLDITALIC, ar as BOTTOM, ah as BURN, C as CENTER, b0 as CHAR, ak as CHORD, at as CLAMP, n as CLOSE, aq as CONTAIN, aN as CONTROL, e as CORNER, i as CORNERS, ap as COVER, c as CROSS, b6 as CURVE, a6 as DARKEST, D as DEG_TO_RAD, aO as DELETE, a8 as DIFFERENCE, V as DILATE, ag as DODGE, aP as DOWN_ARROW, E as EMPTY_PATH, aQ as ENTER, Y as ERODE, aR as ESCAPE, t as EXCLUDE, aa as EXCLUSION, bc as FALLBACK, as as FILL, F as FLAT, aB as FLOAT, ax as FULL, X as GRAY, G as GRID, aD as HALF_FLOAT, g as HALF_PI, H as HAND, ae as HARD_LIGHT, a1 as IMAGE, b8 as IMMEDIATE, I as INCLUDE, _ as INVERT, aZ as ITALIC, J as JOIN, bb as LABEL, b9 as LANDSCAPE, ao as LEFT, aS as LEFT_ARROW, a7 as LIGHTEST, aC as LINEAR, L as LINES, aJ as LINE_LOOP, aI as LINE_STRIP, aA as MIRROR, l as MITER, M as MOVE, a9 as MULTIPLY, ay as NEAREST, N as NORMAL, K as OPAQUE, O as OPEN, aT as OPTION, ad as OVERLAY, P as P2D, aE as P2DHDR, m as PATH, h as PI, aj as PIE, o as POINTS, ba as PORTRAIT, U as POSTERIZE, k as PROJECT, b4 as QUADRATIC, Q as QUADS, s as QUAD_STRIP, aF as QUARTER_PI, a as RADIUS, x as RAD_TO_DEG, a4 as REMOVE, az as REPEAT, ac as REPLACE, aU as RETURN, R as RIGHT, aV as RIGHT_ARROW, j as ROUND, ab as SCREEN, aW as SHIFT, aw as SIMPLE, y as SMOOTH, af as SOFT_LIGHT, S as SQUARE, b7 as STROKE, a5 as SUBTRACT, aX as TAB, aG as TAU, aK as TESS, d as TEXT, T as TEXTURE, Z as THRESHOLD, aH as TOP, p as TRIANGLES, q as TRIANGLE_FAN, r as TRIANGLE_STRIP, f as TWO_PI, av as UNSIGNED_BYTE, au as UNSIGNED_INT, aY as UP_ARROW, al as VERSION, W as WAIT, a0 as WEBGL, z as WEBGL2, am as WORD, b3 as _CTX_MIDDLE, a2 as _DEFAULT_FILL, b2 as _DEFAULT_LEADMULT, a3 as _DEFAULT_STROKE, b1 as _DEFAULT_TEXT_FILL } from '../constants-Bt1VTUeD.js';
|
package/dist/core/environment.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ARROW, c as CROSS, H as HAND, M as MOVE, d as TEXT, W as WAIT, P as P2D } from '../constants-
|
|
1
|
+
import { b as ARROW, c as CROSS, H as HAND, M as MOVE, d as TEXT, W as WAIT, P as P2D } from '../constants-Bt1VTUeD.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module Environment
|
|
@@ -320,10 +320,11 @@ function environment(p5, fn, lifecycles){
|
|
|
320
320
|
cursor = type;
|
|
321
321
|
} else if (typeof type === 'string') {
|
|
322
322
|
let coords = '';
|
|
323
|
-
if (
|
|
323
|
+
if (typeof x === 'number') { // fix for #8323
|
|
324
|
+
y = typeof y === 'number' ? y : 0;
|
|
324
325
|
// Note that x and y values must be unit-less positive integers < 32
|
|
325
326
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
326
|
-
coords = `${x} ${y}`;
|
|
327
|
+
coords = `${Math.max(x, 0)} ${Math.max(y, 0)}`;
|
|
327
328
|
}
|
|
328
329
|
if (
|
|
329
330
|
type.substring(0, 7) === 'http://' ||
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { translator } from '../internationalization.js';
|
|
2
2
|
import strings from './browser_errors.js';
|
|
3
|
-
import { v as constants } from '../../constants-
|
|
3
|
+
import { v as constants } from '../../constants-Bt1VTUeD.js';
|
|
4
4
|
import 'i18next';
|
|
5
5
|
import 'i18next-browser-languagedetector';
|
|
6
6
|
|
|
@@ -6,7 +6,7 @@ import fileErrors from './file_errors.js';
|
|
|
6
6
|
import '../internationalization.js';
|
|
7
7
|
import 'i18next';
|
|
8
8
|
import 'i18next-browser-languagedetector';
|
|
9
|
-
import '../../constants-
|
|
9
|
+
import '../../constants-Bt1VTUeD.js';
|
|
10
10
|
import './browser_errors.js';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'acorn';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parse } from 'acorn';
|
|
2
2
|
import { simple } from 'acorn-walk';
|
|
3
|
-
import { v as constants } from '../../constants-
|
|
3
|
+
import { v as constants } from '../../constants-Bt1VTUeD.js';
|
|
4
4
|
|
|
5
5
|
// List of functions to ignore as they either are meant to be re-defined or
|
|
6
6
|
// generate false positive outputs.
|
package/dist/core/helpers.js
CHANGED
package/dist/core/init.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
1
|
+
import { p as p5 } from '../main-IPkchNDB.js';
|
|
2
2
|
import { initialize } from './internationalization.js';
|
|
3
|
-
import '../constants-
|
|
3
|
+
import '../constants-Bt1VTUeD.js';
|
|
4
4
|
import './transform.js';
|
|
5
5
|
import './structure.js';
|
|
6
6
|
import './environment.js';
|
|
7
|
-
import '../rendering-
|
|
7
|
+
import '../rendering-COLWmJqb.js';
|
|
8
8
|
import '../creating_reading-p2iQtNm5.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-
|
|
14
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
15
15
|
import '../image/filters.js';
|
|
16
16
|
import '../math/p5.Vector.js';
|
|
17
17
|
import '../shape/custom_shapes.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
3
|
-
import { al as VERSION } from '../constants-
|
|
3
|
+
import { al as VERSION } from '../constants-Bt1VTUeD.js';
|
|
4
4
|
|
|
5
5
|
var fes = {
|
|
6
6
|
autoplay: "The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy.\n\n+ More info: {{url}}",
|
package/dist/core/legacy.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { p as p5 } from '../main-
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { p as p5 } from '../main-IPkchNDB.js';
|
|
2
|
+
import '../constants-Bt1VTUeD.js';
|
|
3
3
|
import './transform.js';
|
|
4
4
|
import './structure.js';
|
|
5
5
|
import './environment.js';
|
|
6
|
-
import '../rendering-
|
|
6
|
+
import '../rendering-COLWmJqb.js';
|
|
7
7
|
import '../creating_reading-p2iQtNm5.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-
|
|
13
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
14
14
|
import '../image/filters.js';
|
|
15
15
|
import '../math/p5.Vector.js';
|
|
16
16
|
import '../shape/custom_shapes.js';
|
package/dist/core/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-Bt1VTUeD.js';
|
|
2
2
|
import './transform.js';
|
|
3
3
|
import './structure.js';
|
|
4
4
|
import './environment.js';
|
|
5
|
-
import '../rendering-
|
|
6
|
-
import '../p5.Renderer-
|
|
7
|
-
export { p as default } from '../main-
|
|
5
|
+
import '../rendering-COLWmJqb.js';
|
|
6
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
7
|
+
export { p as default } from '../main-IPkchNDB.js';
|
|
8
8
|
import '../creating_reading-p2iQtNm5.js';
|
|
9
9
|
import 'colorjs.io/fn';
|
|
10
10
|
import '../color/color_spaces/hsb.js';
|
package/dist/core/p5.Graphics.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../constants-
|
|
1
|
+
import '../constants-Bt1VTUeD.js';
|
|
2
2
|
import '../shape/2d_primitives.js';
|
|
3
3
|
import '../shape/attributes.js';
|
|
4
4
|
import '../shape/curves.js';
|
|
5
5
|
import '../shape/vertex.js';
|
|
6
6
|
import '../color/setting.js';
|
|
7
|
-
export { G as Graphics, z as default } from '../rendering-
|
|
7
|
+
export { G as Graphics, z as default } from '../rendering-COLWmJqb.js';
|
|
8
8
|
import '../image/pixels.js';
|
|
9
9
|
import './transform.js';
|
|
10
10
|
import '../creating_reading-p2iQtNm5.js';
|
|
@@ -16,7 +16,7 @@ import '../color/color_spaces/hsb.js';
|
|
|
16
16
|
import '../dom/p5.Element.js';
|
|
17
17
|
import '../dom/p5.File.js';
|
|
18
18
|
import '../io/p5.XML.js';
|
|
19
|
-
import '../p5.Renderer-
|
|
19
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
20
20
|
import '../image/filters.js';
|
|
21
21
|
import '../math/p5.Vector.js';
|
|
22
22
|
import './States.js';
|
package/dist/core/p5.Renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../creating_reading-p2iQtNm5.js';
|
|
2
|
-
import '../constants-
|
|
3
|
-
export { R as Renderer, r as default } from '../p5.Renderer-
|
|
2
|
+
import '../constants-Bt1VTUeD.js';
|
|
3
|
+
export { R as Renderer, r as default } from '../p5.Renderer-C-tu2oim.js';
|
|
4
4
|
import '../math/p5.Vector.js';
|
|
5
5
|
import '../shape/custom_shapes.js';
|
|
6
6
|
import './States.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { R as Renderer2D, r as default } from '../main-
|
|
3
|
-
import '../p5.Renderer-
|
|
4
|
-
import '../rendering-
|
|
1
|
+
import '../constants-Bt1VTUeD.js';
|
|
2
|
+
export { R as Renderer2D, r as default } from '../main-IPkchNDB.js';
|
|
3
|
+
import '../p5.Renderer-C-tu2oim.js';
|
|
4
|
+
import '../rendering-COLWmJqb.js';
|
|
5
5
|
import '../dom/p5.Element.js';
|
|
6
6
|
import '../dom/p5.MediaElement.js';
|
|
7
7
|
import '../creating_reading-p2iQtNm5.js';
|
package/dist/core/rendering.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../constants-
|
|
2
|
-
export { y as default, I as renderers } from '../rendering-
|
|
1
|
+
import '../constants-Bt1VTUeD.js';
|
|
2
|
+
export { y as default, I as renderers } from '../rendering-COLWmJqb.js';
|
|
3
3
|
import '../creating_reading-p2iQtNm5.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-C-tu2oim.js';
|
|
10
10
|
import '../image/filters.js';
|
|
11
11
|
import '../math/p5.Vector.js';
|
|
12
12
|
import '../shape/custom_shapes.js';
|
package/dist/dom/dom.js
CHANGED
package/dist/dom/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import file from './p5.File.js';
|
|
|
5
5
|
import '../creating_reading-p2iQtNm5.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-Bt1VTUeD.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-p2iQtNm5.js';
|
|
3
|
-
import { w as AUTO } from '../constants-
|
|
3
|
+
import { w as AUTO } from '../constants-Bt1VTUeD.js';
|
|
4
4
|
import '../io/p5.XML.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
package/dist/image/const.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Texture, e as filterOpaqueFrag, g as filterPosterizeFrag, h as filterDilateFrag, j as filterGrayFrag, k as filterErodeFrag, n as filterThresholdFrag, o as filterInvertFrag, q as filterBlurFrag, S as Shader, w as webgl2CompatibilityShader, u as filterBaseVert, v as filterBaseFrag, x as filterShaderVert } from '../rendering-
|
|
2
|
-
import { I as Image } from '../p5.Renderer-
|
|
3
|
-
import { z as WEBGL2, K as OPAQUE, U as POSTERIZE, V as DILATE, X as GRAY, Y as ERODE, Z as THRESHOLD, _ as INVERT, $ as BLUR, e as CORNER, u as BLEND, a0 as WEBGL } from '../constants-
|
|
1
|
+
import { T as Texture, e as filterOpaqueFrag, g as filterPosterizeFrag, h as filterDilateFrag, j as filterGrayFrag, k as filterErodeFrag, n as filterThresholdFrag, o as filterInvertFrag, q as filterBlurFrag, S as Shader, w as webgl2CompatibilityShader, u as filterBaseVert, v as filterBaseFrag, x as filterShaderVert } from '../rendering-COLWmJqb.js';
|
|
2
|
+
import { I as Image } from '../p5.Renderer-C-tu2oim.js';
|
|
3
|
+
import { z as WEBGL2, K as OPAQUE, U as POSTERIZE, V as DILATE, X as GRAY, Y as ERODE, Z as THRESHOLD, _ as INVERT, $ as BLUR, e as CORNER, u as BLEND, a0 as WEBGL } from '../constants-Bt1VTUeD.js';
|
|
4
4
|
import { filterParamDefaults } from './const.js';
|
|
5
5
|
import '../creating_reading-p2iQtNm5.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
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-COLWmJqb.js';
|
|
4
4
|
import '../dom/p5.File.js';
|
|
5
5
|
import '../io/p5.XML.js';
|
|
6
6
|
import '../creating_reading-p2iQtNm5.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-Bt1VTUeD.js';
|
|
10
|
+
import '../p5.Renderer-C-tu2oim.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,7 +1,7 @@
|
|
|
1
|
-
import { i as image$1, b as loadingDisplaying, s as shader, t as texture } from '../rendering-
|
|
2
|
-
import { i as image$2 } from '../p5.Renderer-
|
|
1
|
+
import { i as image$1, b as loadingDisplaying, s as shader, t as texture } from '../rendering-COLWmJqb.js';
|
|
2
|
+
import { i as image$2 } from '../p5.Renderer-C-tu2oim.js';
|
|
3
3
|
import pixels from './pixels.js';
|
|
4
|
-
import '../constants-
|
|
4
|
+
import '../constants-Bt1VTUeD.js';
|
|
5
5
|
import '../creating_reading-p2iQtNm5.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
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-Bt1VTUeD.js';
|
|
3
|
+
export { b as default } from '../rendering-COLWmJqb.js';
|
|
4
4
|
import 'omggif';
|
|
5
5
|
import 'gifenc';
|
|
6
6
|
import '../creating_reading-p2iQtNm5.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-C-tu2oim.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-C-tu2oim.js';
|
|
3
3
|
import '../io/utilities.js';
|
|
4
4
|
import '../creating_reading-p2iQtNm5.js';
|
|
5
5
|
import 'colorjs.io/fn';
|
|
6
6
|
import '../color/color_spaces/hsb.js';
|
|
7
|
-
import '../constants-
|
|
7
|
+
import '../constants-Bt1VTUeD.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-C-tu2oim.js';
|
|
2
|
+
export { d as default, a as request } from '../rendering-COLWmJqb.js';
|
|
3
3
|
import './csv.js';
|
|
4
4
|
import './utilities.js';
|
|
5
5
|
import '../creating_reading-p2iQtNm5.js';
|
|
6
6
|
import 'colorjs.io/fn';
|
|
7
7
|
import '../color/color_spaces/hsb.js';
|
|
8
|
-
import '../constants-
|
|
8
|
+
import '../constants-Bt1VTUeD.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-COLWmJqb.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-Bt1VTUeD.js';
|
|
6
6
|
import '../creating_reading-p2iQtNm5.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-C-tu2oim.js';
|
|
12
12
|
import '../image/filters.js';
|
|
13
13
|
import '../math/p5.Vector.js';
|
|
14
14
|
import '../shape/custom_shapes.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getNodeDataFromID, createNodeData, getOrCreateNode, extractNodeTypeInfo } from './strands/ir_dag.js';
|
|
2
2
|
import { recordInBasicBlock } from './strands/ir_cfg.js';
|
|
3
3
|
import { userError, internalError } from './strands/strands_FES.js';
|
|
4
|
-
import { NodeType, OpCode,
|
|
4
|
+
import { BaseType, NodeType, OpCode, typeEquals, BasePriority, DataType, OpCodeToSymbol } from './strands/ir_types.js';
|
|
5
5
|
import { strandsBuiltinFunctions } from './strands/strands_builtins.js';
|
|
6
6
|
|
|
7
7
|
class StrandsNode {
|
|
@@ -15,6 +15,8 @@ class StrandsNode {
|
|
|
15
15
|
const nodeData = getNodeDataFromID(dag, this.id);
|
|
16
16
|
if (nodeData && nodeData.identifier) {
|
|
17
17
|
this._originalIdentifier = nodeData.identifier;
|
|
18
|
+
}
|
|
19
|
+
if (nodeData) {
|
|
18
20
|
this._originalBaseType = nodeData.baseType;
|
|
19
21
|
this._originalDimension = nodeData.dimension;
|
|
20
22
|
}
|
|
@@ -22,6 +24,12 @@ class StrandsNode {
|
|
|
22
24
|
copy() {
|
|
23
25
|
return createStrandsNode(this.id, this.dimension, this.strandsContext);
|
|
24
26
|
}
|
|
27
|
+
typeInfo() {
|
|
28
|
+
return {
|
|
29
|
+
baseType: this._originalBaseType || BaseType.FLOAT,
|
|
30
|
+
dimension: this.dimension
|
|
31
|
+
};
|
|
32
|
+
}
|
|
25
33
|
bridge(value) {
|
|
26
34
|
const { dag, cfg } = this.strandsContext;
|
|
27
35
|
const orig = getNodeDataFromID(dag, this.id);
|
|
@@ -32,8 +40,8 @@ class StrandsNode {
|
|
|
32
40
|
newValueID = value.id;
|
|
33
41
|
} else {
|
|
34
42
|
const newVal = primitiveConstructorNode(
|
|
35
|
-
this.strandsContext,
|
|
36
|
-
{ baseType, dimension: this.dimension },
|
|
43
|
+
this.strandsContext,
|
|
44
|
+
{ baseType, dimension: this.dimension },
|
|
37
45
|
value
|
|
38
46
|
);
|
|
39
47
|
newValueID = newVal.id;
|
|
@@ -87,8 +95,8 @@ class StrandsNode {
|
|
|
87
95
|
newValueID = value.id;
|
|
88
96
|
} else {
|
|
89
97
|
const newVal = primitiveConstructorNode(
|
|
90
|
-
this.strandsContext,
|
|
91
|
-
{ baseType, dimension: this.dimension },
|
|
98
|
+
this.strandsContext,
|
|
99
|
+
{ baseType, dimension: this.dimension },
|
|
92
100
|
value
|
|
93
101
|
);
|
|
94
102
|
newValueID = newVal.id;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as P2D, a0 as WEBGL, u as BLEND, a2 as _DEFAULT_FILL, a3 as _DEFAULT_STROKE, j as ROUND, a4 as REMOVE, a5 as SUBTRACT, a6 as DARKEST, a7 as LIGHTEST, a8 as DIFFERENCE, a9 as MULTIPLY, aa as EXCLUSION, ab as SCREEN, ac as REPLACE, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, ah as BURN, ai as ADD, aj as PIE, ak as CHORD, f as TWO_PI, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER, O as OPEN, v as constants, al as VERSION } from './constants-
|
|
1
|
+
import { P as P2D, a0 as WEBGL, u as BLEND, a2 as _DEFAULT_FILL, a3 as _DEFAULT_STROKE, j as ROUND, a4 as REMOVE, a5 as SUBTRACT, a6 as DARKEST, a7 as LIGHTEST, a8 as DIFFERENCE, a9 as MULTIPLY, aa as EXCLUSION, ab as SCREEN, ac as REPLACE, ad as OVERLAY, ae as HARD_LIGHT, af as SOFT_LIGHT, ag as DODGE, ah as BURN, ai as ADD, aj as PIE, ak as CHORD, f as TWO_PI, S as SQUARE, k as PROJECT, B as BEVEL, l as MITER, O as OPEN, v as constants, al as VERSION } from './constants-Bt1VTUeD.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, y as rendering, z as graphics } from './rendering-
|
|
6
|
-
import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-
|
|
5
|
+
import { G as Graphics, y as rendering, z as graphics } from './rendering-COLWmJqb.js';
|
|
6
|
+
import { R as Renderer, I as Image, r as renderer } from './p5.Renderer-C-tu2oim.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-p2iQtNm5.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-Bt1VTUeD.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-Bt1VTUeD.js';
|
|
8
8
|
|
|
9
9
|
function math(p5){
|
|
10
10
|
p5.registerAddon(calculation);
|