shaders 2.2.33 → 2.2.34
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/BrightnessContrast-CaErceqR.js +43 -0
- package/dist/core/index.js +109 -107
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/BrightnessContrast/index.d.ts +21 -0
- package/dist/core/shaders/BrightnessContrast/index.d.ts.map +1 -0
- package/dist/core/shaders/BrightnessContrast/index.js +2 -0
- package/dist/core/shaders/Bulge/index.js +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ChannelBlur/index.js +1 -1
- package/dist/core/shaders/Checkerboard/index.js +1 -1
- package/dist/core/shaders/ChromaFlow/index.js +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +1 -1
- package/dist/core/shaders/Circle/index.js +1 -1
- package/dist/core/shaders/CursorTrail/index.js +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +1 -1
- package/dist/core/shaders/Dither/index.js +1 -1
- package/dist/core/shaders/DotGrid/index.js +1 -1
- package/dist/core/shaders/Duotone/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +1 -1
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Glow/index.js +1 -1
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.js +1 -1
- package/dist/core/shaders/GridDistortion/index.js +1 -1
- package/dist/core/shaders/Group/index.js +1 -1
- package/dist/core/shaders/Halftone/index.js +1 -1
- package/dist/core/shaders/HueShift/index.js +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/Invert/index.js +1 -1
- package/dist/core/shaders/LinearBlur/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/Liquify/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/components/BrightnessContrast.d.ts +31 -0
- package/dist/react/components/BrightnessContrast.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-Ci4D5lDy.js → generatePresetCode-CwTRhENe.js} +7 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +528 -389
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +61 -0
- package/dist/solid/components/BrightnessContrast.d.ts +28 -0
- package/dist/solid/components/BrightnessContrast.d.ts.map +1 -0
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +471 -330
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +7 -0
- package/dist/svelte/components/BrightnessContrast.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-hILbcEw8.js → generatePresetCode-Qh7jlXV3.js} +7 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +213 -102
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/BrightnessContrast.vue.d.ts +57 -0
- package/dist/vue/components/BrightnessContrast.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-DfkHaBG4.js → generatePresetCode-Bf-TQPvI.js} +7 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +486 -364
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +9 -1
- /package/dist/core/{Bulge-C8-_hIFp.js → Bulge-BVcWo6On.js} +0 -0
- /package/dist/core/{CRTScreen-DLy8Rig6.js → CRTScreen-CcAYeqoI.js} +0 -0
- /package/dist/core/{ChannelBlur-BPOGOQXl.js → ChannelBlur-CQoP7Igg.js} +0 -0
- /package/dist/core/{Checkerboard-D_H3XYbF.js → Checkerboard-D_hGvoO7.js} +0 -0
- /package/dist/core/{ChromaFlow-DhzC_8Ne.js → ChromaFlow-DizYQSgf.js} +0 -0
- /package/dist/core/{ChromaticAberration-hi7WGiVk.js → ChromaticAberration-Bk_DMYJm.js} +0 -0
- /package/dist/core/{Circle-DI0gXpyD.js → Circle-BlVzkeyl.js} +0 -0
- /package/dist/core/{CursorTrail-B9EQ9FsP.js → CursorTrail-CxXWV7KH.js} +0 -0
- /package/dist/core/{DiffuseBlur-Cg7AsB3W.js → DiffuseBlur-BTSRl65K.js} +0 -0
- /package/dist/core/{Dither-Bb5rLGEI.js → Dither-C1KyBYuE.js} +0 -0
- /package/dist/core/{DotGrid-B2DXsjFE.js → DotGrid-ll8XCA0p.js} +0 -0
- /package/dist/core/{Duotone-CRwhugbV.js → Duotone-d2gQJr4M.js} +0 -0
- /package/dist/core/{FilmGrain-CY4ZO9UI.js → FilmGrain-3h6TIe1T.js} +0 -0
- /package/dist/core/{FloatingParticles-BduIDXKd.js → FloatingParticles-B6KvHecR.js} +0 -0
- /package/dist/core/{GlassTiles-BaAwsNxl.js → GlassTiles-DqT67iqr.js} +0 -0
- /package/dist/core/{Glow-D0boDIAW.js → Glow-BYNKuw0E.js} +0 -0
- /package/dist/core/{Godrays-ChqiT2zn.js → Godrays-iMO6X606.js} +0 -0
- /package/dist/core/{Grayscale-Bi-XBvO_.js → Grayscale-BH3tLDGN.js} +0 -0
- /package/dist/core/{Grid-DazyiX15.js → Grid-CdslWvoH.js} +0 -0
- /package/dist/core/{GridDistortion-CYQUwuXw.js → GridDistortion-D-iiGELF.js} +0 -0
- /package/dist/core/{Group-C0AknFDS.js → Group-ByGv48Lm.js} +0 -0
- /package/dist/core/{Halftone-Ddrldk6b.js → Halftone-CV0aFuRG.js} +0 -0
- /package/dist/core/{HueShift-DvOpzM7W.js → HueShift-DQ2WgImx.js} +0 -0
- /package/dist/core/{ImageTexture-D0xwHmkW.js → ImageTexture-DKFb8ze3.js} +0 -0
- /package/dist/core/{Invert-Bmjbp6g6.js → Invert-w9duGaUu.js} +0 -0
- /package/dist/core/{LinearBlur-cYfqaOhb.js → LinearBlur-CTXjolzL.js} +0 -0
- /package/dist/core/{LinearGradient-B6ySxWpU.js → LinearGradient-CZo6e7r8.js} +0 -0
- /package/dist/core/{Liquify-yoKWSK0F.js → Liquify-BbfDBMNZ.js} +0 -0
- /package/dist/core/{Pixelate-BmE_Zryn.js → Pixelate-C5Rx1dBp.js} +0 -0
- /package/dist/core/{PolarCoordinates-PLyS00-P.js → PolarCoordinates-CIh5ef8m.js} +0 -0
- /package/dist/core/{Posterize-DIjjPS72.js → Posterize-Byy0Ek0l.js} +0 -0
- /package/dist/core/{ProgressiveBlur-XD4ivmMn.js → ProgressiveBlur-Bzz24_y-.js} +0 -0
- /package/dist/core/{RadialGradient-pwKyDUBu.js → RadialGradient-Ci1dU-1K.js} +0 -0
- /package/dist/core/{RectangularCoordinates-Dq2JrmOX.js → RectangularCoordinates-tVGG7WOJ.js} +0 -0
- /package/dist/core/{Ripples-Ot1rx8kL.js → Ripples-BCGSt5HD.js} +0 -0
- /package/dist/core/{Saturation-J0nI4hmh.js → Saturation-DWR1Nruu.js} +0 -0
- /package/dist/core/{SimplexNoise-BfilWh05.js → SimplexNoise-CAtknQS7.js} +0 -0
- /package/dist/core/{SineWave-DRqL-jda.js → SineWave-CHtV6kB4.js} +0 -0
- /package/dist/core/{SolidColor-B62ZBRlK.js → SolidColor-CSSquNVW.js} +0 -0
- /package/dist/core/{Spherize-DDP0_5VP.js → Spherize-BJby0xSU.js} +0 -0
- /package/dist/core/{Spiral-Cx7Z8gLc.js → Spiral-CpB3-tFZ.js} +0 -0
- /package/dist/core/{Strands-C9FBVtDe.js → Strands-C2KWiJc8.js} +0 -0
- /package/dist/core/{Stretch-BCpOO3q6.js → Stretch-Chpzutao.js} +0 -0
- /package/dist/core/{Swirl-BfD35doJ.js → Swirl-qbMypv_R.js} +0 -0
- /package/dist/core/{TiltShift-CvKqM1xk.js → TiltShift-D0qyWoe3.js} +0 -0
- /package/dist/core/{Tritone-BeEJj4U0.js → Tritone-DzeueG1F.js} +0 -0
- /package/dist/core/{Twirl-EJ3aS_lo.js → Twirl-B2Ic0WGq.js} +0 -0
- /package/dist/core/{Vibrance-BI5q7_Wt.js → Vibrance-BAGXelBi.js} +0 -0
- /package/dist/core/{WaveDistortion-BOWBSWEU.js → WaveDistortion-DYFl_8vA.js} +0 -0
- /package/dist/core/{ZoomBlur-gB0BxldE.js → ZoomBlur-CXpRNRJA.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -8,56 +8,57 @@ import { componentDefinition as componentDefinition$1 } from "../core/shaders/As
|
|
|
8
8
|
import { componentDefinition as componentDefinition$2 } from "../core/shaders/Beam/index.js";
|
|
9
9
|
import { componentDefinition as componentDefinition$3 } from "../core/shaders/Blob/index.js";
|
|
10
10
|
import { componentDefinition as componentDefinition$4 } from "../core/shaders/Blur/index.js";
|
|
11
|
-
import { componentDefinition as componentDefinition$5 } from "../core/shaders/
|
|
12
|
-
import { componentDefinition as componentDefinition$6 } from "../core/shaders/
|
|
13
|
-
import { componentDefinition as componentDefinition$7 } from "../core/shaders/
|
|
14
|
-
import { componentDefinition as componentDefinition$8 } from "../core/shaders/
|
|
15
|
-
import { componentDefinition as componentDefinition$9 } from "../core/shaders/
|
|
16
|
-
import { componentDefinition as componentDefinition$a } from "../core/shaders/
|
|
17
|
-
import { componentDefinition as componentDefinition$b } from "../core/shaders/
|
|
18
|
-
import { componentDefinition as componentDefinition$c } from "../core/shaders/
|
|
19
|
-
import { componentDefinition as componentDefinition$d } from "../core/shaders/
|
|
20
|
-
import { componentDefinition as componentDefinition$e } from "../core/shaders/
|
|
21
|
-
import { componentDefinition as componentDefinition$f } from "../core/shaders/
|
|
22
|
-
import { componentDefinition as componentDefinition$g } from "../core/shaders/
|
|
23
|
-
import { componentDefinition as componentDefinition$h } from "../core/shaders/
|
|
24
|
-
import { componentDefinition as componentDefinition$i } from "../core/shaders/
|
|
25
|
-
import { componentDefinition as componentDefinition$j } from "../core/shaders/
|
|
26
|
-
import { componentDefinition as componentDefinition$k } from "../core/shaders/
|
|
27
|
-
import { componentDefinition as componentDefinition$l } from "../core/shaders/
|
|
28
|
-
import { componentDefinition as componentDefinition$m } from "../core/shaders/
|
|
29
|
-
import { componentDefinition as componentDefinition$n } from "../core/shaders/
|
|
30
|
-
import { componentDefinition as componentDefinition$o } from "../core/shaders/
|
|
31
|
-
import { componentDefinition as componentDefinition$p } from "../core/shaders/
|
|
32
|
-
import { componentDefinition as componentDefinition$q } from "../core/shaders/
|
|
33
|
-
import { componentDefinition as componentDefinition$r } from "../core/shaders/
|
|
34
|
-
import { componentDefinition as componentDefinition$s } from "../core/shaders/
|
|
35
|
-
import { componentDefinition as componentDefinition$t } from "../core/shaders/
|
|
36
|
-
import { componentDefinition as componentDefinition$u } from "../core/shaders/
|
|
37
|
-
import { componentDefinition as componentDefinition$v } from "../core/shaders/
|
|
38
|
-
import { componentDefinition as componentDefinition$w } from "../core/shaders/
|
|
39
|
-
import { componentDefinition as componentDefinition$x } from "../core/shaders/
|
|
40
|
-
import { componentDefinition as componentDefinition$y } from "../core/shaders/
|
|
41
|
-
import { componentDefinition as componentDefinition$z } from "../core/shaders/
|
|
42
|
-
import { componentDefinition as componentDefinition$A } from "../core/shaders/
|
|
43
|
-
import { componentDefinition as componentDefinition$B } from "../core/shaders/
|
|
44
|
-
import { componentDefinition as componentDefinition$C } from "../core/shaders/
|
|
45
|
-
import { componentDefinition as componentDefinition$D } from "../core/shaders/
|
|
46
|
-
import { componentDefinition as componentDefinition$E } from "../core/shaders/
|
|
47
|
-
import { componentDefinition as componentDefinition$F } from "../core/shaders/
|
|
48
|
-
import { componentDefinition as componentDefinition$G } from "../core/shaders/
|
|
49
|
-
import { componentDefinition as componentDefinition$H } from "../core/shaders/
|
|
50
|
-
import { componentDefinition as componentDefinition$I } from "../core/shaders/
|
|
51
|
-
import { componentDefinition as componentDefinition$J } from "../core/shaders/
|
|
52
|
-
import { componentDefinition as componentDefinition$K } from "../core/shaders/
|
|
53
|
-
import { componentDefinition as componentDefinition$L } from "../core/shaders/
|
|
54
|
-
import { componentDefinition as componentDefinition$M } from "../core/shaders/
|
|
55
|
-
import { componentDefinition as componentDefinition$N } from "../core/shaders/
|
|
56
|
-
import { componentDefinition as componentDefinition$O } from "../core/shaders/
|
|
57
|
-
import { componentDefinition as componentDefinition$P } from "../core/shaders/
|
|
58
|
-
import { componentDefinition as componentDefinition$Q } from "../core/shaders/
|
|
59
|
-
import { componentDefinition as componentDefinition$R } from "../core/shaders/
|
|
60
|
-
import { componentDefinition as componentDefinition$S } from "../core/shaders/
|
|
11
|
+
import { componentDefinition as componentDefinition$5 } from "../core/shaders/BrightnessContrast/index.js";
|
|
12
|
+
import { componentDefinition as componentDefinition$6 } from "../core/shaders/Bulge/index.js";
|
|
13
|
+
import { componentDefinition as componentDefinition$7 } from "../core/shaders/CRTScreen/index.js";
|
|
14
|
+
import { componentDefinition as componentDefinition$8 } from "../core/shaders/ChannelBlur/index.js";
|
|
15
|
+
import { componentDefinition as componentDefinition$9 } from "../core/shaders/Checkerboard/index.js";
|
|
16
|
+
import { componentDefinition as componentDefinition$a } from "../core/shaders/ChromaFlow/index.js";
|
|
17
|
+
import { componentDefinition as componentDefinition$b } from "../core/shaders/ChromaticAberration/index.js";
|
|
18
|
+
import { componentDefinition as componentDefinition$c } from "../core/shaders/Circle/index.js";
|
|
19
|
+
import { componentDefinition as componentDefinition$d } from "../core/shaders/CursorTrail/index.js";
|
|
20
|
+
import { componentDefinition as componentDefinition$e } from "../core/shaders/DiffuseBlur/index.js";
|
|
21
|
+
import { componentDefinition as componentDefinition$f } from "../core/shaders/Dither/index.js";
|
|
22
|
+
import { componentDefinition as componentDefinition$g } from "../core/shaders/DotGrid/index.js";
|
|
23
|
+
import { componentDefinition as componentDefinition$h } from "../core/shaders/Duotone/index.js";
|
|
24
|
+
import { componentDefinition as componentDefinition$i } from "../core/shaders/FilmGrain/index.js";
|
|
25
|
+
import { componentDefinition as componentDefinition$j } from "../core/shaders/FloatingParticles/index.js";
|
|
26
|
+
import { componentDefinition as componentDefinition$k } from "../core/shaders/GlassTiles/index.js";
|
|
27
|
+
import { componentDefinition as componentDefinition$l } from "../core/shaders/Glow/index.js";
|
|
28
|
+
import { componentDefinition as componentDefinition$m } from "../core/shaders/Godrays/index.js";
|
|
29
|
+
import { componentDefinition as componentDefinition$n } from "../core/shaders/Grayscale/index.js";
|
|
30
|
+
import { componentDefinition as componentDefinition$o } from "../core/shaders/Grid/index.js";
|
|
31
|
+
import { componentDefinition as componentDefinition$p } from "../core/shaders/GridDistortion/index.js";
|
|
32
|
+
import { componentDefinition as componentDefinition$q } from "../core/shaders/Group/index.js";
|
|
33
|
+
import { componentDefinition as componentDefinition$r } from "../core/shaders/Halftone/index.js";
|
|
34
|
+
import { componentDefinition as componentDefinition$s } from "../core/shaders/HueShift/index.js";
|
|
35
|
+
import { componentDefinition as componentDefinition$t } from "../core/shaders/ImageTexture/index.js";
|
|
36
|
+
import { componentDefinition as componentDefinition$u } from "../core/shaders/Invert/index.js";
|
|
37
|
+
import { componentDefinition as componentDefinition$v } from "../core/shaders/LinearBlur/index.js";
|
|
38
|
+
import { componentDefinition as componentDefinition$w } from "../core/shaders/LinearGradient/index.js";
|
|
39
|
+
import { componentDefinition as componentDefinition$x } from "../core/shaders/Liquify/index.js";
|
|
40
|
+
import { componentDefinition as componentDefinition$y } from "../core/shaders/Pixelate/index.js";
|
|
41
|
+
import { componentDefinition as componentDefinition$z } from "../core/shaders/PolarCoordinates/index.js";
|
|
42
|
+
import { componentDefinition as componentDefinition$A } from "../core/shaders/Posterize/index.js";
|
|
43
|
+
import { componentDefinition as componentDefinition$B } from "../core/shaders/ProgressiveBlur/index.js";
|
|
44
|
+
import { componentDefinition as componentDefinition$C } from "../core/shaders/RadialGradient/index.js";
|
|
45
|
+
import { componentDefinition as componentDefinition$D } from "../core/shaders/RectangularCoordinates/index.js";
|
|
46
|
+
import { componentDefinition as componentDefinition$E } from "../core/shaders/Ripples/index.js";
|
|
47
|
+
import { componentDefinition as componentDefinition$F } from "../core/shaders/Saturation/index.js";
|
|
48
|
+
import { componentDefinition as componentDefinition$G } from "../core/shaders/SimplexNoise/index.js";
|
|
49
|
+
import { componentDefinition as componentDefinition$H } from "../core/shaders/SineWave/index.js";
|
|
50
|
+
import { componentDefinition as componentDefinition$I } from "../core/shaders/SolidColor/index.js";
|
|
51
|
+
import { componentDefinition as componentDefinition$J } from "../core/shaders/Spherize/index.js";
|
|
52
|
+
import { componentDefinition as componentDefinition$K } from "../core/shaders/Spiral/index.js";
|
|
53
|
+
import { componentDefinition as componentDefinition$L } from "../core/shaders/Strands/index.js";
|
|
54
|
+
import { componentDefinition as componentDefinition$M } from "../core/shaders/Stretch/index.js";
|
|
55
|
+
import { componentDefinition as componentDefinition$N } from "../core/shaders/Swirl/index.js";
|
|
56
|
+
import { componentDefinition as componentDefinition$O } from "../core/shaders/TiltShift/index.js";
|
|
57
|
+
import { componentDefinition as componentDefinition$P } from "../core/shaders/Tritone/index.js";
|
|
58
|
+
import { componentDefinition as componentDefinition$Q } from "../core/shaders/Twirl/index.js";
|
|
59
|
+
import { componentDefinition as componentDefinition$R } from "../core/shaders/Vibrance/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$S } from "../core/shaders/WaveDistortion/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$T } from "../core/shaders/ZoomBlur/index.js";
|
|
61
62
|
import { generatePresetCode } from "./utils/generatePresetCode.js";
|
|
62
63
|
var _tmpl$ = /* @__PURE__ */ template(`<div><canvas data-renderer=shaders style=width:100%;height:100%;display:block>`);
|
|
63
64
|
const ShaderContext = createContext();
|
|
@@ -238,7 +239,7 @@ function useShaderContext() {
|
|
|
238
239
|
}
|
|
239
240
|
return ctx;
|
|
240
241
|
}
|
|
241
|
-
const DEFAULT_TRANSFORM$
|
|
242
|
+
const DEFAULT_TRANSFORM$T = {
|
|
242
243
|
offsetX: 0,
|
|
243
244
|
offsetY: 0,
|
|
244
245
|
rotation: 0,
|
|
@@ -247,7 +248,7 @@ const DEFAULT_TRANSFORM$S = {
|
|
|
247
248
|
anchorY: 0.5,
|
|
248
249
|
edges: "transparent"
|
|
249
250
|
};
|
|
250
|
-
const defaultProps$
|
|
251
|
+
const defaultProps$T = {
|
|
251
252
|
blendMode: "normal",
|
|
252
253
|
renderOrder: 0,
|
|
253
254
|
visible: true
|
|
@@ -257,6 +258,145 @@ const defaultProps$S = {
|
|
|
257
258
|
try {
|
|
258
259
|
if (componentDefinition && componentDefinition.props) {
|
|
259
260
|
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
261
|
+
const propConfig = config;
|
|
262
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
263
|
+
defaultProps$T[key] = propConfig.default;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
} catch (e) {
|
|
268
|
+
console.warn("Error extracting default props:", e);
|
|
269
|
+
}
|
|
270
|
+
function ShaderComponent$T(props) {
|
|
271
|
+
const context = useShaderContext();
|
|
272
|
+
const {
|
|
273
|
+
shaderParentId: parentId,
|
|
274
|
+
shaderNodeRegister: parentRegister,
|
|
275
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
276
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
277
|
+
} = context;
|
|
278
|
+
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
279
|
+
const effectiveProps = createMemo(() => {
|
|
280
|
+
let baseProps = {
|
|
281
|
+
...defaultProps$T
|
|
282
|
+
};
|
|
283
|
+
for (const [key, value] of Object.entries(props)) {
|
|
284
|
+
if (key !== "children" && value !== void 0) {
|
|
285
|
+
baseProps[key] = value;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return baseProps;
|
|
289
|
+
});
|
|
290
|
+
const effectiveTransform = createMemo(() => ({
|
|
291
|
+
...DEFAULT_TRANSFORM$T,
|
|
292
|
+
...props.transform
|
|
293
|
+
}));
|
|
294
|
+
let uniformsMap = null;
|
|
295
|
+
const getUniformsMap = () => {
|
|
296
|
+
if (!uniformsMap) {
|
|
297
|
+
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
298
|
+
}
|
|
299
|
+
return uniformsMap;
|
|
300
|
+
};
|
|
301
|
+
const childContextValue = createMemo(() => ({
|
|
302
|
+
...context,
|
|
303
|
+
shaderParentId: instanceId
|
|
304
|
+
}));
|
|
305
|
+
let isRegistered = false;
|
|
306
|
+
onMount(() => {
|
|
307
|
+
const uniforms = getUniformsMap();
|
|
308
|
+
if (!uniforms) return;
|
|
309
|
+
try {
|
|
310
|
+
const metadata = {
|
|
311
|
+
blendMode: props.blendMode || "normal",
|
|
312
|
+
opacity: props.opacity,
|
|
313
|
+
visible: props.visible === false ? false : true,
|
|
314
|
+
id: props.id,
|
|
315
|
+
mask: props.maskSource ? {
|
|
316
|
+
source: props.maskSource,
|
|
317
|
+
type: props.maskType || "alpha"
|
|
318
|
+
} : void 0,
|
|
319
|
+
renderOrder: props.renderOrder || 0,
|
|
320
|
+
transform: effectiveTransform()
|
|
321
|
+
};
|
|
322
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
323
|
+
isRegistered = true;
|
|
324
|
+
} catch (error) {
|
|
325
|
+
console.error("Error registering shader node:", error);
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
onCleanup(() => {
|
|
329
|
+
isRegistered = false;
|
|
330
|
+
parentRegister(instanceId, null, null, null, null);
|
|
331
|
+
});
|
|
332
|
+
createEffect(() => {
|
|
333
|
+
if (!isRegistered) return;
|
|
334
|
+
const uniforms = getUniformsMap();
|
|
335
|
+
if (!uniforms) return;
|
|
336
|
+
try {
|
|
337
|
+
const props_snapshot = effectiveProps();
|
|
338
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
339
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
340
|
+
const {
|
|
341
|
+
uniform
|
|
342
|
+
} = uniformData;
|
|
343
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
344
|
+
const newValue = props_snapshot[propName];
|
|
345
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
} catch (error) {
|
|
349
|
+
console.error("Error updating uniforms:", error);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
createEffect(() => {
|
|
353
|
+
if (!isRegistered) return;
|
|
354
|
+
try {
|
|
355
|
+
const metadata = {
|
|
356
|
+
blendMode: props.blendMode || "normal",
|
|
357
|
+
opacity: props.opacity,
|
|
358
|
+
visible: props.visible === false ? false : true,
|
|
359
|
+
id: props.id,
|
|
360
|
+
mask: props.maskSource ? {
|
|
361
|
+
source: props.maskSource,
|
|
362
|
+
type: props.maskType || "alpha"
|
|
363
|
+
} : void 0,
|
|
364
|
+
renderOrder: props.renderOrder || 0,
|
|
365
|
+
transform: effectiveTransform()
|
|
366
|
+
};
|
|
367
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
368
|
+
} catch (error) {
|
|
369
|
+
console.error("Error updating metadata:", error);
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
return createComponent(ShaderContext.Provider, {
|
|
373
|
+
get value() {
|
|
374
|
+
return childContextValue();
|
|
375
|
+
},
|
|
376
|
+
get children() {
|
|
377
|
+
return props.children;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
const DEFAULT_TRANSFORM$S = {
|
|
382
|
+
offsetX: 0,
|
|
383
|
+
offsetY: 0,
|
|
384
|
+
rotation: 0,
|
|
385
|
+
scale: 1,
|
|
386
|
+
anchorX: 0.5,
|
|
387
|
+
anchorY: 0.5,
|
|
388
|
+
edges: "transparent"
|
|
389
|
+
};
|
|
390
|
+
const defaultProps$S = {
|
|
391
|
+
blendMode: "normal",
|
|
392
|
+
renderOrder: 0,
|
|
393
|
+
visible: true
|
|
394
|
+
// opacity intentionally has no default - handled by renderer
|
|
395
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
396
|
+
};
|
|
397
|
+
try {
|
|
398
|
+
if (componentDefinition$1 && componentDefinition$1.props) {
|
|
399
|
+
Object.entries(componentDefinition$1.props).forEach(([key, config]) => {
|
|
260
400
|
const propConfig = config;
|
|
261
401
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
262
402
|
defaultProps$S[key] = propConfig.default;
|
|
@@ -274,7 +414,7 @@ function ShaderComponent$S(props) {
|
|
|
274
414
|
shaderUniformUpdate: parentUniformUpdate,
|
|
275
415
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
276
416
|
} = context;
|
|
277
|
-
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
417
|
+
const instanceId = props.id || `${componentDefinition$1.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
278
418
|
const effectiveProps = createMemo(() => {
|
|
279
419
|
let baseProps = {
|
|
280
420
|
...defaultProps$S
|
|
@@ -293,7 +433,7 @@ function ShaderComponent$S(props) {
|
|
|
293
433
|
let uniformsMap = null;
|
|
294
434
|
const getUniformsMap = () => {
|
|
295
435
|
if (!uniformsMap) {
|
|
296
|
-
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
436
|
+
uniformsMap = createUniformsMap(componentDefinition$1, effectiveProps(), instanceId);
|
|
297
437
|
}
|
|
298
438
|
return uniformsMap;
|
|
299
439
|
};
|
|
@@ -318,7 +458,7 @@ function ShaderComponent$S(props) {
|
|
|
318
458
|
renderOrder: props.renderOrder || 0,
|
|
319
459
|
transform: effectiveTransform()
|
|
320
460
|
};
|
|
321
|
-
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
461
|
+
parentRegister(instanceId, componentDefinition$1.fragmentNode, parentId, metadata, uniforms, componentDefinition$1);
|
|
322
462
|
isRegistered = true;
|
|
323
463
|
} catch (error) {
|
|
324
464
|
console.error("Error registering shader node:", error);
|
|
@@ -394,8 +534,8 @@ const defaultProps$R = {
|
|
|
394
534
|
// transform intentionally has no default - handled by effectiveTransform
|
|
395
535
|
};
|
|
396
536
|
try {
|
|
397
|
-
if (componentDefinition$
|
|
398
|
-
Object.entries(componentDefinition$
|
|
537
|
+
if (componentDefinition$2 && componentDefinition$2.props) {
|
|
538
|
+
Object.entries(componentDefinition$2.props).forEach(([key, config]) => {
|
|
399
539
|
const propConfig = config;
|
|
400
540
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
401
541
|
defaultProps$R[key] = propConfig.default;
|
|
@@ -413,7 +553,7 @@ function ShaderComponent$R(props) {
|
|
|
413
553
|
shaderUniformUpdate: parentUniformUpdate,
|
|
414
554
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
415
555
|
} = context;
|
|
416
|
-
const instanceId = props.id || `${componentDefinition$
|
|
556
|
+
const instanceId = props.id || `${componentDefinition$2.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
417
557
|
const effectiveProps = createMemo(() => {
|
|
418
558
|
let baseProps = {
|
|
419
559
|
...defaultProps$R
|
|
@@ -432,7 +572,7 @@ function ShaderComponent$R(props) {
|
|
|
432
572
|
let uniformsMap = null;
|
|
433
573
|
const getUniformsMap = () => {
|
|
434
574
|
if (!uniformsMap) {
|
|
435
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
575
|
+
uniformsMap = createUniformsMap(componentDefinition$2, effectiveProps(), instanceId);
|
|
436
576
|
}
|
|
437
577
|
return uniformsMap;
|
|
438
578
|
};
|
|
@@ -457,7 +597,7 @@ function ShaderComponent$R(props) {
|
|
|
457
597
|
renderOrder: props.renderOrder || 0,
|
|
458
598
|
transform: effectiveTransform()
|
|
459
599
|
};
|
|
460
|
-
parentRegister(instanceId, componentDefinition$
|
|
600
|
+
parentRegister(instanceId, componentDefinition$2.fragmentNode, parentId, metadata, uniforms, componentDefinition$2);
|
|
461
601
|
isRegistered = true;
|
|
462
602
|
} catch (error) {
|
|
463
603
|
console.error("Error registering shader node:", error);
|
|
@@ -533,8 +673,8 @@ const defaultProps$Q = {
|
|
|
533
673
|
// transform intentionally has no default - handled by effectiveTransform
|
|
534
674
|
};
|
|
535
675
|
try {
|
|
536
|
-
if (componentDefinition$
|
|
537
|
-
Object.entries(componentDefinition$
|
|
676
|
+
if (componentDefinition$3 && componentDefinition$3.props) {
|
|
677
|
+
Object.entries(componentDefinition$3.props).forEach(([key, config]) => {
|
|
538
678
|
const propConfig = config;
|
|
539
679
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
540
680
|
defaultProps$Q[key] = propConfig.default;
|
|
@@ -552,7 +692,7 @@ function ShaderComponent$Q(props) {
|
|
|
552
692
|
shaderUniformUpdate: parentUniformUpdate,
|
|
553
693
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
554
694
|
} = context;
|
|
555
|
-
const instanceId = props.id || `${componentDefinition$
|
|
695
|
+
const instanceId = props.id || `${componentDefinition$3.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
556
696
|
const effectiveProps = createMemo(() => {
|
|
557
697
|
let baseProps = {
|
|
558
698
|
...defaultProps$Q
|
|
@@ -571,7 +711,7 @@ function ShaderComponent$Q(props) {
|
|
|
571
711
|
let uniformsMap = null;
|
|
572
712
|
const getUniformsMap = () => {
|
|
573
713
|
if (!uniformsMap) {
|
|
574
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
714
|
+
uniformsMap = createUniformsMap(componentDefinition$3, effectiveProps(), instanceId);
|
|
575
715
|
}
|
|
576
716
|
return uniformsMap;
|
|
577
717
|
};
|
|
@@ -596,7 +736,7 @@ function ShaderComponent$Q(props) {
|
|
|
596
736
|
renderOrder: props.renderOrder || 0,
|
|
597
737
|
transform: effectiveTransform()
|
|
598
738
|
};
|
|
599
|
-
parentRegister(instanceId, componentDefinition$
|
|
739
|
+
parentRegister(instanceId, componentDefinition$3.fragmentNode, parentId, metadata, uniforms, componentDefinition$3);
|
|
600
740
|
isRegistered = true;
|
|
601
741
|
} catch (error) {
|
|
602
742
|
console.error("Error registering shader node:", error);
|
|
@@ -672,8 +812,8 @@ const defaultProps$P = {
|
|
|
672
812
|
// transform intentionally has no default - handled by effectiveTransform
|
|
673
813
|
};
|
|
674
814
|
try {
|
|
675
|
-
if (componentDefinition$
|
|
676
|
-
Object.entries(componentDefinition$
|
|
815
|
+
if (componentDefinition$4 && componentDefinition$4.props) {
|
|
816
|
+
Object.entries(componentDefinition$4.props).forEach(([key, config]) => {
|
|
677
817
|
const propConfig = config;
|
|
678
818
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
679
819
|
defaultProps$P[key] = propConfig.default;
|
|
@@ -691,7 +831,7 @@ function ShaderComponent$P(props) {
|
|
|
691
831
|
shaderUniformUpdate: parentUniformUpdate,
|
|
692
832
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
693
833
|
} = context;
|
|
694
|
-
const instanceId = props.id || `${componentDefinition$
|
|
834
|
+
const instanceId = props.id || `${componentDefinition$4.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
695
835
|
const effectiveProps = createMemo(() => {
|
|
696
836
|
let baseProps = {
|
|
697
837
|
...defaultProps$P
|
|
@@ -710,7 +850,7 @@ function ShaderComponent$P(props) {
|
|
|
710
850
|
let uniformsMap = null;
|
|
711
851
|
const getUniformsMap = () => {
|
|
712
852
|
if (!uniformsMap) {
|
|
713
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
853
|
+
uniformsMap = createUniformsMap(componentDefinition$4, effectiveProps(), instanceId);
|
|
714
854
|
}
|
|
715
855
|
return uniformsMap;
|
|
716
856
|
};
|
|
@@ -735,7 +875,7 @@ function ShaderComponent$P(props) {
|
|
|
735
875
|
renderOrder: props.renderOrder || 0,
|
|
736
876
|
transform: effectiveTransform()
|
|
737
877
|
};
|
|
738
|
-
parentRegister(instanceId, componentDefinition$
|
|
878
|
+
parentRegister(instanceId, componentDefinition$4.fragmentNode, parentId, metadata, uniforms, componentDefinition$4);
|
|
739
879
|
isRegistered = true;
|
|
740
880
|
} catch (error) {
|
|
741
881
|
console.error("Error registering shader node:", error);
|
|
@@ -811,8 +951,8 @@ const defaultProps$O = {
|
|
|
811
951
|
// transform intentionally has no default - handled by effectiveTransform
|
|
812
952
|
};
|
|
813
953
|
try {
|
|
814
|
-
if (componentDefinition$
|
|
815
|
-
Object.entries(componentDefinition$
|
|
954
|
+
if (componentDefinition$5 && componentDefinition$5.props) {
|
|
955
|
+
Object.entries(componentDefinition$5.props).forEach(([key, config]) => {
|
|
816
956
|
const propConfig = config;
|
|
817
957
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
818
958
|
defaultProps$O[key] = propConfig.default;
|
|
@@ -830,7 +970,7 @@ function ShaderComponent$O(props) {
|
|
|
830
970
|
shaderUniformUpdate: parentUniformUpdate,
|
|
831
971
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
832
972
|
} = context;
|
|
833
|
-
const instanceId = props.id || `${componentDefinition$
|
|
973
|
+
const instanceId = props.id || `${componentDefinition$5.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
834
974
|
const effectiveProps = createMemo(() => {
|
|
835
975
|
let baseProps = {
|
|
836
976
|
...defaultProps$O
|
|
@@ -849,7 +989,7 @@ function ShaderComponent$O(props) {
|
|
|
849
989
|
let uniformsMap = null;
|
|
850
990
|
const getUniformsMap = () => {
|
|
851
991
|
if (!uniformsMap) {
|
|
852
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
992
|
+
uniformsMap = createUniformsMap(componentDefinition$5, effectiveProps(), instanceId);
|
|
853
993
|
}
|
|
854
994
|
return uniformsMap;
|
|
855
995
|
};
|
|
@@ -874,7 +1014,7 @@ function ShaderComponent$O(props) {
|
|
|
874
1014
|
renderOrder: props.renderOrder || 0,
|
|
875
1015
|
transform: effectiveTransform()
|
|
876
1016
|
};
|
|
877
|
-
parentRegister(instanceId, componentDefinition$
|
|
1017
|
+
parentRegister(instanceId, componentDefinition$5.fragmentNode, parentId, metadata, uniforms, componentDefinition$5);
|
|
878
1018
|
isRegistered = true;
|
|
879
1019
|
} catch (error) {
|
|
880
1020
|
console.error("Error registering shader node:", error);
|
|
@@ -950,8 +1090,8 @@ const defaultProps$N = {
|
|
|
950
1090
|
// transform intentionally has no default - handled by effectiveTransform
|
|
951
1091
|
};
|
|
952
1092
|
try {
|
|
953
|
-
if (componentDefinition$
|
|
954
|
-
Object.entries(componentDefinition$
|
|
1093
|
+
if (componentDefinition$6 && componentDefinition$6.props) {
|
|
1094
|
+
Object.entries(componentDefinition$6.props).forEach(([key, config]) => {
|
|
955
1095
|
const propConfig = config;
|
|
956
1096
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
957
1097
|
defaultProps$N[key] = propConfig.default;
|
|
@@ -969,7 +1109,7 @@ function ShaderComponent$N(props) {
|
|
|
969
1109
|
shaderUniformUpdate: parentUniformUpdate,
|
|
970
1110
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
971
1111
|
} = context;
|
|
972
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1112
|
+
const instanceId = props.id || `${componentDefinition$6.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
973
1113
|
const effectiveProps = createMemo(() => {
|
|
974
1114
|
let baseProps = {
|
|
975
1115
|
...defaultProps$N
|
|
@@ -988,7 +1128,7 @@ function ShaderComponent$N(props) {
|
|
|
988
1128
|
let uniformsMap = null;
|
|
989
1129
|
const getUniformsMap = () => {
|
|
990
1130
|
if (!uniformsMap) {
|
|
991
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1131
|
+
uniformsMap = createUniformsMap(componentDefinition$6, effectiveProps(), instanceId);
|
|
992
1132
|
}
|
|
993
1133
|
return uniformsMap;
|
|
994
1134
|
};
|
|
@@ -1013,7 +1153,7 @@ function ShaderComponent$N(props) {
|
|
|
1013
1153
|
renderOrder: props.renderOrder || 0,
|
|
1014
1154
|
transform: effectiveTransform()
|
|
1015
1155
|
};
|
|
1016
|
-
parentRegister(instanceId, componentDefinition$
|
|
1156
|
+
parentRegister(instanceId, componentDefinition$6.fragmentNode, parentId, metadata, uniforms, componentDefinition$6);
|
|
1017
1157
|
isRegistered = true;
|
|
1018
1158
|
} catch (error) {
|
|
1019
1159
|
console.error("Error registering shader node:", error);
|
|
@@ -1089,8 +1229,8 @@ const defaultProps$M = {
|
|
|
1089
1229
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1090
1230
|
};
|
|
1091
1231
|
try {
|
|
1092
|
-
if (componentDefinition$
|
|
1093
|
-
Object.entries(componentDefinition$
|
|
1232
|
+
if (componentDefinition$7 && componentDefinition$7.props) {
|
|
1233
|
+
Object.entries(componentDefinition$7.props).forEach(([key, config]) => {
|
|
1094
1234
|
const propConfig = config;
|
|
1095
1235
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1096
1236
|
defaultProps$M[key] = propConfig.default;
|
|
@@ -1108,7 +1248,7 @@ function ShaderComponent$M(props) {
|
|
|
1108
1248
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1109
1249
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1110
1250
|
} = context;
|
|
1111
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1251
|
+
const instanceId = props.id || `${componentDefinition$7.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1112
1252
|
const effectiveProps = createMemo(() => {
|
|
1113
1253
|
let baseProps = {
|
|
1114
1254
|
...defaultProps$M
|
|
@@ -1127,7 +1267,7 @@ function ShaderComponent$M(props) {
|
|
|
1127
1267
|
let uniformsMap = null;
|
|
1128
1268
|
const getUniformsMap = () => {
|
|
1129
1269
|
if (!uniformsMap) {
|
|
1130
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1270
|
+
uniformsMap = createUniformsMap(componentDefinition$7, effectiveProps(), instanceId);
|
|
1131
1271
|
}
|
|
1132
1272
|
return uniformsMap;
|
|
1133
1273
|
};
|
|
@@ -1152,7 +1292,7 @@ function ShaderComponent$M(props) {
|
|
|
1152
1292
|
renderOrder: props.renderOrder || 0,
|
|
1153
1293
|
transform: effectiveTransform()
|
|
1154
1294
|
};
|
|
1155
|
-
parentRegister(instanceId, componentDefinition$
|
|
1295
|
+
parentRegister(instanceId, componentDefinition$7.fragmentNode, parentId, metadata, uniforms, componentDefinition$7);
|
|
1156
1296
|
isRegistered = true;
|
|
1157
1297
|
} catch (error) {
|
|
1158
1298
|
console.error("Error registering shader node:", error);
|
|
@@ -1228,8 +1368,8 @@ const defaultProps$L = {
|
|
|
1228
1368
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1229
1369
|
};
|
|
1230
1370
|
try {
|
|
1231
|
-
if (componentDefinition$
|
|
1232
|
-
Object.entries(componentDefinition$
|
|
1371
|
+
if (componentDefinition$8 && componentDefinition$8.props) {
|
|
1372
|
+
Object.entries(componentDefinition$8.props).forEach(([key, config]) => {
|
|
1233
1373
|
const propConfig = config;
|
|
1234
1374
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1235
1375
|
defaultProps$L[key] = propConfig.default;
|
|
@@ -1247,7 +1387,7 @@ function ShaderComponent$L(props) {
|
|
|
1247
1387
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1248
1388
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1249
1389
|
} = context;
|
|
1250
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1390
|
+
const instanceId = props.id || `${componentDefinition$8.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1251
1391
|
const effectiveProps = createMemo(() => {
|
|
1252
1392
|
let baseProps = {
|
|
1253
1393
|
...defaultProps$L
|
|
@@ -1266,7 +1406,7 @@ function ShaderComponent$L(props) {
|
|
|
1266
1406
|
let uniformsMap = null;
|
|
1267
1407
|
const getUniformsMap = () => {
|
|
1268
1408
|
if (!uniformsMap) {
|
|
1269
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1409
|
+
uniformsMap = createUniformsMap(componentDefinition$8, effectiveProps(), instanceId);
|
|
1270
1410
|
}
|
|
1271
1411
|
return uniformsMap;
|
|
1272
1412
|
};
|
|
@@ -1291,7 +1431,7 @@ function ShaderComponent$L(props) {
|
|
|
1291
1431
|
renderOrder: props.renderOrder || 0,
|
|
1292
1432
|
transform: effectiveTransform()
|
|
1293
1433
|
};
|
|
1294
|
-
parentRegister(instanceId, componentDefinition$
|
|
1434
|
+
parentRegister(instanceId, componentDefinition$8.fragmentNode, parentId, metadata, uniforms, componentDefinition$8);
|
|
1295
1435
|
isRegistered = true;
|
|
1296
1436
|
} catch (error) {
|
|
1297
1437
|
console.error("Error registering shader node:", error);
|
|
@@ -1367,8 +1507,8 @@ const defaultProps$K = {
|
|
|
1367
1507
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1368
1508
|
};
|
|
1369
1509
|
try {
|
|
1370
|
-
if (componentDefinition$
|
|
1371
|
-
Object.entries(componentDefinition$
|
|
1510
|
+
if (componentDefinition$9 && componentDefinition$9.props) {
|
|
1511
|
+
Object.entries(componentDefinition$9.props).forEach(([key, config]) => {
|
|
1372
1512
|
const propConfig = config;
|
|
1373
1513
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1374
1514
|
defaultProps$K[key] = propConfig.default;
|
|
@@ -1386,7 +1526,7 @@ function ShaderComponent$K(props) {
|
|
|
1386
1526
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1387
1527
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1388
1528
|
} = context;
|
|
1389
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1529
|
+
const instanceId = props.id || `${componentDefinition$9.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1390
1530
|
const effectiveProps = createMemo(() => {
|
|
1391
1531
|
let baseProps = {
|
|
1392
1532
|
...defaultProps$K
|
|
@@ -1405,7 +1545,7 @@ function ShaderComponent$K(props) {
|
|
|
1405
1545
|
let uniformsMap = null;
|
|
1406
1546
|
const getUniformsMap = () => {
|
|
1407
1547
|
if (!uniformsMap) {
|
|
1408
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1548
|
+
uniformsMap = createUniformsMap(componentDefinition$9, effectiveProps(), instanceId);
|
|
1409
1549
|
}
|
|
1410
1550
|
return uniformsMap;
|
|
1411
1551
|
};
|
|
@@ -1430,7 +1570,7 @@ function ShaderComponent$K(props) {
|
|
|
1430
1570
|
renderOrder: props.renderOrder || 0,
|
|
1431
1571
|
transform: effectiveTransform()
|
|
1432
1572
|
};
|
|
1433
|
-
parentRegister(instanceId, componentDefinition$
|
|
1573
|
+
parentRegister(instanceId, componentDefinition$9.fragmentNode, parentId, metadata, uniforms, componentDefinition$9);
|
|
1434
1574
|
isRegistered = true;
|
|
1435
1575
|
} catch (error) {
|
|
1436
1576
|
console.error("Error registering shader node:", error);
|
|
@@ -1506,8 +1646,8 @@ const defaultProps$J = {
|
|
|
1506
1646
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1507
1647
|
};
|
|
1508
1648
|
try {
|
|
1509
|
-
if (componentDefinition$
|
|
1510
|
-
Object.entries(componentDefinition$
|
|
1649
|
+
if (componentDefinition$a && componentDefinition$a.props) {
|
|
1650
|
+
Object.entries(componentDefinition$a.props).forEach(([key, config]) => {
|
|
1511
1651
|
const propConfig = config;
|
|
1512
1652
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1513
1653
|
defaultProps$J[key] = propConfig.default;
|
|
@@ -1525,7 +1665,7 @@ function ShaderComponent$J(props) {
|
|
|
1525
1665
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1526
1666
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1527
1667
|
} = context;
|
|
1528
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1668
|
+
const instanceId = props.id || `${componentDefinition$a.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1529
1669
|
const effectiveProps = createMemo(() => {
|
|
1530
1670
|
let baseProps = {
|
|
1531
1671
|
...defaultProps$J
|
|
@@ -1544,7 +1684,7 @@ function ShaderComponent$J(props) {
|
|
|
1544
1684
|
let uniformsMap = null;
|
|
1545
1685
|
const getUniformsMap = () => {
|
|
1546
1686
|
if (!uniformsMap) {
|
|
1547
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1687
|
+
uniformsMap = createUniformsMap(componentDefinition$a, effectiveProps(), instanceId);
|
|
1548
1688
|
}
|
|
1549
1689
|
return uniformsMap;
|
|
1550
1690
|
};
|
|
@@ -1569,7 +1709,7 @@ function ShaderComponent$J(props) {
|
|
|
1569
1709
|
renderOrder: props.renderOrder || 0,
|
|
1570
1710
|
transform: effectiveTransform()
|
|
1571
1711
|
};
|
|
1572
|
-
parentRegister(instanceId, componentDefinition$
|
|
1712
|
+
parentRegister(instanceId, componentDefinition$a.fragmentNode, parentId, metadata, uniforms, componentDefinition$a);
|
|
1573
1713
|
isRegistered = true;
|
|
1574
1714
|
} catch (error) {
|
|
1575
1715
|
console.error("Error registering shader node:", error);
|
|
@@ -1645,8 +1785,8 @@ const defaultProps$I = {
|
|
|
1645
1785
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1646
1786
|
};
|
|
1647
1787
|
try {
|
|
1648
|
-
if (componentDefinition$
|
|
1649
|
-
Object.entries(componentDefinition$
|
|
1788
|
+
if (componentDefinition$b && componentDefinition$b.props) {
|
|
1789
|
+
Object.entries(componentDefinition$b.props).forEach(([key, config]) => {
|
|
1650
1790
|
const propConfig = config;
|
|
1651
1791
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1652
1792
|
defaultProps$I[key] = propConfig.default;
|
|
@@ -1664,7 +1804,7 @@ function ShaderComponent$I(props) {
|
|
|
1664
1804
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1665
1805
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1666
1806
|
} = context;
|
|
1667
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1807
|
+
const instanceId = props.id || `${componentDefinition$b.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1668
1808
|
const effectiveProps = createMemo(() => {
|
|
1669
1809
|
let baseProps = {
|
|
1670
1810
|
...defaultProps$I
|
|
@@ -1683,7 +1823,7 @@ function ShaderComponent$I(props) {
|
|
|
1683
1823
|
let uniformsMap = null;
|
|
1684
1824
|
const getUniformsMap = () => {
|
|
1685
1825
|
if (!uniformsMap) {
|
|
1686
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1826
|
+
uniformsMap = createUniformsMap(componentDefinition$b, effectiveProps(), instanceId);
|
|
1687
1827
|
}
|
|
1688
1828
|
return uniformsMap;
|
|
1689
1829
|
};
|
|
@@ -1708,7 +1848,7 @@ function ShaderComponent$I(props) {
|
|
|
1708
1848
|
renderOrder: props.renderOrder || 0,
|
|
1709
1849
|
transform: effectiveTransform()
|
|
1710
1850
|
};
|
|
1711
|
-
parentRegister(instanceId, componentDefinition$
|
|
1851
|
+
parentRegister(instanceId, componentDefinition$b.fragmentNode, parentId, metadata, uniforms, componentDefinition$b);
|
|
1712
1852
|
isRegistered = true;
|
|
1713
1853
|
} catch (error) {
|
|
1714
1854
|
console.error("Error registering shader node:", error);
|
|
@@ -1784,8 +1924,8 @@ const defaultProps$H = {
|
|
|
1784
1924
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1785
1925
|
};
|
|
1786
1926
|
try {
|
|
1787
|
-
if (componentDefinition$
|
|
1788
|
-
Object.entries(componentDefinition$
|
|
1927
|
+
if (componentDefinition$c && componentDefinition$c.props) {
|
|
1928
|
+
Object.entries(componentDefinition$c.props).forEach(([key, config]) => {
|
|
1789
1929
|
const propConfig = config;
|
|
1790
1930
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1791
1931
|
defaultProps$H[key] = propConfig.default;
|
|
@@ -1803,7 +1943,7 @@ function ShaderComponent$H(props) {
|
|
|
1803
1943
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1804
1944
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1805
1945
|
} = context;
|
|
1806
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1946
|
+
const instanceId = props.id || `${componentDefinition$c.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1807
1947
|
const effectiveProps = createMemo(() => {
|
|
1808
1948
|
let baseProps = {
|
|
1809
1949
|
...defaultProps$H
|
|
@@ -1822,7 +1962,7 @@ function ShaderComponent$H(props) {
|
|
|
1822
1962
|
let uniformsMap = null;
|
|
1823
1963
|
const getUniformsMap = () => {
|
|
1824
1964
|
if (!uniformsMap) {
|
|
1825
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1965
|
+
uniformsMap = createUniformsMap(componentDefinition$c, effectiveProps(), instanceId);
|
|
1826
1966
|
}
|
|
1827
1967
|
return uniformsMap;
|
|
1828
1968
|
};
|
|
@@ -1847,7 +1987,7 @@ function ShaderComponent$H(props) {
|
|
|
1847
1987
|
renderOrder: props.renderOrder || 0,
|
|
1848
1988
|
transform: effectiveTransform()
|
|
1849
1989
|
};
|
|
1850
|
-
parentRegister(instanceId, componentDefinition$
|
|
1990
|
+
parentRegister(instanceId, componentDefinition$c.fragmentNode, parentId, metadata, uniforms, componentDefinition$c);
|
|
1851
1991
|
isRegistered = true;
|
|
1852
1992
|
} catch (error) {
|
|
1853
1993
|
console.error("Error registering shader node:", error);
|
|
@@ -1923,8 +2063,8 @@ const defaultProps$G = {
|
|
|
1923
2063
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1924
2064
|
};
|
|
1925
2065
|
try {
|
|
1926
|
-
if (componentDefinition$
|
|
1927
|
-
Object.entries(componentDefinition$
|
|
2066
|
+
if (componentDefinition$d && componentDefinition$d.props) {
|
|
2067
|
+
Object.entries(componentDefinition$d.props).forEach(([key, config]) => {
|
|
1928
2068
|
const propConfig = config;
|
|
1929
2069
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1930
2070
|
defaultProps$G[key] = propConfig.default;
|
|
@@ -1942,7 +2082,7 @@ function ShaderComponent$G(props) {
|
|
|
1942
2082
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1943
2083
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1944
2084
|
} = context;
|
|
1945
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2085
|
+
const instanceId = props.id || `${componentDefinition$d.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1946
2086
|
const effectiveProps = createMemo(() => {
|
|
1947
2087
|
let baseProps = {
|
|
1948
2088
|
...defaultProps$G
|
|
@@ -1961,7 +2101,7 @@ function ShaderComponent$G(props) {
|
|
|
1961
2101
|
let uniformsMap = null;
|
|
1962
2102
|
const getUniformsMap = () => {
|
|
1963
2103
|
if (!uniformsMap) {
|
|
1964
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2104
|
+
uniformsMap = createUniformsMap(componentDefinition$d, effectiveProps(), instanceId);
|
|
1965
2105
|
}
|
|
1966
2106
|
return uniformsMap;
|
|
1967
2107
|
};
|
|
@@ -1986,7 +2126,7 @@ function ShaderComponent$G(props) {
|
|
|
1986
2126
|
renderOrder: props.renderOrder || 0,
|
|
1987
2127
|
transform: effectiveTransform()
|
|
1988
2128
|
};
|
|
1989
|
-
parentRegister(instanceId, componentDefinition$
|
|
2129
|
+
parentRegister(instanceId, componentDefinition$d.fragmentNode, parentId, metadata, uniforms, componentDefinition$d);
|
|
1990
2130
|
isRegistered = true;
|
|
1991
2131
|
} catch (error) {
|
|
1992
2132
|
console.error("Error registering shader node:", error);
|
|
@@ -2062,8 +2202,8 @@ const defaultProps$F = {
|
|
|
2062
2202
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2063
2203
|
};
|
|
2064
2204
|
try {
|
|
2065
|
-
if (componentDefinition$
|
|
2066
|
-
Object.entries(componentDefinition$
|
|
2205
|
+
if (componentDefinition$e && componentDefinition$e.props) {
|
|
2206
|
+
Object.entries(componentDefinition$e.props).forEach(([key, config]) => {
|
|
2067
2207
|
const propConfig = config;
|
|
2068
2208
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2069
2209
|
defaultProps$F[key] = propConfig.default;
|
|
@@ -2081,7 +2221,7 @@ function ShaderComponent$F(props) {
|
|
|
2081
2221
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2082
2222
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2083
2223
|
} = context;
|
|
2084
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2224
|
+
const instanceId = props.id || `${componentDefinition$e.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2085
2225
|
const effectiveProps = createMemo(() => {
|
|
2086
2226
|
let baseProps = {
|
|
2087
2227
|
...defaultProps$F
|
|
@@ -2100,7 +2240,7 @@ function ShaderComponent$F(props) {
|
|
|
2100
2240
|
let uniformsMap = null;
|
|
2101
2241
|
const getUniformsMap = () => {
|
|
2102
2242
|
if (!uniformsMap) {
|
|
2103
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2243
|
+
uniformsMap = createUniformsMap(componentDefinition$e, effectiveProps(), instanceId);
|
|
2104
2244
|
}
|
|
2105
2245
|
return uniformsMap;
|
|
2106
2246
|
};
|
|
@@ -2125,7 +2265,7 @@ function ShaderComponent$F(props) {
|
|
|
2125
2265
|
renderOrder: props.renderOrder || 0,
|
|
2126
2266
|
transform: effectiveTransform()
|
|
2127
2267
|
};
|
|
2128
|
-
parentRegister(instanceId, componentDefinition$
|
|
2268
|
+
parentRegister(instanceId, componentDefinition$e.fragmentNode, parentId, metadata, uniforms, componentDefinition$e);
|
|
2129
2269
|
isRegistered = true;
|
|
2130
2270
|
} catch (error) {
|
|
2131
2271
|
console.error("Error registering shader node:", error);
|
|
@@ -2201,8 +2341,8 @@ const defaultProps$E = {
|
|
|
2201
2341
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2202
2342
|
};
|
|
2203
2343
|
try {
|
|
2204
|
-
if (componentDefinition$
|
|
2205
|
-
Object.entries(componentDefinition$
|
|
2344
|
+
if (componentDefinition$f && componentDefinition$f.props) {
|
|
2345
|
+
Object.entries(componentDefinition$f.props).forEach(([key, config]) => {
|
|
2206
2346
|
const propConfig = config;
|
|
2207
2347
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2208
2348
|
defaultProps$E[key] = propConfig.default;
|
|
@@ -2220,7 +2360,7 @@ function ShaderComponent$E(props) {
|
|
|
2220
2360
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2221
2361
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2222
2362
|
} = context;
|
|
2223
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2363
|
+
const instanceId = props.id || `${componentDefinition$f.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2224
2364
|
const effectiveProps = createMemo(() => {
|
|
2225
2365
|
let baseProps = {
|
|
2226
2366
|
...defaultProps$E
|
|
@@ -2239,7 +2379,7 @@ function ShaderComponent$E(props) {
|
|
|
2239
2379
|
let uniformsMap = null;
|
|
2240
2380
|
const getUniformsMap = () => {
|
|
2241
2381
|
if (!uniformsMap) {
|
|
2242
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2382
|
+
uniformsMap = createUniformsMap(componentDefinition$f, effectiveProps(), instanceId);
|
|
2243
2383
|
}
|
|
2244
2384
|
return uniformsMap;
|
|
2245
2385
|
};
|
|
@@ -2264,7 +2404,7 @@ function ShaderComponent$E(props) {
|
|
|
2264
2404
|
renderOrder: props.renderOrder || 0,
|
|
2265
2405
|
transform: effectiveTransform()
|
|
2266
2406
|
};
|
|
2267
|
-
parentRegister(instanceId, componentDefinition$
|
|
2407
|
+
parentRegister(instanceId, componentDefinition$f.fragmentNode, parentId, metadata, uniforms, componentDefinition$f);
|
|
2268
2408
|
isRegistered = true;
|
|
2269
2409
|
} catch (error) {
|
|
2270
2410
|
console.error("Error registering shader node:", error);
|
|
@@ -2340,8 +2480,8 @@ const defaultProps$D = {
|
|
|
2340
2480
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2341
2481
|
};
|
|
2342
2482
|
try {
|
|
2343
|
-
if (componentDefinition$
|
|
2344
|
-
Object.entries(componentDefinition$
|
|
2483
|
+
if (componentDefinition$g && componentDefinition$g.props) {
|
|
2484
|
+
Object.entries(componentDefinition$g.props).forEach(([key, config]) => {
|
|
2345
2485
|
const propConfig = config;
|
|
2346
2486
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2347
2487
|
defaultProps$D[key] = propConfig.default;
|
|
@@ -2359,7 +2499,7 @@ function ShaderComponent$D(props) {
|
|
|
2359
2499
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2360
2500
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2361
2501
|
} = context;
|
|
2362
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2502
|
+
const instanceId = props.id || `${componentDefinition$g.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2363
2503
|
const effectiveProps = createMemo(() => {
|
|
2364
2504
|
let baseProps = {
|
|
2365
2505
|
...defaultProps$D
|
|
@@ -2378,7 +2518,7 @@ function ShaderComponent$D(props) {
|
|
|
2378
2518
|
let uniformsMap = null;
|
|
2379
2519
|
const getUniformsMap = () => {
|
|
2380
2520
|
if (!uniformsMap) {
|
|
2381
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2521
|
+
uniformsMap = createUniformsMap(componentDefinition$g, effectiveProps(), instanceId);
|
|
2382
2522
|
}
|
|
2383
2523
|
return uniformsMap;
|
|
2384
2524
|
};
|
|
@@ -2403,7 +2543,7 @@ function ShaderComponent$D(props) {
|
|
|
2403
2543
|
renderOrder: props.renderOrder || 0,
|
|
2404
2544
|
transform: effectiveTransform()
|
|
2405
2545
|
};
|
|
2406
|
-
parentRegister(instanceId, componentDefinition$
|
|
2546
|
+
parentRegister(instanceId, componentDefinition$g.fragmentNode, parentId, metadata, uniforms, componentDefinition$g);
|
|
2407
2547
|
isRegistered = true;
|
|
2408
2548
|
} catch (error) {
|
|
2409
2549
|
console.error("Error registering shader node:", error);
|
|
@@ -2479,8 +2619,8 @@ const defaultProps$C = {
|
|
|
2479
2619
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2480
2620
|
};
|
|
2481
2621
|
try {
|
|
2482
|
-
if (componentDefinition$
|
|
2483
|
-
Object.entries(componentDefinition$
|
|
2622
|
+
if (componentDefinition$h && componentDefinition$h.props) {
|
|
2623
|
+
Object.entries(componentDefinition$h.props).forEach(([key, config]) => {
|
|
2484
2624
|
const propConfig = config;
|
|
2485
2625
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2486
2626
|
defaultProps$C[key] = propConfig.default;
|
|
@@ -2498,7 +2638,7 @@ function ShaderComponent$C(props) {
|
|
|
2498
2638
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2499
2639
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2500
2640
|
} = context;
|
|
2501
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2641
|
+
const instanceId = props.id || `${componentDefinition$h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2502
2642
|
const effectiveProps = createMemo(() => {
|
|
2503
2643
|
let baseProps = {
|
|
2504
2644
|
...defaultProps$C
|
|
@@ -2517,7 +2657,7 @@ function ShaderComponent$C(props) {
|
|
|
2517
2657
|
let uniformsMap = null;
|
|
2518
2658
|
const getUniformsMap = () => {
|
|
2519
2659
|
if (!uniformsMap) {
|
|
2520
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2660
|
+
uniformsMap = createUniformsMap(componentDefinition$h, effectiveProps(), instanceId);
|
|
2521
2661
|
}
|
|
2522
2662
|
return uniformsMap;
|
|
2523
2663
|
};
|
|
@@ -2542,7 +2682,7 @@ function ShaderComponent$C(props) {
|
|
|
2542
2682
|
renderOrder: props.renderOrder || 0,
|
|
2543
2683
|
transform: effectiveTransform()
|
|
2544
2684
|
};
|
|
2545
|
-
parentRegister(instanceId, componentDefinition$
|
|
2685
|
+
parentRegister(instanceId, componentDefinition$h.fragmentNode, parentId, metadata, uniforms, componentDefinition$h);
|
|
2546
2686
|
isRegistered = true;
|
|
2547
2687
|
} catch (error) {
|
|
2548
2688
|
console.error("Error registering shader node:", error);
|
|
@@ -2618,8 +2758,8 @@ const defaultProps$B = {
|
|
|
2618
2758
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2619
2759
|
};
|
|
2620
2760
|
try {
|
|
2621
|
-
if (componentDefinition$
|
|
2622
|
-
Object.entries(componentDefinition$
|
|
2761
|
+
if (componentDefinition$i && componentDefinition$i.props) {
|
|
2762
|
+
Object.entries(componentDefinition$i.props).forEach(([key, config]) => {
|
|
2623
2763
|
const propConfig = config;
|
|
2624
2764
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2625
2765
|
defaultProps$B[key] = propConfig.default;
|
|
@@ -2637,7 +2777,7 @@ function ShaderComponent$B(props) {
|
|
|
2637
2777
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2638
2778
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2639
2779
|
} = context;
|
|
2640
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2780
|
+
const instanceId = props.id || `${componentDefinition$i.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2641
2781
|
const effectiveProps = createMemo(() => {
|
|
2642
2782
|
let baseProps = {
|
|
2643
2783
|
...defaultProps$B
|
|
@@ -2656,7 +2796,7 @@ function ShaderComponent$B(props) {
|
|
|
2656
2796
|
let uniformsMap = null;
|
|
2657
2797
|
const getUniformsMap = () => {
|
|
2658
2798
|
if (!uniformsMap) {
|
|
2659
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2799
|
+
uniformsMap = createUniformsMap(componentDefinition$i, effectiveProps(), instanceId);
|
|
2660
2800
|
}
|
|
2661
2801
|
return uniformsMap;
|
|
2662
2802
|
};
|
|
@@ -2681,7 +2821,7 @@ function ShaderComponent$B(props) {
|
|
|
2681
2821
|
renderOrder: props.renderOrder || 0,
|
|
2682
2822
|
transform: effectiveTransform()
|
|
2683
2823
|
};
|
|
2684
|
-
parentRegister(instanceId, componentDefinition$
|
|
2824
|
+
parentRegister(instanceId, componentDefinition$i.fragmentNode, parentId, metadata, uniforms, componentDefinition$i);
|
|
2685
2825
|
isRegistered = true;
|
|
2686
2826
|
} catch (error) {
|
|
2687
2827
|
console.error("Error registering shader node:", error);
|
|
@@ -2757,8 +2897,8 @@ const defaultProps$A = {
|
|
|
2757
2897
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2758
2898
|
};
|
|
2759
2899
|
try {
|
|
2760
|
-
if (componentDefinition$
|
|
2761
|
-
Object.entries(componentDefinition$
|
|
2900
|
+
if (componentDefinition$j && componentDefinition$j.props) {
|
|
2901
|
+
Object.entries(componentDefinition$j.props).forEach(([key, config]) => {
|
|
2762
2902
|
const propConfig = config;
|
|
2763
2903
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2764
2904
|
defaultProps$A[key] = propConfig.default;
|
|
@@ -2776,7 +2916,7 @@ function ShaderComponent$A(props) {
|
|
|
2776
2916
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2777
2917
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2778
2918
|
} = context;
|
|
2779
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2919
|
+
const instanceId = props.id || `${componentDefinition$j.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2780
2920
|
const effectiveProps = createMemo(() => {
|
|
2781
2921
|
let baseProps = {
|
|
2782
2922
|
...defaultProps$A
|
|
@@ -2795,7 +2935,7 @@ function ShaderComponent$A(props) {
|
|
|
2795
2935
|
let uniformsMap = null;
|
|
2796
2936
|
const getUniformsMap = () => {
|
|
2797
2937
|
if (!uniformsMap) {
|
|
2798
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2938
|
+
uniformsMap = createUniformsMap(componentDefinition$j, effectiveProps(), instanceId);
|
|
2799
2939
|
}
|
|
2800
2940
|
return uniformsMap;
|
|
2801
2941
|
};
|
|
@@ -2820,7 +2960,7 @@ function ShaderComponent$A(props) {
|
|
|
2820
2960
|
renderOrder: props.renderOrder || 0,
|
|
2821
2961
|
transform: effectiveTransform()
|
|
2822
2962
|
};
|
|
2823
|
-
parentRegister(instanceId, componentDefinition$
|
|
2963
|
+
parentRegister(instanceId, componentDefinition$j.fragmentNode, parentId, metadata, uniforms, componentDefinition$j);
|
|
2824
2964
|
isRegistered = true;
|
|
2825
2965
|
} catch (error) {
|
|
2826
2966
|
console.error("Error registering shader node:", error);
|
|
@@ -2896,8 +3036,8 @@ const defaultProps$z = {
|
|
|
2896
3036
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2897
3037
|
};
|
|
2898
3038
|
try {
|
|
2899
|
-
if (componentDefinition$
|
|
2900
|
-
Object.entries(componentDefinition$
|
|
3039
|
+
if (componentDefinition$k && componentDefinition$k.props) {
|
|
3040
|
+
Object.entries(componentDefinition$k.props).forEach(([key, config]) => {
|
|
2901
3041
|
const propConfig = config;
|
|
2902
3042
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2903
3043
|
defaultProps$z[key] = propConfig.default;
|
|
@@ -2915,7 +3055,7 @@ function ShaderComponent$z(props) {
|
|
|
2915
3055
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2916
3056
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2917
3057
|
} = context;
|
|
2918
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3058
|
+
const instanceId = props.id || `${componentDefinition$k.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2919
3059
|
const effectiveProps = createMemo(() => {
|
|
2920
3060
|
let baseProps = {
|
|
2921
3061
|
...defaultProps$z
|
|
@@ -2934,7 +3074,7 @@ function ShaderComponent$z(props) {
|
|
|
2934
3074
|
let uniformsMap = null;
|
|
2935
3075
|
const getUniformsMap = () => {
|
|
2936
3076
|
if (!uniformsMap) {
|
|
2937
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3077
|
+
uniformsMap = createUniformsMap(componentDefinition$k, effectiveProps(), instanceId);
|
|
2938
3078
|
}
|
|
2939
3079
|
return uniformsMap;
|
|
2940
3080
|
};
|
|
@@ -2959,7 +3099,7 @@ function ShaderComponent$z(props) {
|
|
|
2959
3099
|
renderOrder: props.renderOrder || 0,
|
|
2960
3100
|
transform: effectiveTransform()
|
|
2961
3101
|
};
|
|
2962
|
-
parentRegister(instanceId, componentDefinition$
|
|
3102
|
+
parentRegister(instanceId, componentDefinition$k.fragmentNode, parentId, metadata, uniforms, componentDefinition$k);
|
|
2963
3103
|
isRegistered = true;
|
|
2964
3104
|
} catch (error) {
|
|
2965
3105
|
console.error("Error registering shader node:", error);
|
|
@@ -3035,8 +3175,8 @@ const defaultProps$y = {
|
|
|
3035
3175
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3036
3176
|
};
|
|
3037
3177
|
try {
|
|
3038
|
-
if (componentDefinition$
|
|
3039
|
-
Object.entries(componentDefinition$
|
|
3178
|
+
if (componentDefinition$l && componentDefinition$l.props) {
|
|
3179
|
+
Object.entries(componentDefinition$l.props).forEach(([key, config]) => {
|
|
3040
3180
|
const propConfig = config;
|
|
3041
3181
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3042
3182
|
defaultProps$y[key] = propConfig.default;
|
|
@@ -3054,7 +3194,7 @@ function ShaderComponent$y(props) {
|
|
|
3054
3194
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3055
3195
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3056
3196
|
} = context;
|
|
3057
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3197
|
+
const instanceId = props.id || `${componentDefinition$l.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3058
3198
|
const effectiveProps = createMemo(() => {
|
|
3059
3199
|
let baseProps = {
|
|
3060
3200
|
...defaultProps$y
|
|
@@ -3073,7 +3213,7 @@ function ShaderComponent$y(props) {
|
|
|
3073
3213
|
let uniformsMap = null;
|
|
3074
3214
|
const getUniformsMap = () => {
|
|
3075
3215
|
if (!uniformsMap) {
|
|
3076
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3216
|
+
uniformsMap = createUniformsMap(componentDefinition$l, effectiveProps(), instanceId);
|
|
3077
3217
|
}
|
|
3078
3218
|
return uniformsMap;
|
|
3079
3219
|
};
|
|
@@ -3098,7 +3238,7 @@ function ShaderComponent$y(props) {
|
|
|
3098
3238
|
renderOrder: props.renderOrder || 0,
|
|
3099
3239
|
transform: effectiveTransform()
|
|
3100
3240
|
};
|
|
3101
|
-
parentRegister(instanceId, componentDefinition$
|
|
3241
|
+
parentRegister(instanceId, componentDefinition$l.fragmentNode, parentId, metadata, uniforms, componentDefinition$l);
|
|
3102
3242
|
isRegistered = true;
|
|
3103
3243
|
} catch (error) {
|
|
3104
3244
|
console.error("Error registering shader node:", error);
|
|
@@ -3174,8 +3314,8 @@ const defaultProps$x = {
|
|
|
3174
3314
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3175
3315
|
};
|
|
3176
3316
|
try {
|
|
3177
|
-
if (componentDefinition$
|
|
3178
|
-
Object.entries(componentDefinition$
|
|
3317
|
+
if (componentDefinition$m && componentDefinition$m.props) {
|
|
3318
|
+
Object.entries(componentDefinition$m.props).forEach(([key, config]) => {
|
|
3179
3319
|
const propConfig = config;
|
|
3180
3320
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3181
3321
|
defaultProps$x[key] = propConfig.default;
|
|
@@ -3193,7 +3333,7 @@ function ShaderComponent$x(props) {
|
|
|
3193
3333
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3194
3334
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3195
3335
|
} = context;
|
|
3196
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3336
|
+
const instanceId = props.id || `${componentDefinition$m.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3197
3337
|
const effectiveProps = createMemo(() => {
|
|
3198
3338
|
let baseProps = {
|
|
3199
3339
|
...defaultProps$x
|
|
@@ -3212,7 +3352,7 @@ function ShaderComponent$x(props) {
|
|
|
3212
3352
|
let uniformsMap = null;
|
|
3213
3353
|
const getUniformsMap = () => {
|
|
3214
3354
|
if (!uniformsMap) {
|
|
3215
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3355
|
+
uniformsMap = createUniformsMap(componentDefinition$m, effectiveProps(), instanceId);
|
|
3216
3356
|
}
|
|
3217
3357
|
return uniformsMap;
|
|
3218
3358
|
};
|
|
@@ -3237,7 +3377,7 @@ function ShaderComponent$x(props) {
|
|
|
3237
3377
|
renderOrder: props.renderOrder || 0,
|
|
3238
3378
|
transform: effectiveTransform()
|
|
3239
3379
|
};
|
|
3240
|
-
parentRegister(instanceId, componentDefinition$
|
|
3380
|
+
parentRegister(instanceId, componentDefinition$m.fragmentNode, parentId, metadata, uniforms, componentDefinition$m);
|
|
3241
3381
|
isRegistered = true;
|
|
3242
3382
|
} catch (error) {
|
|
3243
3383
|
console.error("Error registering shader node:", error);
|
|
@@ -3313,8 +3453,8 @@ const defaultProps$w = {
|
|
|
3313
3453
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3314
3454
|
};
|
|
3315
3455
|
try {
|
|
3316
|
-
if (componentDefinition$
|
|
3317
|
-
Object.entries(componentDefinition$
|
|
3456
|
+
if (componentDefinition$n && componentDefinition$n.props) {
|
|
3457
|
+
Object.entries(componentDefinition$n.props).forEach(([key, config]) => {
|
|
3318
3458
|
const propConfig = config;
|
|
3319
3459
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3320
3460
|
defaultProps$w[key] = propConfig.default;
|
|
@@ -3332,7 +3472,7 @@ function ShaderComponent$w(props) {
|
|
|
3332
3472
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3333
3473
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3334
3474
|
} = context;
|
|
3335
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3475
|
+
const instanceId = props.id || `${componentDefinition$n.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3336
3476
|
const effectiveProps = createMemo(() => {
|
|
3337
3477
|
let baseProps = {
|
|
3338
3478
|
...defaultProps$w
|
|
@@ -3351,7 +3491,7 @@ function ShaderComponent$w(props) {
|
|
|
3351
3491
|
let uniformsMap = null;
|
|
3352
3492
|
const getUniformsMap = () => {
|
|
3353
3493
|
if (!uniformsMap) {
|
|
3354
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3494
|
+
uniformsMap = createUniformsMap(componentDefinition$n, effectiveProps(), instanceId);
|
|
3355
3495
|
}
|
|
3356
3496
|
return uniformsMap;
|
|
3357
3497
|
};
|
|
@@ -3376,7 +3516,7 @@ function ShaderComponent$w(props) {
|
|
|
3376
3516
|
renderOrder: props.renderOrder || 0,
|
|
3377
3517
|
transform: effectiveTransform()
|
|
3378
3518
|
};
|
|
3379
|
-
parentRegister(instanceId, componentDefinition$
|
|
3519
|
+
parentRegister(instanceId, componentDefinition$n.fragmentNode, parentId, metadata, uniforms, componentDefinition$n);
|
|
3380
3520
|
isRegistered = true;
|
|
3381
3521
|
} catch (error) {
|
|
3382
3522
|
console.error("Error registering shader node:", error);
|
|
@@ -3452,8 +3592,8 @@ const defaultProps$v = {
|
|
|
3452
3592
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3453
3593
|
};
|
|
3454
3594
|
try {
|
|
3455
|
-
if (componentDefinition$
|
|
3456
|
-
Object.entries(componentDefinition$
|
|
3595
|
+
if (componentDefinition$o && componentDefinition$o.props) {
|
|
3596
|
+
Object.entries(componentDefinition$o.props).forEach(([key, config]) => {
|
|
3457
3597
|
const propConfig = config;
|
|
3458
3598
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3459
3599
|
defaultProps$v[key] = propConfig.default;
|
|
@@ -3471,7 +3611,7 @@ function ShaderComponent$v(props) {
|
|
|
3471
3611
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3472
3612
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3473
3613
|
} = context;
|
|
3474
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3614
|
+
const instanceId = props.id || `${componentDefinition$o.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3475
3615
|
const effectiveProps = createMemo(() => {
|
|
3476
3616
|
let baseProps = {
|
|
3477
3617
|
...defaultProps$v
|
|
@@ -3490,7 +3630,7 @@ function ShaderComponent$v(props) {
|
|
|
3490
3630
|
let uniformsMap = null;
|
|
3491
3631
|
const getUniformsMap = () => {
|
|
3492
3632
|
if (!uniformsMap) {
|
|
3493
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3633
|
+
uniformsMap = createUniformsMap(componentDefinition$o, effectiveProps(), instanceId);
|
|
3494
3634
|
}
|
|
3495
3635
|
return uniformsMap;
|
|
3496
3636
|
};
|
|
@@ -3515,7 +3655,7 @@ function ShaderComponent$v(props) {
|
|
|
3515
3655
|
renderOrder: props.renderOrder || 0,
|
|
3516
3656
|
transform: effectiveTransform()
|
|
3517
3657
|
};
|
|
3518
|
-
parentRegister(instanceId, componentDefinition$
|
|
3658
|
+
parentRegister(instanceId, componentDefinition$o.fragmentNode, parentId, metadata, uniforms, componentDefinition$o);
|
|
3519
3659
|
isRegistered = true;
|
|
3520
3660
|
} catch (error) {
|
|
3521
3661
|
console.error("Error registering shader node:", error);
|
|
@@ -3591,8 +3731,8 @@ const defaultProps$u = {
|
|
|
3591
3731
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3592
3732
|
};
|
|
3593
3733
|
try {
|
|
3594
|
-
if (componentDefinition$
|
|
3595
|
-
Object.entries(componentDefinition$
|
|
3734
|
+
if (componentDefinition$p && componentDefinition$p.props) {
|
|
3735
|
+
Object.entries(componentDefinition$p.props).forEach(([key, config]) => {
|
|
3596
3736
|
const propConfig = config;
|
|
3597
3737
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3598
3738
|
defaultProps$u[key] = propConfig.default;
|
|
@@ -3610,7 +3750,7 @@ function ShaderComponent$u(props) {
|
|
|
3610
3750
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3611
3751
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3612
3752
|
} = context;
|
|
3613
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3753
|
+
const instanceId = props.id || `${componentDefinition$p.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3614
3754
|
const effectiveProps = createMemo(() => {
|
|
3615
3755
|
let baseProps = {
|
|
3616
3756
|
...defaultProps$u
|
|
@@ -3629,7 +3769,7 @@ function ShaderComponent$u(props) {
|
|
|
3629
3769
|
let uniformsMap = null;
|
|
3630
3770
|
const getUniformsMap = () => {
|
|
3631
3771
|
if (!uniformsMap) {
|
|
3632
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3772
|
+
uniformsMap = createUniformsMap(componentDefinition$p, effectiveProps(), instanceId);
|
|
3633
3773
|
}
|
|
3634
3774
|
return uniformsMap;
|
|
3635
3775
|
};
|
|
@@ -3654,7 +3794,7 @@ function ShaderComponent$u(props) {
|
|
|
3654
3794
|
renderOrder: props.renderOrder || 0,
|
|
3655
3795
|
transform: effectiveTransform()
|
|
3656
3796
|
};
|
|
3657
|
-
parentRegister(instanceId, componentDefinition$
|
|
3797
|
+
parentRegister(instanceId, componentDefinition$p.fragmentNode, parentId, metadata, uniforms, componentDefinition$p);
|
|
3658
3798
|
isRegistered = true;
|
|
3659
3799
|
} catch (error) {
|
|
3660
3800
|
console.error("Error registering shader node:", error);
|
|
@@ -3730,8 +3870,8 @@ const defaultProps$t = {
|
|
|
3730
3870
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3731
3871
|
};
|
|
3732
3872
|
try {
|
|
3733
|
-
if (componentDefinition$
|
|
3734
|
-
Object.entries(componentDefinition$
|
|
3873
|
+
if (componentDefinition$q && componentDefinition$q.props) {
|
|
3874
|
+
Object.entries(componentDefinition$q.props).forEach(([key, config]) => {
|
|
3735
3875
|
const propConfig = config;
|
|
3736
3876
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3737
3877
|
defaultProps$t[key] = propConfig.default;
|
|
@@ -3749,7 +3889,7 @@ function ShaderComponent$t(props) {
|
|
|
3749
3889
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3750
3890
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3751
3891
|
} = context;
|
|
3752
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3892
|
+
const instanceId = props.id || `${componentDefinition$q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3753
3893
|
const effectiveProps = createMemo(() => {
|
|
3754
3894
|
let baseProps = {
|
|
3755
3895
|
...defaultProps$t
|
|
@@ -3768,7 +3908,7 @@ function ShaderComponent$t(props) {
|
|
|
3768
3908
|
let uniformsMap = null;
|
|
3769
3909
|
const getUniformsMap = () => {
|
|
3770
3910
|
if (!uniformsMap) {
|
|
3771
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3911
|
+
uniformsMap = createUniformsMap(componentDefinition$q, effectiveProps(), instanceId);
|
|
3772
3912
|
}
|
|
3773
3913
|
return uniformsMap;
|
|
3774
3914
|
};
|
|
@@ -3793,7 +3933,7 @@ function ShaderComponent$t(props) {
|
|
|
3793
3933
|
renderOrder: props.renderOrder || 0,
|
|
3794
3934
|
transform: effectiveTransform()
|
|
3795
3935
|
};
|
|
3796
|
-
parentRegister(instanceId, componentDefinition$
|
|
3936
|
+
parentRegister(instanceId, componentDefinition$q.fragmentNode, parentId, metadata, uniforms, componentDefinition$q);
|
|
3797
3937
|
isRegistered = true;
|
|
3798
3938
|
} catch (error) {
|
|
3799
3939
|
console.error("Error registering shader node:", error);
|
|
@@ -3869,8 +4009,8 @@ const defaultProps$s = {
|
|
|
3869
4009
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3870
4010
|
};
|
|
3871
4011
|
try {
|
|
3872
|
-
if (componentDefinition$
|
|
3873
|
-
Object.entries(componentDefinition$
|
|
4012
|
+
if (componentDefinition$r && componentDefinition$r.props) {
|
|
4013
|
+
Object.entries(componentDefinition$r.props).forEach(([key, config]) => {
|
|
3874
4014
|
const propConfig = config;
|
|
3875
4015
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3876
4016
|
defaultProps$s[key] = propConfig.default;
|
|
@@ -3888,7 +4028,7 @@ function ShaderComponent$s(props) {
|
|
|
3888
4028
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3889
4029
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3890
4030
|
} = context;
|
|
3891
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4031
|
+
const instanceId = props.id || `${componentDefinition$r.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3892
4032
|
const effectiveProps = createMemo(() => {
|
|
3893
4033
|
let baseProps = {
|
|
3894
4034
|
...defaultProps$s
|
|
@@ -3907,7 +4047,7 @@ function ShaderComponent$s(props) {
|
|
|
3907
4047
|
let uniformsMap = null;
|
|
3908
4048
|
const getUniformsMap = () => {
|
|
3909
4049
|
if (!uniformsMap) {
|
|
3910
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4050
|
+
uniformsMap = createUniformsMap(componentDefinition$r, effectiveProps(), instanceId);
|
|
3911
4051
|
}
|
|
3912
4052
|
return uniformsMap;
|
|
3913
4053
|
};
|
|
@@ -3932,7 +4072,7 @@ function ShaderComponent$s(props) {
|
|
|
3932
4072
|
renderOrder: props.renderOrder || 0,
|
|
3933
4073
|
transform: effectiveTransform()
|
|
3934
4074
|
};
|
|
3935
|
-
parentRegister(instanceId, componentDefinition$
|
|
4075
|
+
parentRegister(instanceId, componentDefinition$r.fragmentNode, parentId, metadata, uniforms, componentDefinition$r);
|
|
3936
4076
|
isRegistered = true;
|
|
3937
4077
|
} catch (error) {
|
|
3938
4078
|
console.error("Error registering shader node:", error);
|
|
@@ -4008,8 +4148,8 @@ const defaultProps$r = {
|
|
|
4008
4148
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4009
4149
|
};
|
|
4010
4150
|
try {
|
|
4011
|
-
if (componentDefinition$
|
|
4012
|
-
Object.entries(componentDefinition$
|
|
4151
|
+
if (componentDefinition$s && componentDefinition$s.props) {
|
|
4152
|
+
Object.entries(componentDefinition$s.props).forEach(([key, config]) => {
|
|
4013
4153
|
const propConfig = config;
|
|
4014
4154
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4015
4155
|
defaultProps$r[key] = propConfig.default;
|
|
@@ -4027,7 +4167,7 @@ function ShaderComponent$r(props) {
|
|
|
4027
4167
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4028
4168
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4029
4169
|
} = context;
|
|
4030
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4170
|
+
const instanceId = props.id || `${componentDefinition$s.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4031
4171
|
const effectiveProps = createMemo(() => {
|
|
4032
4172
|
let baseProps = {
|
|
4033
4173
|
...defaultProps$r
|
|
@@ -4046,7 +4186,7 @@ function ShaderComponent$r(props) {
|
|
|
4046
4186
|
let uniformsMap = null;
|
|
4047
4187
|
const getUniformsMap = () => {
|
|
4048
4188
|
if (!uniformsMap) {
|
|
4049
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4189
|
+
uniformsMap = createUniformsMap(componentDefinition$s, effectiveProps(), instanceId);
|
|
4050
4190
|
}
|
|
4051
4191
|
return uniformsMap;
|
|
4052
4192
|
};
|
|
@@ -4071,7 +4211,7 @@ function ShaderComponent$r(props) {
|
|
|
4071
4211
|
renderOrder: props.renderOrder || 0,
|
|
4072
4212
|
transform: effectiveTransform()
|
|
4073
4213
|
};
|
|
4074
|
-
parentRegister(instanceId, componentDefinition$
|
|
4214
|
+
parentRegister(instanceId, componentDefinition$s.fragmentNode, parentId, metadata, uniforms, componentDefinition$s);
|
|
4075
4215
|
isRegistered = true;
|
|
4076
4216
|
} catch (error) {
|
|
4077
4217
|
console.error("Error registering shader node:", error);
|
|
@@ -4147,8 +4287,8 @@ const defaultProps$q = {
|
|
|
4147
4287
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4148
4288
|
};
|
|
4149
4289
|
try {
|
|
4150
|
-
if (componentDefinition$
|
|
4151
|
-
Object.entries(componentDefinition$
|
|
4290
|
+
if (componentDefinition$t && componentDefinition$t.props) {
|
|
4291
|
+
Object.entries(componentDefinition$t.props).forEach(([key, config]) => {
|
|
4152
4292
|
const propConfig = config;
|
|
4153
4293
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4154
4294
|
defaultProps$q[key] = propConfig.default;
|
|
@@ -4166,7 +4306,7 @@ function ShaderComponent$q(props) {
|
|
|
4166
4306
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4167
4307
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4168
4308
|
} = context;
|
|
4169
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4309
|
+
const instanceId = props.id || `${componentDefinition$t.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4170
4310
|
const effectiveProps = createMemo(() => {
|
|
4171
4311
|
let baseProps = {
|
|
4172
4312
|
...defaultProps$q
|
|
@@ -4185,7 +4325,7 @@ function ShaderComponent$q(props) {
|
|
|
4185
4325
|
let uniformsMap = null;
|
|
4186
4326
|
const getUniformsMap = () => {
|
|
4187
4327
|
if (!uniformsMap) {
|
|
4188
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4328
|
+
uniformsMap = createUniformsMap(componentDefinition$t, effectiveProps(), instanceId);
|
|
4189
4329
|
}
|
|
4190
4330
|
return uniformsMap;
|
|
4191
4331
|
};
|
|
@@ -4210,7 +4350,7 @@ function ShaderComponent$q(props) {
|
|
|
4210
4350
|
renderOrder: props.renderOrder || 0,
|
|
4211
4351
|
transform: effectiveTransform()
|
|
4212
4352
|
};
|
|
4213
|
-
parentRegister(instanceId, componentDefinition$
|
|
4353
|
+
parentRegister(instanceId, componentDefinition$t.fragmentNode, parentId, metadata, uniforms, componentDefinition$t);
|
|
4214
4354
|
isRegistered = true;
|
|
4215
4355
|
} catch (error) {
|
|
4216
4356
|
console.error("Error registering shader node:", error);
|
|
@@ -4286,8 +4426,8 @@ const defaultProps$p = {
|
|
|
4286
4426
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4287
4427
|
};
|
|
4288
4428
|
try {
|
|
4289
|
-
if (componentDefinition$
|
|
4290
|
-
Object.entries(componentDefinition$
|
|
4429
|
+
if (componentDefinition$u && componentDefinition$u.props) {
|
|
4430
|
+
Object.entries(componentDefinition$u.props).forEach(([key, config]) => {
|
|
4291
4431
|
const propConfig = config;
|
|
4292
4432
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4293
4433
|
defaultProps$p[key] = propConfig.default;
|
|
@@ -4305,7 +4445,7 @@ function ShaderComponent$p(props) {
|
|
|
4305
4445
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4306
4446
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4307
4447
|
} = context;
|
|
4308
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4448
|
+
const instanceId = props.id || `${componentDefinition$u.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4309
4449
|
const effectiveProps = createMemo(() => {
|
|
4310
4450
|
let baseProps = {
|
|
4311
4451
|
...defaultProps$p
|
|
@@ -4324,7 +4464,7 @@ function ShaderComponent$p(props) {
|
|
|
4324
4464
|
let uniformsMap = null;
|
|
4325
4465
|
const getUniformsMap = () => {
|
|
4326
4466
|
if (!uniformsMap) {
|
|
4327
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4467
|
+
uniformsMap = createUniformsMap(componentDefinition$u, effectiveProps(), instanceId);
|
|
4328
4468
|
}
|
|
4329
4469
|
return uniformsMap;
|
|
4330
4470
|
};
|
|
@@ -4349,7 +4489,7 @@ function ShaderComponent$p(props) {
|
|
|
4349
4489
|
renderOrder: props.renderOrder || 0,
|
|
4350
4490
|
transform: effectiveTransform()
|
|
4351
4491
|
};
|
|
4352
|
-
parentRegister(instanceId, componentDefinition$
|
|
4492
|
+
parentRegister(instanceId, componentDefinition$u.fragmentNode, parentId, metadata, uniforms, componentDefinition$u);
|
|
4353
4493
|
isRegistered = true;
|
|
4354
4494
|
} catch (error) {
|
|
4355
4495
|
console.error("Error registering shader node:", error);
|
|
@@ -4425,8 +4565,8 @@ const defaultProps$o = {
|
|
|
4425
4565
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4426
4566
|
};
|
|
4427
4567
|
try {
|
|
4428
|
-
if (componentDefinition$
|
|
4429
|
-
Object.entries(componentDefinition$
|
|
4568
|
+
if (componentDefinition$v && componentDefinition$v.props) {
|
|
4569
|
+
Object.entries(componentDefinition$v.props).forEach(([key, config]) => {
|
|
4430
4570
|
const propConfig = config;
|
|
4431
4571
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4432
4572
|
defaultProps$o[key] = propConfig.default;
|
|
@@ -4444,7 +4584,7 @@ function ShaderComponent$o(props) {
|
|
|
4444
4584
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4445
4585
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4446
4586
|
} = context;
|
|
4447
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4587
|
+
const instanceId = props.id || `${componentDefinition$v.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4448
4588
|
const effectiveProps = createMemo(() => {
|
|
4449
4589
|
let baseProps = {
|
|
4450
4590
|
...defaultProps$o
|
|
@@ -4463,7 +4603,7 @@ function ShaderComponent$o(props) {
|
|
|
4463
4603
|
let uniformsMap = null;
|
|
4464
4604
|
const getUniformsMap = () => {
|
|
4465
4605
|
if (!uniformsMap) {
|
|
4466
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4606
|
+
uniformsMap = createUniformsMap(componentDefinition$v, effectiveProps(), instanceId);
|
|
4467
4607
|
}
|
|
4468
4608
|
return uniformsMap;
|
|
4469
4609
|
};
|
|
@@ -4488,7 +4628,7 @@ function ShaderComponent$o(props) {
|
|
|
4488
4628
|
renderOrder: props.renderOrder || 0,
|
|
4489
4629
|
transform: effectiveTransform()
|
|
4490
4630
|
};
|
|
4491
|
-
parentRegister(instanceId, componentDefinition$
|
|
4631
|
+
parentRegister(instanceId, componentDefinition$v.fragmentNode, parentId, metadata, uniforms, componentDefinition$v);
|
|
4492
4632
|
isRegistered = true;
|
|
4493
4633
|
} catch (error) {
|
|
4494
4634
|
console.error("Error registering shader node:", error);
|
|
@@ -4564,8 +4704,8 @@ const defaultProps$n = {
|
|
|
4564
4704
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4565
4705
|
};
|
|
4566
4706
|
try {
|
|
4567
|
-
if (componentDefinition$
|
|
4568
|
-
Object.entries(componentDefinition$
|
|
4707
|
+
if (componentDefinition$w && componentDefinition$w.props) {
|
|
4708
|
+
Object.entries(componentDefinition$w.props).forEach(([key, config]) => {
|
|
4569
4709
|
const propConfig = config;
|
|
4570
4710
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4571
4711
|
defaultProps$n[key] = propConfig.default;
|
|
@@ -4583,7 +4723,7 @@ function ShaderComponent$n(props) {
|
|
|
4583
4723
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4584
4724
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4585
4725
|
} = context;
|
|
4586
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4726
|
+
const instanceId = props.id || `${componentDefinition$w.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4587
4727
|
const effectiveProps = createMemo(() => {
|
|
4588
4728
|
let baseProps = {
|
|
4589
4729
|
...defaultProps$n
|
|
@@ -4602,7 +4742,7 @@ function ShaderComponent$n(props) {
|
|
|
4602
4742
|
let uniformsMap = null;
|
|
4603
4743
|
const getUniformsMap = () => {
|
|
4604
4744
|
if (!uniformsMap) {
|
|
4605
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4745
|
+
uniformsMap = createUniformsMap(componentDefinition$w, effectiveProps(), instanceId);
|
|
4606
4746
|
}
|
|
4607
4747
|
return uniformsMap;
|
|
4608
4748
|
};
|
|
@@ -4627,7 +4767,7 @@ function ShaderComponent$n(props) {
|
|
|
4627
4767
|
renderOrder: props.renderOrder || 0,
|
|
4628
4768
|
transform: effectiveTransform()
|
|
4629
4769
|
};
|
|
4630
|
-
parentRegister(instanceId, componentDefinition$
|
|
4770
|
+
parentRegister(instanceId, componentDefinition$w.fragmentNode, parentId, metadata, uniforms, componentDefinition$w);
|
|
4631
4771
|
isRegistered = true;
|
|
4632
4772
|
} catch (error) {
|
|
4633
4773
|
console.error("Error registering shader node:", error);
|
|
@@ -4703,8 +4843,8 @@ const defaultProps$m = {
|
|
|
4703
4843
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4704
4844
|
};
|
|
4705
4845
|
try {
|
|
4706
|
-
if (componentDefinition$
|
|
4707
|
-
Object.entries(componentDefinition$
|
|
4846
|
+
if (componentDefinition$x && componentDefinition$x.props) {
|
|
4847
|
+
Object.entries(componentDefinition$x.props).forEach(([key, config]) => {
|
|
4708
4848
|
const propConfig = config;
|
|
4709
4849
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4710
4850
|
defaultProps$m[key] = propConfig.default;
|
|
@@ -4722,7 +4862,7 @@ function ShaderComponent$m(props) {
|
|
|
4722
4862
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4723
4863
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4724
4864
|
} = context;
|
|
4725
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4865
|
+
const instanceId = props.id || `${componentDefinition$x.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4726
4866
|
const effectiveProps = createMemo(() => {
|
|
4727
4867
|
let baseProps = {
|
|
4728
4868
|
...defaultProps$m
|
|
@@ -4741,7 +4881,7 @@ function ShaderComponent$m(props) {
|
|
|
4741
4881
|
let uniformsMap = null;
|
|
4742
4882
|
const getUniformsMap = () => {
|
|
4743
4883
|
if (!uniformsMap) {
|
|
4744
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4884
|
+
uniformsMap = createUniformsMap(componentDefinition$x, effectiveProps(), instanceId);
|
|
4745
4885
|
}
|
|
4746
4886
|
return uniformsMap;
|
|
4747
4887
|
};
|
|
@@ -4766,7 +4906,7 @@ function ShaderComponent$m(props) {
|
|
|
4766
4906
|
renderOrder: props.renderOrder || 0,
|
|
4767
4907
|
transform: effectiveTransform()
|
|
4768
4908
|
};
|
|
4769
|
-
parentRegister(instanceId, componentDefinition$
|
|
4909
|
+
parentRegister(instanceId, componentDefinition$x.fragmentNode, parentId, metadata, uniforms, componentDefinition$x);
|
|
4770
4910
|
isRegistered = true;
|
|
4771
4911
|
} catch (error) {
|
|
4772
4912
|
console.error("Error registering shader node:", error);
|
|
@@ -4842,8 +4982,8 @@ const defaultProps$l = {
|
|
|
4842
4982
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4843
4983
|
};
|
|
4844
4984
|
try {
|
|
4845
|
-
if (componentDefinition$
|
|
4846
|
-
Object.entries(componentDefinition$
|
|
4985
|
+
if (componentDefinition$y && componentDefinition$y.props) {
|
|
4986
|
+
Object.entries(componentDefinition$y.props).forEach(([key, config]) => {
|
|
4847
4987
|
const propConfig = config;
|
|
4848
4988
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4849
4989
|
defaultProps$l[key] = propConfig.default;
|
|
@@ -4861,7 +5001,7 @@ function ShaderComponent$l(props) {
|
|
|
4861
5001
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4862
5002
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4863
5003
|
} = context;
|
|
4864
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5004
|
+
const instanceId = props.id || `${componentDefinition$y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4865
5005
|
const effectiveProps = createMemo(() => {
|
|
4866
5006
|
let baseProps = {
|
|
4867
5007
|
...defaultProps$l
|
|
@@ -4880,7 +5020,7 @@ function ShaderComponent$l(props) {
|
|
|
4880
5020
|
let uniformsMap = null;
|
|
4881
5021
|
const getUniformsMap = () => {
|
|
4882
5022
|
if (!uniformsMap) {
|
|
4883
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5023
|
+
uniformsMap = createUniformsMap(componentDefinition$y, effectiveProps(), instanceId);
|
|
4884
5024
|
}
|
|
4885
5025
|
return uniformsMap;
|
|
4886
5026
|
};
|
|
@@ -4905,7 +5045,7 @@ function ShaderComponent$l(props) {
|
|
|
4905
5045
|
renderOrder: props.renderOrder || 0,
|
|
4906
5046
|
transform: effectiveTransform()
|
|
4907
5047
|
};
|
|
4908
|
-
parentRegister(instanceId, componentDefinition$
|
|
5048
|
+
parentRegister(instanceId, componentDefinition$y.fragmentNode, parentId, metadata, uniforms, componentDefinition$y);
|
|
4909
5049
|
isRegistered = true;
|
|
4910
5050
|
} catch (error) {
|
|
4911
5051
|
console.error("Error registering shader node:", error);
|
|
@@ -4981,8 +5121,8 @@ const defaultProps$k = {
|
|
|
4981
5121
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4982
5122
|
};
|
|
4983
5123
|
try {
|
|
4984
|
-
if (componentDefinition$
|
|
4985
|
-
Object.entries(componentDefinition$
|
|
5124
|
+
if (componentDefinition$z && componentDefinition$z.props) {
|
|
5125
|
+
Object.entries(componentDefinition$z.props).forEach(([key, config]) => {
|
|
4986
5126
|
const propConfig = config;
|
|
4987
5127
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4988
5128
|
defaultProps$k[key] = propConfig.default;
|
|
@@ -5000,7 +5140,7 @@ function ShaderComponent$k(props) {
|
|
|
5000
5140
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5001
5141
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5002
5142
|
} = context;
|
|
5003
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5143
|
+
const instanceId = props.id || `${componentDefinition$z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5004
5144
|
const effectiveProps = createMemo(() => {
|
|
5005
5145
|
let baseProps = {
|
|
5006
5146
|
...defaultProps$k
|
|
@@ -5019,7 +5159,7 @@ function ShaderComponent$k(props) {
|
|
|
5019
5159
|
let uniformsMap = null;
|
|
5020
5160
|
const getUniformsMap = () => {
|
|
5021
5161
|
if (!uniformsMap) {
|
|
5022
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5162
|
+
uniformsMap = createUniformsMap(componentDefinition$z, effectiveProps(), instanceId);
|
|
5023
5163
|
}
|
|
5024
5164
|
return uniformsMap;
|
|
5025
5165
|
};
|
|
@@ -5044,7 +5184,7 @@ function ShaderComponent$k(props) {
|
|
|
5044
5184
|
renderOrder: props.renderOrder || 0,
|
|
5045
5185
|
transform: effectiveTransform()
|
|
5046
5186
|
};
|
|
5047
|
-
parentRegister(instanceId, componentDefinition$
|
|
5187
|
+
parentRegister(instanceId, componentDefinition$z.fragmentNode, parentId, metadata, uniforms, componentDefinition$z);
|
|
5048
5188
|
isRegistered = true;
|
|
5049
5189
|
} catch (error) {
|
|
5050
5190
|
console.error("Error registering shader node:", error);
|
|
@@ -5120,8 +5260,8 @@ const defaultProps$j = {
|
|
|
5120
5260
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5121
5261
|
};
|
|
5122
5262
|
try {
|
|
5123
|
-
if (componentDefinition$
|
|
5124
|
-
Object.entries(componentDefinition$
|
|
5263
|
+
if (componentDefinition$A && componentDefinition$A.props) {
|
|
5264
|
+
Object.entries(componentDefinition$A.props).forEach(([key, config]) => {
|
|
5125
5265
|
const propConfig = config;
|
|
5126
5266
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5127
5267
|
defaultProps$j[key] = propConfig.default;
|
|
@@ -5139,7 +5279,7 @@ function ShaderComponent$j(props) {
|
|
|
5139
5279
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5140
5280
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5141
5281
|
} = context;
|
|
5142
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5282
|
+
const instanceId = props.id || `${componentDefinition$A.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5143
5283
|
const effectiveProps = createMemo(() => {
|
|
5144
5284
|
let baseProps = {
|
|
5145
5285
|
...defaultProps$j
|
|
@@ -5158,7 +5298,7 @@ function ShaderComponent$j(props) {
|
|
|
5158
5298
|
let uniformsMap = null;
|
|
5159
5299
|
const getUniformsMap = () => {
|
|
5160
5300
|
if (!uniformsMap) {
|
|
5161
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5301
|
+
uniformsMap = createUniformsMap(componentDefinition$A, effectiveProps(), instanceId);
|
|
5162
5302
|
}
|
|
5163
5303
|
return uniformsMap;
|
|
5164
5304
|
};
|
|
@@ -5183,7 +5323,7 @@ function ShaderComponent$j(props) {
|
|
|
5183
5323
|
renderOrder: props.renderOrder || 0,
|
|
5184
5324
|
transform: effectiveTransform()
|
|
5185
5325
|
};
|
|
5186
|
-
parentRegister(instanceId, componentDefinition$
|
|
5326
|
+
parentRegister(instanceId, componentDefinition$A.fragmentNode, parentId, metadata, uniforms, componentDefinition$A);
|
|
5187
5327
|
isRegistered = true;
|
|
5188
5328
|
} catch (error) {
|
|
5189
5329
|
console.error("Error registering shader node:", error);
|
|
@@ -5259,8 +5399,8 @@ const defaultProps$i = {
|
|
|
5259
5399
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5260
5400
|
};
|
|
5261
5401
|
try {
|
|
5262
|
-
if (componentDefinition$
|
|
5263
|
-
Object.entries(componentDefinition$
|
|
5402
|
+
if (componentDefinition$B && componentDefinition$B.props) {
|
|
5403
|
+
Object.entries(componentDefinition$B.props).forEach(([key, config]) => {
|
|
5264
5404
|
const propConfig = config;
|
|
5265
5405
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5266
5406
|
defaultProps$i[key] = propConfig.default;
|
|
@@ -5278,7 +5418,7 @@ function ShaderComponent$i(props) {
|
|
|
5278
5418
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5279
5419
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5280
5420
|
} = context;
|
|
5281
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5421
|
+
const instanceId = props.id || `${componentDefinition$B.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5282
5422
|
const effectiveProps = createMemo(() => {
|
|
5283
5423
|
let baseProps = {
|
|
5284
5424
|
...defaultProps$i
|
|
@@ -5297,7 +5437,7 @@ function ShaderComponent$i(props) {
|
|
|
5297
5437
|
let uniformsMap = null;
|
|
5298
5438
|
const getUniformsMap = () => {
|
|
5299
5439
|
if (!uniformsMap) {
|
|
5300
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5440
|
+
uniformsMap = createUniformsMap(componentDefinition$B, effectiveProps(), instanceId);
|
|
5301
5441
|
}
|
|
5302
5442
|
return uniformsMap;
|
|
5303
5443
|
};
|
|
@@ -5322,7 +5462,7 @@ function ShaderComponent$i(props) {
|
|
|
5322
5462
|
renderOrder: props.renderOrder || 0,
|
|
5323
5463
|
transform: effectiveTransform()
|
|
5324
5464
|
};
|
|
5325
|
-
parentRegister(instanceId, componentDefinition$
|
|
5465
|
+
parentRegister(instanceId, componentDefinition$B.fragmentNode, parentId, metadata, uniforms, componentDefinition$B);
|
|
5326
5466
|
isRegistered = true;
|
|
5327
5467
|
} catch (error) {
|
|
5328
5468
|
console.error("Error registering shader node:", error);
|
|
@@ -5398,8 +5538,8 @@ const defaultProps$h = {
|
|
|
5398
5538
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5399
5539
|
};
|
|
5400
5540
|
try {
|
|
5401
|
-
if (componentDefinition$
|
|
5402
|
-
Object.entries(componentDefinition$
|
|
5541
|
+
if (componentDefinition$C && componentDefinition$C.props) {
|
|
5542
|
+
Object.entries(componentDefinition$C.props).forEach(([key, config]) => {
|
|
5403
5543
|
const propConfig = config;
|
|
5404
5544
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5405
5545
|
defaultProps$h[key] = propConfig.default;
|
|
@@ -5417,7 +5557,7 @@ function ShaderComponent$h(props) {
|
|
|
5417
5557
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5418
5558
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5419
5559
|
} = context;
|
|
5420
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5560
|
+
const instanceId = props.id || `${componentDefinition$C.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5421
5561
|
const effectiveProps = createMemo(() => {
|
|
5422
5562
|
let baseProps = {
|
|
5423
5563
|
...defaultProps$h
|
|
@@ -5436,7 +5576,7 @@ function ShaderComponent$h(props) {
|
|
|
5436
5576
|
let uniformsMap = null;
|
|
5437
5577
|
const getUniformsMap = () => {
|
|
5438
5578
|
if (!uniformsMap) {
|
|
5439
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5579
|
+
uniformsMap = createUniformsMap(componentDefinition$C, effectiveProps(), instanceId);
|
|
5440
5580
|
}
|
|
5441
5581
|
return uniformsMap;
|
|
5442
5582
|
};
|
|
@@ -5461,7 +5601,7 @@ function ShaderComponent$h(props) {
|
|
|
5461
5601
|
renderOrder: props.renderOrder || 0,
|
|
5462
5602
|
transform: effectiveTransform()
|
|
5463
5603
|
};
|
|
5464
|
-
parentRegister(instanceId, componentDefinition$
|
|
5604
|
+
parentRegister(instanceId, componentDefinition$C.fragmentNode, parentId, metadata, uniforms, componentDefinition$C);
|
|
5465
5605
|
isRegistered = true;
|
|
5466
5606
|
} catch (error) {
|
|
5467
5607
|
console.error("Error registering shader node:", error);
|
|
@@ -5537,8 +5677,8 @@ const defaultProps$g = {
|
|
|
5537
5677
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5538
5678
|
};
|
|
5539
5679
|
try {
|
|
5540
|
-
if (componentDefinition$
|
|
5541
|
-
Object.entries(componentDefinition$
|
|
5680
|
+
if (componentDefinition$D && componentDefinition$D.props) {
|
|
5681
|
+
Object.entries(componentDefinition$D.props).forEach(([key, config]) => {
|
|
5542
5682
|
const propConfig = config;
|
|
5543
5683
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5544
5684
|
defaultProps$g[key] = propConfig.default;
|
|
@@ -5556,7 +5696,7 @@ function ShaderComponent$g(props) {
|
|
|
5556
5696
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5557
5697
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5558
5698
|
} = context;
|
|
5559
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5699
|
+
const instanceId = props.id || `${componentDefinition$D.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5560
5700
|
const effectiveProps = createMemo(() => {
|
|
5561
5701
|
let baseProps = {
|
|
5562
5702
|
...defaultProps$g
|
|
@@ -5575,7 +5715,7 @@ function ShaderComponent$g(props) {
|
|
|
5575
5715
|
let uniformsMap = null;
|
|
5576
5716
|
const getUniformsMap = () => {
|
|
5577
5717
|
if (!uniformsMap) {
|
|
5578
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5718
|
+
uniformsMap = createUniformsMap(componentDefinition$D, effectiveProps(), instanceId);
|
|
5579
5719
|
}
|
|
5580
5720
|
return uniformsMap;
|
|
5581
5721
|
};
|
|
@@ -5600,7 +5740,7 @@ function ShaderComponent$g(props) {
|
|
|
5600
5740
|
renderOrder: props.renderOrder || 0,
|
|
5601
5741
|
transform: effectiveTransform()
|
|
5602
5742
|
};
|
|
5603
|
-
parentRegister(instanceId, componentDefinition$
|
|
5743
|
+
parentRegister(instanceId, componentDefinition$D.fragmentNode, parentId, metadata, uniforms, componentDefinition$D);
|
|
5604
5744
|
isRegistered = true;
|
|
5605
5745
|
} catch (error) {
|
|
5606
5746
|
console.error("Error registering shader node:", error);
|
|
@@ -5676,8 +5816,8 @@ const defaultProps$f = {
|
|
|
5676
5816
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5677
5817
|
};
|
|
5678
5818
|
try {
|
|
5679
|
-
if (componentDefinition$
|
|
5680
|
-
Object.entries(componentDefinition$
|
|
5819
|
+
if (componentDefinition$E && componentDefinition$E.props) {
|
|
5820
|
+
Object.entries(componentDefinition$E.props).forEach(([key, config]) => {
|
|
5681
5821
|
const propConfig = config;
|
|
5682
5822
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5683
5823
|
defaultProps$f[key] = propConfig.default;
|
|
@@ -5695,7 +5835,7 @@ function ShaderComponent$f(props) {
|
|
|
5695
5835
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5696
5836
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5697
5837
|
} = context;
|
|
5698
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5838
|
+
const instanceId = props.id || `${componentDefinition$E.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5699
5839
|
const effectiveProps = createMemo(() => {
|
|
5700
5840
|
let baseProps = {
|
|
5701
5841
|
...defaultProps$f
|
|
@@ -5714,7 +5854,7 @@ function ShaderComponent$f(props) {
|
|
|
5714
5854
|
let uniformsMap = null;
|
|
5715
5855
|
const getUniformsMap = () => {
|
|
5716
5856
|
if (!uniformsMap) {
|
|
5717
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5857
|
+
uniformsMap = createUniformsMap(componentDefinition$E, effectiveProps(), instanceId);
|
|
5718
5858
|
}
|
|
5719
5859
|
return uniformsMap;
|
|
5720
5860
|
};
|
|
@@ -5739,7 +5879,7 @@ function ShaderComponent$f(props) {
|
|
|
5739
5879
|
renderOrder: props.renderOrder || 0,
|
|
5740
5880
|
transform: effectiveTransform()
|
|
5741
5881
|
};
|
|
5742
|
-
parentRegister(instanceId, componentDefinition$
|
|
5882
|
+
parentRegister(instanceId, componentDefinition$E.fragmentNode, parentId, metadata, uniforms, componentDefinition$E);
|
|
5743
5883
|
isRegistered = true;
|
|
5744
5884
|
} catch (error) {
|
|
5745
5885
|
console.error("Error registering shader node:", error);
|
|
@@ -5815,8 +5955,8 @@ const defaultProps$e = {
|
|
|
5815
5955
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5816
5956
|
};
|
|
5817
5957
|
try {
|
|
5818
|
-
if (componentDefinition$
|
|
5819
|
-
Object.entries(componentDefinition$
|
|
5958
|
+
if (componentDefinition$F && componentDefinition$F.props) {
|
|
5959
|
+
Object.entries(componentDefinition$F.props).forEach(([key, config]) => {
|
|
5820
5960
|
const propConfig = config;
|
|
5821
5961
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5822
5962
|
defaultProps$e[key] = propConfig.default;
|
|
@@ -5834,7 +5974,7 @@ function ShaderComponent$e(props) {
|
|
|
5834
5974
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5835
5975
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5836
5976
|
} = context;
|
|
5837
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5977
|
+
const instanceId = props.id || `${componentDefinition$F.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5838
5978
|
const effectiveProps = createMemo(() => {
|
|
5839
5979
|
let baseProps = {
|
|
5840
5980
|
...defaultProps$e
|
|
@@ -5853,7 +5993,7 @@ function ShaderComponent$e(props) {
|
|
|
5853
5993
|
let uniformsMap = null;
|
|
5854
5994
|
const getUniformsMap = () => {
|
|
5855
5995
|
if (!uniformsMap) {
|
|
5856
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5996
|
+
uniformsMap = createUniformsMap(componentDefinition$F, effectiveProps(), instanceId);
|
|
5857
5997
|
}
|
|
5858
5998
|
return uniformsMap;
|
|
5859
5999
|
};
|
|
@@ -5878,7 +6018,7 @@ function ShaderComponent$e(props) {
|
|
|
5878
6018
|
renderOrder: props.renderOrder || 0,
|
|
5879
6019
|
transform: effectiveTransform()
|
|
5880
6020
|
};
|
|
5881
|
-
parentRegister(instanceId, componentDefinition$
|
|
6021
|
+
parentRegister(instanceId, componentDefinition$F.fragmentNode, parentId, metadata, uniforms, componentDefinition$F);
|
|
5882
6022
|
isRegistered = true;
|
|
5883
6023
|
} catch (error) {
|
|
5884
6024
|
console.error("Error registering shader node:", error);
|
|
@@ -5954,8 +6094,8 @@ const defaultProps$d = {
|
|
|
5954
6094
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5955
6095
|
};
|
|
5956
6096
|
try {
|
|
5957
|
-
if (componentDefinition$
|
|
5958
|
-
Object.entries(componentDefinition$
|
|
6097
|
+
if (componentDefinition$G && componentDefinition$G.props) {
|
|
6098
|
+
Object.entries(componentDefinition$G.props).forEach(([key, config]) => {
|
|
5959
6099
|
const propConfig = config;
|
|
5960
6100
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5961
6101
|
defaultProps$d[key] = propConfig.default;
|
|
@@ -5973,7 +6113,7 @@ function ShaderComponent$d(props) {
|
|
|
5973
6113
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5974
6114
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5975
6115
|
} = context;
|
|
5976
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6116
|
+
const instanceId = props.id || `${componentDefinition$G.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5977
6117
|
const effectiveProps = createMemo(() => {
|
|
5978
6118
|
let baseProps = {
|
|
5979
6119
|
...defaultProps$d
|
|
@@ -5992,7 +6132,7 @@ function ShaderComponent$d(props) {
|
|
|
5992
6132
|
let uniformsMap = null;
|
|
5993
6133
|
const getUniformsMap = () => {
|
|
5994
6134
|
if (!uniformsMap) {
|
|
5995
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6135
|
+
uniformsMap = createUniformsMap(componentDefinition$G, effectiveProps(), instanceId);
|
|
5996
6136
|
}
|
|
5997
6137
|
return uniformsMap;
|
|
5998
6138
|
};
|
|
@@ -6017,7 +6157,7 @@ function ShaderComponent$d(props) {
|
|
|
6017
6157
|
renderOrder: props.renderOrder || 0,
|
|
6018
6158
|
transform: effectiveTransform()
|
|
6019
6159
|
};
|
|
6020
|
-
parentRegister(instanceId, componentDefinition$
|
|
6160
|
+
parentRegister(instanceId, componentDefinition$G.fragmentNode, parentId, metadata, uniforms, componentDefinition$G);
|
|
6021
6161
|
isRegistered = true;
|
|
6022
6162
|
} catch (error) {
|
|
6023
6163
|
console.error("Error registering shader node:", error);
|
|
@@ -6093,8 +6233,8 @@ const defaultProps$c = {
|
|
|
6093
6233
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6094
6234
|
};
|
|
6095
6235
|
try {
|
|
6096
|
-
if (componentDefinition$
|
|
6097
|
-
Object.entries(componentDefinition$
|
|
6236
|
+
if (componentDefinition$H && componentDefinition$H.props) {
|
|
6237
|
+
Object.entries(componentDefinition$H.props).forEach(([key, config]) => {
|
|
6098
6238
|
const propConfig = config;
|
|
6099
6239
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6100
6240
|
defaultProps$c[key] = propConfig.default;
|
|
@@ -6112,7 +6252,7 @@ function ShaderComponent$c(props) {
|
|
|
6112
6252
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6113
6253
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6114
6254
|
} = context;
|
|
6115
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6255
|
+
const instanceId = props.id || `${componentDefinition$H.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6116
6256
|
const effectiveProps = createMemo(() => {
|
|
6117
6257
|
let baseProps = {
|
|
6118
6258
|
...defaultProps$c
|
|
@@ -6131,7 +6271,7 @@ function ShaderComponent$c(props) {
|
|
|
6131
6271
|
let uniformsMap = null;
|
|
6132
6272
|
const getUniformsMap = () => {
|
|
6133
6273
|
if (!uniformsMap) {
|
|
6134
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6274
|
+
uniformsMap = createUniformsMap(componentDefinition$H, effectiveProps(), instanceId);
|
|
6135
6275
|
}
|
|
6136
6276
|
return uniformsMap;
|
|
6137
6277
|
};
|
|
@@ -6156,7 +6296,7 @@ function ShaderComponent$c(props) {
|
|
|
6156
6296
|
renderOrder: props.renderOrder || 0,
|
|
6157
6297
|
transform: effectiveTransform()
|
|
6158
6298
|
};
|
|
6159
|
-
parentRegister(instanceId, componentDefinition$
|
|
6299
|
+
parentRegister(instanceId, componentDefinition$H.fragmentNode, parentId, metadata, uniforms, componentDefinition$H);
|
|
6160
6300
|
isRegistered = true;
|
|
6161
6301
|
} catch (error) {
|
|
6162
6302
|
console.error("Error registering shader node:", error);
|
|
@@ -6232,8 +6372,8 @@ const defaultProps$b = {
|
|
|
6232
6372
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6233
6373
|
};
|
|
6234
6374
|
try {
|
|
6235
|
-
if (componentDefinition$
|
|
6236
|
-
Object.entries(componentDefinition$
|
|
6375
|
+
if (componentDefinition$I && componentDefinition$I.props) {
|
|
6376
|
+
Object.entries(componentDefinition$I.props).forEach(([key, config]) => {
|
|
6237
6377
|
const propConfig = config;
|
|
6238
6378
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6239
6379
|
defaultProps$b[key] = propConfig.default;
|
|
@@ -6251,7 +6391,7 @@ function ShaderComponent$b(props) {
|
|
|
6251
6391
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6252
6392
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6253
6393
|
} = context;
|
|
6254
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6394
|
+
const instanceId = props.id || `${componentDefinition$I.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6255
6395
|
const effectiveProps = createMemo(() => {
|
|
6256
6396
|
let baseProps = {
|
|
6257
6397
|
...defaultProps$b
|
|
@@ -6270,7 +6410,7 @@ function ShaderComponent$b(props) {
|
|
|
6270
6410
|
let uniformsMap = null;
|
|
6271
6411
|
const getUniformsMap = () => {
|
|
6272
6412
|
if (!uniformsMap) {
|
|
6273
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6413
|
+
uniformsMap = createUniformsMap(componentDefinition$I, effectiveProps(), instanceId);
|
|
6274
6414
|
}
|
|
6275
6415
|
return uniformsMap;
|
|
6276
6416
|
};
|
|
@@ -6295,7 +6435,7 @@ function ShaderComponent$b(props) {
|
|
|
6295
6435
|
renderOrder: props.renderOrder || 0,
|
|
6296
6436
|
transform: effectiveTransform()
|
|
6297
6437
|
};
|
|
6298
|
-
parentRegister(instanceId, componentDefinition$
|
|
6438
|
+
parentRegister(instanceId, componentDefinition$I.fragmentNode, parentId, metadata, uniforms, componentDefinition$I);
|
|
6299
6439
|
isRegistered = true;
|
|
6300
6440
|
} catch (error) {
|
|
6301
6441
|
console.error("Error registering shader node:", error);
|
|
@@ -6371,8 +6511,8 @@ const defaultProps$a = {
|
|
|
6371
6511
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6372
6512
|
};
|
|
6373
6513
|
try {
|
|
6374
|
-
if (componentDefinition$
|
|
6375
|
-
Object.entries(componentDefinition$
|
|
6514
|
+
if (componentDefinition$J && componentDefinition$J.props) {
|
|
6515
|
+
Object.entries(componentDefinition$J.props).forEach(([key, config]) => {
|
|
6376
6516
|
const propConfig = config;
|
|
6377
6517
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6378
6518
|
defaultProps$a[key] = propConfig.default;
|
|
@@ -6390,7 +6530,7 @@ function ShaderComponent$a(props) {
|
|
|
6390
6530
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6391
6531
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6392
6532
|
} = context;
|
|
6393
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6533
|
+
const instanceId = props.id || `${componentDefinition$J.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6394
6534
|
const effectiveProps = createMemo(() => {
|
|
6395
6535
|
let baseProps = {
|
|
6396
6536
|
...defaultProps$a
|
|
@@ -6409,7 +6549,7 @@ function ShaderComponent$a(props) {
|
|
|
6409
6549
|
let uniformsMap = null;
|
|
6410
6550
|
const getUniformsMap = () => {
|
|
6411
6551
|
if (!uniformsMap) {
|
|
6412
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6552
|
+
uniformsMap = createUniformsMap(componentDefinition$J, effectiveProps(), instanceId);
|
|
6413
6553
|
}
|
|
6414
6554
|
return uniformsMap;
|
|
6415
6555
|
};
|
|
@@ -6434,7 +6574,7 @@ function ShaderComponent$a(props) {
|
|
|
6434
6574
|
renderOrder: props.renderOrder || 0,
|
|
6435
6575
|
transform: effectiveTransform()
|
|
6436
6576
|
};
|
|
6437
|
-
parentRegister(instanceId, componentDefinition$
|
|
6577
|
+
parentRegister(instanceId, componentDefinition$J.fragmentNode, parentId, metadata, uniforms, componentDefinition$J);
|
|
6438
6578
|
isRegistered = true;
|
|
6439
6579
|
} catch (error) {
|
|
6440
6580
|
console.error("Error registering shader node:", error);
|
|
@@ -6510,8 +6650,8 @@ const defaultProps$9 = {
|
|
|
6510
6650
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6511
6651
|
};
|
|
6512
6652
|
try {
|
|
6513
|
-
if (componentDefinition$
|
|
6514
|
-
Object.entries(componentDefinition$
|
|
6653
|
+
if (componentDefinition$K && componentDefinition$K.props) {
|
|
6654
|
+
Object.entries(componentDefinition$K.props).forEach(([key, config]) => {
|
|
6515
6655
|
const propConfig = config;
|
|
6516
6656
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6517
6657
|
defaultProps$9[key] = propConfig.default;
|
|
@@ -6529,7 +6669,7 @@ function ShaderComponent$9(props) {
|
|
|
6529
6669
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6530
6670
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6531
6671
|
} = context;
|
|
6532
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6672
|
+
const instanceId = props.id || `${componentDefinition$K.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6533
6673
|
const effectiveProps = createMemo(() => {
|
|
6534
6674
|
let baseProps = {
|
|
6535
6675
|
...defaultProps$9
|
|
@@ -6548,7 +6688,7 @@ function ShaderComponent$9(props) {
|
|
|
6548
6688
|
let uniformsMap = null;
|
|
6549
6689
|
const getUniformsMap = () => {
|
|
6550
6690
|
if (!uniformsMap) {
|
|
6551
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6691
|
+
uniformsMap = createUniformsMap(componentDefinition$K, effectiveProps(), instanceId);
|
|
6552
6692
|
}
|
|
6553
6693
|
return uniformsMap;
|
|
6554
6694
|
};
|
|
@@ -6573,7 +6713,7 @@ function ShaderComponent$9(props) {
|
|
|
6573
6713
|
renderOrder: props.renderOrder || 0,
|
|
6574
6714
|
transform: effectiveTransform()
|
|
6575
6715
|
};
|
|
6576
|
-
parentRegister(instanceId, componentDefinition$
|
|
6716
|
+
parentRegister(instanceId, componentDefinition$K.fragmentNode, parentId, metadata, uniforms, componentDefinition$K);
|
|
6577
6717
|
isRegistered = true;
|
|
6578
6718
|
} catch (error) {
|
|
6579
6719
|
console.error("Error registering shader node:", error);
|
|
@@ -6649,8 +6789,8 @@ const defaultProps$8 = {
|
|
|
6649
6789
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6650
6790
|
};
|
|
6651
6791
|
try {
|
|
6652
|
-
if (componentDefinition$
|
|
6653
|
-
Object.entries(componentDefinition$
|
|
6792
|
+
if (componentDefinition$L && componentDefinition$L.props) {
|
|
6793
|
+
Object.entries(componentDefinition$L.props).forEach(([key, config]) => {
|
|
6654
6794
|
const propConfig = config;
|
|
6655
6795
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6656
6796
|
defaultProps$8[key] = propConfig.default;
|
|
@@ -6668,7 +6808,7 @@ function ShaderComponent$8(props) {
|
|
|
6668
6808
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6669
6809
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6670
6810
|
} = context;
|
|
6671
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6811
|
+
const instanceId = props.id || `${componentDefinition$L.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6672
6812
|
const effectiveProps = createMemo(() => {
|
|
6673
6813
|
let baseProps = {
|
|
6674
6814
|
...defaultProps$8
|
|
@@ -6687,7 +6827,7 @@ function ShaderComponent$8(props) {
|
|
|
6687
6827
|
let uniformsMap = null;
|
|
6688
6828
|
const getUniformsMap = () => {
|
|
6689
6829
|
if (!uniformsMap) {
|
|
6690
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6830
|
+
uniformsMap = createUniformsMap(componentDefinition$L, effectiveProps(), instanceId);
|
|
6691
6831
|
}
|
|
6692
6832
|
return uniformsMap;
|
|
6693
6833
|
};
|
|
@@ -6712,7 +6852,7 @@ function ShaderComponent$8(props) {
|
|
|
6712
6852
|
renderOrder: props.renderOrder || 0,
|
|
6713
6853
|
transform: effectiveTransform()
|
|
6714
6854
|
};
|
|
6715
|
-
parentRegister(instanceId, componentDefinition$
|
|
6855
|
+
parentRegister(instanceId, componentDefinition$L.fragmentNode, parentId, metadata, uniforms, componentDefinition$L);
|
|
6716
6856
|
isRegistered = true;
|
|
6717
6857
|
} catch (error) {
|
|
6718
6858
|
console.error("Error registering shader node:", error);
|
|
@@ -6788,8 +6928,8 @@ const defaultProps$7 = {
|
|
|
6788
6928
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6789
6929
|
};
|
|
6790
6930
|
try {
|
|
6791
|
-
if (componentDefinition$
|
|
6792
|
-
Object.entries(componentDefinition$
|
|
6931
|
+
if (componentDefinition$M && componentDefinition$M.props) {
|
|
6932
|
+
Object.entries(componentDefinition$M.props).forEach(([key, config]) => {
|
|
6793
6933
|
const propConfig = config;
|
|
6794
6934
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6795
6935
|
defaultProps$7[key] = propConfig.default;
|
|
@@ -6807,7 +6947,7 @@ function ShaderComponent$7(props) {
|
|
|
6807
6947
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6808
6948
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6809
6949
|
} = context;
|
|
6810
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6950
|
+
const instanceId = props.id || `${componentDefinition$M.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6811
6951
|
const effectiveProps = createMemo(() => {
|
|
6812
6952
|
let baseProps = {
|
|
6813
6953
|
...defaultProps$7
|
|
@@ -6826,7 +6966,7 @@ function ShaderComponent$7(props) {
|
|
|
6826
6966
|
let uniformsMap = null;
|
|
6827
6967
|
const getUniformsMap = () => {
|
|
6828
6968
|
if (!uniformsMap) {
|
|
6829
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6969
|
+
uniformsMap = createUniformsMap(componentDefinition$M, effectiveProps(), instanceId);
|
|
6830
6970
|
}
|
|
6831
6971
|
return uniformsMap;
|
|
6832
6972
|
};
|
|
@@ -6851,7 +6991,7 @@ function ShaderComponent$7(props) {
|
|
|
6851
6991
|
renderOrder: props.renderOrder || 0,
|
|
6852
6992
|
transform: effectiveTransform()
|
|
6853
6993
|
};
|
|
6854
|
-
parentRegister(instanceId, componentDefinition$
|
|
6994
|
+
parentRegister(instanceId, componentDefinition$M.fragmentNode, parentId, metadata, uniforms, componentDefinition$M);
|
|
6855
6995
|
isRegistered = true;
|
|
6856
6996
|
} catch (error) {
|
|
6857
6997
|
console.error("Error registering shader node:", error);
|
|
@@ -6927,8 +7067,8 @@ const defaultProps$6 = {
|
|
|
6927
7067
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6928
7068
|
};
|
|
6929
7069
|
try {
|
|
6930
|
-
if (componentDefinition$
|
|
6931
|
-
Object.entries(componentDefinition$
|
|
7070
|
+
if (componentDefinition$N && componentDefinition$N.props) {
|
|
7071
|
+
Object.entries(componentDefinition$N.props).forEach(([key, config]) => {
|
|
6932
7072
|
const propConfig = config;
|
|
6933
7073
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6934
7074
|
defaultProps$6[key] = propConfig.default;
|
|
@@ -6946,7 +7086,7 @@ function ShaderComponent$6(props) {
|
|
|
6946
7086
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6947
7087
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6948
7088
|
} = context;
|
|
6949
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7089
|
+
const instanceId = props.id || `${componentDefinition$N.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6950
7090
|
const effectiveProps = createMemo(() => {
|
|
6951
7091
|
let baseProps = {
|
|
6952
7092
|
...defaultProps$6
|
|
@@ -6965,7 +7105,7 @@ function ShaderComponent$6(props) {
|
|
|
6965
7105
|
let uniformsMap = null;
|
|
6966
7106
|
const getUniformsMap = () => {
|
|
6967
7107
|
if (!uniformsMap) {
|
|
6968
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7108
|
+
uniformsMap = createUniformsMap(componentDefinition$N, effectiveProps(), instanceId);
|
|
6969
7109
|
}
|
|
6970
7110
|
return uniformsMap;
|
|
6971
7111
|
};
|
|
@@ -6990,7 +7130,7 @@ function ShaderComponent$6(props) {
|
|
|
6990
7130
|
renderOrder: props.renderOrder || 0,
|
|
6991
7131
|
transform: effectiveTransform()
|
|
6992
7132
|
};
|
|
6993
|
-
parentRegister(instanceId, componentDefinition$
|
|
7133
|
+
parentRegister(instanceId, componentDefinition$N.fragmentNode, parentId, metadata, uniforms, componentDefinition$N);
|
|
6994
7134
|
isRegistered = true;
|
|
6995
7135
|
} catch (error) {
|
|
6996
7136
|
console.error("Error registering shader node:", error);
|
|
@@ -7066,8 +7206,8 @@ const defaultProps$5 = {
|
|
|
7066
7206
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7067
7207
|
};
|
|
7068
7208
|
try {
|
|
7069
|
-
if (componentDefinition$
|
|
7070
|
-
Object.entries(componentDefinition$
|
|
7209
|
+
if (componentDefinition$O && componentDefinition$O.props) {
|
|
7210
|
+
Object.entries(componentDefinition$O.props).forEach(([key, config]) => {
|
|
7071
7211
|
const propConfig = config;
|
|
7072
7212
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7073
7213
|
defaultProps$5[key] = propConfig.default;
|
|
@@ -7085,7 +7225,7 @@ function ShaderComponent$5(props) {
|
|
|
7085
7225
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7086
7226
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7087
7227
|
} = context;
|
|
7088
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7228
|
+
const instanceId = props.id || `${componentDefinition$O.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7089
7229
|
const effectiveProps = createMemo(() => {
|
|
7090
7230
|
let baseProps = {
|
|
7091
7231
|
...defaultProps$5
|
|
@@ -7104,7 +7244,7 @@ function ShaderComponent$5(props) {
|
|
|
7104
7244
|
let uniformsMap = null;
|
|
7105
7245
|
const getUniformsMap = () => {
|
|
7106
7246
|
if (!uniformsMap) {
|
|
7107
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7247
|
+
uniformsMap = createUniformsMap(componentDefinition$O, effectiveProps(), instanceId);
|
|
7108
7248
|
}
|
|
7109
7249
|
return uniformsMap;
|
|
7110
7250
|
};
|
|
@@ -7129,7 +7269,7 @@ function ShaderComponent$5(props) {
|
|
|
7129
7269
|
renderOrder: props.renderOrder || 0,
|
|
7130
7270
|
transform: effectiveTransform()
|
|
7131
7271
|
};
|
|
7132
|
-
parentRegister(instanceId, componentDefinition$
|
|
7272
|
+
parentRegister(instanceId, componentDefinition$O.fragmentNode, parentId, metadata, uniforms, componentDefinition$O);
|
|
7133
7273
|
isRegistered = true;
|
|
7134
7274
|
} catch (error) {
|
|
7135
7275
|
console.error("Error registering shader node:", error);
|
|
@@ -7205,8 +7345,8 @@ const defaultProps$4 = {
|
|
|
7205
7345
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7206
7346
|
};
|
|
7207
7347
|
try {
|
|
7208
|
-
if (componentDefinition$
|
|
7209
|
-
Object.entries(componentDefinition$
|
|
7348
|
+
if (componentDefinition$P && componentDefinition$P.props) {
|
|
7349
|
+
Object.entries(componentDefinition$P.props).forEach(([key, config]) => {
|
|
7210
7350
|
const propConfig = config;
|
|
7211
7351
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7212
7352
|
defaultProps$4[key] = propConfig.default;
|
|
@@ -7224,7 +7364,7 @@ function ShaderComponent$4(props) {
|
|
|
7224
7364
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7225
7365
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7226
7366
|
} = context;
|
|
7227
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7367
|
+
const instanceId = props.id || `${componentDefinition$P.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7228
7368
|
const effectiveProps = createMemo(() => {
|
|
7229
7369
|
let baseProps = {
|
|
7230
7370
|
...defaultProps$4
|
|
@@ -7243,7 +7383,7 @@ function ShaderComponent$4(props) {
|
|
|
7243
7383
|
let uniformsMap = null;
|
|
7244
7384
|
const getUniformsMap = () => {
|
|
7245
7385
|
if (!uniformsMap) {
|
|
7246
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7386
|
+
uniformsMap = createUniformsMap(componentDefinition$P, effectiveProps(), instanceId);
|
|
7247
7387
|
}
|
|
7248
7388
|
return uniformsMap;
|
|
7249
7389
|
};
|
|
@@ -7268,7 +7408,7 @@ function ShaderComponent$4(props) {
|
|
|
7268
7408
|
renderOrder: props.renderOrder || 0,
|
|
7269
7409
|
transform: effectiveTransform()
|
|
7270
7410
|
};
|
|
7271
|
-
parentRegister(instanceId, componentDefinition$
|
|
7411
|
+
parentRegister(instanceId, componentDefinition$P.fragmentNode, parentId, metadata, uniforms, componentDefinition$P);
|
|
7272
7412
|
isRegistered = true;
|
|
7273
7413
|
} catch (error) {
|
|
7274
7414
|
console.error("Error registering shader node:", error);
|
|
@@ -7344,8 +7484,8 @@ const defaultProps$3 = {
|
|
|
7344
7484
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7345
7485
|
};
|
|
7346
7486
|
try {
|
|
7347
|
-
if (componentDefinition$
|
|
7348
|
-
Object.entries(componentDefinition$
|
|
7487
|
+
if (componentDefinition$Q && componentDefinition$Q.props) {
|
|
7488
|
+
Object.entries(componentDefinition$Q.props).forEach(([key, config]) => {
|
|
7349
7489
|
const propConfig = config;
|
|
7350
7490
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7351
7491
|
defaultProps$3[key] = propConfig.default;
|
|
@@ -7363,7 +7503,7 @@ function ShaderComponent$3(props) {
|
|
|
7363
7503
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7364
7504
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7365
7505
|
} = context;
|
|
7366
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7506
|
+
const instanceId = props.id || `${componentDefinition$Q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7367
7507
|
const effectiveProps = createMemo(() => {
|
|
7368
7508
|
let baseProps = {
|
|
7369
7509
|
...defaultProps$3
|
|
@@ -7382,7 +7522,7 @@ function ShaderComponent$3(props) {
|
|
|
7382
7522
|
let uniformsMap = null;
|
|
7383
7523
|
const getUniformsMap = () => {
|
|
7384
7524
|
if (!uniformsMap) {
|
|
7385
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7525
|
+
uniformsMap = createUniformsMap(componentDefinition$Q, effectiveProps(), instanceId);
|
|
7386
7526
|
}
|
|
7387
7527
|
return uniformsMap;
|
|
7388
7528
|
};
|
|
@@ -7407,7 +7547,7 @@ function ShaderComponent$3(props) {
|
|
|
7407
7547
|
renderOrder: props.renderOrder || 0,
|
|
7408
7548
|
transform: effectiveTransform()
|
|
7409
7549
|
};
|
|
7410
|
-
parentRegister(instanceId, componentDefinition$
|
|
7550
|
+
parentRegister(instanceId, componentDefinition$Q.fragmentNode, parentId, metadata, uniforms, componentDefinition$Q);
|
|
7411
7551
|
isRegistered = true;
|
|
7412
7552
|
} catch (error) {
|
|
7413
7553
|
console.error("Error registering shader node:", error);
|
|
@@ -7483,8 +7623,8 @@ const defaultProps$2 = {
|
|
|
7483
7623
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7484
7624
|
};
|
|
7485
7625
|
try {
|
|
7486
|
-
if (componentDefinition$
|
|
7487
|
-
Object.entries(componentDefinition$
|
|
7626
|
+
if (componentDefinition$R && componentDefinition$R.props) {
|
|
7627
|
+
Object.entries(componentDefinition$R.props).forEach(([key, config]) => {
|
|
7488
7628
|
const propConfig = config;
|
|
7489
7629
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7490
7630
|
defaultProps$2[key] = propConfig.default;
|
|
@@ -7502,7 +7642,7 @@ function ShaderComponent$2(props) {
|
|
|
7502
7642
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7503
7643
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7504
7644
|
} = context;
|
|
7505
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7645
|
+
const instanceId = props.id || `${componentDefinition$R.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7506
7646
|
const effectiveProps = createMemo(() => {
|
|
7507
7647
|
let baseProps = {
|
|
7508
7648
|
...defaultProps$2
|
|
@@ -7521,7 +7661,7 @@ function ShaderComponent$2(props) {
|
|
|
7521
7661
|
let uniformsMap = null;
|
|
7522
7662
|
const getUniformsMap = () => {
|
|
7523
7663
|
if (!uniformsMap) {
|
|
7524
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7664
|
+
uniformsMap = createUniformsMap(componentDefinition$R, effectiveProps(), instanceId);
|
|
7525
7665
|
}
|
|
7526
7666
|
return uniformsMap;
|
|
7527
7667
|
};
|
|
@@ -7546,7 +7686,7 @@ function ShaderComponent$2(props) {
|
|
|
7546
7686
|
renderOrder: props.renderOrder || 0,
|
|
7547
7687
|
transform: effectiveTransform()
|
|
7548
7688
|
};
|
|
7549
|
-
parentRegister(instanceId, componentDefinition$
|
|
7689
|
+
parentRegister(instanceId, componentDefinition$R.fragmentNode, parentId, metadata, uniforms, componentDefinition$R);
|
|
7550
7690
|
isRegistered = true;
|
|
7551
7691
|
} catch (error) {
|
|
7552
7692
|
console.error("Error registering shader node:", error);
|
|
@@ -7622,8 +7762,8 @@ const defaultProps$1 = {
|
|
|
7622
7762
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7623
7763
|
};
|
|
7624
7764
|
try {
|
|
7625
|
-
if (componentDefinition$
|
|
7626
|
-
Object.entries(componentDefinition$
|
|
7765
|
+
if (componentDefinition$S && componentDefinition$S.props) {
|
|
7766
|
+
Object.entries(componentDefinition$S.props).forEach(([key, config]) => {
|
|
7627
7767
|
const propConfig = config;
|
|
7628
7768
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7629
7769
|
defaultProps$1[key] = propConfig.default;
|
|
@@ -7641,7 +7781,7 @@ function ShaderComponent$1(props) {
|
|
|
7641
7781
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7642
7782
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7643
7783
|
} = context;
|
|
7644
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7784
|
+
const instanceId = props.id || `${componentDefinition$S.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7645
7785
|
const effectiveProps = createMemo(() => {
|
|
7646
7786
|
let baseProps = {
|
|
7647
7787
|
...defaultProps$1
|
|
@@ -7660,7 +7800,7 @@ function ShaderComponent$1(props) {
|
|
|
7660
7800
|
let uniformsMap = null;
|
|
7661
7801
|
const getUniformsMap = () => {
|
|
7662
7802
|
if (!uniformsMap) {
|
|
7663
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7803
|
+
uniformsMap = createUniformsMap(componentDefinition$S, effectiveProps(), instanceId);
|
|
7664
7804
|
}
|
|
7665
7805
|
return uniformsMap;
|
|
7666
7806
|
};
|
|
@@ -7685,7 +7825,7 @@ function ShaderComponent$1(props) {
|
|
|
7685
7825
|
renderOrder: props.renderOrder || 0,
|
|
7686
7826
|
transform: effectiveTransform()
|
|
7687
7827
|
};
|
|
7688
|
-
parentRegister(instanceId, componentDefinition$
|
|
7828
|
+
parentRegister(instanceId, componentDefinition$S.fragmentNode, parentId, metadata, uniforms, componentDefinition$S);
|
|
7689
7829
|
isRegistered = true;
|
|
7690
7830
|
} catch (error) {
|
|
7691
7831
|
console.error("Error registering shader node:", error);
|
|
@@ -7761,8 +7901,8 @@ const defaultProps = {
|
|
|
7761
7901
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7762
7902
|
};
|
|
7763
7903
|
try {
|
|
7764
|
-
if (componentDefinition$
|
|
7765
|
-
Object.entries(componentDefinition$
|
|
7904
|
+
if (componentDefinition$T && componentDefinition$T.props) {
|
|
7905
|
+
Object.entries(componentDefinition$T.props).forEach(([key, config]) => {
|
|
7766
7906
|
const propConfig = config;
|
|
7767
7907
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7768
7908
|
defaultProps[key] = propConfig.default;
|
|
@@ -7780,7 +7920,7 @@ function ShaderComponent(props) {
|
|
|
7780
7920
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7781
7921
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7782
7922
|
} = context;
|
|
7783
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7923
|
+
const instanceId = props.id || `${componentDefinition$T.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7784
7924
|
const effectiveProps = createMemo(() => {
|
|
7785
7925
|
let baseProps = {
|
|
7786
7926
|
...defaultProps
|
|
@@ -7799,7 +7939,7 @@ function ShaderComponent(props) {
|
|
|
7799
7939
|
let uniformsMap = null;
|
|
7800
7940
|
const getUniformsMap = () => {
|
|
7801
7941
|
if (!uniformsMap) {
|
|
7802
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7942
|
+
uniformsMap = createUniformsMap(componentDefinition$T, effectiveProps(), instanceId);
|
|
7803
7943
|
}
|
|
7804
7944
|
return uniformsMap;
|
|
7805
7945
|
};
|
|
@@ -7824,7 +7964,7 @@ function ShaderComponent(props) {
|
|
|
7824
7964
|
renderOrder: props.renderOrder || 0,
|
|
7825
7965
|
transform: effectiveTransform()
|
|
7826
7966
|
};
|
|
7827
|
-
parentRegister(instanceId, componentDefinition$
|
|
7967
|
+
parentRegister(instanceId, componentDefinition$T.fragmentNode, parentId, metadata, uniforms, componentDefinition$T);
|
|
7828
7968
|
isRegistered = true;
|
|
7829
7969
|
} catch (error) {
|
|
7830
7970
|
console.error("Error registering shader node:", error);
|
|
@@ -7884,11 +8024,12 @@ function ShaderComponent(props) {
|
|
|
7884
8024
|
});
|
|
7885
8025
|
}
|
|
7886
8026
|
export {
|
|
7887
|
-
ShaderComponent$
|
|
7888
|
-
ShaderComponent$
|
|
7889
|
-
ShaderComponent$
|
|
7890
|
-
ShaderComponent$
|
|
7891
|
-
ShaderComponent$
|
|
8027
|
+
ShaderComponent$T as AngularBlur,
|
|
8028
|
+
ShaderComponent$S as Ascii,
|
|
8029
|
+
ShaderComponent$R as Beam,
|
|
8030
|
+
ShaderComponent$Q as Blob,
|
|
8031
|
+
ShaderComponent$P as Blur,
|
|
8032
|
+
ShaderComponent$O as BrightnessContrast,
|
|
7892
8033
|
ShaderComponent$N as Bulge,
|
|
7893
8034
|
ShaderComponent$M as CRTScreen,
|
|
7894
8035
|
ShaderComponent$L as ChannelBlur,
|