shaders 2.2.29 → 2.2.31
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-CbG4MkLo.js} +3 -4
- package/dist/core/{Blob-nssNzEgN.js → Blob-C_fYRjJF.js} +4 -5
- package/dist/core/{Bulge-Dm02_fG6.js → Bulge-C8-_hIFp.js} +2 -21
- package/dist/core/{Checkerboard-SKsXoUXE.js → Checkerboard-D_H3XYbF.js} +3 -4
- 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-DI0gXpyD.js} +3 -4
- package/dist/core/{CursorTrail-CfVWIKok.js → CursorTrail-B9EQ9FsP.js} +1 -1
- package/dist/core/{DiffuseBlur-GWPb8Zht.js → DiffuseBlur-Cg7AsB3W.js} +2 -13
- package/dist/core/{Dither-BNEeyo0u.js → Dither-Bb5rLGEI.js} +1 -1
- package/dist/core/{DotGrid-CRRS6nbt.js → DotGrid-B2DXsjFE.js} +3 -4
- package/dist/core/{Duotone-5gKND3an.js → Duotone-CRwhugbV.js} +1 -1
- package/dist/core/{FilmGrain-osBGk_b9.js → FilmGrain-CY4ZO9UI.js} +2 -3
- package/dist/core/{FloatingParticles-CULOurGT.js → FloatingParticles-BduIDXKd.js} +3 -4
- package/dist/core/{GlassTiles-CA90XrNT.js → GlassTiles-uW7j91uC.js} +1 -13
- package/dist/core/{Godrays-BQsDwU26.js → Godrays-ChqiT2zn.js} +3 -4
- package/dist/core/{Grid-CWHxwO7R.js → Grid-DazyiX15.js} +3 -4
- package/dist/core/{GridDistortion-CZB9w-rv.js → GridDistortion-CYQUwuXw.js} +2 -2
- package/dist/core/{Halftone-MMcLMRpL.js → Halftone-Ddrldk6b.js} +1 -1
- package/dist/core/{ImageTexture-D9OMwqAs.js → ImageTexture-D0xwHmkW.js} +2 -3
- package/dist/core/{LinearBlur-B-Ikurxt.js → LinearBlur-cYfqaOhb.js} +1 -1
- package/dist/core/{LinearGradient-DV6UkhZk.js → LinearGradient-B6ySxWpU.js} +3 -4
- package/dist/core/{Liquify-W8UQNeEM.js → Liquify-yoKWSK0F.js} +2 -8
- package/dist/core/{Pixelate-_pyYeLRP.js → Pixelate-BmE_Zryn.js} +0 -4
- package/dist/core/{PolarCoordinates-D63xm0oJ.js → PolarCoordinates-PLyS00-P.js} +2 -11
- package/dist/core/{ProgressiveBlur-G-s-o9ic.js → ProgressiveBlur-XD4ivmMn.js} +1 -1
- package/dist/core/{RadialGradient-BGVqSwh0.js → RadialGradient-pwKyDUBu.js} +3 -4
- package/dist/core/{RectangularCoordinates-DyHBo456.js → RectangularCoordinates-Dq2JrmOX.js} +2 -11
- package/dist/core/{Ripples-2FGWCZlp.js → Ripples-Ot1rx8kL.js} +4 -5
- package/dist/core/{SimplexNoise-B6dtUCmn.js → SimplexNoise-BfilWh05.js} +4 -5
- package/dist/core/{SineWave-BtPf6-2H.js → SineWave-DRqL-jda.js} +3 -4
- package/dist/core/{SolidColor-CETl1cEr.js → SolidColor-B62ZBRlK.js} +1 -2
- package/dist/core/{Spherize-BwvUcorJ.js → Spherize-DDP0_5VP.js} +1 -1
- package/dist/core/{Spiral-DmJWmUmr.js → Spiral-Cx7Z8gLc.js} +3 -4
- package/dist/core/{Strands-CV1oCmHx.js → Strands-C9FBVtDe.js} +4 -5
- package/dist/core/{Stretch-pl-Cn2F8.js → Stretch-BCpOO3q6.js} +2 -21
- package/dist/core/{Swirl-D65vXLDw.js → Swirl-KUjGnUAM.js} +4 -5
- 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-EJ3aS_lo.js} +2 -12
- package/dist/core/{WaveDistortion-DG8GO_l8.js → WaveDistortion-BOWBSWEU.js} +2 -24
- package/dist/core/{ZoomBlur-C01oGwwG.js → ZoomBlur-gB0BxldE.js} +1 -1
- package/dist/core/{edges-Djr_12SL.js → edges-Bd7GP4s2.js} +1 -10
- package/dist/core/index.js +198 -653
- package/dist/core/performanceTracker.d.ts +7 -1
- package/dist/core/performanceTracker.d.ts.map +1 -1
- package/dist/core/renderer.d.ts +0 -21
- 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.d.ts.map +1 -1
- package/dist/core/shaders/Beam/index.js +2 -2
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/Bulge/index.d.ts.map +1 -1
- package/dist/core/shaders/Bulge/index.js +3 -3
- package/dist/core/shaders/Checkerboard/index.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/core/shaders/Circle/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +2 -2
- package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +3 -3
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.d.ts.map +1 -1
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +2 -2
- package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/GlassTiles/index.d.ts.map +1 -1
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Grid/index.d.ts.map +1 -1
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +3 -3
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.d.ts.map +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearGradient/index.js +2 -2
- package/dist/core/shaders/Liquify/index.d.ts.map +1 -1
- package/dist/core/shaders/Liquify/index.js +3 -3
- package/dist/core/shaders/Pixelate/index.d.ts.map +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +3 -3
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/RadialGradient/index.js +2 -2
- package/dist/core/shaders/RectangularCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +3 -3
- package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.d.ts.map +1 -1
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.d.ts.map +1 -1
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.d.ts.map +1 -1
- package/dist/core/shaders/Spiral/index.js +2 -2
- package/dist/core/shaders/Strands/index.d.ts.map +1 -1
- package/dist/core/shaders/Strands/index.js +3 -3
- package/dist/core/shaders/Stretch/index.d.ts.map +1 -1
- package/dist/core/shaders/Stretch/index.js +3 -3
- package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/core/shaders/Twirl/index.js +3 -3
- package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +3 -3
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/{transformations-Dv5JW9ck.js → transformations-YbhRK-rd.js} +51 -1
- package/dist/core/types.d.ts +0 -81
- package/dist/core/types.d.ts.map +1 -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/dist/registry.js +0 -19
- package/package.json +1 -1
- /package/dist/core/{time-CTJvRUZ4.js → time-DgRTVr2F.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Stretch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Stretch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAOvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAkHnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../edges-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-
|
|
1
|
+
import "../../edges-Bd7GP4s2.js";
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-BCpOO3q6.js";
|
|
4
4
|
export { componentDefinition, Stretch_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Swirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAQvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Swirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAQvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAyMnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -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 Swirl_default } from "../../Swirl-
|
|
4
|
+
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-KUjGnUAM.js";
|
|
5
5
|
export { componentDefinition, Swirl_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-CvKqM1xk.js";
|
|
3
3
|
export { componentDefinition, TiltShift_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 Tritone_default } from "../../Tritone-
|
|
3
|
+
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-BeEJj4U0.js";
|
|
4
4
|
export { componentDefinition, Tritone_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Twirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Twirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAMvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAoFnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../edges-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-
|
|
1
|
+
import "../../edges-Bd7GP4s2.js";
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-EJ3aS_lo.js";
|
|
4
4
|
export { componentDefinition, Twirl_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/WaveDistortion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/WaveDistortion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAOvE,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAmLnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../edges-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-
|
|
1
|
+
import "../../edges-Bd7GP4s2.js";
|
|
2
|
+
import "../../transformations-YbhRK-rd.js";
|
|
3
|
+
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-BOWBSWEU.js";
|
|
4
4
|
export { componentDefinition, WaveDistortion_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-
|
|
1
|
+
import "../../transformations-YbhRK-rd.js";
|
|
2
|
+
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-gB0BxldE.js";
|
|
3
3
|
export { componentDefinition, ZoomBlur_default as default };
|
|
@@ -4583,6 +4583,16 @@ Color.extend(chromaticity);
|
|
|
4583
4583
|
Color.extend(luminance);
|
|
4584
4584
|
Color.extend(interpolation);
|
|
4585
4585
|
Color.extend(contrastMethods);
|
|
4586
|
+
var reusableVector4 = null;
|
|
4587
|
+
var reusableVector2 = null;
|
|
4588
|
+
var getReusableVector4 = () => {
|
|
4589
|
+
if (!reusableVector4) reusableVector4 = new Vector4();
|
|
4590
|
+
return reusableVector4;
|
|
4591
|
+
};
|
|
4592
|
+
var getReusableVector2 = () => {
|
|
4593
|
+
if (!reusableVector2) reusableVector2 = new Vector2();
|
|
4594
|
+
return reusableVector2;
|
|
4595
|
+
};
|
|
4586
4596
|
const transformColor = (value) => {
|
|
4587
4597
|
const threeColor = new Color(value);
|
|
4588
4598
|
const coords = threeColor.to("p3-linear").coords;
|
|
@@ -4592,6 +4602,11 @@ const transformColor = (value) => {
|
|
|
4592
4602
|
data: new Vector4(r, g$1, b$2, a$1)
|
|
4593
4603
|
};
|
|
4594
4604
|
};
|
|
4605
|
+
const transformColorUpdate = (value) => {
|
|
4606
|
+
const threeColor = new Color(value);
|
|
4607
|
+
const coords = threeColor.to("p3-linear").coords;
|
|
4608
|
+
return getReusableVector4().set(coords[0], coords[1], coords[2], threeColor.alpha);
|
|
4609
|
+
};
|
|
4595
4610
|
const transformPosition = (value) => {
|
|
4596
4611
|
let x = .5;
|
|
4597
4612
|
let y = .5;
|
|
@@ -4632,6 +4647,41 @@ const transformPosition = (value) => {
|
|
|
4632
4647
|
data: new Vector2(x, finalY)
|
|
4633
4648
|
};
|
|
4634
4649
|
};
|
|
4650
|
+
const transformPositionUpdate = (value) => {
|
|
4651
|
+
let x = .5;
|
|
4652
|
+
let y = .5;
|
|
4653
|
+
const parsePositionValue = (val, isVertical = false) => {
|
|
4654
|
+
if (typeof val === "number") return val;
|
|
4655
|
+
const str = val.toLowerCase().trim();
|
|
4656
|
+
if (isVertical) {
|
|
4657
|
+
if (str === "top") return 0;
|
|
4658
|
+
if (str === "bottom") return 1;
|
|
4659
|
+
if (str === "center") return .5;
|
|
4660
|
+
} else {
|
|
4661
|
+
if (str === "left") return 0;
|
|
4662
|
+
if (str === "right") return 1;
|
|
4663
|
+
if (str === "center") return .5;
|
|
4664
|
+
}
|
|
4665
|
+
return .5;
|
|
4666
|
+
};
|
|
4667
|
+
if (typeof value === "string") {
|
|
4668
|
+
const parts = value.toLowerCase().trim().split(/\s+/);
|
|
4669
|
+
if (parts.includes("left")) x = 0;
|
|
4670
|
+
else if (parts.includes("right")) x = 1;
|
|
4671
|
+
else if (parts.includes("center") || parts.length === 1 && (parts[0] === "top" || parts[0] === "bottom")) x = .5;
|
|
4672
|
+
if (parts.includes("top")) y = 0;
|
|
4673
|
+
else if (parts.includes("bottom")) y = 1;
|
|
4674
|
+
else if (parts.includes("center") || parts.length === 1 && (parts[0] === "left" || parts[0] === "right")) y = .5;
|
|
4675
|
+
if (parts.length === 1 && parts[0] === "center") {
|
|
4676
|
+
x = .5;
|
|
4677
|
+
y = .5;
|
|
4678
|
+
}
|
|
4679
|
+
} else if (typeof value === "object" && value !== null) {
|
|
4680
|
+
x = parsePositionValue(value.x, false);
|
|
4681
|
+
y = parsePositionValue(value.y, true);
|
|
4682
|
+
}
|
|
4683
|
+
return getReusableVector2().set(x, 1 - y);
|
|
4684
|
+
};
|
|
4635
4685
|
const transformAngle = (value) => {
|
|
4636
4686
|
if (typeof value === "number") return (value % 360 + 360) % 360;
|
|
4637
4687
|
const str = value.toLowerCase().trim();
|
|
@@ -4711,4 +4761,4 @@ const transformColorSpace = (value) => {
|
|
|
4711
4761
|
}
|
|
4712
4762
|
return mode;
|
|
4713
4763
|
};
|
|
4714
|
-
export {
|
|
4764
|
+
export { transformColorUpdate as a, transformPositionUpdate as c, transformColorSpace as i, transformAngle as n, transformEdges as o, transformColor as r, transformPosition as s, colorSpaceOptions as t };
|
package/dist/core/types.d.ts
CHANGED
|
@@ -161,25 +161,6 @@ export interface ResizeCallbackParams {
|
|
|
161
161
|
* Function that is called when the canvas resizes
|
|
162
162
|
*/
|
|
163
163
|
export type ResizeCallback = (params: ResizeCallbackParams) => void;
|
|
164
|
-
/**
|
|
165
|
-
* Parameters for UV transformation function.
|
|
166
|
-
* Used by shaders that can have their UV transforms composed
|
|
167
|
-
* without intermediate render-to-texture boundaries.
|
|
168
|
-
*/
|
|
169
|
-
export interface UVTransformParams {
|
|
170
|
-
/**
|
|
171
|
-
* Input UV coordinates (may already be pre-transformed by inner shaders)
|
|
172
|
-
*/
|
|
173
|
-
uv: Node;
|
|
174
|
-
/**
|
|
175
|
-
* The component's uniforms
|
|
176
|
-
*/
|
|
177
|
-
uniforms: UniformsMap;
|
|
178
|
-
/**
|
|
179
|
-
* Viewport dimensions as a TSL node for aspect ratio calculations
|
|
180
|
-
*/
|
|
181
|
-
viewportSize: Node;
|
|
182
|
-
}
|
|
183
164
|
/**
|
|
184
165
|
* Parameters for fragment node function
|
|
185
166
|
*/
|
|
@@ -231,25 +212,6 @@ export interface FragmentNodeParams {
|
|
|
231
212
|
* This is useful for manual render target management in RTT effects
|
|
232
213
|
*/
|
|
233
214
|
renderer: any;
|
|
234
|
-
/**
|
|
235
|
-
* UV context passed down from parent distortions.
|
|
236
|
-
*
|
|
237
|
-
* When a generator is rendered as the terminus of a UV-composable distortion chain,
|
|
238
|
-
* this contains the pre-composed UV coordinates from all ancestor distortions.
|
|
239
|
-
*
|
|
240
|
-
* Generators that set `acceptsUVContext: true` should use this instead of `screenUV`
|
|
241
|
-
* when provided, enabling infinitely sharp distortion effects by computing pixels
|
|
242
|
-
* at their final distorted positions rather than sampling RTT content.
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```typescript
|
|
246
|
-
* fragmentNode: ({ uvContext }: FragmentNodeParams) => {
|
|
247
|
-
* const uv = uvContext ?? screenUV // Use composed UV if available
|
|
248
|
-
* // ... compute color based on uv
|
|
249
|
-
* }
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
uvContext?: Node;
|
|
253
215
|
}
|
|
254
216
|
/**
|
|
255
217
|
* The definition of a component within the Shader library.
|
|
@@ -288,48 +250,5 @@ export interface ComponentDefinition<T extends ComponentProps = ComponentProps>
|
|
|
288
250
|
* A function that returns the Three TSL fragment node for this component.
|
|
289
251
|
*/
|
|
290
252
|
fragmentNode: (params: FragmentNodeParams) => Node;
|
|
291
|
-
/**
|
|
292
|
-
* Optional UV transformation function for composable distortion effects.
|
|
293
|
-
*
|
|
294
|
-
* When provided, indicates this shader performs a pure UV transformation that
|
|
295
|
-
* can be mathematically composed with other UV transforms without intermediate
|
|
296
|
-
* render-to-texture (RTT) boundaries.
|
|
297
|
-
*
|
|
298
|
-
* The renderer will detect chains of UV-composable shaders and compose their
|
|
299
|
-
* UV transformations, sampling the source content only once at the end of the chain.
|
|
300
|
-
* This eliminates viewport cropping issues that occur with intermediate RTT passes.
|
|
301
|
-
*
|
|
302
|
-
* When this function is defined:
|
|
303
|
-
* - The shader is considered "UV-composable"
|
|
304
|
-
* - Multiple consecutive UV transforms will be composed mathematically
|
|
305
|
-
* - `fragmentNode` is used as fallback when the chain breaks (non-UV effect encountered)
|
|
306
|
-
*
|
|
307
|
-
* @param params.uv - Input UV coordinates (may be pre-transformed by inner shaders)
|
|
308
|
-
* @param params.uniforms - Component uniforms
|
|
309
|
-
* @param params.viewportSize - Viewport dimensions for aspect ratio calculations
|
|
310
|
-
* @returns Transformed UV coordinates as a vec2 Node
|
|
311
|
-
*/
|
|
312
|
-
uvTransformNode?: (params: UVTransformParams) => Node;
|
|
313
|
-
/**
|
|
314
|
-
* Whether this shader accepts UV context from parent distortions.
|
|
315
|
-
*
|
|
316
|
-
* When true, the fragmentNode function should use `params.uvContext ?? screenUV`
|
|
317
|
-
* for UV-based calculations instead of directly using `screenUV`.
|
|
318
|
-
*
|
|
319
|
-
* This enables the "UV Context Propagation" optimization where generators compute
|
|
320
|
-
* pixels at distorted UV positions directly, producing infinitely sharp results
|
|
321
|
-
* without RTT interpolation blur.
|
|
322
|
-
*
|
|
323
|
-
* Set to true for:
|
|
324
|
-
* - Procedural generators (Checkerboard, Gradient, Noise, etc.)
|
|
325
|
-
* - Texture sources (ImageTexture, Video)
|
|
326
|
-
*
|
|
327
|
-
* Leave false/undefined for:
|
|
328
|
-
* - Effects that operate on child content (filters, blurs, etc.)
|
|
329
|
-
* - Effects that require specific UV relationships (masks, etc.)
|
|
330
|
-
*
|
|
331
|
-
* @default false
|
|
332
|
-
*/
|
|
333
|
-
acceptsUVContext?: boolean;
|
|
334
253
|
}
|
|
335
254
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAGpE,YAAY,EAAC,eAAe,EAAC,CAAA;AAE7B,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,GAAG,CAAA;IACZ,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,WAAW,GAAG,mBAAmB,CAAA;AAEpF;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,WAAW;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,G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jB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,EAAE;SACF,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACnC,CAAA;IAED;;OAEG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACrD"}
|
|
@@ -14,6 +14,13 @@ export declare const transformColor: (value: string) => {
|
|
|
14
14
|
node: any;
|
|
15
15
|
data: Vector4;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Update-optimized color transform that reuses a single Vector4 instance.
|
|
19
|
+
* ONLY use for uniform updates - the returned vector is reused and will be overwritten.
|
|
20
|
+
* @param value - Color string (hex, rgb, etc.)
|
|
21
|
+
* @returns Reusable Vector4 with color data (do NOT store reference long-term)
|
|
22
|
+
*/
|
|
23
|
+
export declare const transformColorUpdate: (value: string) => Vector4;
|
|
17
24
|
/**
|
|
18
25
|
* Converts a position value into both TSL node and raw data.
|
|
19
26
|
* Accepts either an object {x: number, y: number} or a CSS-style string
|
|
@@ -31,6 +38,16 @@ export declare const transformPosition: (value: {
|
|
|
31
38
|
node: any;
|
|
32
39
|
data: Vector2;
|
|
33
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Update-optimized position transform that reuses a single Vector2 instance.
|
|
43
|
+
* ONLY use for uniform updates - the returned vector is reused and will be overwritten.
|
|
44
|
+
* @param value - Position value ({x, y} object or CSS-style string)
|
|
45
|
+
* @returns Reusable Vector2 with position data (do NOT store reference long-term)
|
|
46
|
+
*/
|
|
47
|
+
export declare const transformPositionUpdate: (value: {
|
|
48
|
+
x: number | string;
|
|
49
|
+
y: number | string;
|
|
50
|
+
} | string) => Vector2;
|
|
34
51
|
/**
|
|
35
52
|
* Transform angle values into normalized degrees (0-360).
|
|
36
53
|
* Supports numerical angles with automatic wrapping and CSS-style gradient directions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformations.d.ts","sourceRoot":"","sources":["../../src/utilities/transformations.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"transformations.d.ts","sourceRoot":"","sources":["../../src/utilities/transformations.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,OAAO,CAAA;AAuBtC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAW,OAAO,WAAkB,CAAA;AAEjE;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM;UAKV,GAAG;;CAGpC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,OAIpD,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM;UA4DzD,GAAG;;CAGnC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM,KAAG,OAiDlG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,MAAM,KAAG,MAyEvD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAe9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;GAI7B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UAAW,MAAM,KAAG,MAcnD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAUhE,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,UAAU,EAAE,MAAM,GACnB,WAAW,CAkDb;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,QAAQ,EAAE,GAAG,GACd,IAAI,CA6BN"}
|
package/dist/registry.js
CHANGED
|
@@ -227,7 +227,6 @@ export const shaderRegistry = [
|
|
|
227
227
|
"name": "Beam",
|
|
228
228
|
"category": "Base Layers",
|
|
229
229
|
"description": "A beam of light from one point to another.",
|
|
230
|
-
"acceptsUVContext": true,
|
|
231
230
|
"props": {
|
|
232
231
|
"startPosition": {
|
|
233
232
|
"default": {
|
|
@@ -451,7 +450,6 @@ export const shaderRegistry = [
|
|
|
451
450
|
"name": "Blob",
|
|
452
451
|
"category": "Base Layers",
|
|
453
452
|
"description": "Organic animated blob with 3D lighting and gradients",
|
|
454
|
-
"acceptsUVContext": true,
|
|
455
453
|
"props": {
|
|
456
454
|
"colorA": {
|
|
457
455
|
"default": "#ff6b35",
|
|
@@ -1061,7 +1059,6 @@ export const shaderRegistry = [
|
|
|
1061
1059
|
"name": "Checkerboard",
|
|
1062
1060
|
"category": "Base Layers",
|
|
1063
1061
|
"description": "Classic checkerboard pattern with two alternating colors",
|
|
1064
|
-
"acceptsUVContext": true,
|
|
1065
1062
|
"props": {
|
|
1066
1063
|
"colorA": {
|
|
1067
1064
|
"default": "#cccccc",
|
|
@@ -1486,7 +1483,6 @@ export const shaderRegistry = [
|
|
|
1486
1483
|
"name": "Circle",
|
|
1487
1484
|
"category": "Base Layers",
|
|
1488
1485
|
"description": "Generate a circle with adjustable size and softness",
|
|
1489
|
-
"acceptsUVContext": true,
|
|
1490
1486
|
"props": {
|
|
1491
1487
|
"color": {
|
|
1492
1488
|
"default": "#ffffff",
|
|
@@ -2076,7 +2072,6 @@ export const shaderRegistry = [
|
|
|
2076
2072
|
"name": "DotGrid",
|
|
2077
2073
|
"category": "Base Layers",
|
|
2078
2074
|
"description": "Grid of dots with optional twinkling animation",
|
|
2079
|
-
"acceptsUVContext": true,
|
|
2080
2075
|
"props": {
|
|
2081
2076
|
"color": {
|
|
2082
2077
|
"default": "#ffffff",
|
|
@@ -2292,7 +2287,6 @@ export const shaderRegistry = [
|
|
|
2292
2287
|
"category": "Stylize",
|
|
2293
2288
|
"description": "Analog film grain texture overlay",
|
|
2294
2289
|
"requiresChild": true,
|
|
2295
|
-
"acceptsUVContext": true,
|
|
2296
2290
|
"props": {
|
|
2297
2291
|
"strength": {
|
|
2298
2292
|
"default": 0.5,
|
|
@@ -2331,7 +2325,6 @@ export const shaderRegistry = [
|
|
|
2331
2325
|
"category": "Base Layers",
|
|
2332
2326
|
"description": "Animated floating particles with twinkle effects",
|
|
2333
2327
|
"requiresRTT": false,
|
|
2334
|
-
"acceptsUVContext": true,
|
|
2335
2328
|
"props": {
|
|
2336
2329
|
"randomness": {
|
|
2337
2330
|
"default": 0.25,
|
|
@@ -2730,7 +2723,6 @@ export const shaderRegistry = [
|
|
|
2730
2723
|
"category": "Base Layers",
|
|
2731
2724
|
"description": "Volumetric light rays emanating from a point",
|
|
2732
2725
|
"requiresRTT": false,
|
|
2733
|
-
"acceptsUVContext": true,
|
|
2734
2726
|
"props": {
|
|
2735
2727
|
"center": {
|
|
2736
2728
|
"default": {
|
|
@@ -2903,7 +2895,6 @@ export const shaderRegistry = [
|
|
|
2903
2895
|
"name": "Grid",
|
|
2904
2896
|
"category": "Base Layers",
|
|
2905
2897
|
"description": "Simple grid lines pattern with adjustable thickness",
|
|
2906
|
-
"acceptsUVContext": true,
|
|
2907
2898
|
"props": {
|
|
2908
2899
|
"color": {
|
|
2909
2900
|
"default": "#ffffff",
|
|
@@ -3296,7 +3287,6 @@ export const shaderRegistry = [
|
|
|
3296
3287
|
"name": "ImageTexture",
|
|
3297
3288
|
"category": "Base Layers",
|
|
3298
3289
|
"description": "Display an image with customizable object-fit modes",
|
|
3299
|
-
"acceptsUVContext": true,
|
|
3300
3290
|
"props": {
|
|
3301
3291
|
"url": {
|
|
3302
3292
|
"default": "https://shaders.com/sample.jpg",
|
|
@@ -3465,7 +3455,6 @@ export const shaderRegistry = [
|
|
|
3465
3455
|
"name": "LinearGradient",
|
|
3466
3456
|
"category": "Base Layers",
|
|
3467
3457
|
"description": "Create smooth linear color gradients",
|
|
3468
|
-
"acceptsUVContext": true,
|
|
3469
3458
|
"props": {
|
|
3470
3459
|
"colorA": {
|
|
3471
3460
|
"default": "#1aff00",
|
|
@@ -4176,7 +4165,6 @@ export const shaderRegistry = [
|
|
|
4176
4165
|
"name": "RadialGradient",
|
|
4177
4166
|
"category": "Base Layers",
|
|
4178
4167
|
"description": "Radial gradient radiating from a center point",
|
|
4179
|
-
"acceptsUVContext": true,
|
|
4180
4168
|
"props": {
|
|
4181
4169
|
"colorA": {
|
|
4182
4170
|
"default": "#ff0000",
|
|
@@ -4448,7 +4436,6 @@ export const shaderRegistry = [
|
|
|
4448
4436
|
"name": "Ripples",
|
|
4449
4437
|
"category": "Base Layers",
|
|
4450
4438
|
"description": "Concentric animated ripples emanating from a point",
|
|
4451
|
-
"acceptsUVContext": true,
|
|
4452
4439
|
"props": {
|
|
4453
4440
|
"center": {
|
|
4454
4441
|
"default": {
|
|
@@ -4667,7 +4654,6 @@ export const shaderRegistry = [
|
|
|
4667
4654
|
"name": "SimplexNoise",
|
|
4668
4655
|
"category": "Base Layers",
|
|
4669
4656
|
"description": "Organic noise with animated movement",
|
|
4670
|
-
"acceptsUVContext": true,
|
|
4671
4657
|
"props": {
|
|
4672
4658
|
"colorA": {
|
|
4673
4659
|
"default": "#ffffff",
|
|
@@ -4825,7 +4811,6 @@ export const shaderRegistry = [
|
|
|
4825
4811
|
"name": "SineWave",
|
|
4826
4812
|
"category": "Base Layers",
|
|
4827
4813
|
"description": "Animated wave with thickness and softness",
|
|
4828
|
-
"acceptsUVContext": true,
|
|
4829
4814
|
"props": {
|
|
4830
4815
|
"color": {
|
|
4831
4816
|
"default": "#ffffff",
|
|
@@ -5011,7 +4996,6 @@ export const shaderRegistry = [
|
|
|
5011
4996
|
"name": "SolidColor",
|
|
5012
4997
|
"category": "Base Layers",
|
|
5013
4998
|
"description": "Fill the canvas with a single solid color",
|
|
5014
|
-
"acceptsUVContext": true,
|
|
5015
4999
|
"props": {
|
|
5016
5000
|
"color": {
|
|
5017
5001
|
"default": "#5b18ca",
|
|
@@ -5209,7 +5193,6 @@ export const shaderRegistry = [
|
|
|
5209
5193
|
"name": "Spiral",
|
|
5210
5194
|
"category": "Base Layers",
|
|
5211
5195
|
"description": "Rotating spiral pattern with animated movement",
|
|
5212
|
-
"acceptsUVContext": true,
|
|
5213
5196
|
"props": {
|
|
5214
5197
|
"colorA": {
|
|
5215
5198
|
"default": "#000000",
|
|
@@ -5436,7 +5419,6 @@ export const shaderRegistry = [
|
|
|
5436
5419
|
"description": "Procedural wavy strands with layered animation",
|
|
5437
5420
|
"requiresRTT": false,
|
|
5438
5421
|
"requiresChild": false,
|
|
5439
|
-
"acceptsUVContext": true,
|
|
5440
5422
|
"props": {
|
|
5441
5423
|
"speed": {
|
|
5442
5424
|
"default": 0.5,
|
|
@@ -5796,7 +5778,6 @@ export const shaderRegistry = [
|
|
|
5796
5778
|
"name": "Swirl",
|
|
5797
5779
|
"category": "Base Layers",
|
|
5798
5780
|
"description": "Flowing swirl pattern with multi-layered noise",
|
|
5799
|
-
"acceptsUVContext": true,
|
|
5800
5781
|
"props": {
|
|
5801
5782
|
"colorA": {
|
|
5802
5783
|
"default": "#1275d8",
|
package/package.json
CHANGED
|
File without changes
|