shaders 2.2.29 → 2.2.30
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/core/{AngularBlur-DKFExWUF.js → AngularBlur-CuwAjUOA.js} +1 -1
- package/dist/core/{Ascii-BRApYlD4.js → Ascii-Dxk6VaBp.js} +30 -7
- package/dist/core/{Beam-DU7wxmIh.js → Beam-DCaOPIk_.js} +1 -1
- package/dist/core/{Blob-nssNzEgN.js → Blob-8YqXuE5v.js} +2 -2
- package/dist/core/{Bulge-Dm02_fG6.js → Bulge-D9mLn8-p.js} +1 -1
- package/dist/core/{Checkerboard-SKsXoUXE.js → Checkerboard-DjrQsDvl.js} +1 -1
- package/dist/core/{ChromaFlow-VpfgLFbs.js → ChromaFlow-DhzC_8Ne.js} +19 -17
- package/dist/core/{ChromaticAberration-CaCyXMyE.js → ChromaticAberration-hi7WGiVk.js} +1 -1
- package/dist/core/{Circle-BHnAmzVb.js → Circle-BSAdYHYZ.js} +1 -1
- package/dist/core/{CursorTrail-CfVWIKok.js → CursorTrail-B9EQ9FsP.js} +1 -1
- package/dist/core/{DiffuseBlur-GWPb8Zht.js → DiffuseBlur-B-QHWSjt.js} +1 -1
- package/dist/core/{Dither-BNEeyo0u.js → Dither-Bb5rLGEI.js} +1 -1
- package/dist/core/{DotGrid-CRRS6nbt.js → DotGrid-BJyEY7YH.js} +1 -1
- package/dist/core/{Duotone-5gKND3an.js → Duotone-CRwhugbV.js} +1 -1
- package/dist/core/{FloatingParticles-CULOurGT.js → FloatingParticles-Ct7GMVzZ.js} +1 -1
- package/dist/core/{Godrays-BQsDwU26.js → Godrays-fJIUiGke.js} +1 -1
- package/dist/core/{Grid-CWHxwO7R.js → Grid-o_nFs0CE.js} +1 -1
- package/dist/core/{GridDistortion-CZB9w-rv.js → GridDistortion-xuUXyMGP.js} +1 -1
- package/dist/core/{Halftone-MMcLMRpL.js → Halftone-Ddrldk6b.js} +1 -1
- package/dist/core/{LinearBlur-B-Ikurxt.js → LinearBlur-cYfqaOhb.js} +1 -1
- package/dist/core/{LinearGradient-DV6UkhZk.js → LinearGradient-DN_FYXL2.js} +1 -1
- package/dist/core/{Liquify-W8UQNeEM.js → Liquify-Qm_y-apj.js} +1 -1
- package/dist/core/{PolarCoordinates-D63xm0oJ.js → PolarCoordinates-DfjOpgDQ.js} +1 -1
- package/dist/core/{ProgressiveBlur-G-s-o9ic.js → ProgressiveBlur-XD4ivmMn.js} +1 -1
- package/dist/core/{RadialGradient-BGVqSwh0.js → RadialGradient-DGmfTA60.js} +1 -1
- package/dist/core/{RectangularCoordinates-DyHBo456.js → RectangularCoordinates-TM8tkEBk.js} +1 -1
- package/dist/core/{Ripples-2FGWCZlp.js → Ripples-D60vIa8s.js} +2 -2
- package/dist/core/{SimplexNoise-B6dtUCmn.js → SimplexNoise-CI-FEJ6v.js} +2 -2
- package/dist/core/{SineWave-BtPf6-2H.js → SineWave-CQIQ0oCt.js} +1 -1
- package/dist/core/{SolidColor-CETl1cEr.js → SolidColor-CTN8J944.js} +1 -1
- package/dist/core/{Spherize-BwvUcorJ.js → Spherize-DDP0_5VP.js} +1 -1
- package/dist/core/{Spiral-DmJWmUmr.js → Spiral-DIzFj8Xi.js} +1 -1
- package/dist/core/{Strands-CV1oCmHx.js → Strands-WwfH6CNO.js} +2 -2
- package/dist/core/{Stretch-pl-Cn2F8.js → Stretch-DxuMSLMk.js} +1 -1
- package/dist/core/{Swirl-D65vXLDw.js → Swirl-SrhhoVBs.js} +2 -2
- package/dist/core/{TiltShift-CFcK6Hzg.js → TiltShift-CvKqM1xk.js} +1 -1
- package/dist/core/{Tritone-EmnjV2rX.js → Tritone-BeEJj4U0.js} +1 -1
- package/dist/core/{Twirl-HSMyRx5I.js → Twirl-DRomCc8u.js} +1 -1
- package/dist/core/{WaveDistortion-DG8GO_l8.js → WaveDistortion-Btn7OJ4m.js} +1 -1
- package/dist/core/{ZoomBlur-C01oGwwG.js → ZoomBlur-gB0BxldE.js} +1 -1
- package/dist/core/index.js +117 -91
- package/dist/core/performanceTracker.d.ts +7 -1
- package/dist/core/performanceTracker.d.ts.map +1 -1
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Ascii/index.d.ts.map +1 -1
- package/dist/core/shaders/Ascii/index.js +1 -1
- package/dist/core/shaders/Beam/index.js +2 -2
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +2 -2
- package/dist/core/shaders/ChromaFlow/index.d.ts.map +1 -1
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Circle/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +2 -2
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +2 -2
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.js +2 -2
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.js +2 -2
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.js +2 -2
- package/dist/core/shaders/Strands/index.js +3 -3
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Swirl/index.js +3 -3
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +2 -2
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/{transformations-Dv5JW9ck.js → transformations-YbhRK-rd.js} +51 -1
- package/dist/core/utilities/transformations.d.ts +17 -0
- package/dist/core/utilities/transformations.d.ts.map +1 -1
- package/dist/core/utilities/uniforms.d.ts.map +1 -1
- package/package.json +1 -1
- /package/dist/core/{time-CTJvRUZ4.js → time-DgRTVr2F.js} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { n as applyEdgeToUV, t as applyEdgeHandling } from "./edges-Djr_12SL.js";
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import { n as componentDefinition } from "./AngularBlur-
|
|
5
|
-
import { n as componentDefinition$1 } from "./Ascii-
|
|
2
|
+
import { a as transformColorUpdate, c as transformPositionUpdate, r as transformColor, s as transformPosition } from "./transformations-YbhRK-rd.js";
|
|
3
|
+
import { t as createAnimatedTime } from "./time-DgRTVr2F.js";
|
|
4
|
+
import { n as componentDefinition } from "./AngularBlur-CuwAjUOA.js";
|
|
5
|
+
import { n as componentDefinition$1 } from "./Ascii-Dxk6VaBp.js";
|
|
6
6
|
import "./colorMixing-CZPFmiT4.js";
|
|
7
|
-
import { n as componentDefinition$2 } from "./Beam-
|
|
8
|
-
import { n as componentDefinition$3 } from "./Blob-
|
|
7
|
+
import { n as componentDefinition$2 } from "./Beam-DCaOPIk_.js";
|
|
8
|
+
import { n as componentDefinition$3 } from "./Blob-8YqXuE5v.js";
|
|
9
9
|
import { n as componentDefinition$4 } from "./Blur-k37gOaRA.js";
|
|
10
|
-
import { n as componentDefinition$5 } from "./Bulge-
|
|
10
|
+
import { n as componentDefinition$5 } from "./Bulge-D9mLn8-p.js";
|
|
11
11
|
import { n as componentDefinition$6 } from "./ChannelBlur-BPOGOQXl.js";
|
|
12
|
-
import { n as componentDefinition$7 } from "./Checkerboard-
|
|
13
|
-
import { n as componentDefinition$8 } from "./ChromaFlow-
|
|
14
|
-
import { n as componentDefinition$9 } from "./ChromaticAberration-
|
|
15
|
-
import { n as componentDefinition$10 } from "./Circle-
|
|
12
|
+
import { n as componentDefinition$7 } from "./Checkerboard-DjrQsDvl.js";
|
|
13
|
+
import { n as componentDefinition$8 } from "./ChromaFlow-DhzC_8Ne.js";
|
|
14
|
+
import { n as componentDefinition$9 } from "./ChromaticAberration-hi7WGiVk.js";
|
|
15
|
+
import { n as componentDefinition$10 } from "./Circle-BSAdYHYZ.js";
|
|
16
16
|
import { n as componentDefinition$11 } from "./CRTScreen-DLy8Rig6.js";
|
|
17
|
-
import { n as componentDefinition$12 } from "./CursorTrail-
|
|
18
|
-
import { n as componentDefinition$13 } from "./DiffuseBlur-
|
|
19
|
-
import { n as componentDefinition$14 } from "./Dither-
|
|
20
|
-
import { n as componentDefinition$15 } from "./DotGrid-
|
|
21
|
-
import { n as componentDefinition$16 } from "./Duotone-
|
|
17
|
+
import { n as componentDefinition$12 } from "./CursorTrail-B9EQ9FsP.js";
|
|
18
|
+
import { n as componentDefinition$13 } from "./DiffuseBlur-B-QHWSjt.js";
|
|
19
|
+
import { n as componentDefinition$14 } from "./Dither-Bb5rLGEI.js";
|
|
20
|
+
import { n as componentDefinition$15 } from "./DotGrid-BJyEY7YH.js";
|
|
21
|
+
import { n as componentDefinition$16 } from "./Duotone-CRwhugbV.js";
|
|
22
22
|
import { n as componentDefinition$17 } from "./FilmGrain-osBGk_b9.js";
|
|
23
|
-
import { n as componentDefinition$18 } from "./FloatingParticles-
|
|
23
|
+
import { n as componentDefinition$18 } from "./FloatingParticles-Ct7GMVzZ.js";
|
|
24
24
|
import { n as componentDefinition$19 } from "./GlassTiles-CA90XrNT.js";
|
|
25
25
|
import { n as componentDefinition$20 } from "./Glow-D0boDIAW.js";
|
|
26
|
-
import { n as componentDefinition$21 } from "./Godrays-
|
|
26
|
+
import { n as componentDefinition$21 } from "./Godrays-fJIUiGke.js";
|
|
27
27
|
import { n as componentDefinition$22 } from "./Grayscale-Bi-XBvO_.js";
|
|
28
|
-
import { n as componentDefinition$23 } from "./Grid-
|
|
29
|
-
import { n as componentDefinition$24 } from "./GridDistortion-
|
|
28
|
+
import { n as componentDefinition$23 } from "./Grid-o_nFs0CE.js";
|
|
29
|
+
import { n as componentDefinition$24 } from "./GridDistortion-xuUXyMGP.js";
|
|
30
30
|
import { n as componentDefinition$25 } from "./Group-C0AknFDS.js";
|
|
31
|
-
import { n as componentDefinition$26 } from "./Halftone-
|
|
31
|
+
import { n as componentDefinition$26 } from "./Halftone-Ddrldk6b.js";
|
|
32
32
|
import { n as componentDefinition$27 } from "./HueShift-DvOpzM7W.js";
|
|
33
33
|
import { n as componentDefinition$28 } from "./ImageTexture-D9OMwqAs.js";
|
|
34
34
|
import { n as componentDefinition$29 } from "./Invert-Bmjbp6g6.js";
|
|
35
|
-
import { n as componentDefinition$30 } from "./LinearBlur-
|
|
36
|
-
import { n as componentDefinition$31 } from "./LinearGradient-
|
|
37
|
-
import { n as componentDefinition$32 } from "./Liquify-
|
|
35
|
+
import { n as componentDefinition$30 } from "./LinearBlur-cYfqaOhb.js";
|
|
36
|
+
import { n as componentDefinition$31 } from "./LinearGradient-DN_FYXL2.js";
|
|
37
|
+
import { n as componentDefinition$32 } from "./Liquify-Qm_y-apj.js";
|
|
38
38
|
import { n as componentDefinition$33 } from "./Pixelate-_pyYeLRP.js";
|
|
39
|
-
import { n as componentDefinition$34 } from "./PolarCoordinates-
|
|
39
|
+
import { n as componentDefinition$34 } from "./PolarCoordinates-DfjOpgDQ.js";
|
|
40
40
|
import { n as componentDefinition$35 } from "./Posterize-DIjjPS72.js";
|
|
41
|
-
import { n as componentDefinition$36 } from "./ProgressiveBlur-
|
|
42
|
-
import { n as componentDefinition$37 } from "./RadialGradient-
|
|
43
|
-
import { n as componentDefinition$38 } from "./RectangularCoordinates-
|
|
44
|
-
import { n as componentDefinition$39 } from "./Ripples-
|
|
41
|
+
import { n as componentDefinition$36 } from "./ProgressiveBlur-XD4ivmMn.js";
|
|
42
|
+
import { n as componentDefinition$37 } from "./RadialGradient-DGmfTA60.js";
|
|
43
|
+
import { n as componentDefinition$38 } from "./RectangularCoordinates-TM8tkEBk.js";
|
|
44
|
+
import { n as componentDefinition$39 } from "./Ripples-D60vIa8s.js";
|
|
45
45
|
import { n as componentDefinition$40 } from "./Saturation-J0nI4hmh.js";
|
|
46
|
-
import { n as componentDefinition$41 } from "./SimplexNoise-
|
|
47
|
-
import { n as componentDefinition$42 } from "./SineWave-
|
|
48
|
-
import { n as componentDefinition$43 } from "./SolidColor-
|
|
49
|
-
import { n as componentDefinition$44 } from "./Spherize-
|
|
50
|
-
import { n as componentDefinition$45 } from "./Spiral-
|
|
51
|
-
import { n as componentDefinition$46 } from "./Strands-
|
|
52
|
-
import { n as componentDefinition$47 } from "./Stretch-
|
|
53
|
-
import { n as componentDefinition$48 } from "./Swirl-
|
|
54
|
-
import { n as componentDefinition$49 } from "./TiltShift-
|
|
55
|
-
import { n as componentDefinition$50 } from "./Tritone-
|
|
56
|
-
import { n as componentDefinition$51 } from "./Twirl-
|
|
46
|
+
import { n as componentDefinition$41 } from "./SimplexNoise-CI-FEJ6v.js";
|
|
47
|
+
import { n as componentDefinition$42 } from "./SineWave-CQIQ0oCt.js";
|
|
48
|
+
import { n as componentDefinition$43 } from "./SolidColor-CTN8J944.js";
|
|
49
|
+
import { n as componentDefinition$44 } from "./Spherize-DDP0_5VP.js";
|
|
50
|
+
import { n as componentDefinition$45 } from "./Spiral-DIzFj8Xi.js";
|
|
51
|
+
import { n as componentDefinition$46 } from "./Strands-WwfH6CNO.js";
|
|
52
|
+
import { n as componentDefinition$47 } from "./Stretch-DxuMSLMk.js";
|
|
53
|
+
import { n as componentDefinition$48 } from "./Swirl-SrhhoVBs.js";
|
|
54
|
+
import { n as componentDefinition$49 } from "./TiltShift-CvKqM1xk.js";
|
|
55
|
+
import { n as componentDefinition$50 } from "./Tritone-BeEJj4U0.js";
|
|
56
|
+
import { n as componentDefinition$51 } from "./Twirl-DRomCc8u.js";
|
|
57
57
|
import { n as componentDefinition$52 } from "./Vibrance-BI5q7_Wt.js";
|
|
58
|
-
import { n as componentDefinition$53 } from "./WaveDistortion-
|
|
59
|
-
import { n as componentDefinition$54 } from "./ZoomBlur-
|
|
58
|
+
import { n as componentDefinition$53 } from "./WaveDistortion-Btn7OJ4m.js";
|
|
59
|
+
import { n as componentDefinition$54 } from "./ZoomBlur-gB0BxldE.js";
|
|
60
60
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, WebGPURenderer } from "three/webgpu";
|
|
61
61
|
import { WebGLRenderer } from "three";
|
|
62
62
|
import { PI, abs, add, atan, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
@@ -319,7 +319,8 @@ var PerformanceTracker = class {
|
|
|
319
319
|
jankFrameCount = 0;
|
|
320
320
|
totalFrameCount = 0;
|
|
321
321
|
memorySnapshots = [];
|
|
322
|
-
|
|
322
|
+
memorySnapshotIndex = 0;
|
|
323
|
+
maxMemorySnapshots = 300;
|
|
323
324
|
nodeCount = 0;
|
|
324
325
|
rttNodeCount = 0;
|
|
325
326
|
lastCpuTime = null;
|
|
@@ -358,31 +359,55 @@ var PerformanceTracker = class {
|
|
|
358
359
|
if (!performance.memory) return;
|
|
359
360
|
const now = performance.now();
|
|
360
361
|
const bytes = performance.memory.usedJSHeapSize;
|
|
361
|
-
this.memorySnapshots.push({
|
|
362
|
+
if (this.memorySnapshots.length < this.maxMemorySnapshots) this.memorySnapshots.push({
|
|
362
363
|
time: now,
|
|
363
364
|
bytes
|
|
364
365
|
});
|
|
365
|
-
|
|
366
|
-
|
|
366
|
+
else {
|
|
367
|
+
const entry = this.memorySnapshots[this.memorySnapshotIndex];
|
|
368
|
+
entry.time = now;
|
|
369
|
+
entry.bytes = bytes;
|
|
370
|
+
this.memorySnapshotIndex = (this.memorySnapshotIndex + 1) % this.maxMemorySnapshots;
|
|
371
|
+
}
|
|
367
372
|
}
|
|
368
373
|
calculateMemoryGrowthRate() {
|
|
369
374
|
if (this.memorySnapshots.length < 2) return null;
|
|
370
|
-
const
|
|
371
|
-
const
|
|
375
|
+
const len = this.memorySnapshots.length;
|
|
376
|
+
const oldestIdx = len < this.maxMemorySnapshots ? 0 : this.memorySnapshotIndex;
|
|
377
|
+
const newestIdx = len < this.maxMemorySnapshots ? len - 1 : (this.memorySnapshotIndex - 1 + len) % len;
|
|
378
|
+
const oldest = this.memorySnapshots[oldestIdx];
|
|
379
|
+
const newest = this.memorySnapshots[newestIdx];
|
|
372
380
|
const timeDeltaSeconds = (newest.time - oldest.time) / 1e3;
|
|
381
|
+
if (timeDeltaSeconds <= 0) return null;
|
|
373
382
|
return (newest.bytes - oldest.bytes) / (1024 * 1024) / timeDeltaSeconds;
|
|
374
383
|
}
|
|
375
384
|
calculateStdDev(values) {
|
|
376
385
|
if (values.length === 0) return 0;
|
|
377
386
|
const mean = values.reduce((a, b) => a + b, 0) / values.length;
|
|
378
|
-
|
|
379
|
-
|
|
387
|
+
let sumSquaredDiff = 0;
|
|
388
|
+
for (let i = 0; i < values.length; i++) {
|
|
389
|
+
const diff = values[i] - mean;
|
|
390
|
+
sumSquaredDiff += diff * diff;
|
|
391
|
+
}
|
|
392
|
+
return Math.sqrt(sumSquaredDiff / values.length);
|
|
380
393
|
}
|
|
394
|
+
sortBuffer = [];
|
|
381
395
|
calculateP99(values) {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
396
|
+
const len = values.length;
|
|
397
|
+
if (len === 0) return 0;
|
|
398
|
+
while (this.sortBuffer.length < len) this.sortBuffer.push(0);
|
|
399
|
+
for (let i = 0; i < len; i++) this.sortBuffer[i] = values[i];
|
|
400
|
+
for (let i = 1; i < len; i++) {
|
|
401
|
+
const current = this.sortBuffer[i];
|
|
402
|
+
let j = i - 1;
|
|
403
|
+
while (j >= 0 && this.sortBuffer[j] > current) {
|
|
404
|
+
this.sortBuffer[j + 1] = this.sortBuffer[j];
|
|
405
|
+
j--;
|
|
406
|
+
}
|
|
407
|
+
this.sortBuffer[j + 1] = current;
|
|
408
|
+
}
|
|
409
|
+
const index = Math.floor(len * .99);
|
|
410
|
+
return this.sortBuffer[Math.min(index, len - 1)];
|
|
386
411
|
}
|
|
387
412
|
calculateComplexityScore() {
|
|
388
413
|
return this.nodeCount + this.rttNodeCount * 10;
|
|
@@ -463,12 +488,14 @@ var PerformanceTracker = class {
|
|
|
463
488
|
};
|
|
464
489
|
}
|
|
465
490
|
reset() {
|
|
466
|
-
this.frameTimesMs =
|
|
467
|
-
this.frameIntervals =
|
|
491
|
+
this.frameTimesMs.length = 0;
|
|
492
|
+
this.frameIntervals.length = 0;
|
|
468
493
|
this.lastFrameTimestamp = 0;
|
|
469
494
|
this.jankFrameCount = 0;
|
|
470
495
|
this.totalFrameCount = 0;
|
|
471
|
-
this.memorySnapshots =
|
|
496
|
+
this.memorySnapshots.length = 0;
|
|
497
|
+
this.memorySnapshotIndex = 0;
|
|
498
|
+
this.sortBuffer.length = 0;
|
|
472
499
|
this.lastCpuTime = null;
|
|
473
500
|
this.lastGpuTime = null;
|
|
474
501
|
}
|
|
@@ -487,6 +514,7 @@ const applyUVTransform = (uv$1, offsetXUniform, offsetYUniform, rotationUniform,
|
|
|
487
514
|
const rotatedSquareUV = vec2(squareUV.x.mul(cosAngle).sub(squareUV.y.mul(sinAngle)), squareUV.x.mul(sinAngle).add(squareUV.y.mul(cosAngle)));
|
|
488
515
|
return vec2(rotatedSquareUV.x.div(aspectRatioUniform), rotatedSquareUV.y).sub(vec2(offsetXUniform, offsetYUniform)).add(anchor);
|
|
489
516
|
};
|
|
517
|
+
var updateTransformMap = new Map([[transformColor, transformColorUpdate], [transformPosition, transformPositionUpdate]]);
|
|
490
518
|
function createUniformsMap(component, reactiveProps, instanceId) {
|
|
491
519
|
const uniformsMap = {};
|
|
492
520
|
Object.entries(component.props).forEach(([propName, propConfig]) => {
|
|
@@ -523,9 +551,17 @@ function createUniformsMap(component, reactiveProps, instanceId) {
|
|
|
523
551
|
}
|
|
524
552
|
function updateUniformValue(uniform$1, newValue) {
|
|
525
553
|
if (uniform$1?.transform) {
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
554
|
+
const updateTransform = updateTransformMap.get(uniform$1.transform);
|
|
555
|
+
if (updateTransform) {
|
|
556
|
+
const newData = updateTransform(newValue);
|
|
557
|
+
if (uniform$1.uniform.value && typeof uniform$1.uniform.value.copy === "function") uniform$1.uniform.value.copy(newData);
|
|
558
|
+
else uniform$1.uniform.value = newData;
|
|
559
|
+
} else {
|
|
560
|
+
const transformed = uniform$1.transform(newValue);
|
|
561
|
+
const dataValue = transformed?.data ?? transformed;
|
|
562
|
+
if (uniform$1.uniform.value && typeof uniform$1.uniform.value.copy === "function" && dataValue && typeof dataValue.copy === "function") uniform$1.uniform.value.copy(dataValue);
|
|
563
|
+
else uniform$1.uniform.value = dataValue;
|
|
564
|
+
}
|
|
529
565
|
} else uniform$1.uniform.value = newValue;
|
|
530
566
|
}
|
|
531
567
|
var hasLoggedLicenseInfo = false;
|
|
@@ -643,10 +679,7 @@ function shaderRenderer() {
|
|
|
643
679
|
const performanceTracker = new PerformanceTracker();
|
|
644
680
|
let pendingRegistrationQueue = [];
|
|
645
681
|
let isRendererReady = false;
|
|
646
|
-
let
|
|
647
|
-
let registrationBatchRAF = null;
|
|
648
|
-
let metadataUpdateQueue = [];
|
|
649
|
-
let metadataUpdateBatchRAF = null;
|
|
682
|
+
let materialUpdateBatchRAF = null;
|
|
650
683
|
let lastComposedNodes = /* @__PURE__ */ new Set();
|
|
651
684
|
let activeRTTNodes = /* @__PURE__ */ new Set();
|
|
652
685
|
let actualRTTOperations = 0;
|
|
@@ -694,7 +727,7 @@ function shaderRenderer() {
|
|
|
694
727
|
}
|
|
695
728
|
});
|
|
696
729
|
});
|
|
697
|
-
renderFrame().catch(console.warn);
|
|
730
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
698
731
|
});
|
|
699
732
|
}
|
|
700
733
|
};
|
|
@@ -794,7 +827,7 @@ function shaderRenderer() {
|
|
|
794
827
|
} finally {
|
|
795
828
|
isUpdatingMaterial = false;
|
|
796
829
|
}
|
|
797
|
-
renderFrame().catch(console.warn);
|
|
830
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
798
831
|
};
|
|
799
832
|
const findChildNodes = (parentId) => {
|
|
800
833
|
const childIds = parentToChildren.get(parentId);
|
|
@@ -1609,10 +1642,8 @@ function shaderRenderer() {
|
|
|
1609
1642
|
childrenSet.add(id);
|
|
1610
1643
|
parentToChildren.set(parentId, childrenSet);
|
|
1611
1644
|
if (material && isInitialized && currentWidth > 0 && currentHeight > 0) {
|
|
1612
|
-
if (
|
|
1613
|
-
|
|
1614
|
-
registrationBatchRAF = null;
|
|
1615
|
-
registrationQueue = [];
|
|
1645
|
+
if (materialUpdateBatchRAF === null) materialUpdateBatchRAF = requestAnimationFrame(() => {
|
|
1646
|
+
materialUpdateBatchRAF = null;
|
|
1616
1647
|
updateMaterial();
|
|
1617
1648
|
});
|
|
1618
1649
|
} else if (material && isInitialized) {
|
|
@@ -1632,7 +1663,7 @@ function shaderRenderer() {
|
|
|
1632
1663
|
if (!uniformDefinition || !uniformDefinition.uniform) return;
|
|
1633
1664
|
if (uniformDefinition.transform) updateUniformValue(uniformDefinition, value);
|
|
1634
1665
|
else uniformDefinition.uniform.value = value;
|
|
1635
|
-
renderFrame();
|
|
1666
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1636
1667
|
};
|
|
1637
1668
|
const updateNodeMetadata = (nodeId, metadata) => {
|
|
1638
1669
|
const existingNode = nodeRegistry.nodes.get(nodeId);
|
|
@@ -1695,13 +1726,11 @@ function shaderRenderer() {
|
|
|
1695
1726
|
if (!oldTransformState && newTransformState && !existingNode.transformRTTActive) needsRecompose = true;
|
|
1696
1727
|
}
|
|
1697
1728
|
if (needsRecompose && material && isInitialized) {
|
|
1698
|
-
if (
|
|
1699
|
-
|
|
1700
|
-
metadataUpdateBatchRAF = null;
|
|
1701
|
-
metadataUpdateQueue = [];
|
|
1729
|
+
if (materialUpdateBatchRAF === null) materialUpdateBatchRAF = requestAnimationFrame(() => {
|
|
1730
|
+
materialUpdateBatchRAF = null;
|
|
1702
1731
|
updateMaterial();
|
|
1703
1732
|
});
|
|
1704
|
-
} else renderFrame();
|
|
1733
|
+
} else if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1705
1734
|
};
|
|
1706
1735
|
const removeNode = (id) => {
|
|
1707
1736
|
if (!nodeRegistry.nodes.has(id)) return;
|
|
@@ -1768,8 +1797,11 @@ function shaderRenderer() {
|
|
|
1768
1797
|
const currentTime = frameStartTime || performance.now();
|
|
1769
1798
|
const deltaTime = lastRenderTime > 0 ? (currentTime - lastRenderTime) / 1e3 : .016;
|
|
1770
1799
|
const OFF_SCREEN_FPS_INTERVAL = 1e3;
|
|
1771
|
-
|
|
1772
|
-
|
|
1800
|
+
const MIN_FRAME_INTERVAL = 1e3 / 120;
|
|
1801
|
+
if (lastRenderTime > 0) {
|
|
1802
|
+
const timeSinceLastRender = currentTime - lastRenderTime;
|
|
1803
|
+
if (!isVisible && timeSinceLastRender < OFF_SCREEN_FPS_INTERVAL) return;
|
|
1804
|
+
if (isVisible && timeSinceLastRender < MIN_FRAME_INTERVAL) return;
|
|
1773
1805
|
}
|
|
1774
1806
|
const cappedDeltaTime = Math.min(deltaTime, .1);
|
|
1775
1807
|
lastRenderTime = currentTime;
|
|
@@ -1873,20 +1905,20 @@ function shaderRenderer() {
|
|
|
1873
1905
|
const globalMouseUpHandler = () => {
|
|
1874
1906
|
if (!isInitialized) return;
|
|
1875
1907
|
pointerActive = false;
|
|
1876
|
-
renderFrame().catch(console.warn);
|
|
1908
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1877
1909
|
};
|
|
1878
1910
|
const globalTouchEndHandler = () => {
|
|
1879
1911
|
if (!isInitialized) return;
|
|
1880
1912
|
pointerActive = false;
|
|
1881
|
-
renderFrame().catch(console.warn);
|
|
1913
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1882
1914
|
};
|
|
1883
1915
|
const canvasMouseDownHandler = () => {
|
|
1884
1916
|
pointerActive = true;
|
|
1885
|
-
renderFrame().catch(console.warn);
|
|
1917
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1886
1918
|
};
|
|
1887
1919
|
const canvasTouchStartHandler = () => {
|
|
1888
1920
|
pointerActive = true;
|
|
1889
|
-
renderFrame().catch(console.warn);
|
|
1921
|
+
if (!animationFrameId) renderFrame().catch(console.warn);
|
|
1890
1922
|
};
|
|
1891
1923
|
const processQueuedRegistrations = () => {
|
|
1892
1924
|
if (pendingRegistrationQueue.length === 0) return;
|
|
@@ -2045,15 +2077,9 @@ function shaderRenderer() {
|
|
|
2045
2077
|
parentToChildren.clear();
|
|
2046
2078
|
pendingRegistrationQueue = [];
|
|
2047
2079
|
isRendererReady = false;
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
registrationBatchRAF = null;
|
|
2052
|
-
}
|
|
2053
|
-
metadataUpdateQueue = [];
|
|
2054
|
-
if (metadataUpdateBatchRAF !== null) {
|
|
2055
|
-
cancelAnimationFrame(metadataUpdateBatchRAF);
|
|
2056
|
-
metadataUpdateBatchRAF = null;
|
|
2080
|
+
if (materialUpdateBatchRAF !== null) {
|
|
2081
|
+
cancelAnimationFrame(materialUpdateBatchRAF);
|
|
2082
|
+
materialUpdateBatchRAF = null;
|
|
2057
2083
|
}
|
|
2058
2084
|
pendingResize = null;
|
|
2059
2085
|
isResizeScheduled = false;
|
|
@@ -33,7 +33,8 @@ export declare class PerformanceTracker {
|
|
|
33
33
|
private jankFrameCount;
|
|
34
34
|
private totalFrameCount;
|
|
35
35
|
private memorySnapshots;
|
|
36
|
-
private
|
|
36
|
+
private memorySnapshotIndex;
|
|
37
|
+
private readonly maxMemorySnapshots;
|
|
37
38
|
private nodeCount;
|
|
38
39
|
private rttNodeCount;
|
|
39
40
|
private lastCpuTime;
|
|
@@ -63,18 +64,23 @@ export declare class PerformanceTracker {
|
|
|
63
64
|
setRendering(rendering: boolean): void;
|
|
64
65
|
/**
|
|
65
66
|
* Records a memory snapshot for growth rate calculation
|
|
67
|
+
* Uses circular buffer to avoid GC pressure from allocations
|
|
66
68
|
*/
|
|
67
69
|
private recordMemorySnapshot;
|
|
68
70
|
/**
|
|
69
71
|
* Calculates memory growth rate in MB/sec
|
|
72
|
+
* Works with circular buffer - oldest is at write index, newest is before it
|
|
70
73
|
*/
|
|
71
74
|
private calculateMemoryGrowthRate;
|
|
72
75
|
/**
|
|
73
76
|
* Calculates standard deviation of frame times
|
|
77
|
+
* Optimized to avoid array allocations
|
|
74
78
|
*/
|
|
75
79
|
private calculateStdDev;
|
|
80
|
+
private sortBuffer;
|
|
76
81
|
/**
|
|
77
82
|
* Calculates 99th percentile frame time
|
|
83
|
+
* Uses pre-allocated buffer and in-place sorting to avoid allocations
|
|
78
84
|
*/
|
|
79
85
|
private calculateP99;
|
|
80
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performanceTracker.d.ts","sourceRoot":"","sources":["../src/performanceTracker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAE7B,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,C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AG,CAAC,MAAM,CAAC,KACrC,IAAI;gCA0LI,QAAQ,EAAE,kBACD,GAAG,CAAC,MAAM,CAAC,2BACF,GAAG,CAAC,MAAM,CAAC,KACrC,IAAI;uCAgHI,QAAQ,EAAE,gBACH,IAAI,2BACO,GAAG,CAAC,MAAM,CAAC,KACrC,IAAI;uDAsHa,QAAQ,EAAE,kBACV,GAAG,CAAC,MAAM,CAAC,2BACF,GAAG,CAAC,MAAM,CAAC,KACrC,IAAI;oCApnBK,IAAI,YACF,QAAQ,UACV,MAAM,kBACE,GAAG,CAAC,MAAM,CAAC,gBACb,IAAI,KACnB,IAAI;0CAuCK,IAAI,YACF,QAAQ,KACnB,IAAI;;;;EAy8EV"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as AngularBlur_default } from "../../AngularBlur-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as AngularBlur_default } from "../../AngularBlur-CuwAjUOA.js";
|
|
3
3
|
export { componentDefinition, AngularBlur_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Ascii/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAMvE,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Ascii/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAMvE,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAqdnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Ascii_default } from "../../Ascii-
|
|
1
|
+
import { n as componentDefinition, t as Ascii_default } from "../../Ascii-Dxk6VaBp.js";
|
|
2
2
|
export { componentDefinition, Ascii_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Beam_default } from "../../Beam-
|
|
3
|
+
import { n as componentDefinition, t as Beam_default } from "../../Beam-DCaOPIk_.js";
|
|
4
4
|
export { componentDefinition, Beam_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import "../../time-DgRTVr2F.js";
|
|
3
3
|
import "../../colorMixing-CZPFmiT4.js";
|
|
4
|
-
import { n as componentDefinition, t as Blob_default } from "../../Blob-
|
|
4
|
+
import { n as componentDefinition, t as Blob_default } from "../../Blob-8YqXuE5v.js";
|
|
5
5
|
export { componentDefinition, Blob_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Djr_12SL.js";
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as Bulge_default } from "../../Bulge-
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as Bulge_default } from "../../Bulge-D9mLn8-p.js";
|
|
4
4
|
export { componentDefinition, Bulge_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Checkerboard_default } from "../../Checkerboard-
|
|
3
|
+
import { n as componentDefinition, t as Checkerboard_default } from "../../Checkerboard-DjrQsDvl.js";
|
|
4
4
|
export { componentDefinition, Checkerboard_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/ChromaFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAGlE,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,OAAO,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/ChromaFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAGlE,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,OAAO,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAgTnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ChromaFlow_default } from "../../ChromaFlow-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as ChromaFlow_default } from "../../ChromaFlow-DhzC_8Ne.js";
|
|
3
3
|
export { componentDefinition, ChromaFlow_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ChromaticAberration_default } from "../../ChromaticAberration-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as ChromaticAberration_default } from "../../ChromaticAberration-hi7WGiVk.js";
|
|
3
3
|
export { componentDefinition, ChromaticAberration_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Circle_default } from "../../Circle-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as Circle_default } from "../../Circle-BSAdYHYZ.js";
|
|
3
3
|
export { componentDefinition, Circle_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as CursorTrail_default } from "../../CursorTrail-
|
|
3
|
+
import { n as componentDefinition, t as CursorTrail_default } from "../../CursorTrail-B9EQ9FsP.js";
|
|
4
4
|
export { componentDefinition, CursorTrail_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Djr_12SL.js";
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as DiffuseBlur_default } from "../../DiffuseBlur-
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as DiffuseBlur_default } from "../../DiffuseBlur-B-QHWSjt.js";
|
|
4
4
|
export { componentDefinition, DiffuseBlur_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Dither_default } from "../../Dither-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as Dither_default } from "../../Dither-Bb5rLGEI.js";
|
|
3
3
|
export { componentDefinition, Dither_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as DotGrid_default } from "../../DotGrid-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as DotGrid_default } from "../../DotGrid-BJyEY7YH.js";
|
|
3
3
|
export { componentDefinition, DotGrid_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Duotone_default } from "../../Duotone-
|
|
3
|
+
import { n as componentDefinition, t as Duotone_default } from "../../Duotone-CRwhugbV.js";
|
|
4
4
|
export { componentDefinition, Duotone_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as FloatingParticles_default } from "../../FloatingParticles-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as FloatingParticles_default } from "../../FloatingParticles-Ct7GMVzZ.js";
|
|
3
3
|
export { componentDefinition, FloatingParticles_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Godrays_default } from "../../Godrays-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as Godrays_default } from "../../Godrays-fJIUiGke.js";
|
|
3
3
|
export { componentDefinition, Godrays_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Grid_default } from "../../Grid-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as Grid_default } from "../../Grid-o_nFs0CE.js";
|
|
3
3
|
export { componentDefinition, Grid_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Djr_12SL.js";
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as GridDistortion_default } from "../../GridDistortion-
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as GridDistortion_default } from "../../GridDistortion-xuUXyMGP.js";
|
|
4
4
|
export { componentDefinition, GridDistortion_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-Ddrldk6b.js";
|
|
3
3
|
export { componentDefinition, Halftone_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-cYfqaOhb.js";
|
|
3
3
|
export { componentDefinition, LinearBlur_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-
|
|
3
|
+
import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-DN_FYXL2.js";
|
|
4
4
|
export { componentDefinition, LinearGradient_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Djr_12SL.js";
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as Liquify_default } from "../../Liquify-
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as Liquify_default } from "../../Liquify-Qm_y-apj.js";
|
|
4
4
|
export { componentDefinition, Liquify_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Djr_12SL.js";
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-DfjOpgDQ.js";
|
|
4
4
|
export { componentDefinition, PolarCoordinates_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-XD4ivmMn.js";
|
|
3
3
|
export { componentDefinition, ProgressiveBlur_default as default };
|