shaders 2.2.35 → 2.2.37
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/Perspective-CSP2Hb16.js +137 -0
- package/dist/core/index.js +55 -53
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Perspective/index.d.ts +57 -0
- package/dist/core/shaders/Perspective/index.d.ts.map +1 -0
- package/dist/core/shaders/Perspective/index.js +4 -0
- 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/Sharpness/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/Perspective.d.ts +31 -0
- package/dist/react/components/Perspective.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-C4t1eM0z.js → generatePresetCode-DtpUpaeM.js} +18 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +542 -403
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +202 -0
- package/dist/solid/components/AngularBlur.d.ts.map +1 -1
- package/dist/solid/components/Ascii.d.ts.map +1 -1
- package/dist/solid/components/Beam.d.ts.map +1 -1
- package/dist/solid/components/Blob.d.ts.map +1 -1
- package/dist/solid/components/Blur.d.ts.map +1 -1
- package/dist/solid/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/solid/components/Bulge.d.ts.map +1 -1
- package/dist/solid/components/CRTScreen.d.ts.map +1 -1
- package/dist/solid/components/ChannelBlur.d.ts.map +1 -1
- package/dist/solid/components/Checkerboard.d.ts.map +1 -1
- package/dist/solid/components/ChromaFlow.d.ts.map +1 -1
- package/dist/solid/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/solid/components/Circle.d.ts.map +1 -1
- package/dist/solid/components/CursorTrail.d.ts.map +1 -1
- package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/solid/components/Dither.d.ts.map +1 -1
- package/dist/solid/components/DotGrid.d.ts.map +1 -1
- package/dist/solid/components/Duotone.d.ts.map +1 -1
- package/dist/solid/components/FilmGrain.d.ts.map +1 -1
- package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
- package/dist/solid/components/GlassTiles.d.ts.map +1 -1
- package/dist/solid/components/Glow.d.ts.map +1 -1
- package/dist/solid/components/Godrays.d.ts.map +1 -1
- package/dist/solid/components/Grayscale.d.ts.map +1 -1
- package/dist/solid/components/Grid.d.ts.map +1 -1
- package/dist/solid/components/GridDistortion.d.ts.map +1 -1
- package/dist/solid/components/Group.d.ts.map +1 -1
- package/dist/solid/components/Halftone.d.ts.map +1 -1
- package/dist/solid/components/HueShift.d.ts.map +1 -1
- package/dist/solid/components/ImageTexture.d.ts.map +1 -1
- package/dist/solid/components/Invert.d.ts.map +1 -1
- package/dist/solid/components/LinearBlur.d.ts.map +1 -1
- package/dist/solid/components/LinearGradient.d.ts.map +1 -1
- package/dist/solid/components/Liquify.d.ts.map +1 -1
- package/dist/solid/components/Perspective.d.ts +28 -0
- package/dist/solid/components/Perspective.d.ts.map +1 -0
- package/dist/solid/components/Pixelate.d.ts.map +1 -1
- package/dist/solid/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Posterize.d.ts.map +1 -1
- package/dist/solid/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/solid/components/RadialGradient.d.ts.map +1 -1
- package/dist/solid/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Ripples.d.ts.map +1 -1
- package/dist/solid/components/Saturation.d.ts.map +1 -1
- package/dist/solid/components/Sharpness.d.ts.map +1 -1
- package/dist/solid/components/SimplexNoise.d.ts.map +1 -1
- package/dist/solid/components/SineWave.d.ts.map +1 -1
- package/dist/solid/components/SolidColor.d.ts.map +1 -1
- package/dist/solid/components/Spherize.d.ts.map +1 -1
- package/dist/solid/components/Spiral.d.ts.map +1 -1
- package/dist/solid/components/Strands.d.ts.map +1 -1
- package/dist/solid/components/Stretch.d.ts.map +1 -1
- package/dist/solid/components/Swirl.d.ts.map +1 -1
- package/dist/solid/components/TiltShift.d.ts.map +1 -1
- package/dist/solid/components/Tritone.d.ts.map +1 -1
- package/dist/solid/components/Twirl.d.ts.map +1 -1
- package/dist/solid/components/Vibrance.d.ts.map +1 -1
- package/dist/solid/components/WaveDistortion.d.ts.map +1 -1
- package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
- package/dist/solid/engine/Shader.d.ts.map +1 -1
- package/dist/solid/engine/component.template.d.ts.map +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +601 -401
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +18 -0
- package/dist/svelte/components/Perspective.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-CT9aNR6P.js → generatePresetCode-Yu_cJh3q.js} +18 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +159 -48
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Perspective.vue.d.ts +57 -0
- package/dist/vue/components/Perspective.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-BmkyNfz6.js → generatePresetCode-DnK2X66E.js} +18 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +297 -170
- 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/{Pixelate-C5Rx1dBp.js → Pixelate-BAoi-CSx.js} +0 -0
- /package/dist/core/{PolarCoordinates-CIh5ef8m.js → PolarCoordinates-BwN9HhFK.js} +0 -0
- /package/dist/core/{Posterize-Byy0Ek0l.js → Posterize-XoAqPWv2.js} +0 -0
- /package/dist/core/{ProgressiveBlur-Bzz24_y-.js → ProgressiveBlur-RuAm_BKx.js} +0 -0
- /package/dist/core/{RadialGradient-Ci1dU-1K.js → RadialGradient-BfFuRbIl.js} +0 -0
- /package/dist/core/{RectangularCoordinates-tVGG7WOJ.js → RectangularCoordinates-CiW3J4UT.js} +0 -0
- /package/dist/core/{Ripples-BCGSt5HD.js → Ripples-BAcLsbLr.js} +0 -0
- /package/dist/core/{Saturation-DWR1Nruu.js → Saturation-DVVlpikK.js} +0 -0
- /package/dist/core/{Sharpness-B2MrhUH5.js → Sharpness-cw57bW0s.js} +0 -0
- /package/dist/core/{SimplexNoise-j5sH7ro0.js → SimplexNoise-CxF7Tl5O.js} +0 -0
- /package/dist/core/{SineWave-C4Lz5gO9.js → SineWave-SIEiE1O3.js} +0 -0
- /package/dist/core/{SolidColor-9huPo7Qb.js → SolidColor-zYROg_aE.js} +0 -0
- /package/dist/core/{Spherize-ARP2hY6_.js → Spherize-tsKMpSaS.js} +0 -0
- /package/dist/core/{Spiral-d60Q9u4M.js → Spiral-PsIc1BI9.js} +0 -0
- /package/dist/core/{Strands-DiIbhZ0r.js → Strands-xsbd_3Bt.js} +0 -0
- /package/dist/core/{Stretch-UYY3Qep7.js → Stretch-BhHjbcqd.js} +0 -0
- /package/dist/core/{Swirl-jQMlfm2U.js → Swirl-CV1prOHF.js} +0 -0
- /package/dist/core/{TiltShift-Ctj-Dsom.js → TiltShift-BYQjUHpn.js} +0 -0
- /package/dist/core/{Tritone-D2lMeIyT.js → Tritone-CJW8YTyB.js} +0 -0
- /package/dist/core/{Twirl-D4opuuKg.js → Twirl-5k_XPd51.js} +0 -0
- /package/dist/core/{Vibrance-CZCF06c0.js → Vibrance-c25pkbWj.js} +0 -0
- /package/dist/core/{WaveDistortion-DdJtTeib.js → WaveDistortion-BRgbfqt3.js} +0 -0
- /package/dist/core/{ZoomBlur-DfzUaH4u.js → ZoomBlur-DEozXA8U.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent, template, spread, mergeProps, insert, use } from "solid-js/web";
|
|
2
|
-
import { createContext, splitProps, createMemo, onMount, onCleanup, useContext, createEffect } from "solid-js";
|
|
2
|
+
import { createContext, splitProps, createMemo, children, onMount, onCleanup, useContext, createEffect } from "solid-js";
|
|
3
3
|
import { shaderRenderer, createUniformsMap } from "../core/index.js";
|
|
4
4
|
import { componentDefinition } from "../core/shaders/AngularBlur/index.js";
|
|
5
5
|
import { vec4 } from "three/tsl";
|
|
@@ -37,29 +37,30 @@ import { componentDefinition as componentDefinition$u } from "../core/shaders/In
|
|
|
37
37
|
import { componentDefinition as componentDefinition$v } from "../core/shaders/LinearBlur/index.js";
|
|
38
38
|
import { componentDefinition as componentDefinition$w } from "../core/shaders/LinearGradient/index.js";
|
|
39
39
|
import { componentDefinition as componentDefinition$x } from "../core/shaders/Liquify/index.js";
|
|
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/
|
|
61
|
-
import { componentDefinition as componentDefinition$T } from "../core/shaders/
|
|
62
|
-
import { componentDefinition as componentDefinition$U } from "../core/shaders/
|
|
40
|
+
import { componentDefinition as componentDefinition$y } from "../core/shaders/Perspective/index.js";
|
|
41
|
+
import { componentDefinition as componentDefinition$z } from "../core/shaders/Pixelate/index.js";
|
|
42
|
+
import { componentDefinition as componentDefinition$A } from "../core/shaders/PolarCoordinates/index.js";
|
|
43
|
+
import { componentDefinition as componentDefinition$B } from "../core/shaders/Posterize/index.js";
|
|
44
|
+
import { componentDefinition as componentDefinition$C } from "../core/shaders/ProgressiveBlur/index.js";
|
|
45
|
+
import { componentDefinition as componentDefinition$D } from "../core/shaders/RadialGradient/index.js";
|
|
46
|
+
import { componentDefinition as componentDefinition$E } from "../core/shaders/RectangularCoordinates/index.js";
|
|
47
|
+
import { componentDefinition as componentDefinition$F } from "../core/shaders/Ripples/index.js";
|
|
48
|
+
import { componentDefinition as componentDefinition$G } from "../core/shaders/Saturation/index.js";
|
|
49
|
+
import { componentDefinition as componentDefinition$H } from "../core/shaders/Sharpness/index.js";
|
|
50
|
+
import { componentDefinition as componentDefinition$I } from "../core/shaders/SimplexNoise/index.js";
|
|
51
|
+
import { componentDefinition as componentDefinition$J } from "../core/shaders/SineWave/index.js";
|
|
52
|
+
import { componentDefinition as componentDefinition$K } from "../core/shaders/SolidColor/index.js";
|
|
53
|
+
import { componentDefinition as componentDefinition$L } from "../core/shaders/Spherize/index.js";
|
|
54
|
+
import { componentDefinition as componentDefinition$M } from "../core/shaders/Spiral/index.js";
|
|
55
|
+
import { componentDefinition as componentDefinition$N } from "../core/shaders/Strands/index.js";
|
|
56
|
+
import { componentDefinition as componentDefinition$O } from "../core/shaders/Stretch/index.js";
|
|
57
|
+
import { componentDefinition as componentDefinition$P } from "../core/shaders/Swirl/index.js";
|
|
58
|
+
import { componentDefinition as componentDefinition$Q } from "../core/shaders/TiltShift/index.js";
|
|
59
|
+
import { componentDefinition as componentDefinition$R } from "../core/shaders/Tritone/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$S } from "../core/shaders/Twirl/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$T } from "../core/shaders/Vibrance/index.js";
|
|
62
|
+
import { componentDefinition as componentDefinition$U } from "../core/shaders/WaveDistortion/index.js";
|
|
63
|
+
import { componentDefinition as componentDefinition$V } from "../core/shaders/ZoomBlur/index.js";
|
|
63
64
|
import { generatePresetCode } from "./utils/generatePresetCode.js";
|
|
64
65
|
var _tmpl$ = /* @__PURE__ */ template(`<div><canvas data-renderer=shaders style=width:100%;height:100%;display:block>`);
|
|
65
66
|
const ShaderContext = createContext();
|
|
@@ -113,6 +114,7 @@ function Shader(allProps) {
|
|
|
113
114
|
shaderUniformUpdate: uniformUpdate,
|
|
114
115
|
shaderMetadataUpdate: metadataUpdate
|
|
115
116
|
}));
|
|
117
|
+
const resolved = children(() => props.children);
|
|
116
118
|
const initializeRenderer = async () => {
|
|
117
119
|
const canvas = canvasRef;
|
|
118
120
|
if (!canvas || isInitialized || isInitializing) {
|
|
@@ -228,7 +230,7 @@ function Shader(allProps) {
|
|
|
228
230
|
}, domProps), false, true);
|
|
229
231
|
var _ref$2 = canvasRef;
|
|
230
232
|
typeof _ref$2 === "function" ? use(_ref$2, _el$2) : canvasRef = _el$2;
|
|
231
|
-
insert(_el$,
|
|
233
|
+
insert(_el$, resolved, null);
|
|
232
234
|
return _el$;
|
|
233
235
|
}
|
|
234
236
|
});
|
|
@@ -240,7 +242,7 @@ function useShaderContext() {
|
|
|
240
242
|
}
|
|
241
243
|
return ctx;
|
|
242
244
|
}
|
|
243
|
-
const DEFAULT_TRANSFORM$
|
|
245
|
+
const DEFAULT_TRANSFORM$V = {
|
|
244
246
|
offsetX: 0,
|
|
245
247
|
offsetY: 0,
|
|
246
248
|
rotation: 0,
|
|
@@ -249,7 +251,7 @@ const DEFAULT_TRANSFORM$U = {
|
|
|
249
251
|
anchorY: 0.5,
|
|
250
252
|
edges: "transparent"
|
|
251
253
|
};
|
|
252
|
-
const defaultProps$
|
|
254
|
+
const defaultProps$V = {
|
|
253
255
|
blendMode: "normal",
|
|
254
256
|
renderOrder: 0,
|
|
255
257
|
visible: true
|
|
@@ -259,6 +261,146 @@ const defaultProps$U = {
|
|
|
259
261
|
try {
|
|
260
262
|
if (componentDefinition && componentDefinition.props) {
|
|
261
263
|
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
264
|
+
const propConfig = config;
|
|
265
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
266
|
+
defaultProps$V[key] = propConfig.default;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
} catch (e) {
|
|
271
|
+
console.warn("Error extracting default props:", e);
|
|
272
|
+
}
|
|
273
|
+
function ShaderComponent$V(props) {
|
|
274
|
+
const context = useShaderContext();
|
|
275
|
+
const {
|
|
276
|
+
shaderParentId: parentId,
|
|
277
|
+
shaderNodeRegister: parentRegister,
|
|
278
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
279
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
280
|
+
} = context;
|
|
281
|
+
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
282
|
+
const effectiveProps = createMemo(() => {
|
|
283
|
+
let baseProps = {
|
|
284
|
+
...defaultProps$V
|
|
285
|
+
};
|
|
286
|
+
for (const [key, value] of Object.entries(props)) {
|
|
287
|
+
if (key !== "children" && value !== void 0) {
|
|
288
|
+
baseProps[key] = value;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return baseProps;
|
|
292
|
+
});
|
|
293
|
+
const effectiveTransform = createMemo(() => ({
|
|
294
|
+
...DEFAULT_TRANSFORM$V,
|
|
295
|
+
...props.transform
|
|
296
|
+
}));
|
|
297
|
+
let uniformsMap = null;
|
|
298
|
+
const getUniformsMap = () => {
|
|
299
|
+
if (!uniformsMap) {
|
|
300
|
+
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
301
|
+
}
|
|
302
|
+
return uniformsMap;
|
|
303
|
+
};
|
|
304
|
+
const childContextValue = createMemo(() => ({
|
|
305
|
+
...context,
|
|
306
|
+
shaderParentId: instanceId
|
|
307
|
+
}));
|
|
308
|
+
const resolved = children(() => props.children);
|
|
309
|
+
let isRegistered = false;
|
|
310
|
+
onMount(() => {
|
|
311
|
+
const uniforms = getUniformsMap();
|
|
312
|
+
if (!uniforms) return;
|
|
313
|
+
try {
|
|
314
|
+
const metadata = {
|
|
315
|
+
blendMode: props.blendMode || "normal",
|
|
316
|
+
opacity: props.opacity,
|
|
317
|
+
visible: props.visible === false ? false : true,
|
|
318
|
+
id: props.id,
|
|
319
|
+
mask: props.maskSource ? {
|
|
320
|
+
source: props.maskSource,
|
|
321
|
+
type: props.maskType || "alpha"
|
|
322
|
+
} : void 0,
|
|
323
|
+
renderOrder: props.renderOrder || 0,
|
|
324
|
+
transform: effectiveTransform()
|
|
325
|
+
};
|
|
326
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
327
|
+
isRegistered = true;
|
|
328
|
+
} catch (error) {
|
|
329
|
+
console.error("Error registering shader node:", error);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
onCleanup(() => {
|
|
333
|
+
isRegistered = false;
|
|
334
|
+
parentRegister(instanceId, null, null, null, null);
|
|
335
|
+
});
|
|
336
|
+
createEffect(() => {
|
|
337
|
+
if (!isRegistered) return;
|
|
338
|
+
const uniforms = getUniformsMap();
|
|
339
|
+
if (!uniforms) return;
|
|
340
|
+
try {
|
|
341
|
+
const props_snapshot = effectiveProps();
|
|
342
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
343
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
344
|
+
const {
|
|
345
|
+
uniform
|
|
346
|
+
} = uniformData;
|
|
347
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
348
|
+
const newValue = props_snapshot[propName];
|
|
349
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
} catch (error) {
|
|
353
|
+
console.error("Error updating uniforms:", error);
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
createEffect(() => {
|
|
357
|
+
if (!isRegistered) return;
|
|
358
|
+
try {
|
|
359
|
+
const metadata = {
|
|
360
|
+
blendMode: props.blendMode || "normal",
|
|
361
|
+
opacity: props.opacity,
|
|
362
|
+
visible: props.visible === false ? false : true,
|
|
363
|
+
id: props.id,
|
|
364
|
+
mask: props.maskSource ? {
|
|
365
|
+
source: props.maskSource,
|
|
366
|
+
type: props.maskType || "alpha"
|
|
367
|
+
} : void 0,
|
|
368
|
+
renderOrder: props.renderOrder || 0,
|
|
369
|
+
transform: effectiveTransform()
|
|
370
|
+
};
|
|
371
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
372
|
+
} catch (error) {
|
|
373
|
+
console.error("Error updating metadata:", error);
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
return createComponent(ShaderContext.Provider, {
|
|
377
|
+
get value() {
|
|
378
|
+
return childContextValue();
|
|
379
|
+
},
|
|
380
|
+
get children() {
|
|
381
|
+
return resolved();
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
const DEFAULT_TRANSFORM$U = {
|
|
386
|
+
offsetX: 0,
|
|
387
|
+
offsetY: 0,
|
|
388
|
+
rotation: 0,
|
|
389
|
+
scale: 1,
|
|
390
|
+
anchorX: 0.5,
|
|
391
|
+
anchorY: 0.5,
|
|
392
|
+
edges: "transparent"
|
|
393
|
+
};
|
|
394
|
+
const defaultProps$U = {
|
|
395
|
+
blendMode: "normal",
|
|
396
|
+
renderOrder: 0,
|
|
397
|
+
visible: true
|
|
398
|
+
// opacity intentionally has no default - handled by renderer
|
|
399
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
400
|
+
};
|
|
401
|
+
try {
|
|
402
|
+
if (componentDefinition$1 && componentDefinition$1.props) {
|
|
403
|
+
Object.entries(componentDefinition$1.props).forEach(([key, config]) => {
|
|
262
404
|
const propConfig = config;
|
|
263
405
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
264
406
|
defaultProps$U[key] = propConfig.default;
|
|
@@ -276,7 +418,7 @@ function ShaderComponent$U(props) {
|
|
|
276
418
|
shaderUniformUpdate: parentUniformUpdate,
|
|
277
419
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
278
420
|
} = context;
|
|
279
|
-
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
421
|
+
const instanceId = props.id || `${componentDefinition$1.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
280
422
|
const effectiveProps = createMemo(() => {
|
|
281
423
|
let baseProps = {
|
|
282
424
|
...defaultProps$U
|
|
@@ -295,7 +437,7 @@ function ShaderComponent$U(props) {
|
|
|
295
437
|
let uniformsMap = null;
|
|
296
438
|
const getUniformsMap = () => {
|
|
297
439
|
if (!uniformsMap) {
|
|
298
|
-
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
440
|
+
uniformsMap = createUniformsMap(componentDefinition$1, effectiveProps(), instanceId);
|
|
299
441
|
}
|
|
300
442
|
return uniformsMap;
|
|
301
443
|
};
|
|
@@ -303,6 +445,7 @@ function ShaderComponent$U(props) {
|
|
|
303
445
|
...context,
|
|
304
446
|
shaderParentId: instanceId
|
|
305
447
|
}));
|
|
448
|
+
const resolved = children(() => props.children);
|
|
306
449
|
let isRegistered = false;
|
|
307
450
|
onMount(() => {
|
|
308
451
|
const uniforms = getUniformsMap();
|
|
@@ -320,7 +463,7 @@ function ShaderComponent$U(props) {
|
|
|
320
463
|
renderOrder: props.renderOrder || 0,
|
|
321
464
|
transform: effectiveTransform()
|
|
322
465
|
};
|
|
323
|
-
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
466
|
+
parentRegister(instanceId, componentDefinition$1.fragmentNode, parentId, metadata, uniforms, componentDefinition$1);
|
|
324
467
|
isRegistered = true;
|
|
325
468
|
} catch (error) {
|
|
326
469
|
console.error("Error registering shader node:", error);
|
|
@@ -375,7 +518,7 @@ function ShaderComponent$U(props) {
|
|
|
375
518
|
return childContextValue();
|
|
376
519
|
},
|
|
377
520
|
get children() {
|
|
378
|
-
return
|
|
521
|
+
return resolved();
|
|
379
522
|
}
|
|
380
523
|
});
|
|
381
524
|
}
|
|
@@ -396,8 +539,8 @@ const defaultProps$T = {
|
|
|
396
539
|
// transform intentionally has no default - handled by effectiveTransform
|
|
397
540
|
};
|
|
398
541
|
try {
|
|
399
|
-
if (componentDefinition$
|
|
400
|
-
Object.entries(componentDefinition$
|
|
542
|
+
if (componentDefinition$2 && componentDefinition$2.props) {
|
|
543
|
+
Object.entries(componentDefinition$2.props).forEach(([key, config]) => {
|
|
401
544
|
const propConfig = config;
|
|
402
545
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
403
546
|
defaultProps$T[key] = propConfig.default;
|
|
@@ -415,7 +558,7 @@ function ShaderComponent$T(props) {
|
|
|
415
558
|
shaderUniformUpdate: parentUniformUpdate,
|
|
416
559
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
417
560
|
} = context;
|
|
418
|
-
const instanceId = props.id || `${componentDefinition$
|
|
561
|
+
const instanceId = props.id || `${componentDefinition$2.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
419
562
|
const effectiveProps = createMemo(() => {
|
|
420
563
|
let baseProps = {
|
|
421
564
|
...defaultProps$T
|
|
@@ -434,7 +577,7 @@ function ShaderComponent$T(props) {
|
|
|
434
577
|
let uniformsMap = null;
|
|
435
578
|
const getUniformsMap = () => {
|
|
436
579
|
if (!uniformsMap) {
|
|
437
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
580
|
+
uniformsMap = createUniformsMap(componentDefinition$2, effectiveProps(), instanceId);
|
|
438
581
|
}
|
|
439
582
|
return uniformsMap;
|
|
440
583
|
};
|
|
@@ -442,6 +585,7 @@ function ShaderComponent$T(props) {
|
|
|
442
585
|
...context,
|
|
443
586
|
shaderParentId: instanceId
|
|
444
587
|
}));
|
|
588
|
+
const resolved = children(() => props.children);
|
|
445
589
|
let isRegistered = false;
|
|
446
590
|
onMount(() => {
|
|
447
591
|
const uniforms = getUniformsMap();
|
|
@@ -459,7 +603,7 @@ function ShaderComponent$T(props) {
|
|
|
459
603
|
renderOrder: props.renderOrder || 0,
|
|
460
604
|
transform: effectiveTransform()
|
|
461
605
|
};
|
|
462
|
-
parentRegister(instanceId, componentDefinition$
|
|
606
|
+
parentRegister(instanceId, componentDefinition$2.fragmentNode, parentId, metadata, uniforms, componentDefinition$2);
|
|
463
607
|
isRegistered = true;
|
|
464
608
|
} catch (error) {
|
|
465
609
|
console.error("Error registering shader node:", error);
|
|
@@ -514,7 +658,7 @@ function ShaderComponent$T(props) {
|
|
|
514
658
|
return childContextValue();
|
|
515
659
|
},
|
|
516
660
|
get children() {
|
|
517
|
-
return
|
|
661
|
+
return resolved();
|
|
518
662
|
}
|
|
519
663
|
});
|
|
520
664
|
}
|
|
@@ -535,8 +679,8 @@ const defaultProps$S = {
|
|
|
535
679
|
// transform intentionally has no default - handled by effectiveTransform
|
|
536
680
|
};
|
|
537
681
|
try {
|
|
538
|
-
if (componentDefinition$
|
|
539
|
-
Object.entries(componentDefinition$
|
|
682
|
+
if (componentDefinition$3 && componentDefinition$3.props) {
|
|
683
|
+
Object.entries(componentDefinition$3.props).forEach(([key, config]) => {
|
|
540
684
|
const propConfig = config;
|
|
541
685
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
542
686
|
defaultProps$S[key] = propConfig.default;
|
|
@@ -554,7 +698,7 @@ function ShaderComponent$S(props) {
|
|
|
554
698
|
shaderUniformUpdate: parentUniformUpdate,
|
|
555
699
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
556
700
|
} = context;
|
|
557
|
-
const instanceId = props.id || `${componentDefinition$
|
|
701
|
+
const instanceId = props.id || `${componentDefinition$3.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
558
702
|
const effectiveProps = createMemo(() => {
|
|
559
703
|
let baseProps = {
|
|
560
704
|
...defaultProps$S
|
|
@@ -573,7 +717,7 @@ function ShaderComponent$S(props) {
|
|
|
573
717
|
let uniformsMap = null;
|
|
574
718
|
const getUniformsMap = () => {
|
|
575
719
|
if (!uniformsMap) {
|
|
576
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
720
|
+
uniformsMap = createUniformsMap(componentDefinition$3, effectiveProps(), instanceId);
|
|
577
721
|
}
|
|
578
722
|
return uniformsMap;
|
|
579
723
|
};
|
|
@@ -581,6 +725,7 @@ function ShaderComponent$S(props) {
|
|
|
581
725
|
...context,
|
|
582
726
|
shaderParentId: instanceId
|
|
583
727
|
}));
|
|
728
|
+
const resolved = children(() => props.children);
|
|
584
729
|
let isRegistered = false;
|
|
585
730
|
onMount(() => {
|
|
586
731
|
const uniforms = getUniformsMap();
|
|
@@ -598,7 +743,7 @@ function ShaderComponent$S(props) {
|
|
|
598
743
|
renderOrder: props.renderOrder || 0,
|
|
599
744
|
transform: effectiveTransform()
|
|
600
745
|
};
|
|
601
|
-
parentRegister(instanceId, componentDefinition$
|
|
746
|
+
parentRegister(instanceId, componentDefinition$3.fragmentNode, parentId, metadata, uniforms, componentDefinition$3);
|
|
602
747
|
isRegistered = true;
|
|
603
748
|
} catch (error) {
|
|
604
749
|
console.error("Error registering shader node:", error);
|
|
@@ -653,7 +798,7 @@ function ShaderComponent$S(props) {
|
|
|
653
798
|
return childContextValue();
|
|
654
799
|
},
|
|
655
800
|
get children() {
|
|
656
|
-
return
|
|
801
|
+
return resolved();
|
|
657
802
|
}
|
|
658
803
|
});
|
|
659
804
|
}
|
|
@@ -674,8 +819,8 @@ const defaultProps$R = {
|
|
|
674
819
|
// transform intentionally has no default - handled by effectiveTransform
|
|
675
820
|
};
|
|
676
821
|
try {
|
|
677
|
-
if (componentDefinition$
|
|
678
|
-
Object.entries(componentDefinition$
|
|
822
|
+
if (componentDefinition$4 && componentDefinition$4.props) {
|
|
823
|
+
Object.entries(componentDefinition$4.props).forEach(([key, config]) => {
|
|
679
824
|
const propConfig = config;
|
|
680
825
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
681
826
|
defaultProps$R[key] = propConfig.default;
|
|
@@ -693,7 +838,7 @@ function ShaderComponent$R(props) {
|
|
|
693
838
|
shaderUniformUpdate: parentUniformUpdate,
|
|
694
839
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
695
840
|
} = context;
|
|
696
|
-
const instanceId = props.id || `${componentDefinition$
|
|
841
|
+
const instanceId = props.id || `${componentDefinition$4.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
697
842
|
const effectiveProps = createMemo(() => {
|
|
698
843
|
let baseProps = {
|
|
699
844
|
...defaultProps$R
|
|
@@ -712,7 +857,7 @@ function ShaderComponent$R(props) {
|
|
|
712
857
|
let uniformsMap = null;
|
|
713
858
|
const getUniformsMap = () => {
|
|
714
859
|
if (!uniformsMap) {
|
|
715
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
860
|
+
uniformsMap = createUniformsMap(componentDefinition$4, effectiveProps(), instanceId);
|
|
716
861
|
}
|
|
717
862
|
return uniformsMap;
|
|
718
863
|
};
|
|
@@ -720,6 +865,7 @@ function ShaderComponent$R(props) {
|
|
|
720
865
|
...context,
|
|
721
866
|
shaderParentId: instanceId
|
|
722
867
|
}));
|
|
868
|
+
const resolved = children(() => props.children);
|
|
723
869
|
let isRegistered = false;
|
|
724
870
|
onMount(() => {
|
|
725
871
|
const uniforms = getUniformsMap();
|
|
@@ -737,7 +883,7 @@ function ShaderComponent$R(props) {
|
|
|
737
883
|
renderOrder: props.renderOrder || 0,
|
|
738
884
|
transform: effectiveTransform()
|
|
739
885
|
};
|
|
740
|
-
parentRegister(instanceId, componentDefinition$
|
|
886
|
+
parentRegister(instanceId, componentDefinition$4.fragmentNode, parentId, metadata, uniforms, componentDefinition$4);
|
|
741
887
|
isRegistered = true;
|
|
742
888
|
} catch (error) {
|
|
743
889
|
console.error("Error registering shader node:", error);
|
|
@@ -792,7 +938,7 @@ function ShaderComponent$R(props) {
|
|
|
792
938
|
return childContextValue();
|
|
793
939
|
},
|
|
794
940
|
get children() {
|
|
795
|
-
return
|
|
941
|
+
return resolved();
|
|
796
942
|
}
|
|
797
943
|
});
|
|
798
944
|
}
|
|
@@ -813,8 +959,8 @@ const defaultProps$Q = {
|
|
|
813
959
|
// transform intentionally has no default - handled by effectiveTransform
|
|
814
960
|
};
|
|
815
961
|
try {
|
|
816
|
-
if (componentDefinition$
|
|
817
|
-
Object.entries(componentDefinition$
|
|
962
|
+
if (componentDefinition$5 && componentDefinition$5.props) {
|
|
963
|
+
Object.entries(componentDefinition$5.props).forEach(([key, config]) => {
|
|
818
964
|
const propConfig = config;
|
|
819
965
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
820
966
|
defaultProps$Q[key] = propConfig.default;
|
|
@@ -832,7 +978,7 @@ function ShaderComponent$Q(props) {
|
|
|
832
978
|
shaderUniformUpdate: parentUniformUpdate,
|
|
833
979
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
834
980
|
} = context;
|
|
835
|
-
const instanceId = props.id || `${componentDefinition$
|
|
981
|
+
const instanceId = props.id || `${componentDefinition$5.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
836
982
|
const effectiveProps = createMemo(() => {
|
|
837
983
|
let baseProps = {
|
|
838
984
|
...defaultProps$Q
|
|
@@ -851,7 +997,7 @@ function ShaderComponent$Q(props) {
|
|
|
851
997
|
let uniformsMap = null;
|
|
852
998
|
const getUniformsMap = () => {
|
|
853
999
|
if (!uniformsMap) {
|
|
854
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1000
|
+
uniformsMap = createUniformsMap(componentDefinition$5, effectiveProps(), instanceId);
|
|
855
1001
|
}
|
|
856
1002
|
return uniformsMap;
|
|
857
1003
|
};
|
|
@@ -859,6 +1005,7 @@ function ShaderComponent$Q(props) {
|
|
|
859
1005
|
...context,
|
|
860
1006
|
shaderParentId: instanceId
|
|
861
1007
|
}));
|
|
1008
|
+
const resolved = children(() => props.children);
|
|
862
1009
|
let isRegistered = false;
|
|
863
1010
|
onMount(() => {
|
|
864
1011
|
const uniforms = getUniformsMap();
|
|
@@ -876,7 +1023,7 @@ function ShaderComponent$Q(props) {
|
|
|
876
1023
|
renderOrder: props.renderOrder || 0,
|
|
877
1024
|
transform: effectiveTransform()
|
|
878
1025
|
};
|
|
879
|
-
parentRegister(instanceId, componentDefinition$
|
|
1026
|
+
parentRegister(instanceId, componentDefinition$5.fragmentNode, parentId, metadata, uniforms, componentDefinition$5);
|
|
880
1027
|
isRegistered = true;
|
|
881
1028
|
} catch (error) {
|
|
882
1029
|
console.error("Error registering shader node:", error);
|
|
@@ -931,7 +1078,7 @@ function ShaderComponent$Q(props) {
|
|
|
931
1078
|
return childContextValue();
|
|
932
1079
|
},
|
|
933
1080
|
get children() {
|
|
934
|
-
return
|
|
1081
|
+
return resolved();
|
|
935
1082
|
}
|
|
936
1083
|
});
|
|
937
1084
|
}
|
|
@@ -952,8 +1099,8 @@ const defaultProps$P = {
|
|
|
952
1099
|
// transform intentionally has no default - handled by effectiveTransform
|
|
953
1100
|
};
|
|
954
1101
|
try {
|
|
955
|
-
if (componentDefinition$
|
|
956
|
-
Object.entries(componentDefinition$
|
|
1102
|
+
if (componentDefinition$6 && componentDefinition$6.props) {
|
|
1103
|
+
Object.entries(componentDefinition$6.props).forEach(([key, config]) => {
|
|
957
1104
|
const propConfig = config;
|
|
958
1105
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
959
1106
|
defaultProps$P[key] = propConfig.default;
|
|
@@ -971,7 +1118,7 @@ function ShaderComponent$P(props) {
|
|
|
971
1118
|
shaderUniformUpdate: parentUniformUpdate,
|
|
972
1119
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
973
1120
|
} = context;
|
|
974
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1121
|
+
const instanceId = props.id || `${componentDefinition$6.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
975
1122
|
const effectiveProps = createMemo(() => {
|
|
976
1123
|
let baseProps = {
|
|
977
1124
|
...defaultProps$P
|
|
@@ -990,7 +1137,7 @@ function ShaderComponent$P(props) {
|
|
|
990
1137
|
let uniformsMap = null;
|
|
991
1138
|
const getUniformsMap = () => {
|
|
992
1139
|
if (!uniformsMap) {
|
|
993
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1140
|
+
uniformsMap = createUniformsMap(componentDefinition$6, effectiveProps(), instanceId);
|
|
994
1141
|
}
|
|
995
1142
|
return uniformsMap;
|
|
996
1143
|
};
|
|
@@ -998,6 +1145,7 @@ function ShaderComponent$P(props) {
|
|
|
998
1145
|
...context,
|
|
999
1146
|
shaderParentId: instanceId
|
|
1000
1147
|
}));
|
|
1148
|
+
const resolved = children(() => props.children);
|
|
1001
1149
|
let isRegistered = false;
|
|
1002
1150
|
onMount(() => {
|
|
1003
1151
|
const uniforms = getUniformsMap();
|
|
@@ -1015,7 +1163,7 @@ function ShaderComponent$P(props) {
|
|
|
1015
1163
|
renderOrder: props.renderOrder || 0,
|
|
1016
1164
|
transform: effectiveTransform()
|
|
1017
1165
|
};
|
|
1018
|
-
parentRegister(instanceId, componentDefinition$
|
|
1166
|
+
parentRegister(instanceId, componentDefinition$6.fragmentNode, parentId, metadata, uniforms, componentDefinition$6);
|
|
1019
1167
|
isRegistered = true;
|
|
1020
1168
|
} catch (error) {
|
|
1021
1169
|
console.error("Error registering shader node:", error);
|
|
@@ -1070,7 +1218,7 @@ function ShaderComponent$P(props) {
|
|
|
1070
1218
|
return childContextValue();
|
|
1071
1219
|
},
|
|
1072
1220
|
get children() {
|
|
1073
|
-
return
|
|
1221
|
+
return resolved();
|
|
1074
1222
|
}
|
|
1075
1223
|
});
|
|
1076
1224
|
}
|
|
@@ -1091,8 +1239,8 @@ const defaultProps$O = {
|
|
|
1091
1239
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1092
1240
|
};
|
|
1093
1241
|
try {
|
|
1094
|
-
if (componentDefinition$
|
|
1095
|
-
Object.entries(componentDefinition$
|
|
1242
|
+
if (componentDefinition$7 && componentDefinition$7.props) {
|
|
1243
|
+
Object.entries(componentDefinition$7.props).forEach(([key, config]) => {
|
|
1096
1244
|
const propConfig = config;
|
|
1097
1245
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1098
1246
|
defaultProps$O[key] = propConfig.default;
|
|
@@ -1110,7 +1258,7 @@ function ShaderComponent$O(props) {
|
|
|
1110
1258
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1111
1259
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1112
1260
|
} = context;
|
|
1113
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1261
|
+
const instanceId = props.id || `${componentDefinition$7.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1114
1262
|
const effectiveProps = createMemo(() => {
|
|
1115
1263
|
let baseProps = {
|
|
1116
1264
|
...defaultProps$O
|
|
@@ -1129,7 +1277,7 @@ function ShaderComponent$O(props) {
|
|
|
1129
1277
|
let uniformsMap = null;
|
|
1130
1278
|
const getUniformsMap = () => {
|
|
1131
1279
|
if (!uniformsMap) {
|
|
1132
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1280
|
+
uniformsMap = createUniformsMap(componentDefinition$7, effectiveProps(), instanceId);
|
|
1133
1281
|
}
|
|
1134
1282
|
return uniformsMap;
|
|
1135
1283
|
};
|
|
@@ -1137,6 +1285,7 @@ function ShaderComponent$O(props) {
|
|
|
1137
1285
|
...context,
|
|
1138
1286
|
shaderParentId: instanceId
|
|
1139
1287
|
}));
|
|
1288
|
+
const resolved = children(() => props.children);
|
|
1140
1289
|
let isRegistered = false;
|
|
1141
1290
|
onMount(() => {
|
|
1142
1291
|
const uniforms = getUniformsMap();
|
|
@@ -1154,7 +1303,7 @@ function ShaderComponent$O(props) {
|
|
|
1154
1303
|
renderOrder: props.renderOrder || 0,
|
|
1155
1304
|
transform: effectiveTransform()
|
|
1156
1305
|
};
|
|
1157
|
-
parentRegister(instanceId, componentDefinition$
|
|
1306
|
+
parentRegister(instanceId, componentDefinition$7.fragmentNode, parentId, metadata, uniforms, componentDefinition$7);
|
|
1158
1307
|
isRegistered = true;
|
|
1159
1308
|
} catch (error) {
|
|
1160
1309
|
console.error("Error registering shader node:", error);
|
|
@@ -1209,7 +1358,7 @@ function ShaderComponent$O(props) {
|
|
|
1209
1358
|
return childContextValue();
|
|
1210
1359
|
},
|
|
1211
1360
|
get children() {
|
|
1212
|
-
return
|
|
1361
|
+
return resolved();
|
|
1213
1362
|
}
|
|
1214
1363
|
});
|
|
1215
1364
|
}
|
|
@@ -1230,8 +1379,8 @@ const defaultProps$N = {
|
|
|
1230
1379
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1231
1380
|
};
|
|
1232
1381
|
try {
|
|
1233
|
-
if (componentDefinition$
|
|
1234
|
-
Object.entries(componentDefinition$
|
|
1382
|
+
if (componentDefinition$8 && componentDefinition$8.props) {
|
|
1383
|
+
Object.entries(componentDefinition$8.props).forEach(([key, config]) => {
|
|
1235
1384
|
const propConfig = config;
|
|
1236
1385
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1237
1386
|
defaultProps$N[key] = propConfig.default;
|
|
@@ -1249,7 +1398,7 @@ function ShaderComponent$N(props) {
|
|
|
1249
1398
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1250
1399
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1251
1400
|
} = context;
|
|
1252
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1401
|
+
const instanceId = props.id || `${componentDefinition$8.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1253
1402
|
const effectiveProps = createMemo(() => {
|
|
1254
1403
|
let baseProps = {
|
|
1255
1404
|
...defaultProps$N
|
|
@@ -1268,7 +1417,7 @@ function ShaderComponent$N(props) {
|
|
|
1268
1417
|
let uniformsMap = null;
|
|
1269
1418
|
const getUniformsMap = () => {
|
|
1270
1419
|
if (!uniformsMap) {
|
|
1271
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1420
|
+
uniformsMap = createUniformsMap(componentDefinition$8, effectiveProps(), instanceId);
|
|
1272
1421
|
}
|
|
1273
1422
|
return uniformsMap;
|
|
1274
1423
|
};
|
|
@@ -1276,6 +1425,7 @@ function ShaderComponent$N(props) {
|
|
|
1276
1425
|
...context,
|
|
1277
1426
|
shaderParentId: instanceId
|
|
1278
1427
|
}));
|
|
1428
|
+
const resolved = children(() => props.children);
|
|
1279
1429
|
let isRegistered = false;
|
|
1280
1430
|
onMount(() => {
|
|
1281
1431
|
const uniforms = getUniformsMap();
|
|
@@ -1293,7 +1443,7 @@ function ShaderComponent$N(props) {
|
|
|
1293
1443
|
renderOrder: props.renderOrder || 0,
|
|
1294
1444
|
transform: effectiveTransform()
|
|
1295
1445
|
};
|
|
1296
|
-
parentRegister(instanceId, componentDefinition$
|
|
1446
|
+
parentRegister(instanceId, componentDefinition$8.fragmentNode, parentId, metadata, uniforms, componentDefinition$8);
|
|
1297
1447
|
isRegistered = true;
|
|
1298
1448
|
} catch (error) {
|
|
1299
1449
|
console.error("Error registering shader node:", error);
|
|
@@ -1348,7 +1498,7 @@ function ShaderComponent$N(props) {
|
|
|
1348
1498
|
return childContextValue();
|
|
1349
1499
|
},
|
|
1350
1500
|
get children() {
|
|
1351
|
-
return
|
|
1501
|
+
return resolved();
|
|
1352
1502
|
}
|
|
1353
1503
|
});
|
|
1354
1504
|
}
|
|
@@ -1369,8 +1519,8 @@ const defaultProps$M = {
|
|
|
1369
1519
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1370
1520
|
};
|
|
1371
1521
|
try {
|
|
1372
|
-
if (componentDefinition$
|
|
1373
|
-
Object.entries(componentDefinition$
|
|
1522
|
+
if (componentDefinition$9 && componentDefinition$9.props) {
|
|
1523
|
+
Object.entries(componentDefinition$9.props).forEach(([key, config]) => {
|
|
1374
1524
|
const propConfig = config;
|
|
1375
1525
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1376
1526
|
defaultProps$M[key] = propConfig.default;
|
|
@@ -1388,7 +1538,7 @@ function ShaderComponent$M(props) {
|
|
|
1388
1538
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1389
1539
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1390
1540
|
} = context;
|
|
1391
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1541
|
+
const instanceId = props.id || `${componentDefinition$9.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1392
1542
|
const effectiveProps = createMemo(() => {
|
|
1393
1543
|
let baseProps = {
|
|
1394
1544
|
...defaultProps$M
|
|
@@ -1407,7 +1557,7 @@ function ShaderComponent$M(props) {
|
|
|
1407
1557
|
let uniformsMap = null;
|
|
1408
1558
|
const getUniformsMap = () => {
|
|
1409
1559
|
if (!uniformsMap) {
|
|
1410
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1560
|
+
uniformsMap = createUniformsMap(componentDefinition$9, effectiveProps(), instanceId);
|
|
1411
1561
|
}
|
|
1412
1562
|
return uniformsMap;
|
|
1413
1563
|
};
|
|
@@ -1415,6 +1565,7 @@ function ShaderComponent$M(props) {
|
|
|
1415
1565
|
...context,
|
|
1416
1566
|
shaderParentId: instanceId
|
|
1417
1567
|
}));
|
|
1568
|
+
const resolved = children(() => props.children);
|
|
1418
1569
|
let isRegistered = false;
|
|
1419
1570
|
onMount(() => {
|
|
1420
1571
|
const uniforms = getUniformsMap();
|
|
@@ -1432,7 +1583,7 @@ function ShaderComponent$M(props) {
|
|
|
1432
1583
|
renderOrder: props.renderOrder || 0,
|
|
1433
1584
|
transform: effectiveTransform()
|
|
1434
1585
|
};
|
|
1435
|
-
parentRegister(instanceId, componentDefinition$
|
|
1586
|
+
parentRegister(instanceId, componentDefinition$9.fragmentNode, parentId, metadata, uniforms, componentDefinition$9);
|
|
1436
1587
|
isRegistered = true;
|
|
1437
1588
|
} catch (error) {
|
|
1438
1589
|
console.error("Error registering shader node:", error);
|
|
@@ -1487,7 +1638,7 @@ function ShaderComponent$M(props) {
|
|
|
1487
1638
|
return childContextValue();
|
|
1488
1639
|
},
|
|
1489
1640
|
get children() {
|
|
1490
|
-
return
|
|
1641
|
+
return resolved();
|
|
1491
1642
|
}
|
|
1492
1643
|
});
|
|
1493
1644
|
}
|
|
@@ -1508,8 +1659,8 @@ const defaultProps$L = {
|
|
|
1508
1659
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1509
1660
|
};
|
|
1510
1661
|
try {
|
|
1511
|
-
if (componentDefinition$
|
|
1512
|
-
Object.entries(componentDefinition$
|
|
1662
|
+
if (componentDefinition$a && componentDefinition$a.props) {
|
|
1663
|
+
Object.entries(componentDefinition$a.props).forEach(([key, config]) => {
|
|
1513
1664
|
const propConfig = config;
|
|
1514
1665
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1515
1666
|
defaultProps$L[key] = propConfig.default;
|
|
@@ -1527,7 +1678,7 @@ function ShaderComponent$L(props) {
|
|
|
1527
1678
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1528
1679
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1529
1680
|
} = context;
|
|
1530
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1681
|
+
const instanceId = props.id || `${componentDefinition$a.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1531
1682
|
const effectiveProps = createMemo(() => {
|
|
1532
1683
|
let baseProps = {
|
|
1533
1684
|
...defaultProps$L
|
|
@@ -1546,7 +1697,7 @@ function ShaderComponent$L(props) {
|
|
|
1546
1697
|
let uniformsMap = null;
|
|
1547
1698
|
const getUniformsMap = () => {
|
|
1548
1699
|
if (!uniformsMap) {
|
|
1549
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1700
|
+
uniformsMap = createUniformsMap(componentDefinition$a, effectiveProps(), instanceId);
|
|
1550
1701
|
}
|
|
1551
1702
|
return uniformsMap;
|
|
1552
1703
|
};
|
|
@@ -1554,6 +1705,7 @@ function ShaderComponent$L(props) {
|
|
|
1554
1705
|
...context,
|
|
1555
1706
|
shaderParentId: instanceId
|
|
1556
1707
|
}));
|
|
1708
|
+
const resolved = children(() => props.children);
|
|
1557
1709
|
let isRegistered = false;
|
|
1558
1710
|
onMount(() => {
|
|
1559
1711
|
const uniforms = getUniformsMap();
|
|
@@ -1571,7 +1723,7 @@ function ShaderComponent$L(props) {
|
|
|
1571
1723
|
renderOrder: props.renderOrder || 0,
|
|
1572
1724
|
transform: effectiveTransform()
|
|
1573
1725
|
};
|
|
1574
|
-
parentRegister(instanceId, componentDefinition$
|
|
1726
|
+
parentRegister(instanceId, componentDefinition$a.fragmentNode, parentId, metadata, uniforms, componentDefinition$a);
|
|
1575
1727
|
isRegistered = true;
|
|
1576
1728
|
} catch (error) {
|
|
1577
1729
|
console.error("Error registering shader node:", error);
|
|
@@ -1626,7 +1778,7 @@ function ShaderComponent$L(props) {
|
|
|
1626
1778
|
return childContextValue();
|
|
1627
1779
|
},
|
|
1628
1780
|
get children() {
|
|
1629
|
-
return
|
|
1781
|
+
return resolved();
|
|
1630
1782
|
}
|
|
1631
1783
|
});
|
|
1632
1784
|
}
|
|
@@ -1647,8 +1799,8 @@ const defaultProps$K = {
|
|
|
1647
1799
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1648
1800
|
};
|
|
1649
1801
|
try {
|
|
1650
|
-
if (componentDefinition$
|
|
1651
|
-
Object.entries(componentDefinition$
|
|
1802
|
+
if (componentDefinition$b && componentDefinition$b.props) {
|
|
1803
|
+
Object.entries(componentDefinition$b.props).forEach(([key, config]) => {
|
|
1652
1804
|
const propConfig = config;
|
|
1653
1805
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1654
1806
|
defaultProps$K[key] = propConfig.default;
|
|
@@ -1666,7 +1818,7 @@ function ShaderComponent$K(props) {
|
|
|
1666
1818
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1667
1819
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1668
1820
|
} = context;
|
|
1669
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1821
|
+
const instanceId = props.id || `${componentDefinition$b.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1670
1822
|
const effectiveProps = createMemo(() => {
|
|
1671
1823
|
let baseProps = {
|
|
1672
1824
|
...defaultProps$K
|
|
@@ -1685,7 +1837,7 @@ function ShaderComponent$K(props) {
|
|
|
1685
1837
|
let uniformsMap = null;
|
|
1686
1838
|
const getUniformsMap = () => {
|
|
1687
1839
|
if (!uniformsMap) {
|
|
1688
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1840
|
+
uniformsMap = createUniformsMap(componentDefinition$b, effectiveProps(), instanceId);
|
|
1689
1841
|
}
|
|
1690
1842
|
return uniformsMap;
|
|
1691
1843
|
};
|
|
@@ -1693,6 +1845,7 @@ function ShaderComponent$K(props) {
|
|
|
1693
1845
|
...context,
|
|
1694
1846
|
shaderParentId: instanceId
|
|
1695
1847
|
}));
|
|
1848
|
+
const resolved = children(() => props.children);
|
|
1696
1849
|
let isRegistered = false;
|
|
1697
1850
|
onMount(() => {
|
|
1698
1851
|
const uniforms = getUniformsMap();
|
|
@@ -1710,7 +1863,7 @@ function ShaderComponent$K(props) {
|
|
|
1710
1863
|
renderOrder: props.renderOrder || 0,
|
|
1711
1864
|
transform: effectiveTransform()
|
|
1712
1865
|
};
|
|
1713
|
-
parentRegister(instanceId, componentDefinition$
|
|
1866
|
+
parentRegister(instanceId, componentDefinition$b.fragmentNode, parentId, metadata, uniforms, componentDefinition$b);
|
|
1714
1867
|
isRegistered = true;
|
|
1715
1868
|
} catch (error) {
|
|
1716
1869
|
console.error("Error registering shader node:", error);
|
|
@@ -1765,7 +1918,7 @@ function ShaderComponent$K(props) {
|
|
|
1765
1918
|
return childContextValue();
|
|
1766
1919
|
},
|
|
1767
1920
|
get children() {
|
|
1768
|
-
return
|
|
1921
|
+
return resolved();
|
|
1769
1922
|
}
|
|
1770
1923
|
});
|
|
1771
1924
|
}
|
|
@@ -1786,8 +1939,8 @@ const defaultProps$J = {
|
|
|
1786
1939
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1787
1940
|
};
|
|
1788
1941
|
try {
|
|
1789
|
-
if (componentDefinition$
|
|
1790
|
-
Object.entries(componentDefinition$
|
|
1942
|
+
if (componentDefinition$c && componentDefinition$c.props) {
|
|
1943
|
+
Object.entries(componentDefinition$c.props).forEach(([key, config]) => {
|
|
1791
1944
|
const propConfig = config;
|
|
1792
1945
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1793
1946
|
defaultProps$J[key] = propConfig.default;
|
|
@@ -1805,7 +1958,7 @@ function ShaderComponent$J(props) {
|
|
|
1805
1958
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1806
1959
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1807
1960
|
} = context;
|
|
1808
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1961
|
+
const instanceId = props.id || `${componentDefinition$c.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1809
1962
|
const effectiveProps = createMemo(() => {
|
|
1810
1963
|
let baseProps = {
|
|
1811
1964
|
...defaultProps$J
|
|
@@ -1824,7 +1977,7 @@ function ShaderComponent$J(props) {
|
|
|
1824
1977
|
let uniformsMap = null;
|
|
1825
1978
|
const getUniformsMap = () => {
|
|
1826
1979
|
if (!uniformsMap) {
|
|
1827
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1980
|
+
uniformsMap = createUniformsMap(componentDefinition$c, effectiveProps(), instanceId);
|
|
1828
1981
|
}
|
|
1829
1982
|
return uniformsMap;
|
|
1830
1983
|
};
|
|
@@ -1832,6 +1985,7 @@ function ShaderComponent$J(props) {
|
|
|
1832
1985
|
...context,
|
|
1833
1986
|
shaderParentId: instanceId
|
|
1834
1987
|
}));
|
|
1988
|
+
const resolved = children(() => props.children);
|
|
1835
1989
|
let isRegistered = false;
|
|
1836
1990
|
onMount(() => {
|
|
1837
1991
|
const uniforms = getUniformsMap();
|
|
@@ -1849,7 +2003,7 @@ function ShaderComponent$J(props) {
|
|
|
1849
2003
|
renderOrder: props.renderOrder || 0,
|
|
1850
2004
|
transform: effectiveTransform()
|
|
1851
2005
|
};
|
|
1852
|
-
parentRegister(instanceId, componentDefinition$
|
|
2006
|
+
parentRegister(instanceId, componentDefinition$c.fragmentNode, parentId, metadata, uniforms, componentDefinition$c);
|
|
1853
2007
|
isRegistered = true;
|
|
1854
2008
|
} catch (error) {
|
|
1855
2009
|
console.error("Error registering shader node:", error);
|
|
@@ -1904,7 +2058,7 @@ function ShaderComponent$J(props) {
|
|
|
1904
2058
|
return childContextValue();
|
|
1905
2059
|
},
|
|
1906
2060
|
get children() {
|
|
1907
|
-
return
|
|
2061
|
+
return resolved();
|
|
1908
2062
|
}
|
|
1909
2063
|
});
|
|
1910
2064
|
}
|
|
@@ -1925,8 +2079,8 @@ const defaultProps$I = {
|
|
|
1925
2079
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1926
2080
|
};
|
|
1927
2081
|
try {
|
|
1928
|
-
if (componentDefinition$
|
|
1929
|
-
Object.entries(componentDefinition$
|
|
2082
|
+
if (componentDefinition$d && componentDefinition$d.props) {
|
|
2083
|
+
Object.entries(componentDefinition$d.props).forEach(([key, config]) => {
|
|
1930
2084
|
const propConfig = config;
|
|
1931
2085
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1932
2086
|
defaultProps$I[key] = propConfig.default;
|
|
@@ -1944,7 +2098,7 @@ function ShaderComponent$I(props) {
|
|
|
1944
2098
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1945
2099
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1946
2100
|
} = context;
|
|
1947
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2101
|
+
const instanceId = props.id || `${componentDefinition$d.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1948
2102
|
const effectiveProps = createMemo(() => {
|
|
1949
2103
|
let baseProps = {
|
|
1950
2104
|
...defaultProps$I
|
|
@@ -1963,7 +2117,7 @@ function ShaderComponent$I(props) {
|
|
|
1963
2117
|
let uniformsMap = null;
|
|
1964
2118
|
const getUniformsMap = () => {
|
|
1965
2119
|
if (!uniformsMap) {
|
|
1966
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2120
|
+
uniformsMap = createUniformsMap(componentDefinition$d, effectiveProps(), instanceId);
|
|
1967
2121
|
}
|
|
1968
2122
|
return uniformsMap;
|
|
1969
2123
|
};
|
|
@@ -1971,6 +2125,7 @@ function ShaderComponent$I(props) {
|
|
|
1971
2125
|
...context,
|
|
1972
2126
|
shaderParentId: instanceId
|
|
1973
2127
|
}));
|
|
2128
|
+
const resolved = children(() => props.children);
|
|
1974
2129
|
let isRegistered = false;
|
|
1975
2130
|
onMount(() => {
|
|
1976
2131
|
const uniforms = getUniformsMap();
|
|
@@ -1988,7 +2143,7 @@ function ShaderComponent$I(props) {
|
|
|
1988
2143
|
renderOrder: props.renderOrder || 0,
|
|
1989
2144
|
transform: effectiveTransform()
|
|
1990
2145
|
};
|
|
1991
|
-
parentRegister(instanceId, componentDefinition$
|
|
2146
|
+
parentRegister(instanceId, componentDefinition$d.fragmentNode, parentId, metadata, uniforms, componentDefinition$d);
|
|
1992
2147
|
isRegistered = true;
|
|
1993
2148
|
} catch (error) {
|
|
1994
2149
|
console.error("Error registering shader node:", error);
|
|
@@ -2043,7 +2198,7 @@ function ShaderComponent$I(props) {
|
|
|
2043
2198
|
return childContextValue();
|
|
2044
2199
|
},
|
|
2045
2200
|
get children() {
|
|
2046
|
-
return
|
|
2201
|
+
return resolved();
|
|
2047
2202
|
}
|
|
2048
2203
|
});
|
|
2049
2204
|
}
|
|
@@ -2064,8 +2219,8 @@ const defaultProps$H = {
|
|
|
2064
2219
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2065
2220
|
};
|
|
2066
2221
|
try {
|
|
2067
|
-
if (componentDefinition$
|
|
2068
|
-
Object.entries(componentDefinition$
|
|
2222
|
+
if (componentDefinition$e && componentDefinition$e.props) {
|
|
2223
|
+
Object.entries(componentDefinition$e.props).forEach(([key, config]) => {
|
|
2069
2224
|
const propConfig = config;
|
|
2070
2225
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2071
2226
|
defaultProps$H[key] = propConfig.default;
|
|
@@ -2083,7 +2238,7 @@ function ShaderComponent$H(props) {
|
|
|
2083
2238
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2084
2239
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2085
2240
|
} = context;
|
|
2086
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2241
|
+
const instanceId = props.id || `${componentDefinition$e.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2087
2242
|
const effectiveProps = createMemo(() => {
|
|
2088
2243
|
let baseProps = {
|
|
2089
2244
|
...defaultProps$H
|
|
@@ -2102,7 +2257,7 @@ function ShaderComponent$H(props) {
|
|
|
2102
2257
|
let uniformsMap = null;
|
|
2103
2258
|
const getUniformsMap = () => {
|
|
2104
2259
|
if (!uniformsMap) {
|
|
2105
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2260
|
+
uniformsMap = createUniformsMap(componentDefinition$e, effectiveProps(), instanceId);
|
|
2106
2261
|
}
|
|
2107
2262
|
return uniformsMap;
|
|
2108
2263
|
};
|
|
@@ -2110,6 +2265,7 @@ function ShaderComponent$H(props) {
|
|
|
2110
2265
|
...context,
|
|
2111
2266
|
shaderParentId: instanceId
|
|
2112
2267
|
}));
|
|
2268
|
+
const resolved = children(() => props.children);
|
|
2113
2269
|
let isRegistered = false;
|
|
2114
2270
|
onMount(() => {
|
|
2115
2271
|
const uniforms = getUniformsMap();
|
|
@@ -2127,7 +2283,7 @@ function ShaderComponent$H(props) {
|
|
|
2127
2283
|
renderOrder: props.renderOrder || 0,
|
|
2128
2284
|
transform: effectiveTransform()
|
|
2129
2285
|
};
|
|
2130
|
-
parentRegister(instanceId, componentDefinition$
|
|
2286
|
+
parentRegister(instanceId, componentDefinition$e.fragmentNode, parentId, metadata, uniforms, componentDefinition$e);
|
|
2131
2287
|
isRegistered = true;
|
|
2132
2288
|
} catch (error) {
|
|
2133
2289
|
console.error("Error registering shader node:", error);
|
|
@@ -2182,7 +2338,7 @@ function ShaderComponent$H(props) {
|
|
|
2182
2338
|
return childContextValue();
|
|
2183
2339
|
},
|
|
2184
2340
|
get children() {
|
|
2185
|
-
return
|
|
2341
|
+
return resolved();
|
|
2186
2342
|
}
|
|
2187
2343
|
});
|
|
2188
2344
|
}
|
|
@@ -2203,8 +2359,8 @@ const defaultProps$G = {
|
|
|
2203
2359
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2204
2360
|
};
|
|
2205
2361
|
try {
|
|
2206
|
-
if (componentDefinition$
|
|
2207
|
-
Object.entries(componentDefinition$
|
|
2362
|
+
if (componentDefinition$f && componentDefinition$f.props) {
|
|
2363
|
+
Object.entries(componentDefinition$f.props).forEach(([key, config]) => {
|
|
2208
2364
|
const propConfig = config;
|
|
2209
2365
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2210
2366
|
defaultProps$G[key] = propConfig.default;
|
|
@@ -2222,7 +2378,7 @@ function ShaderComponent$G(props) {
|
|
|
2222
2378
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2223
2379
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2224
2380
|
} = context;
|
|
2225
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2381
|
+
const instanceId = props.id || `${componentDefinition$f.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2226
2382
|
const effectiveProps = createMemo(() => {
|
|
2227
2383
|
let baseProps = {
|
|
2228
2384
|
...defaultProps$G
|
|
@@ -2241,7 +2397,7 @@ function ShaderComponent$G(props) {
|
|
|
2241
2397
|
let uniformsMap = null;
|
|
2242
2398
|
const getUniformsMap = () => {
|
|
2243
2399
|
if (!uniformsMap) {
|
|
2244
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2400
|
+
uniformsMap = createUniformsMap(componentDefinition$f, effectiveProps(), instanceId);
|
|
2245
2401
|
}
|
|
2246
2402
|
return uniformsMap;
|
|
2247
2403
|
};
|
|
@@ -2249,6 +2405,7 @@ function ShaderComponent$G(props) {
|
|
|
2249
2405
|
...context,
|
|
2250
2406
|
shaderParentId: instanceId
|
|
2251
2407
|
}));
|
|
2408
|
+
const resolved = children(() => props.children);
|
|
2252
2409
|
let isRegistered = false;
|
|
2253
2410
|
onMount(() => {
|
|
2254
2411
|
const uniforms = getUniformsMap();
|
|
@@ -2266,7 +2423,7 @@ function ShaderComponent$G(props) {
|
|
|
2266
2423
|
renderOrder: props.renderOrder || 0,
|
|
2267
2424
|
transform: effectiveTransform()
|
|
2268
2425
|
};
|
|
2269
|
-
parentRegister(instanceId, componentDefinition$
|
|
2426
|
+
parentRegister(instanceId, componentDefinition$f.fragmentNode, parentId, metadata, uniforms, componentDefinition$f);
|
|
2270
2427
|
isRegistered = true;
|
|
2271
2428
|
} catch (error) {
|
|
2272
2429
|
console.error("Error registering shader node:", error);
|
|
@@ -2321,7 +2478,7 @@ function ShaderComponent$G(props) {
|
|
|
2321
2478
|
return childContextValue();
|
|
2322
2479
|
},
|
|
2323
2480
|
get children() {
|
|
2324
|
-
return
|
|
2481
|
+
return resolved();
|
|
2325
2482
|
}
|
|
2326
2483
|
});
|
|
2327
2484
|
}
|
|
@@ -2342,8 +2499,8 @@ const defaultProps$F = {
|
|
|
2342
2499
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2343
2500
|
};
|
|
2344
2501
|
try {
|
|
2345
|
-
if (componentDefinition$
|
|
2346
|
-
Object.entries(componentDefinition$
|
|
2502
|
+
if (componentDefinition$g && componentDefinition$g.props) {
|
|
2503
|
+
Object.entries(componentDefinition$g.props).forEach(([key, config]) => {
|
|
2347
2504
|
const propConfig = config;
|
|
2348
2505
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2349
2506
|
defaultProps$F[key] = propConfig.default;
|
|
@@ -2361,7 +2518,7 @@ function ShaderComponent$F(props) {
|
|
|
2361
2518
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2362
2519
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2363
2520
|
} = context;
|
|
2364
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2521
|
+
const instanceId = props.id || `${componentDefinition$g.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2365
2522
|
const effectiveProps = createMemo(() => {
|
|
2366
2523
|
let baseProps = {
|
|
2367
2524
|
...defaultProps$F
|
|
@@ -2380,7 +2537,7 @@ function ShaderComponent$F(props) {
|
|
|
2380
2537
|
let uniformsMap = null;
|
|
2381
2538
|
const getUniformsMap = () => {
|
|
2382
2539
|
if (!uniformsMap) {
|
|
2383
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2540
|
+
uniformsMap = createUniformsMap(componentDefinition$g, effectiveProps(), instanceId);
|
|
2384
2541
|
}
|
|
2385
2542
|
return uniformsMap;
|
|
2386
2543
|
};
|
|
@@ -2388,6 +2545,7 @@ function ShaderComponent$F(props) {
|
|
|
2388
2545
|
...context,
|
|
2389
2546
|
shaderParentId: instanceId
|
|
2390
2547
|
}));
|
|
2548
|
+
const resolved = children(() => props.children);
|
|
2391
2549
|
let isRegistered = false;
|
|
2392
2550
|
onMount(() => {
|
|
2393
2551
|
const uniforms = getUniformsMap();
|
|
@@ -2405,7 +2563,7 @@ function ShaderComponent$F(props) {
|
|
|
2405
2563
|
renderOrder: props.renderOrder || 0,
|
|
2406
2564
|
transform: effectiveTransform()
|
|
2407
2565
|
};
|
|
2408
|
-
parentRegister(instanceId, componentDefinition$
|
|
2566
|
+
parentRegister(instanceId, componentDefinition$g.fragmentNode, parentId, metadata, uniforms, componentDefinition$g);
|
|
2409
2567
|
isRegistered = true;
|
|
2410
2568
|
} catch (error) {
|
|
2411
2569
|
console.error("Error registering shader node:", error);
|
|
@@ -2460,7 +2618,7 @@ function ShaderComponent$F(props) {
|
|
|
2460
2618
|
return childContextValue();
|
|
2461
2619
|
},
|
|
2462
2620
|
get children() {
|
|
2463
|
-
return
|
|
2621
|
+
return resolved();
|
|
2464
2622
|
}
|
|
2465
2623
|
});
|
|
2466
2624
|
}
|
|
@@ -2481,8 +2639,8 @@ const defaultProps$E = {
|
|
|
2481
2639
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2482
2640
|
};
|
|
2483
2641
|
try {
|
|
2484
|
-
if (componentDefinition$
|
|
2485
|
-
Object.entries(componentDefinition$
|
|
2642
|
+
if (componentDefinition$h && componentDefinition$h.props) {
|
|
2643
|
+
Object.entries(componentDefinition$h.props).forEach(([key, config]) => {
|
|
2486
2644
|
const propConfig = config;
|
|
2487
2645
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2488
2646
|
defaultProps$E[key] = propConfig.default;
|
|
@@ -2500,7 +2658,7 @@ function ShaderComponent$E(props) {
|
|
|
2500
2658
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2501
2659
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2502
2660
|
} = context;
|
|
2503
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2661
|
+
const instanceId = props.id || `${componentDefinition$h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2504
2662
|
const effectiveProps = createMemo(() => {
|
|
2505
2663
|
let baseProps = {
|
|
2506
2664
|
...defaultProps$E
|
|
@@ -2519,7 +2677,7 @@ function ShaderComponent$E(props) {
|
|
|
2519
2677
|
let uniformsMap = null;
|
|
2520
2678
|
const getUniformsMap = () => {
|
|
2521
2679
|
if (!uniformsMap) {
|
|
2522
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2680
|
+
uniformsMap = createUniformsMap(componentDefinition$h, effectiveProps(), instanceId);
|
|
2523
2681
|
}
|
|
2524
2682
|
return uniformsMap;
|
|
2525
2683
|
};
|
|
@@ -2527,6 +2685,7 @@ function ShaderComponent$E(props) {
|
|
|
2527
2685
|
...context,
|
|
2528
2686
|
shaderParentId: instanceId
|
|
2529
2687
|
}));
|
|
2688
|
+
const resolved = children(() => props.children);
|
|
2530
2689
|
let isRegistered = false;
|
|
2531
2690
|
onMount(() => {
|
|
2532
2691
|
const uniforms = getUniformsMap();
|
|
@@ -2544,7 +2703,7 @@ function ShaderComponent$E(props) {
|
|
|
2544
2703
|
renderOrder: props.renderOrder || 0,
|
|
2545
2704
|
transform: effectiveTransform()
|
|
2546
2705
|
};
|
|
2547
|
-
parentRegister(instanceId, componentDefinition$
|
|
2706
|
+
parentRegister(instanceId, componentDefinition$h.fragmentNode, parentId, metadata, uniforms, componentDefinition$h);
|
|
2548
2707
|
isRegistered = true;
|
|
2549
2708
|
} catch (error) {
|
|
2550
2709
|
console.error("Error registering shader node:", error);
|
|
@@ -2599,7 +2758,7 @@ function ShaderComponent$E(props) {
|
|
|
2599
2758
|
return childContextValue();
|
|
2600
2759
|
},
|
|
2601
2760
|
get children() {
|
|
2602
|
-
return
|
|
2761
|
+
return resolved();
|
|
2603
2762
|
}
|
|
2604
2763
|
});
|
|
2605
2764
|
}
|
|
@@ -2620,8 +2779,8 @@ const defaultProps$D = {
|
|
|
2620
2779
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2621
2780
|
};
|
|
2622
2781
|
try {
|
|
2623
|
-
if (componentDefinition$
|
|
2624
|
-
Object.entries(componentDefinition$
|
|
2782
|
+
if (componentDefinition$i && componentDefinition$i.props) {
|
|
2783
|
+
Object.entries(componentDefinition$i.props).forEach(([key, config]) => {
|
|
2625
2784
|
const propConfig = config;
|
|
2626
2785
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2627
2786
|
defaultProps$D[key] = propConfig.default;
|
|
@@ -2639,7 +2798,7 @@ function ShaderComponent$D(props) {
|
|
|
2639
2798
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2640
2799
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2641
2800
|
} = context;
|
|
2642
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2801
|
+
const instanceId = props.id || `${componentDefinition$i.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2643
2802
|
const effectiveProps = createMemo(() => {
|
|
2644
2803
|
let baseProps = {
|
|
2645
2804
|
...defaultProps$D
|
|
@@ -2658,7 +2817,7 @@ function ShaderComponent$D(props) {
|
|
|
2658
2817
|
let uniformsMap = null;
|
|
2659
2818
|
const getUniformsMap = () => {
|
|
2660
2819
|
if (!uniformsMap) {
|
|
2661
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2820
|
+
uniformsMap = createUniformsMap(componentDefinition$i, effectiveProps(), instanceId);
|
|
2662
2821
|
}
|
|
2663
2822
|
return uniformsMap;
|
|
2664
2823
|
};
|
|
@@ -2666,6 +2825,7 @@ function ShaderComponent$D(props) {
|
|
|
2666
2825
|
...context,
|
|
2667
2826
|
shaderParentId: instanceId
|
|
2668
2827
|
}));
|
|
2828
|
+
const resolved = children(() => props.children);
|
|
2669
2829
|
let isRegistered = false;
|
|
2670
2830
|
onMount(() => {
|
|
2671
2831
|
const uniforms = getUniformsMap();
|
|
@@ -2683,7 +2843,7 @@ function ShaderComponent$D(props) {
|
|
|
2683
2843
|
renderOrder: props.renderOrder || 0,
|
|
2684
2844
|
transform: effectiveTransform()
|
|
2685
2845
|
};
|
|
2686
|
-
parentRegister(instanceId, componentDefinition$
|
|
2846
|
+
parentRegister(instanceId, componentDefinition$i.fragmentNode, parentId, metadata, uniforms, componentDefinition$i);
|
|
2687
2847
|
isRegistered = true;
|
|
2688
2848
|
} catch (error) {
|
|
2689
2849
|
console.error("Error registering shader node:", error);
|
|
@@ -2738,7 +2898,7 @@ function ShaderComponent$D(props) {
|
|
|
2738
2898
|
return childContextValue();
|
|
2739
2899
|
},
|
|
2740
2900
|
get children() {
|
|
2741
|
-
return
|
|
2901
|
+
return resolved();
|
|
2742
2902
|
}
|
|
2743
2903
|
});
|
|
2744
2904
|
}
|
|
@@ -2759,8 +2919,8 @@ const defaultProps$C = {
|
|
|
2759
2919
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2760
2920
|
};
|
|
2761
2921
|
try {
|
|
2762
|
-
if (componentDefinition$
|
|
2763
|
-
Object.entries(componentDefinition$
|
|
2922
|
+
if (componentDefinition$j && componentDefinition$j.props) {
|
|
2923
|
+
Object.entries(componentDefinition$j.props).forEach(([key, config]) => {
|
|
2764
2924
|
const propConfig = config;
|
|
2765
2925
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2766
2926
|
defaultProps$C[key] = propConfig.default;
|
|
@@ -2778,7 +2938,7 @@ function ShaderComponent$C(props) {
|
|
|
2778
2938
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2779
2939
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2780
2940
|
} = context;
|
|
2781
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2941
|
+
const instanceId = props.id || `${componentDefinition$j.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2782
2942
|
const effectiveProps = createMemo(() => {
|
|
2783
2943
|
let baseProps = {
|
|
2784
2944
|
...defaultProps$C
|
|
@@ -2797,7 +2957,7 @@ function ShaderComponent$C(props) {
|
|
|
2797
2957
|
let uniformsMap = null;
|
|
2798
2958
|
const getUniformsMap = () => {
|
|
2799
2959
|
if (!uniformsMap) {
|
|
2800
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2960
|
+
uniformsMap = createUniformsMap(componentDefinition$j, effectiveProps(), instanceId);
|
|
2801
2961
|
}
|
|
2802
2962
|
return uniformsMap;
|
|
2803
2963
|
};
|
|
@@ -2805,6 +2965,7 @@ function ShaderComponent$C(props) {
|
|
|
2805
2965
|
...context,
|
|
2806
2966
|
shaderParentId: instanceId
|
|
2807
2967
|
}));
|
|
2968
|
+
const resolved = children(() => props.children);
|
|
2808
2969
|
let isRegistered = false;
|
|
2809
2970
|
onMount(() => {
|
|
2810
2971
|
const uniforms = getUniformsMap();
|
|
@@ -2822,7 +2983,7 @@ function ShaderComponent$C(props) {
|
|
|
2822
2983
|
renderOrder: props.renderOrder || 0,
|
|
2823
2984
|
transform: effectiveTransform()
|
|
2824
2985
|
};
|
|
2825
|
-
parentRegister(instanceId, componentDefinition$
|
|
2986
|
+
parentRegister(instanceId, componentDefinition$j.fragmentNode, parentId, metadata, uniforms, componentDefinition$j);
|
|
2826
2987
|
isRegistered = true;
|
|
2827
2988
|
} catch (error) {
|
|
2828
2989
|
console.error("Error registering shader node:", error);
|
|
@@ -2877,7 +3038,7 @@ function ShaderComponent$C(props) {
|
|
|
2877
3038
|
return childContextValue();
|
|
2878
3039
|
},
|
|
2879
3040
|
get children() {
|
|
2880
|
-
return
|
|
3041
|
+
return resolved();
|
|
2881
3042
|
}
|
|
2882
3043
|
});
|
|
2883
3044
|
}
|
|
@@ -2898,8 +3059,8 @@ const defaultProps$B = {
|
|
|
2898
3059
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2899
3060
|
};
|
|
2900
3061
|
try {
|
|
2901
|
-
if (componentDefinition$
|
|
2902
|
-
Object.entries(componentDefinition$
|
|
3062
|
+
if (componentDefinition$k && componentDefinition$k.props) {
|
|
3063
|
+
Object.entries(componentDefinition$k.props).forEach(([key, config]) => {
|
|
2903
3064
|
const propConfig = config;
|
|
2904
3065
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2905
3066
|
defaultProps$B[key] = propConfig.default;
|
|
@@ -2917,7 +3078,7 @@ function ShaderComponent$B(props) {
|
|
|
2917
3078
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2918
3079
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2919
3080
|
} = context;
|
|
2920
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3081
|
+
const instanceId = props.id || `${componentDefinition$k.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2921
3082
|
const effectiveProps = createMemo(() => {
|
|
2922
3083
|
let baseProps = {
|
|
2923
3084
|
...defaultProps$B
|
|
@@ -2936,7 +3097,7 @@ function ShaderComponent$B(props) {
|
|
|
2936
3097
|
let uniformsMap = null;
|
|
2937
3098
|
const getUniformsMap = () => {
|
|
2938
3099
|
if (!uniformsMap) {
|
|
2939
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3100
|
+
uniformsMap = createUniformsMap(componentDefinition$k, effectiveProps(), instanceId);
|
|
2940
3101
|
}
|
|
2941
3102
|
return uniformsMap;
|
|
2942
3103
|
};
|
|
@@ -2944,6 +3105,7 @@ function ShaderComponent$B(props) {
|
|
|
2944
3105
|
...context,
|
|
2945
3106
|
shaderParentId: instanceId
|
|
2946
3107
|
}));
|
|
3108
|
+
const resolved = children(() => props.children);
|
|
2947
3109
|
let isRegistered = false;
|
|
2948
3110
|
onMount(() => {
|
|
2949
3111
|
const uniforms = getUniformsMap();
|
|
@@ -2961,7 +3123,7 @@ function ShaderComponent$B(props) {
|
|
|
2961
3123
|
renderOrder: props.renderOrder || 0,
|
|
2962
3124
|
transform: effectiveTransform()
|
|
2963
3125
|
};
|
|
2964
|
-
parentRegister(instanceId, componentDefinition$
|
|
3126
|
+
parentRegister(instanceId, componentDefinition$k.fragmentNode, parentId, metadata, uniforms, componentDefinition$k);
|
|
2965
3127
|
isRegistered = true;
|
|
2966
3128
|
} catch (error) {
|
|
2967
3129
|
console.error("Error registering shader node:", error);
|
|
@@ -3016,7 +3178,7 @@ function ShaderComponent$B(props) {
|
|
|
3016
3178
|
return childContextValue();
|
|
3017
3179
|
},
|
|
3018
3180
|
get children() {
|
|
3019
|
-
return
|
|
3181
|
+
return resolved();
|
|
3020
3182
|
}
|
|
3021
3183
|
});
|
|
3022
3184
|
}
|
|
@@ -3037,8 +3199,8 @@ const defaultProps$A = {
|
|
|
3037
3199
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3038
3200
|
};
|
|
3039
3201
|
try {
|
|
3040
|
-
if (componentDefinition$
|
|
3041
|
-
Object.entries(componentDefinition$
|
|
3202
|
+
if (componentDefinition$l && componentDefinition$l.props) {
|
|
3203
|
+
Object.entries(componentDefinition$l.props).forEach(([key, config]) => {
|
|
3042
3204
|
const propConfig = config;
|
|
3043
3205
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3044
3206
|
defaultProps$A[key] = propConfig.default;
|
|
@@ -3056,7 +3218,7 @@ function ShaderComponent$A(props) {
|
|
|
3056
3218
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3057
3219
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3058
3220
|
} = context;
|
|
3059
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3221
|
+
const instanceId = props.id || `${componentDefinition$l.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3060
3222
|
const effectiveProps = createMemo(() => {
|
|
3061
3223
|
let baseProps = {
|
|
3062
3224
|
...defaultProps$A
|
|
@@ -3075,7 +3237,7 @@ function ShaderComponent$A(props) {
|
|
|
3075
3237
|
let uniformsMap = null;
|
|
3076
3238
|
const getUniformsMap = () => {
|
|
3077
3239
|
if (!uniformsMap) {
|
|
3078
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3240
|
+
uniformsMap = createUniformsMap(componentDefinition$l, effectiveProps(), instanceId);
|
|
3079
3241
|
}
|
|
3080
3242
|
return uniformsMap;
|
|
3081
3243
|
};
|
|
@@ -3083,6 +3245,7 @@ function ShaderComponent$A(props) {
|
|
|
3083
3245
|
...context,
|
|
3084
3246
|
shaderParentId: instanceId
|
|
3085
3247
|
}));
|
|
3248
|
+
const resolved = children(() => props.children);
|
|
3086
3249
|
let isRegistered = false;
|
|
3087
3250
|
onMount(() => {
|
|
3088
3251
|
const uniforms = getUniformsMap();
|
|
@@ -3100,7 +3263,7 @@ function ShaderComponent$A(props) {
|
|
|
3100
3263
|
renderOrder: props.renderOrder || 0,
|
|
3101
3264
|
transform: effectiveTransform()
|
|
3102
3265
|
};
|
|
3103
|
-
parentRegister(instanceId, componentDefinition$
|
|
3266
|
+
parentRegister(instanceId, componentDefinition$l.fragmentNode, parentId, metadata, uniforms, componentDefinition$l);
|
|
3104
3267
|
isRegistered = true;
|
|
3105
3268
|
} catch (error) {
|
|
3106
3269
|
console.error("Error registering shader node:", error);
|
|
@@ -3155,7 +3318,7 @@ function ShaderComponent$A(props) {
|
|
|
3155
3318
|
return childContextValue();
|
|
3156
3319
|
},
|
|
3157
3320
|
get children() {
|
|
3158
|
-
return
|
|
3321
|
+
return resolved();
|
|
3159
3322
|
}
|
|
3160
3323
|
});
|
|
3161
3324
|
}
|
|
@@ -3176,8 +3339,8 @@ const defaultProps$z = {
|
|
|
3176
3339
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3177
3340
|
};
|
|
3178
3341
|
try {
|
|
3179
|
-
if (componentDefinition$
|
|
3180
|
-
Object.entries(componentDefinition$
|
|
3342
|
+
if (componentDefinition$m && componentDefinition$m.props) {
|
|
3343
|
+
Object.entries(componentDefinition$m.props).forEach(([key, config]) => {
|
|
3181
3344
|
const propConfig = config;
|
|
3182
3345
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3183
3346
|
defaultProps$z[key] = propConfig.default;
|
|
@@ -3195,7 +3358,7 @@ function ShaderComponent$z(props) {
|
|
|
3195
3358
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3196
3359
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3197
3360
|
} = context;
|
|
3198
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3361
|
+
const instanceId = props.id || `${componentDefinition$m.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3199
3362
|
const effectiveProps = createMemo(() => {
|
|
3200
3363
|
let baseProps = {
|
|
3201
3364
|
...defaultProps$z
|
|
@@ -3214,7 +3377,7 @@ function ShaderComponent$z(props) {
|
|
|
3214
3377
|
let uniformsMap = null;
|
|
3215
3378
|
const getUniformsMap = () => {
|
|
3216
3379
|
if (!uniformsMap) {
|
|
3217
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3380
|
+
uniformsMap = createUniformsMap(componentDefinition$m, effectiveProps(), instanceId);
|
|
3218
3381
|
}
|
|
3219
3382
|
return uniformsMap;
|
|
3220
3383
|
};
|
|
@@ -3222,6 +3385,7 @@ function ShaderComponent$z(props) {
|
|
|
3222
3385
|
...context,
|
|
3223
3386
|
shaderParentId: instanceId
|
|
3224
3387
|
}));
|
|
3388
|
+
const resolved = children(() => props.children);
|
|
3225
3389
|
let isRegistered = false;
|
|
3226
3390
|
onMount(() => {
|
|
3227
3391
|
const uniforms = getUniformsMap();
|
|
@@ -3239,7 +3403,7 @@ function ShaderComponent$z(props) {
|
|
|
3239
3403
|
renderOrder: props.renderOrder || 0,
|
|
3240
3404
|
transform: effectiveTransform()
|
|
3241
3405
|
};
|
|
3242
|
-
parentRegister(instanceId, componentDefinition$
|
|
3406
|
+
parentRegister(instanceId, componentDefinition$m.fragmentNode, parentId, metadata, uniforms, componentDefinition$m);
|
|
3243
3407
|
isRegistered = true;
|
|
3244
3408
|
} catch (error) {
|
|
3245
3409
|
console.error("Error registering shader node:", error);
|
|
@@ -3294,7 +3458,7 @@ function ShaderComponent$z(props) {
|
|
|
3294
3458
|
return childContextValue();
|
|
3295
3459
|
},
|
|
3296
3460
|
get children() {
|
|
3297
|
-
return
|
|
3461
|
+
return resolved();
|
|
3298
3462
|
}
|
|
3299
3463
|
});
|
|
3300
3464
|
}
|
|
@@ -3315,8 +3479,8 @@ const defaultProps$y = {
|
|
|
3315
3479
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3316
3480
|
};
|
|
3317
3481
|
try {
|
|
3318
|
-
if (componentDefinition$
|
|
3319
|
-
Object.entries(componentDefinition$
|
|
3482
|
+
if (componentDefinition$n && componentDefinition$n.props) {
|
|
3483
|
+
Object.entries(componentDefinition$n.props).forEach(([key, config]) => {
|
|
3320
3484
|
const propConfig = config;
|
|
3321
3485
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3322
3486
|
defaultProps$y[key] = propConfig.default;
|
|
@@ -3334,7 +3498,7 @@ function ShaderComponent$y(props) {
|
|
|
3334
3498
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3335
3499
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3336
3500
|
} = context;
|
|
3337
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3501
|
+
const instanceId = props.id || `${componentDefinition$n.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3338
3502
|
const effectiveProps = createMemo(() => {
|
|
3339
3503
|
let baseProps = {
|
|
3340
3504
|
...defaultProps$y
|
|
@@ -3353,7 +3517,7 @@ function ShaderComponent$y(props) {
|
|
|
3353
3517
|
let uniformsMap = null;
|
|
3354
3518
|
const getUniformsMap = () => {
|
|
3355
3519
|
if (!uniformsMap) {
|
|
3356
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3520
|
+
uniformsMap = createUniformsMap(componentDefinition$n, effectiveProps(), instanceId);
|
|
3357
3521
|
}
|
|
3358
3522
|
return uniformsMap;
|
|
3359
3523
|
};
|
|
@@ -3361,6 +3525,7 @@ function ShaderComponent$y(props) {
|
|
|
3361
3525
|
...context,
|
|
3362
3526
|
shaderParentId: instanceId
|
|
3363
3527
|
}));
|
|
3528
|
+
const resolved = children(() => props.children);
|
|
3364
3529
|
let isRegistered = false;
|
|
3365
3530
|
onMount(() => {
|
|
3366
3531
|
const uniforms = getUniformsMap();
|
|
@@ -3378,7 +3543,7 @@ function ShaderComponent$y(props) {
|
|
|
3378
3543
|
renderOrder: props.renderOrder || 0,
|
|
3379
3544
|
transform: effectiveTransform()
|
|
3380
3545
|
};
|
|
3381
|
-
parentRegister(instanceId, componentDefinition$
|
|
3546
|
+
parentRegister(instanceId, componentDefinition$n.fragmentNode, parentId, metadata, uniforms, componentDefinition$n);
|
|
3382
3547
|
isRegistered = true;
|
|
3383
3548
|
} catch (error) {
|
|
3384
3549
|
console.error("Error registering shader node:", error);
|
|
@@ -3433,7 +3598,7 @@ function ShaderComponent$y(props) {
|
|
|
3433
3598
|
return childContextValue();
|
|
3434
3599
|
},
|
|
3435
3600
|
get children() {
|
|
3436
|
-
return
|
|
3601
|
+
return resolved();
|
|
3437
3602
|
}
|
|
3438
3603
|
});
|
|
3439
3604
|
}
|
|
@@ -3454,8 +3619,8 @@ const defaultProps$x = {
|
|
|
3454
3619
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3455
3620
|
};
|
|
3456
3621
|
try {
|
|
3457
|
-
if (componentDefinition$
|
|
3458
|
-
Object.entries(componentDefinition$
|
|
3622
|
+
if (componentDefinition$o && componentDefinition$o.props) {
|
|
3623
|
+
Object.entries(componentDefinition$o.props).forEach(([key, config]) => {
|
|
3459
3624
|
const propConfig = config;
|
|
3460
3625
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3461
3626
|
defaultProps$x[key] = propConfig.default;
|
|
@@ -3473,7 +3638,7 @@ function ShaderComponent$x(props) {
|
|
|
3473
3638
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3474
3639
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3475
3640
|
} = context;
|
|
3476
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3641
|
+
const instanceId = props.id || `${componentDefinition$o.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3477
3642
|
const effectiveProps = createMemo(() => {
|
|
3478
3643
|
let baseProps = {
|
|
3479
3644
|
...defaultProps$x
|
|
@@ -3492,7 +3657,7 @@ function ShaderComponent$x(props) {
|
|
|
3492
3657
|
let uniformsMap = null;
|
|
3493
3658
|
const getUniformsMap = () => {
|
|
3494
3659
|
if (!uniformsMap) {
|
|
3495
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3660
|
+
uniformsMap = createUniformsMap(componentDefinition$o, effectiveProps(), instanceId);
|
|
3496
3661
|
}
|
|
3497
3662
|
return uniformsMap;
|
|
3498
3663
|
};
|
|
@@ -3500,6 +3665,7 @@ function ShaderComponent$x(props) {
|
|
|
3500
3665
|
...context,
|
|
3501
3666
|
shaderParentId: instanceId
|
|
3502
3667
|
}));
|
|
3668
|
+
const resolved = children(() => props.children);
|
|
3503
3669
|
let isRegistered = false;
|
|
3504
3670
|
onMount(() => {
|
|
3505
3671
|
const uniforms = getUniformsMap();
|
|
@@ -3517,7 +3683,7 @@ function ShaderComponent$x(props) {
|
|
|
3517
3683
|
renderOrder: props.renderOrder || 0,
|
|
3518
3684
|
transform: effectiveTransform()
|
|
3519
3685
|
};
|
|
3520
|
-
parentRegister(instanceId, componentDefinition$
|
|
3686
|
+
parentRegister(instanceId, componentDefinition$o.fragmentNode, parentId, metadata, uniforms, componentDefinition$o);
|
|
3521
3687
|
isRegistered = true;
|
|
3522
3688
|
} catch (error) {
|
|
3523
3689
|
console.error("Error registering shader node:", error);
|
|
@@ -3572,7 +3738,7 @@ function ShaderComponent$x(props) {
|
|
|
3572
3738
|
return childContextValue();
|
|
3573
3739
|
},
|
|
3574
3740
|
get children() {
|
|
3575
|
-
return
|
|
3741
|
+
return resolved();
|
|
3576
3742
|
}
|
|
3577
3743
|
});
|
|
3578
3744
|
}
|
|
@@ -3593,8 +3759,8 @@ const defaultProps$w = {
|
|
|
3593
3759
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3594
3760
|
};
|
|
3595
3761
|
try {
|
|
3596
|
-
if (componentDefinition$
|
|
3597
|
-
Object.entries(componentDefinition$
|
|
3762
|
+
if (componentDefinition$p && componentDefinition$p.props) {
|
|
3763
|
+
Object.entries(componentDefinition$p.props).forEach(([key, config]) => {
|
|
3598
3764
|
const propConfig = config;
|
|
3599
3765
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3600
3766
|
defaultProps$w[key] = propConfig.default;
|
|
@@ -3612,7 +3778,7 @@ function ShaderComponent$w(props) {
|
|
|
3612
3778
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3613
3779
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3614
3780
|
} = context;
|
|
3615
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3781
|
+
const instanceId = props.id || `${componentDefinition$p.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3616
3782
|
const effectiveProps = createMemo(() => {
|
|
3617
3783
|
let baseProps = {
|
|
3618
3784
|
...defaultProps$w
|
|
@@ -3631,7 +3797,7 @@ function ShaderComponent$w(props) {
|
|
|
3631
3797
|
let uniformsMap = null;
|
|
3632
3798
|
const getUniformsMap = () => {
|
|
3633
3799
|
if (!uniformsMap) {
|
|
3634
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3800
|
+
uniformsMap = createUniformsMap(componentDefinition$p, effectiveProps(), instanceId);
|
|
3635
3801
|
}
|
|
3636
3802
|
return uniformsMap;
|
|
3637
3803
|
};
|
|
@@ -3639,6 +3805,7 @@ function ShaderComponent$w(props) {
|
|
|
3639
3805
|
...context,
|
|
3640
3806
|
shaderParentId: instanceId
|
|
3641
3807
|
}));
|
|
3808
|
+
const resolved = children(() => props.children);
|
|
3642
3809
|
let isRegistered = false;
|
|
3643
3810
|
onMount(() => {
|
|
3644
3811
|
const uniforms = getUniformsMap();
|
|
@@ -3656,7 +3823,7 @@ function ShaderComponent$w(props) {
|
|
|
3656
3823
|
renderOrder: props.renderOrder || 0,
|
|
3657
3824
|
transform: effectiveTransform()
|
|
3658
3825
|
};
|
|
3659
|
-
parentRegister(instanceId, componentDefinition$
|
|
3826
|
+
parentRegister(instanceId, componentDefinition$p.fragmentNode, parentId, metadata, uniforms, componentDefinition$p);
|
|
3660
3827
|
isRegistered = true;
|
|
3661
3828
|
} catch (error) {
|
|
3662
3829
|
console.error("Error registering shader node:", error);
|
|
@@ -3711,7 +3878,7 @@ function ShaderComponent$w(props) {
|
|
|
3711
3878
|
return childContextValue();
|
|
3712
3879
|
},
|
|
3713
3880
|
get children() {
|
|
3714
|
-
return
|
|
3881
|
+
return resolved();
|
|
3715
3882
|
}
|
|
3716
3883
|
});
|
|
3717
3884
|
}
|
|
@@ -3732,8 +3899,8 @@ const defaultProps$v = {
|
|
|
3732
3899
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3733
3900
|
};
|
|
3734
3901
|
try {
|
|
3735
|
-
if (componentDefinition$
|
|
3736
|
-
Object.entries(componentDefinition$
|
|
3902
|
+
if (componentDefinition$q && componentDefinition$q.props) {
|
|
3903
|
+
Object.entries(componentDefinition$q.props).forEach(([key, config]) => {
|
|
3737
3904
|
const propConfig = config;
|
|
3738
3905
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3739
3906
|
defaultProps$v[key] = propConfig.default;
|
|
@@ -3751,7 +3918,7 @@ function ShaderComponent$v(props) {
|
|
|
3751
3918
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3752
3919
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3753
3920
|
} = context;
|
|
3754
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3921
|
+
const instanceId = props.id || `${componentDefinition$q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3755
3922
|
const effectiveProps = createMemo(() => {
|
|
3756
3923
|
let baseProps = {
|
|
3757
3924
|
...defaultProps$v
|
|
@@ -3770,7 +3937,7 @@ function ShaderComponent$v(props) {
|
|
|
3770
3937
|
let uniformsMap = null;
|
|
3771
3938
|
const getUniformsMap = () => {
|
|
3772
3939
|
if (!uniformsMap) {
|
|
3773
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3940
|
+
uniformsMap = createUniformsMap(componentDefinition$q, effectiveProps(), instanceId);
|
|
3774
3941
|
}
|
|
3775
3942
|
return uniformsMap;
|
|
3776
3943
|
};
|
|
@@ -3778,6 +3945,7 @@ function ShaderComponent$v(props) {
|
|
|
3778
3945
|
...context,
|
|
3779
3946
|
shaderParentId: instanceId
|
|
3780
3947
|
}));
|
|
3948
|
+
const resolved = children(() => props.children);
|
|
3781
3949
|
let isRegistered = false;
|
|
3782
3950
|
onMount(() => {
|
|
3783
3951
|
const uniforms = getUniformsMap();
|
|
@@ -3795,7 +3963,7 @@ function ShaderComponent$v(props) {
|
|
|
3795
3963
|
renderOrder: props.renderOrder || 0,
|
|
3796
3964
|
transform: effectiveTransform()
|
|
3797
3965
|
};
|
|
3798
|
-
parentRegister(instanceId, componentDefinition$
|
|
3966
|
+
parentRegister(instanceId, componentDefinition$q.fragmentNode, parentId, metadata, uniforms, componentDefinition$q);
|
|
3799
3967
|
isRegistered = true;
|
|
3800
3968
|
} catch (error) {
|
|
3801
3969
|
console.error("Error registering shader node:", error);
|
|
@@ -3850,7 +4018,7 @@ function ShaderComponent$v(props) {
|
|
|
3850
4018
|
return childContextValue();
|
|
3851
4019
|
},
|
|
3852
4020
|
get children() {
|
|
3853
|
-
return
|
|
4021
|
+
return resolved();
|
|
3854
4022
|
}
|
|
3855
4023
|
});
|
|
3856
4024
|
}
|
|
@@ -3871,8 +4039,8 @@ const defaultProps$u = {
|
|
|
3871
4039
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3872
4040
|
};
|
|
3873
4041
|
try {
|
|
3874
|
-
if (componentDefinition$
|
|
3875
|
-
Object.entries(componentDefinition$
|
|
4042
|
+
if (componentDefinition$r && componentDefinition$r.props) {
|
|
4043
|
+
Object.entries(componentDefinition$r.props).forEach(([key, config]) => {
|
|
3876
4044
|
const propConfig = config;
|
|
3877
4045
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3878
4046
|
defaultProps$u[key] = propConfig.default;
|
|
@@ -3890,7 +4058,7 @@ function ShaderComponent$u(props) {
|
|
|
3890
4058
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3891
4059
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3892
4060
|
} = context;
|
|
3893
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4061
|
+
const instanceId = props.id || `${componentDefinition$r.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3894
4062
|
const effectiveProps = createMemo(() => {
|
|
3895
4063
|
let baseProps = {
|
|
3896
4064
|
...defaultProps$u
|
|
@@ -3909,7 +4077,7 @@ function ShaderComponent$u(props) {
|
|
|
3909
4077
|
let uniformsMap = null;
|
|
3910
4078
|
const getUniformsMap = () => {
|
|
3911
4079
|
if (!uniformsMap) {
|
|
3912
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4080
|
+
uniformsMap = createUniformsMap(componentDefinition$r, effectiveProps(), instanceId);
|
|
3913
4081
|
}
|
|
3914
4082
|
return uniformsMap;
|
|
3915
4083
|
};
|
|
@@ -3917,6 +4085,7 @@ function ShaderComponent$u(props) {
|
|
|
3917
4085
|
...context,
|
|
3918
4086
|
shaderParentId: instanceId
|
|
3919
4087
|
}));
|
|
4088
|
+
const resolved = children(() => props.children);
|
|
3920
4089
|
let isRegistered = false;
|
|
3921
4090
|
onMount(() => {
|
|
3922
4091
|
const uniforms = getUniformsMap();
|
|
@@ -3934,7 +4103,7 @@ function ShaderComponent$u(props) {
|
|
|
3934
4103
|
renderOrder: props.renderOrder || 0,
|
|
3935
4104
|
transform: effectiveTransform()
|
|
3936
4105
|
};
|
|
3937
|
-
parentRegister(instanceId, componentDefinition$
|
|
4106
|
+
parentRegister(instanceId, componentDefinition$r.fragmentNode, parentId, metadata, uniforms, componentDefinition$r);
|
|
3938
4107
|
isRegistered = true;
|
|
3939
4108
|
} catch (error) {
|
|
3940
4109
|
console.error("Error registering shader node:", error);
|
|
@@ -3989,7 +4158,7 @@ function ShaderComponent$u(props) {
|
|
|
3989
4158
|
return childContextValue();
|
|
3990
4159
|
},
|
|
3991
4160
|
get children() {
|
|
3992
|
-
return
|
|
4161
|
+
return resolved();
|
|
3993
4162
|
}
|
|
3994
4163
|
});
|
|
3995
4164
|
}
|
|
@@ -4010,8 +4179,8 @@ const defaultProps$t = {
|
|
|
4010
4179
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4011
4180
|
};
|
|
4012
4181
|
try {
|
|
4013
|
-
if (componentDefinition$
|
|
4014
|
-
Object.entries(componentDefinition$
|
|
4182
|
+
if (componentDefinition$s && componentDefinition$s.props) {
|
|
4183
|
+
Object.entries(componentDefinition$s.props).forEach(([key, config]) => {
|
|
4015
4184
|
const propConfig = config;
|
|
4016
4185
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4017
4186
|
defaultProps$t[key] = propConfig.default;
|
|
@@ -4029,7 +4198,7 @@ function ShaderComponent$t(props) {
|
|
|
4029
4198
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4030
4199
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4031
4200
|
} = context;
|
|
4032
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4201
|
+
const instanceId = props.id || `${componentDefinition$s.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4033
4202
|
const effectiveProps = createMemo(() => {
|
|
4034
4203
|
let baseProps = {
|
|
4035
4204
|
...defaultProps$t
|
|
@@ -4048,7 +4217,7 @@ function ShaderComponent$t(props) {
|
|
|
4048
4217
|
let uniformsMap = null;
|
|
4049
4218
|
const getUniformsMap = () => {
|
|
4050
4219
|
if (!uniformsMap) {
|
|
4051
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4220
|
+
uniformsMap = createUniformsMap(componentDefinition$s, effectiveProps(), instanceId);
|
|
4052
4221
|
}
|
|
4053
4222
|
return uniformsMap;
|
|
4054
4223
|
};
|
|
@@ -4056,6 +4225,7 @@ function ShaderComponent$t(props) {
|
|
|
4056
4225
|
...context,
|
|
4057
4226
|
shaderParentId: instanceId
|
|
4058
4227
|
}));
|
|
4228
|
+
const resolved = children(() => props.children);
|
|
4059
4229
|
let isRegistered = false;
|
|
4060
4230
|
onMount(() => {
|
|
4061
4231
|
const uniforms = getUniformsMap();
|
|
@@ -4073,7 +4243,7 @@ function ShaderComponent$t(props) {
|
|
|
4073
4243
|
renderOrder: props.renderOrder || 0,
|
|
4074
4244
|
transform: effectiveTransform()
|
|
4075
4245
|
};
|
|
4076
|
-
parentRegister(instanceId, componentDefinition$
|
|
4246
|
+
parentRegister(instanceId, componentDefinition$s.fragmentNode, parentId, metadata, uniforms, componentDefinition$s);
|
|
4077
4247
|
isRegistered = true;
|
|
4078
4248
|
} catch (error) {
|
|
4079
4249
|
console.error("Error registering shader node:", error);
|
|
@@ -4128,7 +4298,7 @@ function ShaderComponent$t(props) {
|
|
|
4128
4298
|
return childContextValue();
|
|
4129
4299
|
},
|
|
4130
4300
|
get children() {
|
|
4131
|
-
return
|
|
4301
|
+
return resolved();
|
|
4132
4302
|
}
|
|
4133
4303
|
});
|
|
4134
4304
|
}
|
|
@@ -4149,8 +4319,8 @@ const defaultProps$s = {
|
|
|
4149
4319
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4150
4320
|
};
|
|
4151
4321
|
try {
|
|
4152
|
-
if (componentDefinition$
|
|
4153
|
-
Object.entries(componentDefinition$
|
|
4322
|
+
if (componentDefinition$t && componentDefinition$t.props) {
|
|
4323
|
+
Object.entries(componentDefinition$t.props).forEach(([key, config]) => {
|
|
4154
4324
|
const propConfig = config;
|
|
4155
4325
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4156
4326
|
defaultProps$s[key] = propConfig.default;
|
|
@@ -4168,7 +4338,7 @@ function ShaderComponent$s(props) {
|
|
|
4168
4338
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4169
4339
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4170
4340
|
} = context;
|
|
4171
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4341
|
+
const instanceId = props.id || `${componentDefinition$t.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4172
4342
|
const effectiveProps = createMemo(() => {
|
|
4173
4343
|
let baseProps = {
|
|
4174
4344
|
...defaultProps$s
|
|
@@ -4187,7 +4357,7 @@ function ShaderComponent$s(props) {
|
|
|
4187
4357
|
let uniformsMap = null;
|
|
4188
4358
|
const getUniformsMap = () => {
|
|
4189
4359
|
if (!uniformsMap) {
|
|
4190
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4360
|
+
uniformsMap = createUniformsMap(componentDefinition$t, effectiveProps(), instanceId);
|
|
4191
4361
|
}
|
|
4192
4362
|
return uniformsMap;
|
|
4193
4363
|
};
|
|
@@ -4195,6 +4365,7 @@ function ShaderComponent$s(props) {
|
|
|
4195
4365
|
...context,
|
|
4196
4366
|
shaderParentId: instanceId
|
|
4197
4367
|
}));
|
|
4368
|
+
const resolved = children(() => props.children);
|
|
4198
4369
|
let isRegistered = false;
|
|
4199
4370
|
onMount(() => {
|
|
4200
4371
|
const uniforms = getUniformsMap();
|
|
@@ -4212,7 +4383,7 @@ function ShaderComponent$s(props) {
|
|
|
4212
4383
|
renderOrder: props.renderOrder || 0,
|
|
4213
4384
|
transform: effectiveTransform()
|
|
4214
4385
|
};
|
|
4215
|
-
parentRegister(instanceId, componentDefinition$
|
|
4386
|
+
parentRegister(instanceId, componentDefinition$t.fragmentNode, parentId, metadata, uniforms, componentDefinition$t);
|
|
4216
4387
|
isRegistered = true;
|
|
4217
4388
|
} catch (error) {
|
|
4218
4389
|
console.error("Error registering shader node:", error);
|
|
@@ -4267,7 +4438,7 @@ function ShaderComponent$s(props) {
|
|
|
4267
4438
|
return childContextValue();
|
|
4268
4439
|
},
|
|
4269
4440
|
get children() {
|
|
4270
|
-
return
|
|
4441
|
+
return resolved();
|
|
4271
4442
|
}
|
|
4272
4443
|
});
|
|
4273
4444
|
}
|
|
@@ -4288,8 +4459,8 @@ const defaultProps$r = {
|
|
|
4288
4459
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4289
4460
|
};
|
|
4290
4461
|
try {
|
|
4291
|
-
if (componentDefinition$
|
|
4292
|
-
Object.entries(componentDefinition$
|
|
4462
|
+
if (componentDefinition$u && componentDefinition$u.props) {
|
|
4463
|
+
Object.entries(componentDefinition$u.props).forEach(([key, config]) => {
|
|
4293
4464
|
const propConfig = config;
|
|
4294
4465
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4295
4466
|
defaultProps$r[key] = propConfig.default;
|
|
@@ -4307,7 +4478,7 @@ function ShaderComponent$r(props) {
|
|
|
4307
4478
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4308
4479
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4309
4480
|
} = context;
|
|
4310
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4481
|
+
const instanceId = props.id || `${componentDefinition$u.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4311
4482
|
const effectiveProps = createMemo(() => {
|
|
4312
4483
|
let baseProps = {
|
|
4313
4484
|
...defaultProps$r
|
|
@@ -4326,7 +4497,7 @@ function ShaderComponent$r(props) {
|
|
|
4326
4497
|
let uniformsMap = null;
|
|
4327
4498
|
const getUniformsMap = () => {
|
|
4328
4499
|
if (!uniformsMap) {
|
|
4329
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4500
|
+
uniformsMap = createUniformsMap(componentDefinition$u, effectiveProps(), instanceId);
|
|
4330
4501
|
}
|
|
4331
4502
|
return uniformsMap;
|
|
4332
4503
|
};
|
|
@@ -4334,6 +4505,7 @@ function ShaderComponent$r(props) {
|
|
|
4334
4505
|
...context,
|
|
4335
4506
|
shaderParentId: instanceId
|
|
4336
4507
|
}));
|
|
4508
|
+
const resolved = children(() => props.children);
|
|
4337
4509
|
let isRegistered = false;
|
|
4338
4510
|
onMount(() => {
|
|
4339
4511
|
const uniforms = getUniformsMap();
|
|
@@ -4351,7 +4523,7 @@ function ShaderComponent$r(props) {
|
|
|
4351
4523
|
renderOrder: props.renderOrder || 0,
|
|
4352
4524
|
transform: effectiveTransform()
|
|
4353
4525
|
};
|
|
4354
|
-
parentRegister(instanceId, componentDefinition$
|
|
4526
|
+
parentRegister(instanceId, componentDefinition$u.fragmentNode, parentId, metadata, uniforms, componentDefinition$u);
|
|
4355
4527
|
isRegistered = true;
|
|
4356
4528
|
} catch (error) {
|
|
4357
4529
|
console.error("Error registering shader node:", error);
|
|
@@ -4406,7 +4578,7 @@ function ShaderComponent$r(props) {
|
|
|
4406
4578
|
return childContextValue();
|
|
4407
4579
|
},
|
|
4408
4580
|
get children() {
|
|
4409
|
-
return
|
|
4581
|
+
return resolved();
|
|
4410
4582
|
}
|
|
4411
4583
|
});
|
|
4412
4584
|
}
|
|
@@ -4427,8 +4599,8 @@ const defaultProps$q = {
|
|
|
4427
4599
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4428
4600
|
};
|
|
4429
4601
|
try {
|
|
4430
|
-
if (componentDefinition$
|
|
4431
|
-
Object.entries(componentDefinition$
|
|
4602
|
+
if (componentDefinition$v && componentDefinition$v.props) {
|
|
4603
|
+
Object.entries(componentDefinition$v.props).forEach(([key, config]) => {
|
|
4432
4604
|
const propConfig = config;
|
|
4433
4605
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4434
4606
|
defaultProps$q[key] = propConfig.default;
|
|
@@ -4446,7 +4618,7 @@ function ShaderComponent$q(props) {
|
|
|
4446
4618
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4447
4619
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4448
4620
|
} = context;
|
|
4449
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4621
|
+
const instanceId = props.id || `${componentDefinition$v.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4450
4622
|
const effectiveProps = createMemo(() => {
|
|
4451
4623
|
let baseProps = {
|
|
4452
4624
|
...defaultProps$q
|
|
@@ -4465,7 +4637,7 @@ function ShaderComponent$q(props) {
|
|
|
4465
4637
|
let uniformsMap = null;
|
|
4466
4638
|
const getUniformsMap = () => {
|
|
4467
4639
|
if (!uniformsMap) {
|
|
4468
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4640
|
+
uniformsMap = createUniformsMap(componentDefinition$v, effectiveProps(), instanceId);
|
|
4469
4641
|
}
|
|
4470
4642
|
return uniformsMap;
|
|
4471
4643
|
};
|
|
@@ -4473,6 +4645,7 @@ function ShaderComponent$q(props) {
|
|
|
4473
4645
|
...context,
|
|
4474
4646
|
shaderParentId: instanceId
|
|
4475
4647
|
}));
|
|
4648
|
+
const resolved = children(() => props.children);
|
|
4476
4649
|
let isRegistered = false;
|
|
4477
4650
|
onMount(() => {
|
|
4478
4651
|
const uniforms = getUniformsMap();
|
|
@@ -4490,7 +4663,7 @@ function ShaderComponent$q(props) {
|
|
|
4490
4663
|
renderOrder: props.renderOrder || 0,
|
|
4491
4664
|
transform: effectiveTransform()
|
|
4492
4665
|
};
|
|
4493
|
-
parentRegister(instanceId, componentDefinition$
|
|
4666
|
+
parentRegister(instanceId, componentDefinition$v.fragmentNode, parentId, metadata, uniforms, componentDefinition$v);
|
|
4494
4667
|
isRegistered = true;
|
|
4495
4668
|
} catch (error) {
|
|
4496
4669
|
console.error("Error registering shader node:", error);
|
|
@@ -4545,7 +4718,7 @@ function ShaderComponent$q(props) {
|
|
|
4545
4718
|
return childContextValue();
|
|
4546
4719
|
},
|
|
4547
4720
|
get children() {
|
|
4548
|
-
return
|
|
4721
|
+
return resolved();
|
|
4549
4722
|
}
|
|
4550
4723
|
});
|
|
4551
4724
|
}
|
|
@@ -4566,8 +4739,8 @@ const defaultProps$p = {
|
|
|
4566
4739
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4567
4740
|
};
|
|
4568
4741
|
try {
|
|
4569
|
-
if (componentDefinition$
|
|
4570
|
-
Object.entries(componentDefinition$
|
|
4742
|
+
if (componentDefinition$w && componentDefinition$w.props) {
|
|
4743
|
+
Object.entries(componentDefinition$w.props).forEach(([key, config]) => {
|
|
4571
4744
|
const propConfig = config;
|
|
4572
4745
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4573
4746
|
defaultProps$p[key] = propConfig.default;
|
|
@@ -4585,7 +4758,7 @@ function ShaderComponent$p(props) {
|
|
|
4585
4758
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4586
4759
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4587
4760
|
} = context;
|
|
4588
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4761
|
+
const instanceId = props.id || `${componentDefinition$w.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4589
4762
|
const effectiveProps = createMemo(() => {
|
|
4590
4763
|
let baseProps = {
|
|
4591
4764
|
...defaultProps$p
|
|
@@ -4604,7 +4777,7 @@ function ShaderComponent$p(props) {
|
|
|
4604
4777
|
let uniformsMap = null;
|
|
4605
4778
|
const getUniformsMap = () => {
|
|
4606
4779
|
if (!uniformsMap) {
|
|
4607
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4780
|
+
uniformsMap = createUniformsMap(componentDefinition$w, effectiveProps(), instanceId);
|
|
4608
4781
|
}
|
|
4609
4782
|
return uniformsMap;
|
|
4610
4783
|
};
|
|
@@ -4612,6 +4785,7 @@ function ShaderComponent$p(props) {
|
|
|
4612
4785
|
...context,
|
|
4613
4786
|
shaderParentId: instanceId
|
|
4614
4787
|
}));
|
|
4788
|
+
const resolved = children(() => props.children);
|
|
4615
4789
|
let isRegistered = false;
|
|
4616
4790
|
onMount(() => {
|
|
4617
4791
|
const uniforms = getUniformsMap();
|
|
@@ -4629,7 +4803,7 @@ function ShaderComponent$p(props) {
|
|
|
4629
4803
|
renderOrder: props.renderOrder || 0,
|
|
4630
4804
|
transform: effectiveTransform()
|
|
4631
4805
|
};
|
|
4632
|
-
parentRegister(instanceId, componentDefinition$
|
|
4806
|
+
parentRegister(instanceId, componentDefinition$w.fragmentNode, parentId, metadata, uniforms, componentDefinition$w);
|
|
4633
4807
|
isRegistered = true;
|
|
4634
4808
|
} catch (error) {
|
|
4635
4809
|
console.error("Error registering shader node:", error);
|
|
@@ -4684,7 +4858,7 @@ function ShaderComponent$p(props) {
|
|
|
4684
4858
|
return childContextValue();
|
|
4685
4859
|
},
|
|
4686
4860
|
get children() {
|
|
4687
|
-
return
|
|
4861
|
+
return resolved();
|
|
4688
4862
|
}
|
|
4689
4863
|
});
|
|
4690
4864
|
}
|
|
@@ -4705,8 +4879,8 @@ const defaultProps$o = {
|
|
|
4705
4879
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4706
4880
|
};
|
|
4707
4881
|
try {
|
|
4708
|
-
if (componentDefinition$
|
|
4709
|
-
Object.entries(componentDefinition$
|
|
4882
|
+
if (componentDefinition$x && componentDefinition$x.props) {
|
|
4883
|
+
Object.entries(componentDefinition$x.props).forEach(([key, config]) => {
|
|
4710
4884
|
const propConfig = config;
|
|
4711
4885
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4712
4886
|
defaultProps$o[key] = propConfig.default;
|
|
@@ -4724,7 +4898,7 @@ function ShaderComponent$o(props) {
|
|
|
4724
4898
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4725
4899
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4726
4900
|
} = context;
|
|
4727
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4901
|
+
const instanceId = props.id || `${componentDefinition$x.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4728
4902
|
const effectiveProps = createMemo(() => {
|
|
4729
4903
|
let baseProps = {
|
|
4730
4904
|
...defaultProps$o
|
|
@@ -4743,7 +4917,7 @@ function ShaderComponent$o(props) {
|
|
|
4743
4917
|
let uniformsMap = null;
|
|
4744
4918
|
const getUniformsMap = () => {
|
|
4745
4919
|
if (!uniformsMap) {
|
|
4746
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4920
|
+
uniformsMap = createUniformsMap(componentDefinition$x, effectiveProps(), instanceId);
|
|
4747
4921
|
}
|
|
4748
4922
|
return uniformsMap;
|
|
4749
4923
|
};
|
|
@@ -4751,6 +4925,7 @@ function ShaderComponent$o(props) {
|
|
|
4751
4925
|
...context,
|
|
4752
4926
|
shaderParentId: instanceId
|
|
4753
4927
|
}));
|
|
4928
|
+
const resolved = children(() => props.children);
|
|
4754
4929
|
let isRegistered = false;
|
|
4755
4930
|
onMount(() => {
|
|
4756
4931
|
const uniforms = getUniformsMap();
|
|
@@ -4768,7 +4943,7 @@ function ShaderComponent$o(props) {
|
|
|
4768
4943
|
renderOrder: props.renderOrder || 0,
|
|
4769
4944
|
transform: effectiveTransform()
|
|
4770
4945
|
};
|
|
4771
|
-
parentRegister(instanceId, componentDefinition$
|
|
4946
|
+
parentRegister(instanceId, componentDefinition$x.fragmentNode, parentId, metadata, uniforms, componentDefinition$x);
|
|
4772
4947
|
isRegistered = true;
|
|
4773
4948
|
} catch (error) {
|
|
4774
4949
|
console.error("Error registering shader node:", error);
|
|
@@ -4823,7 +4998,7 @@ function ShaderComponent$o(props) {
|
|
|
4823
4998
|
return childContextValue();
|
|
4824
4999
|
},
|
|
4825
5000
|
get children() {
|
|
4826
|
-
return
|
|
5001
|
+
return resolved();
|
|
4827
5002
|
}
|
|
4828
5003
|
});
|
|
4829
5004
|
}
|
|
@@ -4844,8 +5019,8 @@ const defaultProps$n = {
|
|
|
4844
5019
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4845
5020
|
};
|
|
4846
5021
|
try {
|
|
4847
|
-
if (componentDefinition$
|
|
4848
|
-
Object.entries(componentDefinition$
|
|
5022
|
+
if (componentDefinition$y && componentDefinition$y.props) {
|
|
5023
|
+
Object.entries(componentDefinition$y.props).forEach(([key, config]) => {
|
|
4849
5024
|
const propConfig = config;
|
|
4850
5025
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4851
5026
|
defaultProps$n[key] = propConfig.default;
|
|
@@ -4863,7 +5038,7 @@ function ShaderComponent$n(props) {
|
|
|
4863
5038
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4864
5039
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4865
5040
|
} = context;
|
|
4866
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5041
|
+
const instanceId = props.id || `${componentDefinition$y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4867
5042
|
const effectiveProps = createMemo(() => {
|
|
4868
5043
|
let baseProps = {
|
|
4869
5044
|
...defaultProps$n
|
|
@@ -4882,7 +5057,7 @@ function ShaderComponent$n(props) {
|
|
|
4882
5057
|
let uniformsMap = null;
|
|
4883
5058
|
const getUniformsMap = () => {
|
|
4884
5059
|
if (!uniformsMap) {
|
|
4885
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5060
|
+
uniformsMap = createUniformsMap(componentDefinition$y, effectiveProps(), instanceId);
|
|
4886
5061
|
}
|
|
4887
5062
|
return uniformsMap;
|
|
4888
5063
|
};
|
|
@@ -4890,6 +5065,7 @@ function ShaderComponent$n(props) {
|
|
|
4890
5065
|
...context,
|
|
4891
5066
|
shaderParentId: instanceId
|
|
4892
5067
|
}));
|
|
5068
|
+
const resolved = children(() => props.children);
|
|
4893
5069
|
let isRegistered = false;
|
|
4894
5070
|
onMount(() => {
|
|
4895
5071
|
const uniforms = getUniformsMap();
|
|
@@ -4907,7 +5083,7 @@ function ShaderComponent$n(props) {
|
|
|
4907
5083
|
renderOrder: props.renderOrder || 0,
|
|
4908
5084
|
transform: effectiveTransform()
|
|
4909
5085
|
};
|
|
4910
|
-
parentRegister(instanceId, componentDefinition$
|
|
5086
|
+
parentRegister(instanceId, componentDefinition$y.fragmentNode, parentId, metadata, uniforms, componentDefinition$y);
|
|
4911
5087
|
isRegistered = true;
|
|
4912
5088
|
} catch (error) {
|
|
4913
5089
|
console.error("Error registering shader node:", error);
|
|
@@ -4962,7 +5138,7 @@ function ShaderComponent$n(props) {
|
|
|
4962
5138
|
return childContextValue();
|
|
4963
5139
|
},
|
|
4964
5140
|
get children() {
|
|
4965
|
-
return
|
|
5141
|
+
return resolved();
|
|
4966
5142
|
}
|
|
4967
5143
|
});
|
|
4968
5144
|
}
|
|
@@ -4983,8 +5159,8 @@ const defaultProps$m = {
|
|
|
4983
5159
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4984
5160
|
};
|
|
4985
5161
|
try {
|
|
4986
|
-
if (componentDefinition$
|
|
4987
|
-
Object.entries(componentDefinition$
|
|
5162
|
+
if (componentDefinition$z && componentDefinition$z.props) {
|
|
5163
|
+
Object.entries(componentDefinition$z.props).forEach(([key, config]) => {
|
|
4988
5164
|
const propConfig = config;
|
|
4989
5165
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4990
5166
|
defaultProps$m[key] = propConfig.default;
|
|
@@ -5002,7 +5178,7 @@ function ShaderComponent$m(props) {
|
|
|
5002
5178
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5003
5179
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5004
5180
|
} = context;
|
|
5005
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5181
|
+
const instanceId = props.id || `${componentDefinition$z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5006
5182
|
const effectiveProps = createMemo(() => {
|
|
5007
5183
|
let baseProps = {
|
|
5008
5184
|
...defaultProps$m
|
|
@@ -5021,7 +5197,7 @@ function ShaderComponent$m(props) {
|
|
|
5021
5197
|
let uniformsMap = null;
|
|
5022
5198
|
const getUniformsMap = () => {
|
|
5023
5199
|
if (!uniformsMap) {
|
|
5024
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5200
|
+
uniformsMap = createUniformsMap(componentDefinition$z, effectiveProps(), instanceId);
|
|
5025
5201
|
}
|
|
5026
5202
|
return uniformsMap;
|
|
5027
5203
|
};
|
|
@@ -5029,6 +5205,7 @@ function ShaderComponent$m(props) {
|
|
|
5029
5205
|
...context,
|
|
5030
5206
|
shaderParentId: instanceId
|
|
5031
5207
|
}));
|
|
5208
|
+
const resolved = children(() => props.children);
|
|
5032
5209
|
let isRegistered = false;
|
|
5033
5210
|
onMount(() => {
|
|
5034
5211
|
const uniforms = getUniformsMap();
|
|
@@ -5046,7 +5223,7 @@ function ShaderComponent$m(props) {
|
|
|
5046
5223
|
renderOrder: props.renderOrder || 0,
|
|
5047
5224
|
transform: effectiveTransform()
|
|
5048
5225
|
};
|
|
5049
|
-
parentRegister(instanceId, componentDefinition$
|
|
5226
|
+
parentRegister(instanceId, componentDefinition$z.fragmentNode, parentId, metadata, uniforms, componentDefinition$z);
|
|
5050
5227
|
isRegistered = true;
|
|
5051
5228
|
} catch (error) {
|
|
5052
5229
|
console.error("Error registering shader node:", error);
|
|
@@ -5101,7 +5278,7 @@ function ShaderComponent$m(props) {
|
|
|
5101
5278
|
return childContextValue();
|
|
5102
5279
|
},
|
|
5103
5280
|
get children() {
|
|
5104
|
-
return
|
|
5281
|
+
return resolved();
|
|
5105
5282
|
}
|
|
5106
5283
|
});
|
|
5107
5284
|
}
|
|
@@ -5122,8 +5299,8 @@ const defaultProps$l = {
|
|
|
5122
5299
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5123
5300
|
};
|
|
5124
5301
|
try {
|
|
5125
|
-
if (componentDefinition$
|
|
5126
|
-
Object.entries(componentDefinition$
|
|
5302
|
+
if (componentDefinition$A && componentDefinition$A.props) {
|
|
5303
|
+
Object.entries(componentDefinition$A.props).forEach(([key, config]) => {
|
|
5127
5304
|
const propConfig = config;
|
|
5128
5305
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5129
5306
|
defaultProps$l[key] = propConfig.default;
|
|
@@ -5141,7 +5318,7 @@ function ShaderComponent$l(props) {
|
|
|
5141
5318
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5142
5319
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5143
5320
|
} = context;
|
|
5144
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5321
|
+
const instanceId = props.id || `${componentDefinition$A.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5145
5322
|
const effectiveProps = createMemo(() => {
|
|
5146
5323
|
let baseProps = {
|
|
5147
5324
|
...defaultProps$l
|
|
@@ -5160,7 +5337,7 @@ function ShaderComponent$l(props) {
|
|
|
5160
5337
|
let uniformsMap = null;
|
|
5161
5338
|
const getUniformsMap = () => {
|
|
5162
5339
|
if (!uniformsMap) {
|
|
5163
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5340
|
+
uniformsMap = createUniformsMap(componentDefinition$A, effectiveProps(), instanceId);
|
|
5164
5341
|
}
|
|
5165
5342
|
return uniformsMap;
|
|
5166
5343
|
};
|
|
@@ -5168,6 +5345,7 @@ function ShaderComponent$l(props) {
|
|
|
5168
5345
|
...context,
|
|
5169
5346
|
shaderParentId: instanceId
|
|
5170
5347
|
}));
|
|
5348
|
+
const resolved = children(() => props.children);
|
|
5171
5349
|
let isRegistered = false;
|
|
5172
5350
|
onMount(() => {
|
|
5173
5351
|
const uniforms = getUniformsMap();
|
|
@@ -5185,7 +5363,7 @@ function ShaderComponent$l(props) {
|
|
|
5185
5363
|
renderOrder: props.renderOrder || 0,
|
|
5186
5364
|
transform: effectiveTransform()
|
|
5187
5365
|
};
|
|
5188
|
-
parentRegister(instanceId, componentDefinition$
|
|
5366
|
+
parentRegister(instanceId, componentDefinition$A.fragmentNode, parentId, metadata, uniforms, componentDefinition$A);
|
|
5189
5367
|
isRegistered = true;
|
|
5190
5368
|
} catch (error) {
|
|
5191
5369
|
console.error("Error registering shader node:", error);
|
|
@@ -5240,7 +5418,7 @@ function ShaderComponent$l(props) {
|
|
|
5240
5418
|
return childContextValue();
|
|
5241
5419
|
},
|
|
5242
5420
|
get children() {
|
|
5243
|
-
return
|
|
5421
|
+
return resolved();
|
|
5244
5422
|
}
|
|
5245
5423
|
});
|
|
5246
5424
|
}
|
|
@@ -5261,8 +5439,8 @@ const defaultProps$k = {
|
|
|
5261
5439
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5262
5440
|
};
|
|
5263
5441
|
try {
|
|
5264
|
-
if (componentDefinition$
|
|
5265
|
-
Object.entries(componentDefinition$
|
|
5442
|
+
if (componentDefinition$B && componentDefinition$B.props) {
|
|
5443
|
+
Object.entries(componentDefinition$B.props).forEach(([key, config]) => {
|
|
5266
5444
|
const propConfig = config;
|
|
5267
5445
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5268
5446
|
defaultProps$k[key] = propConfig.default;
|
|
@@ -5280,7 +5458,7 @@ function ShaderComponent$k(props) {
|
|
|
5280
5458
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5281
5459
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5282
5460
|
} = context;
|
|
5283
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5461
|
+
const instanceId = props.id || `${componentDefinition$B.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5284
5462
|
const effectiveProps = createMemo(() => {
|
|
5285
5463
|
let baseProps = {
|
|
5286
5464
|
...defaultProps$k
|
|
@@ -5299,7 +5477,7 @@ function ShaderComponent$k(props) {
|
|
|
5299
5477
|
let uniformsMap = null;
|
|
5300
5478
|
const getUniformsMap = () => {
|
|
5301
5479
|
if (!uniformsMap) {
|
|
5302
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5480
|
+
uniformsMap = createUniformsMap(componentDefinition$B, effectiveProps(), instanceId);
|
|
5303
5481
|
}
|
|
5304
5482
|
return uniformsMap;
|
|
5305
5483
|
};
|
|
@@ -5307,6 +5485,7 @@ function ShaderComponent$k(props) {
|
|
|
5307
5485
|
...context,
|
|
5308
5486
|
shaderParentId: instanceId
|
|
5309
5487
|
}));
|
|
5488
|
+
const resolved = children(() => props.children);
|
|
5310
5489
|
let isRegistered = false;
|
|
5311
5490
|
onMount(() => {
|
|
5312
5491
|
const uniforms = getUniformsMap();
|
|
@@ -5324,7 +5503,7 @@ function ShaderComponent$k(props) {
|
|
|
5324
5503
|
renderOrder: props.renderOrder || 0,
|
|
5325
5504
|
transform: effectiveTransform()
|
|
5326
5505
|
};
|
|
5327
|
-
parentRegister(instanceId, componentDefinition$
|
|
5506
|
+
parentRegister(instanceId, componentDefinition$B.fragmentNode, parentId, metadata, uniforms, componentDefinition$B);
|
|
5328
5507
|
isRegistered = true;
|
|
5329
5508
|
} catch (error) {
|
|
5330
5509
|
console.error("Error registering shader node:", error);
|
|
@@ -5379,7 +5558,7 @@ function ShaderComponent$k(props) {
|
|
|
5379
5558
|
return childContextValue();
|
|
5380
5559
|
},
|
|
5381
5560
|
get children() {
|
|
5382
|
-
return
|
|
5561
|
+
return resolved();
|
|
5383
5562
|
}
|
|
5384
5563
|
});
|
|
5385
5564
|
}
|
|
@@ -5400,8 +5579,8 @@ const defaultProps$j = {
|
|
|
5400
5579
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5401
5580
|
};
|
|
5402
5581
|
try {
|
|
5403
|
-
if (componentDefinition$
|
|
5404
|
-
Object.entries(componentDefinition$
|
|
5582
|
+
if (componentDefinition$C && componentDefinition$C.props) {
|
|
5583
|
+
Object.entries(componentDefinition$C.props).forEach(([key, config]) => {
|
|
5405
5584
|
const propConfig = config;
|
|
5406
5585
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5407
5586
|
defaultProps$j[key] = propConfig.default;
|
|
@@ -5419,7 +5598,7 @@ function ShaderComponent$j(props) {
|
|
|
5419
5598
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5420
5599
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5421
5600
|
} = context;
|
|
5422
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5601
|
+
const instanceId = props.id || `${componentDefinition$C.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5423
5602
|
const effectiveProps = createMemo(() => {
|
|
5424
5603
|
let baseProps = {
|
|
5425
5604
|
...defaultProps$j
|
|
@@ -5438,7 +5617,7 @@ function ShaderComponent$j(props) {
|
|
|
5438
5617
|
let uniformsMap = null;
|
|
5439
5618
|
const getUniformsMap = () => {
|
|
5440
5619
|
if (!uniformsMap) {
|
|
5441
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5620
|
+
uniformsMap = createUniformsMap(componentDefinition$C, effectiveProps(), instanceId);
|
|
5442
5621
|
}
|
|
5443
5622
|
return uniformsMap;
|
|
5444
5623
|
};
|
|
@@ -5446,6 +5625,7 @@ function ShaderComponent$j(props) {
|
|
|
5446
5625
|
...context,
|
|
5447
5626
|
shaderParentId: instanceId
|
|
5448
5627
|
}));
|
|
5628
|
+
const resolved = children(() => props.children);
|
|
5449
5629
|
let isRegistered = false;
|
|
5450
5630
|
onMount(() => {
|
|
5451
5631
|
const uniforms = getUniformsMap();
|
|
@@ -5463,7 +5643,7 @@ function ShaderComponent$j(props) {
|
|
|
5463
5643
|
renderOrder: props.renderOrder || 0,
|
|
5464
5644
|
transform: effectiveTransform()
|
|
5465
5645
|
};
|
|
5466
|
-
parentRegister(instanceId, componentDefinition$
|
|
5646
|
+
parentRegister(instanceId, componentDefinition$C.fragmentNode, parentId, metadata, uniforms, componentDefinition$C);
|
|
5467
5647
|
isRegistered = true;
|
|
5468
5648
|
} catch (error) {
|
|
5469
5649
|
console.error("Error registering shader node:", error);
|
|
@@ -5518,7 +5698,7 @@ function ShaderComponent$j(props) {
|
|
|
5518
5698
|
return childContextValue();
|
|
5519
5699
|
},
|
|
5520
5700
|
get children() {
|
|
5521
|
-
return
|
|
5701
|
+
return resolved();
|
|
5522
5702
|
}
|
|
5523
5703
|
});
|
|
5524
5704
|
}
|
|
@@ -5539,8 +5719,8 @@ const defaultProps$i = {
|
|
|
5539
5719
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5540
5720
|
};
|
|
5541
5721
|
try {
|
|
5542
|
-
if (componentDefinition$
|
|
5543
|
-
Object.entries(componentDefinition$
|
|
5722
|
+
if (componentDefinition$D && componentDefinition$D.props) {
|
|
5723
|
+
Object.entries(componentDefinition$D.props).forEach(([key, config]) => {
|
|
5544
5724
|
const propConfig = config;
|
|
5545
5725
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5546
5726
|
defaultProps$i[key] = propConfig.default;
|
|
@@ -5558,7 +5738,7 @@ function ShaderComponent$i(props) {
|
|
|
5558
5738
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5559
5739
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5560
5740
|
} = context;
|
|
5561
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5741
|
+
const instanceId = props.id || `${componentDefinition$D.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5562
5742
|
const effectiveProps = createMemo(() => {
|
|
5563
5743
|
let baseProps = {
|
|
5564
5744
|
...defaultProps$i
|
|
@@ -5577,7 +5757,7 @@ function ShaderComponent$i(props) {
|
|
|
5577
5757
|
let uniformsMap = null;
|
|
5578
5758
|
const getUniformsMap = () => {
|
|
5579
5759
|
if (!uniformsMap) {
|
|
5580
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5760
|
+
uniformsMap = createUniformsMap(componentDefinition$D, effectiveProps(), instanceId);
|
|
5581
5761
|
}
|
|
5582
5762
|
return uniformsMap;
|
|
5583
5763
|
};
|
|
@@ -5585,6 +5765,7 @@ function ShaderComponent$i(props) {
|
|
|
5585
5765
|
...context,
|
|
5586
5766
|
shaderParentId: instanceId
|
|
5587
5767
|
}));
|
|
5768
|
+
const resolved = children(() => props.children);
|
|
5588
5769
|
let isRegistered = false;
|
|
5589
5770
|
onMount(() => {
|
|
5590
5771
|
const uniforms = getUniformsMap();
|
|
@@ -5602,7 +5783,7 @@ function ShaderComponent$i(props) {
|
|
|
5602
5783
|
renderOrder: props.renderOrder || 0,
|
|
5603
5784
|
transform: effectiveTransform()
|
|
5604
5785
|
};
|
|
5605
|
-
parentRegister(instanceId, componentDefinition$
|
|
5786
|
+
parentRegister(instanceId, componentDefinition$D.fragmentNode, parentId, metadata, uniforms, componentDefinition$D);
|
|
5606
5787
|
isRegistered = true;
|
|
5607
5788
|
} catch (error) {
|
|
5608
5789
|
console.error("Error registering shader node:", error);
|
|
@@ -5657,7 +5838,7 @@ function ShaderComponent$i(props) {
|
|
|
5657
5838
|
return childContextValue();
|
|
5658
5839
|
},
|
|
5659
5840
|
get children() {
|
|
5660
|
-
return
|
|
5841
|
+
return resolved();
|
|
5661
5842
|
}
|
|
5662
5843
|
});
|
|
5663
5844
|
}
|
|
@@ -5678,8 +5859,8 @@ const defaultProps$h = {
|
|
|
5678
5859
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5679
5860
|
};
|
|
5680
5861
|
try {
|
|
5681
|
-
if (componentDefinition$
|
|
5682
|
-
Object.entries(componentDefinition$
|
|
5862
|
+
if (componentDefinition$E && componentDefinition$E.props) {
|
|
5863
|
+
Object.entries(componentDefinition$E.props).forEach(([key, config]) => {
|
|
5683
5864
|
const propConfig = config;
|
|
5684
5865
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5685
5866
|
defaultProps$h[key] = propConfig.default;
|
|
@@ -5697,7 +5878,7 @@ function ShaderComponent$h(props) {
|
|
|
5697
5878
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5698
5879
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5699
5880
|
} = context;
|
|
5700
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5881
|
+
const instanceId = props.id || `${componentDefinition$E.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5701
5882
|
const effectiveProps = createMemo(() => {
|
|
5702
5883
|
let baseProps = {
|
|
5703
5884
|
...defaultProps$h
|
|
@@ -5716,7 +5897,7 @@ function ShaderComponent$h(props) {
|
|
|
5716
5897
|
let uniformsMap = null;
|
|
5717
5898
|
const getUniformsMap = () => {
|
|
5718
5899
|
if (!uniformsMap) {
|
|
5719
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5900
|
+
uniformsMap = createUniformsMap(componentDefinition$E, effectiveProps(), instanceId);
|
|
5720
5901
|
}
|
|
5721
5902
|
return uniformsMap;
|
|
5722
5903
|
};
|
|
@@ -5724,6 +5905,7 @@ function ShaderComponent$h(props) {
|
|
|
5724
5905
|
...context,
|
|
5725
5906
|
shaderParentId: instanceId
|
|
5726
5907
|
}));
|
|
5908
|
+
const resolved = children(() => props.children);
|
|
5727
5909
|
let isRegistered = false;
|
|
5728
5910
|
onMount(() => {
|
|
5729
5911
|
const uniforms = getUniformsMap();
|
|
@@ -5741,7 +5923,7 @@ function ShaderComponent$h(props) {
|
|
|
5741
5923
|
renderOrder: props.renderOrder || 0,
|
|
5742
5924
|
transform: effectiveTransform()
|
|
5743
5925
|
};
|
|
5744
|
-
parentRegister(instanceId, componentDefinition$
|
|
5926
|
+
parentRegister(instanceId, componentDefinition$E.fragmentNode, parentId, metadata, uniforms, componentDefinition$E);
|
|
5745
5927
|
isRegistered = true;
|
|
5746
5928
|
} catch (error) {
|
|
5747
5929
|
console.error("Error registering shader node:", error);
|
|
@@ -5796,7 +5978,7 @@ function ShaderComponent$h(props) {
|
|
|
5796
5978
|
return childContextValue();
|
|
5797
5979
|
},
|
|
5798
5980
|
get children() {
|
|
5799
|
-
return
|
|
5981
|
+
return resolved();
|
|
5800
5982
|
}
|
|
5801
5983
|
});
|
|
5802
5984
|
}
|
|
@@ -5817,8 +5999,8 @@ const defaultProps$g = {
|
|
|
5817
5999
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5818
6000
|
};
|
|
5819
6001
|
try {
|
|
5820
|
-
if (componentDefinition$
|
|
5821
|
-
Object.entries(componentDefinition$
|
|
6002
|
+
if (componentDefinition$F && componentDefinition$F.props) {
|
|
6003
|
+
Object.entries(componentDefinition$F.props).forEach(([key, config]) => {
|
|
5822
6004
|
const propConfig = config;
|
|
5823
6005
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5824
6006
|
defaultProps$g[key] = propConfig.default;
|
|
@@ -5836,7 +6018,7 @@ function ShaderComponent$g(props) {
|
|
|
5836
6018
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5837
6019
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5838
6020
|
} = context;
|
|
5839
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6021
|
+
const instanceId = props.id || `${componentDefinition$F.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5840
6022
|
const effectiveProps = createMemo(() => {
|
|
5841
6023
|
let baseProps = {
|
|
5842
6024
|
...defaultProps$g
|
|
@@ -5855,7 +6037,7 @@ function ShaderComponent$g(props) {
|
|
|
5855
6037
|
let uniformsMap = null;
|
|
5856
6038
|
const getUniformsMap = () => {
|
|
5857
6039
|
if (!uniformsMap) {
|
|
5858
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6040
|
+
uniformsMap = createUniformsMap(componentDefinition$F, effectiveProps(), instanceId);
|
|
5859
6041
|
}
|
|
5860
6042
|
return uniformsMap;
|
|
5861
6043
|
};
|
|
@@ -5863,6 +6045,7 @@ function ShaderComponent$g(props) {
|
|
|
5863
6045
|
...context,
|
|
5864
6046
|
shaderParentId: instanceId
|
|
5865
6047
|
}));
|
|
6048
|
+
const resolved = children(() => props.children);
|
|
5866
6049
|
let isRegistered = false;
|
|
5867
6050
|
onMount(() => {
|
|
5868
6051
|
const uniforms = getUniformsMap();
|
|
@@ -5880,7 +6063,7 @@ function ShaderComponent$g(props) {
|
|
|
5880
6063
|
renderOrder: props.renderOrder || 0,
|
|
5881
6064
|
transform: effectiveTransform()
|
|
5882
6065
|
};
|
|
5883
|
-
parentRegister(instanceId, componentDefinition$
|
|
6066
|
+
parentRegister(instanceId, componentDefinition$F.fragmentNode, parentId, metadata, uniforms, componentDefinition$F);
|
|
5884
6067
|
isRegistered = true;
|
|
5885
6068
|
} catch (error) {
|
|
5886
6069
|
console.error("Error registering shader node:", error);
|
|
@@ -5935,7 +6118,7 @@ function ShaderComponent$g(props) {
|
|
|
5935
6118
|
return childContextValue();
|
|
5936
6119
|
},
|
|
5937
6120
|
get children() {
|
|
5938
|
-
return
|
|
6121
|
+
return resolved();
|
|
5939
6122
|
}
|
|
5940
6123
|
});
|
|
5941
6124
|
}
|
|
@@ -5956,8 +6139,8 @@ const defaultProps$f = {
|
|
|
5956
6139
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5957
6140
|
};
|
|
5958
6141
|
try {
|
|
5959
|
-
if (componentDefinition$
|
|
5960
|
-
Object.entries(componentDefinition$
|
|
6142
|
+
if (componentDefinition$G && componentDefinition$G.props) {
|
|
6143
|
+
Object.entries(componentDefinition$G.props).forEach(([key, config]) => {
|
|
5961
6144
|
const propConfig = config;
|
|
5962
6145
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5963
6146
|
defaultProps$f[key] = propConfig.default;
|
|
@@ -5975,7 +6158,7 @@ function ShaderComponent$f(props) {
|
|
|
5975
6158
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5976
6159
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5977
6160
|
} = context;
|
|
5978
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6161
|
+
const instanceId = props.id || `${componentDefinition$G.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5979
6162
|
const effectiveProps = createMemo(() => {
|
|
5980
6163
|
let baseProps = {
|
|
5981
6164
|
...defaultProps$f
|
|
@@ -5994,7 +6177,7 @@ function ShaderComponent$f(props) {
|
|
|
5994
6177
|
let uniformsMap = null;
|
|
5995
6178
|
const getUniformsMap = () => {
|
|
5996
6179
|
if (!uniformsMap) {
|
|
5997
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6180
|
+
uniformsMap = createUniformsMap(componentDefinition$G, effectiveProps(), instanceId);
|
|
5998
6181
|
}
|
|
5999
6182
|
return uniformsMap;
|
|
6000
6183
|
};
|
|
@@ -6002,6 +6185,7 @@ function ShaderComponent$f(props) {
|
|
|
6002
6185
|
...context,
|
|
6003
6186
|
shaderParentId: instanceId
|
|
6004
6187
|
}));
|
|
6188
|
+
const resolved = children(() => props.children);
|
|
6005
6189
|
let isRegistered = false;
|
|
6006
6190
|
onMount(() => {
|
|
6007
6191
|
const uniforms = getUniformsMap();
|
|
@@ -6019,7 +6203,7 @@ function ShaderComponent$f(props) {
|
|
|
6019
6203
|
renderOrder: props.renderOrder || 0,
|
|
6020
6204
|
transform: effectiveTransform()
|
|
6021
6205
|
};
|
|
6022
|
-
parentRegister(instanceId, componentDefinition$
|
|
6206
|
+
parentRegister(instanceId, componentDefinition$G.fragmentNode, parentId, metadata, uniforms, componentDefinition$G);
|
|
6023
6207
|
isRegistered = true;
|
|
6024
6208
|
} catch (error) {
|
|
6025
6209
|
console.error("Error registering shader node:", error);
|
|
@@ -6074,7 +6258,7 @@ function ShaderComponent$f(props) {
|
|
|
6074
6258
|
return childContextValue();
|
|
6075
6259
|
},
|
|
6076
6260
|
get children() {
|
|
6077
|
-
return
|
|
6261
|
+
return resolved();
|
|
6078
6262
|
}
|
|
6079
6263
|
});
|
|
6080
6264
|
}
|
|
@@ -6095,8 +6279,8 @@ const defaultProps$e = {
|
|
|
6095
6279
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6096
6280
|
};
|
|
6097
6281
|
try {
|
|
6098
|
-
if (componentDefinition$
|
|
6099
|
-
Object.entries(componentDefinition$
|
|
6282
|
+
if (componentDefinition$H && componentDefinition$H.props) {
|
|
6283
|
+
Object.entries(componentDefinition$H.props).forEach(([key, config]) => {
|
|
6100
6284
|
const propConfig = config;
|
|
6101
6285
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6102
6286
|
defaultProps$e[key] = propConfig.default;
|
|
@@ -6114,7 +6298,7 @@ function ShaderComponent$e(props) {
|
|
|
6114
6298
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6115
6299
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6116
6300
|
} = context;
|
|
6117
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6301
|
+
const instanceId = props.id || `${componentDefinition$H.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6118
6302
|
const effectiveProps = createMemo(() => {
|
|
6119
6303
|
let baseProps = {
|
|
6120
6304
|
...defaultProps$e
|
|
@@ -6133,7 +6317,7 @@ function ShaderComponent$e(props) {
|
|
|
6133
6317
|
let uniformsMap = null;
|
|
6134
6318
|
const getUniformsMap = () => {
|
|
6135
6319
|
if (!uniformsMap) {
|
|
6136
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6320
|
+
uniformsMap = createUniformsMap(componentDefinition$H, effectiveProps(), instanceId);
|
|
6137
6321
|
}
|
|
6138
6322
|
return uniformsMap;
|
|
6139
6323
|
};
|
|
@@ -6141,6 +6325,7 @@ function ShaderComponent$e(props) {
|
|
|
6141
6325
|
...context,
|
|
6142
6326
|
shaderParentId: instanceId
|
|
6143
6327
|
}));
|
|
6328
|
+
const resolved = children(() => props.children);
|
|
6144
6329
|
let isRegistered = false;
|
|
6145
6330
|
onMount(() => {
|
|
6146
6331
|
const uniforms = getUniformsMap();
|
|
@@ -6158,7 +6343,7 @@ function ShaderComponent$e(props) {
|
|
|
6158
6343
|
renderOrder: props.renderOrder || 0,
|
|
6159
6344
|
transform: effectiveTransform()
|
|
6160
6345
|
};
|
|
6161
|
-
parentRegister(instanceId, componentDefinition$
|
|
6346
|
+
parentRegister(instanceId, componentDefinition$H.fragmentNode, parentId, metadata, uniforms, componentDefinition$H);
|
|
6162
6347
|
isRegistered = true;
|
|
6163
6348
|
} catch (error) {
|
|
6164
6349
|
console.error("Error registering shader node:", error);
|
|
@@ -6213,7 +6398,7 @@ function ShaderComponent$e(props) {
|
|
|
6213
6398
|
return childContextValue();
|
|
6214
6399
|
},
|
|
6215
6400
|
get children() {
|
|
6216
|
-
return
|
|
6401
|
+
return resolved();
|
|
6217
6402
|
}
|
|
6218
6403
|
});
|
|
6219
6404
|
}
|
|
@@ -6234,8 +6419,8 @@ const defaultProps$d = {
|
|
|
6234
6419
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6235
6420
|
};
|
|
6236
6421
|
try {
|
|
6237
|
-
if (componentDefinition$
|
|
6238
|
-
Object.entries(componentDefinition$
|
|
6422
|
+
if (componentDefinition$I && componentDefinition$I.props) {
|
|
6423
|
+
Object.entries(componentDefinition$I.props).forEach(([key, config]) => {
|
|
6239
6424
|
const propConfig = config;
|
|
6240
6425
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6241
6426
|
defaultProps$d[key] = propConfig.default;
|
|
@@ -6253,7 +6438,7 @@ function ShaderComponent$d(props) {
|
|
|
6253
6438
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6254
6439
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6255
6440
|
} = context;
|
|
6256
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6441
|
+
const instanceId = props.id || `${componentDefinition$I.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6257
6442
|
const effectiveProps = createMemo(() => {
|
|
6258
6443
|
let baseProps = {
|
|
6259
6444
|
...defaultProps$d
|
|
@@ -6272,7 +6457,7 @@ function ShaderComponent$d(props) {
|
|
|
6272
6457
|
let uniformsMap = null;
|
|
6273
6458
|
const getUniformsMap = () => {
|
|
6274
6459
|
if (!uniformsMap) {
|
|
6275
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6460
|
+
uniformsMap = createUniformsMap(componentDefinition$I, effectiveProps(), instanceId);
|
|
6276
6461
|
}
|
|
6277
6462
|
return uniformsMap;
|
|
6278
6463
|
};
|
|
@@ -6280,6 +6465,7 @@ function ShaderComponent$d(props) {
|
|
|
6280
6465
|
...context,
|
|
6281
6466
|
shaderParentId: instanceId
|
|
6282
6467
|
}));
|
|
6468
|
+
const resolved = children(() => props.children);
|
|
6283
6469
|
let isRegistered = false;
|
|
6284
6470
|
onMount(() => {
|
|
6285
6471
|
const uniforms = getUniformsMap();
|
|
@@ -6297,7 +6483,7 @@ function ShaderComponent$d(props) {
|
|
|
6297
6483
|
renderOrder: props.renderOrder || 0,
|
|
6298
6484
|
transform: effectiveTransform()
|
|
6299
6485
|
};
|
|
6300
|
-
parentRegister(instanceId, componentDefinition$
|
|
6486
|
+
parentRegister(instanceId, componentDefinition$I.fragmentNode, parentId, metadata, uniforms, componentDefinition$I);
|
|
6301
6487
|
isRegistered = true;
|
|
6302
6488
|
} catch (error) {
|
|
6303
6489
|
console.error("Error registering shader node:", error);
|
|
@@ -6352,7 +6538,7 @@ function ShaderComponent$d(props) {
|
|
|
6352
6538
|
return childContextValue();
|
|
6353
6539
|
},
|
|
6354
6540
|
get children() {
|
|
6355
|
-
return
|
|
6541
|
+
return resolved();
|
|
6356
6542
|
}
|
|
6357
6543
|
});
|
|
6358
6544
|
}
|
|
@@ -6373,8 +6559,8 @@ const defaultProps$c = {
|
|
|
6373
6559
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6374
6560
|
};
|
|
6375
6561
|
try {
|
|
6376
|
-
if (componentDefinition$
|
|
6377
|
-
Object.entries(componentDefinition$
|
|
6562
|
+
if (componentDefinition$J && componentDefinition$J.props) {
|
|
6563
|
+
Object.entries(componentDefinition$J.props).forEach(([key, config]) => {
|
|
6378
6564
|
const propConfig = config;
|
|
6379
6565
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6380
6566
|
defaultProps$c[key] = propConfig.default;
|
|
@@ -6392,7 +6578,7 @@ function ShaderComponent$c(props) {
|
|
|
6392
6578
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6393
6579
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6394
6580
|
} = context;
|
|
6395
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6581
|
+
const instanceId = props.id || `${componentDefinition$J.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6396
6582
|
const effectiveProps = createMemo(() => {
|
|
6397
6583
|
let baseProps = {
|
|
6398
6584
|
...defaultProps$c
|
|
@@ -6411,7 +6597,7 @@ function ShaderComponent$c(props) {
|
|
|
6411
6597
|
let uniformsMap = null;
|
|
6412
6598
|
const getUniformsMap = () => {
|
|
6413
6599
|
if (!uniformsMap) {
|
|
6414
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6600
|
+
uniformsMap = createUniformsMap(componentDefinition$J, effectiveProps(), instanceId);
|
|
6415
6601
|
}
|
|
6416
6602
|
return uniformsMap;
|
|
6417
6603
|
};
|
|
@@ -6419,6 +6605,7 @@ function ShaderComponent$c(props) {
|
|
|
6419
6605
|
...context,
|
|
6420
6606
|
shaderParentId: instanceId
|
|
6421
6607
|
}));
|
|
6608
|
+
const resolved = children(() => props.children);
|
|
6422
6609
|
let isRegistered = false;
|
|
6423
6610
|
onMount(() => {
|
|
6424
6611
|
const uniforms = getUniformsMap();
|
|
@@ -6436,7 +6623,7 @@ function ShaderComponent$c(props) {
|
|
|
6436
6623
|
renderOrder: props.renderOrder || 0,
|
|
6437
6624
|
transform: effectiveTransform()
|
|
6438
6625
|
};
|
|
6439
|
-
parentRegister(instanceId, componentDefinition$
|
|
6626
|
+
parentRegister(instanceId, componentDefinition$J.fragmentNode, parentId, metadata, uniforms, componentDefinition$J);
|
|
6440
6627
|
isRegistered = true;
|
|
6441
6628
|
} catch (error) {
|
|
6442
6629
|
console.error("Error registering shader node:", error);
|
|
@@ -6491,7 +6678,7 @@ function ShaderComponent$c(props) {
|
|
|
6491
6678
|
return childContextValue();
|
|
6492
6679
|
},
|
|
6493
6680
|
get children() {
|
|
6494
|
-
return
|
|
6681
|
+
return resolved();
|
|
6495
6682
|
}
|
|
6496
6683
|
});
|
|
6497
6684
|
}
|
|
@@ -6512,8 +6699,8 @@ const defaultProps$b = {
|
|
|
6512
6699
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6513
6700
|
};
|
|
6514
6701
|
try {
|
|
6515
|
-
if (componentDefinition$
|
|
6516
|
-
Object.entries(componentDefinition$
|
|
6702
|
+
if (componentDefinition$K && componentDefinition$K.props) {
|
|
6703
|
+
Object.entries(componentDefinition$K.props).forEach(([key, config]) => {
|
|
6517
6704
|
const propConfig = config;
|
|
6518
6705
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6519
6706
|
defaultProps$b[key] = propConfig.default;
|
|
@@ -6531,7 +6718,7 @@ function ShaderComponent$b(props) {
|
|
|
6531
6718
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6532
6719
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6533
6720
|
} = context;
|
|
6534
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6721
|
+
const instanceId = props.id || `${componentDefinition$K.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6535
6722
|
const effectiveProps = createMemo(() => {
|
|
6536
6723
|
let baseProps = {
|
|
6537
6724
|
...defaultProps$b
|
|
@@ -6550,7 +6737,7 @@ function ShaderComponent$b(props) {
|
|
|
6550
6737
|
let uniformsMap = null;
|
|
6551
6738
|
const getUniformsMap = () => {
|
|
6552
6739
|
if (!uniformsMap) {
|
|
6553
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6740
|
+
uniformsMap = createUniformsMap(componentDefinition$K, effectiveProps(), instanceId);
|
|
6554
6741
|
}
|
|
6555
6742
|
return uniformsMap;
|
|
6556
6743
|
};
|
|
@@ -6558,6 +6745,7 @@ function ShaderComponent$b(props) {
|
|
|
6558
6745
|
...context,
|
|
6559
6746
|
shaderParentId: instanceId
|
|
6560
6747
|
}));
|
|
6748
|
+
const resolved = children(() => props.children);
|
|
6561
6749
|
let isRegistered = false;
|
|
6562
6750
|
onMount(() => {
|
|
6563
6751
|
const uniforms = getUniformsMap();
|
|
@@ -6575,7 +6763,7 @@ function ShaderComponent$b(props) {
|
|
|
6575
6763
|
renderOrder: props.renderOrder || 0,
|
|
6576
6764
|
transform: effectiveTransform()
|
|
6577
6765
|
};
|
|
6578
|
-
parentRegister(instanceId, componentDefinition$
|
|
6766
|
+
parentRegister(instanceId, componentDefinition$K.fragmentNode, parentId, metadata, uniforms, componentDefinition$K);
|
|
6579
6767
|
isRegistered = true;
|
|
6580
6768
|
} catch (error) {
|
|
6581
6769
|
console.error("Error registering shader node:", error);
|
|
@@ -6630,7 +6818,7 @@ function ShaderComponent$b(props) {
|
|
|
6630
6818
|
return childContextValue();
|
|
6631
6819
|
},
|
|
6632
6820
|
get children() {
|
|
6633
|
-
return
|
|
6821
|
+
return resolved();
|
|
6634
6822
|
}
|
|
6635
6823
|
});
|
|
6636
6824
|
}
|
|
@@ -6651,8 +6839,8 @@ const defaultProps$a = {
|
|
|
6651
6839
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6652
6840
|
};
|
|
6653
6841
|
try {
|
|
6654
|
-
if (componentDefinition$
|
|
6655
|
-
Object.entries(componentDefinition$
|
|
6842
|
+
if (componentDefinition$L && componentDefinition$L.props) {
|
|
6843
|
+
Object.entries(componentDefinition$L.props).forEach(([key, config]) => {
|
|
6656
6844
|
const propConfig = config;
|
|
6657
6845
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6658
6846
|
defaultProps$a[key] = propConfig.default;
|
|
@@ -6670,7 +6858,7 @@ function ShaderComponent$a(props) {
|
|
|
6670
6858
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6671
6859
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6672
6860
|
} = context;
|
|
6673
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6861
|
+
const instanceId = props.id || `${componentDefinition$L.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6674
6862
|
const effectiveProps = createMemo(() => {
|
|
6675
6863
|
let baseProps = {
|
|
6676
6864
|
...defaultProps$a
|
|
@@ -6689,7 +6877,7 @@ function ShaderComponent$a(props) {
|
|
|
6689
6877
|
let uniformsMap = null;
|
|
6690
6878
|
const getUniformsMap = () => {
|
|
6691
6879
|
if (!uniformsMap) {
|
|
6692
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6880
|
+
uniformsMap = createUniformsMap(componentDefinition$L, effectiveProps(), instanceId);
|
|
6693
6881
|
}
|
|
6694
6882
|
return uniformsMap;
|
|
6695
6883
|
};
|
|
@@ -6697,6 +6885,7 @@ function ShaderComponent$a(props) {
|
|
|
6697
6885
|
...context,
|
|
6698
6886
|
shaderParentId: instanceId
|
|
6699
6887
|
}));
|
|
6888
|
+
const resolved = children(() => props.children);
|
|
6700
6889
|
let isRegistered = false;
|
|
6701
6890
|
onMount(() => {
|
|
6702
6891
|
const uniforms = getUniformsMap();
|
|
@@ -6714,7 +6903,7 @@ function ShaderComponent$a(props) {
|
|
|
6714
6903
|
renderOrder: props.renderOrder || 0,
|
|
6715
6904
|
transform: effectiveTransform()
|
|
6716
6905
|
};
|
|
6717
|
-
parentRegister(instanceId, componentDefinition$
|
|
6906
|
+
parentRegister(instanceId, componentDefinition$L.fragmentNode, parentId, metadata, uniforms, componentDefinition$L);
|
|
6718
6907
|
isRegistered = true;
|
|
6719
6908
|
} catch (error) {
|
|
6720
6909
|
console.error("Error registering shader node:", error);
|
|
@@ -6769,7 +6958,7 @@ function ShaderComponent$a(props) {
|
|
|
6769
6958
|
return childContextValue();
|
|
6770
6959
|
},
|
|
6771
6960
|
get children() {
|
|
6772
|
-
return
|
|
6961
|
+
return resolved();
|
|
6773
6962
|
}
|
|
6774
6963
|
});
|
|
6775
6964
|
}
|
|
@@ -6790,8 +6979,8 @@ const defaultProps$9 = {
|
|
|
6790
6979
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6791
6980
|
};
|
|
6792
6981
|
try {
|
|
6793
|
-
if (componentDefinition$
|
|
6794
|
-
Object.entries(componentDefinition$
|
|
6982
|
+
if (componentDefinition$M && componentDefinition$M.props) {
|
|
6983
|
+
Object.entries(componentDefinition$M.props).forEach(([key, config]) => {
|
|
6795
6984
|
const propConfig = config;
|
|
6796
6985
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6797
6986
|
defaultProps$9[key] = propConfig.default;
|
|
@@ -6809,7 +6998,7 @@ function ShaderComponent$9(props) {
|
|
|
6809
6998
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6810
6999
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6811
7000
|
} = context;
|
|
6812
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7001
|
+
const instanceId = props.id || `${componentDefinition$M.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6813
7002
|
const effectiveProps = createMemo(() => {
|
|
6814
7003
|
let baseProps = {
|
|
6815
7004
|
...defaultProps$9
|
|
@@ -6828,7 +7017,7 @@ function ShaderComponent$9(props) {
|
|
|
6828
7017
|
let uniformsMap = null;
|
|
6829
7018
|
const getUniformsMap = () => {
|
|
6830
7019
|
if (!uniformsMap) {
|
|
6831
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7020
|
+
uniformsMap = createUniformsMap(componentDefinition$M, effectiveProps(), instanceId);
|
|
6832
7021
|
}
|
|
6833
7022
|
return uniformsMap;
|
|
6834
7023
|
};
|
|
@@ -6836,6 +7025,7 @@ function ShaderComponent$9(props) {
|
|
|
6836
7025
|
...context,
|
|
6837
7026
|
shaderParentId: instanceId
|
|
6838
7027
|
}));
|
|
7028
|
+
const resolved = children(() => props.children);
|
|
6839
7029
|
let isRegistered = false;
|
|
6840
7030
|
onMount(() => {
|
|
6841
7031
|
const uniforms = getUniformsMap();
|
|
@@ -6853,7 +7043,7 @@ function ShaderComponent$9(props) {
|
|
|
6853
7043
|
renderOrder: props.renderOrder || 0,
|
|
6854
7044
|
transform: effectiveTransform()
|
|
6855
7045
|
};
|
|
6856
|
-
parentRegister(instanceId, componentDefinition$
|
|
7046
|
+
parentRegister(instanceId, componentDefinition$M.fragmentNode, parentId, metadata, uniforms, componentDefinition$M);
|
|
6857
7047
|
isRegistered = true;
|
|
6858
7048
|
} catch (error) {
|
|
6859
7049
|
console.error("Error registering shader node:", error);
|
|
@@ -6908,7 +7098,7 @@ function ShaderComponent$9(props) {
|
|
|
6908
7098
|
return childContextValue();
|
|
6909
7099
|
},
|
|
6910
7100
|
get children() {
|
|
6911
|
-
return
|
|
7101
|
+
return resolved();
|
|
6912
7102
|
}
|
|
6913
7103
|
});
|
|
6914
7104
|
}
|
|
@@ -6929,8 +7119,8 @@ const defaultProps$8 = {
|
|
|
6929
7119
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6930
7120
|
};
|
|
6931
7121
|
try {
|
|
6932
|
-
if (componentDefinition$
|
|
6933
|
-
Object.entries(componentDefinition$
|
|
7122
|
+
if (componentDefinition$N && componentDefinition$N.props) {
|
|
7123
|
+
Object.entries(componentDefinition$N.props).forEach(([key, config]) => {
|
|
6934
7124
|
const propConfig = config;
|
|
6935
7125
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6936
7126
|
defaultProps$8[key] = propConfig.default;
|
|
@@ -6948,7 +7138,7 @@ function ShaderComponent$8(props) {
|
|
|
6948
7138
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6949
7139
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6950
7140
|
} = context;
|
|
6951
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7141
|
+
const instanceId = props.id || `${componentDefinition$N.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6952
7142
|
const effectiveProps = createMemo(() => {
|
|
6953
7143
|
let baseProps = {
|
|
6954
7144
|
...defaultProps$8
|
|
@@ -6967,7 +7157,7 @@ function ShaderComponent$8(props) {
|
|
|
6967
7157
|
let uniformsMap = null;
|
|
6968
7158
|
const getUniformsMap = () => {
|
|
6969
7159
|
if (!uniformsMap) {
|
|
6970
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7160
|
+
uniformsMap = createUniformsMap(componentDefinition$N, effectiveProps(), instanceId);
|
|
6971
7161
|
}
|
|
6972
7162
|
return uniformsMap;
|
|
6973
7163
|
};
|
|
@@ -6975,6 +7165,7 @@ function ShaderComponent$8(props) {
|
|
|
6975
7165
|
...context,
|
|
6976
7166
|
shaderParentId: instanceId
|
|
6977
7167
|
}));
|
|
7168
|
+
const resolved = children(() => props.children);
|
|
6978
7169
|
let isRegistered = false;
|
|
6979
7170
|
onMount(() => {
|
|
6980
7171
|
const uniforms = getUniformsMap();
|
|
@@ -6992,7 +7183,7 @@ function ShaderComponent$8(props) {
|
|
|
6992
7183
|
renderOrder: props.renderOrder || 0,
|
|
6993
7184
|
transform: effectiveTransform()
|
|
6994
7185
|
};
|
|
6995
|
-
parentRegister(instanceId, componentDefinition$
|
|
7186
|
+
parentRegister(instanceId, componentDefinition$N.fragmentNode, parentId, metadata, uniforms, componentDefinition$N);
|
|
6996
7187
|
isRegistered = true;
|
|
6997
7188
|
} catch (error) {
|
|
6998
7189
|
console.error("Error registering shader node:", error);
|
|
@@ -7047,7 +7238,7 @@ function ShaderComponent$8(props) {
|
|
|
7047
7238
|
return childContextValue();
|
|
7048
7239
|
},
|
|
7049
7240
|
get children() {
|
|
7050
|
-
return
|
|
7241
|
+
return resolved();
|
|
7051
7242
|
}
|
|
7052
7243
|
});
|
|
7053
7244
|
}
|
|
@@ -7068,8 +7259,8 @@ const defaultProps$7 = {
|
|
|
7068
7259
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7069
7260
|
};
|
|
7070
7261
|
try {
|
|
7071
|
-
if (componentDefinition$
|
|
7072
|
-
Object.entries(componentDefinition$
|
|
7262
|
+
if (componentDefinition$O && componentDefinition$O.props) {
|
|
7263
|
+
Object.entries(componentDefinition$O.props).forEach(([key, config]) => {
|
|
7073
7264
|
const propConfig = config;
|
|
7074
7265
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7075
7266
|
defaultProps$7[key] = propConfig.default;
|
|
@@ -7087,7 +7278,7 @@ function ShaderComponent$7(props) {
|
|
|
7087
7278
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7088
7279
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7089
7280
|
} = context;
|
|
7090
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7281
|
+
const instanceId = props.id || `${componentDefinition$O.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7091
7282
|
const effectiveProps = createMemo(() => {
|
|
7092
7283
|
let baseProps = {
|
|
7093
7284
|
...defaultProps$7
|
|
@@ -7106,7 +7297,7 @@ function ShaderComponent$7(props) {
|
|
|
7106
7297
|
let uniformsMap = null;
|
|
7107
7298
|
const getUniformsMap = () => {
|
|
7108
7299
|
if (!uniformsMap) {
|
|
7109
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7300
|
+
uniformsMap = createUniformsMap(componentDefinition$O, effectiveProps(), instanceId);
|
|
7110
7301
|
}
|
|
7111
7302
|
return uniformsMap;
|
|
7112
7303
|
};
|
|
@@ -7114,6 +7305,7 @@ function ShaderComponent$7(props) {
|
|
|
7114
7305
|
...context,
|
|
7115
7306
|
shaderParentId: instanceId
|
|
7116
7307
|
}));
|
|
7308
|
+
const resolved = children(() => props.children);
|
|
7117
7309
|
let isRegistered = false;
|
|
7118
7310
|
onMount(() => {
|
|
7119
7311
|
const uniforms = getUniformsMap();
|
|
@@ -7131,7 +7323,7 @@ function ShaderComponent$7(props) {
|
|
|
7131
7323
|
renderOrder: props.renderOrder || 0,
|
|
7132
7324
|
transform: effectiveTransform()
|
|
7133
7325
|
};
|
|
7134
|
-
parentRegister(instanceId, componentDefinition$
|
|
7326
|
+
parentRegister(instanceId, componentDefinition$O.fragmentNode, parentId, metadata, uniforms, componentDefinition$O);
|
|
7135
7327
|
isRegistered = true;
|
|
7136
7328
|
} catch (error) {
|
|
7137
7329
|
console.error("Error registering shader node:", error);
|
|
@@ -7186,7 +7378,7 @@ function ShaderComponent$7(props) {
|
|
|
7186
7378
|
return childContextValue();
|
|
7187
7379
|
},
|
|
7188
7380
|
get children() {
|
|
7189
|
-
return
|
|
7381
|
+
return resolved();
|
|
7190
7382
|
}
|
|
7191
7383
|
});
|
|
7192
7384
|
}
|
|
@@ -7207,8 +7399,8 @@ const defaultProps$6 = {
|
|
|
7207
7399
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7208
7400
|
};
|
|
7209
7401
|
try {
|
|
7210
|
-
if (componentDefinition$
|
|
7211
|
-
Object.entries(componentDefinition$
|
|
7402
|
+
if (componentDefinition$P && componentDefinition$P.props) {
|
|
7403
|
+
Object.entries(componentDefinition$P.props).forEach(([key, config]) => {
|
|
7212
7404
|
const propConfig = config;
|
|
7213
7405
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7214
7406
|
defaultProps$6[key] = propConfig.default;
|
|
@@ -7226,7 +7418,7 @@ function ShaderComponent$6(props) {
|
|
|
7226
7418
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7227
7419
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7228
7420
|
} = context;
|
|
7229
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7421
|
+
const instanceId = props.id || `${componentDefinition$P.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7230
7422
|
const effectiveProps = createMemo(() => {
|
|
7231
7423
|
let baseProps = {
|
|
7232
7424
|
...defaultProps$6
|
|
@@ -7245,7 +7437,7 @@ function ShaderComponent$6(props) {
|
|
|
7245
7437
|
let uniformsMap = null;
|
|
7246
7438
|
const getUniformsMap = () => {
|
|
7247
7439
|
if (!uniformsMap) {
|
|
7248
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7440
|
+
uniformsMap = createUniformsMap(componentDefinition$P, effectiveProps(), instanceId);
|
|
7249
7441
|
}
|
|
7250
7442
|
return uniformsMap;
|
|
7251
7443
|
};
|
|
@@ -7253,6 +7445,7 @@ function ShaderComponent$6(props) {
|
|
|
7253
7445
|
...context,
|
|
7254
7446
|
shaderParentId: instanceId
|
|
7255
7447
|
}));
|
|
7448
|
+
const resolved = children(() => props.children);
|
|
7256
7449
|
let isRegistered = false;
|
|
7257
7450
|
onMount(() => {
|
|
7258
7451
|
const uniforms = getUniformsMap();
|
|
@@ -7270,7 +7463,7 @@ function ShaderComponent$6(props) {
|
|
|
7270
7463
|
renderOrder: props.renderOrder || 0,
|
|
7271
7464
|
transform: effectiveTransform()
|
|
7272
7465
|
};
|
|
7273
|
-
parentRegister(instanceId, componentDefinition$
|
|
7466
|
+
parentRegister(instanceId, componentDefinition$P.fragmentNode, parentId, metadata, uniforms, componentDefinition$P);
|
|
7274
7467
|
isRegistered = true;
|
|
7275
7468
|
} catch (error) {
|
|
7276
7469
|
console.error("Error registering shader node:", error);
|
|
@@ -7325,7 +7518,7 @@ function ShaderComponent$6(props) {
|
|
|
7325
7518
|
return childContextValue();
|
|
7326
7519
|
},
|
|
7327
7520
|
get children() {
|
|
7328
|
-
return
|
|
7521
|
+
return resolved();
|
|
7329
7522
|
}
|
|
7330
7523
|
});
|
|
7331
7524
|
}
|
|
@@ -7346,8 +7539,8 @@ const defaultProps$5 = {
|
|
|
7346
7539
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7347
7540
|
};
|
|
7348
7541
|
try {
|
|
7349
|
-
if (componentDefinition$
|
|
7350
|
-
Object.entries(componentDefinition$
|
|
7542
|
+
if (componentDefinition$Q && componentDefinition$Q.props) {
|
|
7543
|
+
Object.entries(componentDefinition$Q.props).forEach(([key, config]) => {
|
|
7351
7544
|
const propConfig = config;
|
|
7352
7545
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7353
7546
|
defaultProps$5[key] = propConfig.default;
|
|
@@ -7365,7 +7558,7 @@ function ShaderComponent$5(props) {
|
|
|
7365
7558
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7366
7559
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7367
7560
|
} = context;
|
|
7368
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7561
|
+
const instanceId = props.id || `${componentDefinition$Q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7369
7562
|
const effectiveProps = createMemo(() => {
|
|
7370
7563
|
let baseProps = {
|
|
7371
7564
|
...defaultProps$5
|
|
@@ -7384,7 +7577,7 @@ function ShaderComponent$5(props) {
|
|
|
7384
7577
|
let uniformsMap = null;
|
|
7385
7578
|
const getUniformsMap = () => {
|
|
7386
7579
|
if (!uniformsMap) {
|
|
7387
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7580
|
+
uniformsMap = createUniformsMap(componentDefinition$Q, effectiveProps(), instanceId);
|
|
7388
7581
|
}
|
|
7389
7582
|
return uniformsMap;
|
|
7390
7583
|
};
|
|
@@ -7392,6 +7585,7 @@ function ShaderComponent$5(props) {
|
|
|
7392
7585
|
...context,
|
|
7393
7586
|
shaderParentId: instanceId
|
|
7394
7587
|
}));
|
|
7588
|
+
const resolved = children(() => props.children);
|
|
7395
7589
|
let isRegistered = false;
|
|
7396
7590
|
onMount(() => {
|
|
7397
7591
|
const uniforms = getUniformsMap();
|
|
@@ -7409,7 +7603,7 @@ function ShaderComponent$5(props) {
|
|
|
7409
7603
|
renderOrder: props.renderOrder || 0,
|
|
7410
7604
|
transform: effectiveTransform()
|
|
7411
7605
|
};
|
|
7412
|
-
parentRegister(instanceId, componentDefinition$
|
|
7606
|
+
parentRegister(instanceId, componentDefinition$Q.fragmentNode, parentId, metadata, uniforms, componentDefinition$Q);
|
|
7413
7607
|
isRegistered = true;
|
|
7414
7608
|
} catch (error) {
|
|
7415
7609
|
console.error("Error registering shader node:", error);
|
|
@@ -7464,7 +7658,7 @@ function ShaderComponent$5(props) {
|
|
|
7464
7658
|
return childContextValue();
|
|
7465
7659
|
},
|
|
7466
7660
|
get children() {
|
|
7467
|
-
return
|
|
7661
|
+
return resolved();
|
|
7468
7662
|
}
|
|
7469
7663
|
});
|
|
7470
7664
|
}
|
|
@@ -7485,8 +7679,8 @@ const defaultProps$4 = {
|
|
|
7485
7679
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7486
7680
|
};
|
|
7487
7681
|
try {
|
|
7488
|
-
if (componentDefinition$
|
|
7489
|
-
Object.entries(componentDefinition$
|
|
7682
|
+
if (componentDefinition$R && componentDefinition$R.props) {
|
|
7683
|
+
Object.entries(componentDefinition$R.props).forEach(([key, config]) => {
|
|
7490
7684
|
const propConfig = config;
|
|
7491
7685
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7492
7686
|
defaultProps$4[key] = propConfig.default;
|
|
@@ -7504,7 +7698,7 @@ function ShaderComponent$4(props) {
|
|
|
7504
7698
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7505
7699
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7506
7700
|
} = context;
|
|
7507
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7701
|
+
const instanceId = props.id || `${componentDefinition$R.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7508
7702
|
const effectiveProps = createMemo(() => {
|
|
7509
7703
|
let baseProps = {
|
|
7510
7704
|
...defaultProps$4
|
|
@@ -7523,7 +7717,7 @@ function ShaderComponent$4(props) {
|
|
|
7523
7717
|
let uniformsMap = null;
|
|
7524
7718
|
const getUniformsMap = () => {
|
|
7525
7719
|
if (!uniformsMap) {
|
|
7526
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7720
|
+
uniformsMap = createUniformsMap(componentDefinition$R, effectiveProps(), instanceId);
|
|
7527
7721
|
}
|
|
7528
7722
|
return uniformsMap;
|
|
7529
7723
|
};
|
|
@@ -7531,6 +7725,7 @@ function ShaderComponent$4(props) {
|
|
|
7531
7725
|
...context,
|
|
7532
7726
|
shaderParentId: instanceId
|
|
7533
7727
|
}));
|
|
7728
|
+
const resolved = children(() => props.children);
|
|
7534
7729
|
let isRegistered = false;
|
|
7535
7730
|
onMount(() => {
|
|
7536
7731
|
const uniforms = getUniformsMap();
|
|
@@ -7548,7 +7743,7 @@ function ShaderComponent$4(props) {
|
|
|
7548
7743
|
renderOrder: props.renderOrder || 0,
|
|
7549
7744
|
transform: effectiveTransform()
|
|
7550
7745
|
};
|
|
7551
|
-
parentRegister(instanceId, componentDefinition$
|
|
7746
|
+
parentRegister(instanceId, componentDefinition$R.fragmentNode, parentId, metadata, uniforms, componentDefinition$R);
|
|
7552
7747
|
isRegistered = true;
|
|
7553
7748
|
} catch (error) {
|
|
7554
7749
|
console.error("Error registering shader node:", error);
|
|
@@ -7603,7 +7798,7 @@ function ShaderComponent$4(props) {
|
|
|
7603
7798
|
return childContextValue();
|
|
7604
7799
|
},
|
|
7605
7800
|
get children() {
|
|
7606
|
-
return
|
|
7801
|
+
return resolved();
|
|
7607
7802
|
}
|
|
7608
7803
|
});
|
|
7609
7804
|
}
|
|
@@ -7624,8 +7819,8 @@ const defaultProps$3 = {
|
|
|
7624
7819
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7625
7820
|
};
|
|
7626
7821
|
try {
|
|
7627
|
-
if (componentDefinition$
|
|
7628
|
-
Object.entries(componentDefinition$
|
|
7822
|
+
if (componentDefinition$S && componentDefinition$S.props) {
|
|
7823
|
+
Object.entries(componentDefinition$S.props).forEach(([key, config]) => {
|
|
7629
7824
|
const propConfig = config;
|
|
7630
7825
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7631
7826
|
defaultProps$3[key] = propConfig.default;
|
|
@@ -7643,7 +7838,7 @@ function ShaderComponent$3(props) {
|
|
|
7643
7838
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7644
7839
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7645
7840
|
} = context;
|
|
7646
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7841
|
+
const instanceId = props.id || `${componentDefinition$S.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7647
7842
|
const effectiveProps = createMemo(() => {
|
|
7648
7843
|
let baseProps = {
|
|
7649
7844
|
...defaultProps$3
|
|
@@ -7662,7 +7857,7 @@ function ShaderComponent$3(props) {
|
|
|
7662
7857
|
let uniformsMap = null;
|
|
7663
7858
|
const getUniformsMap = () => {
|
|
7664
7859
|
if (!uniformsMap) {
|
|
7665
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7860
|
+
uniformsMap = createUniformsMap(componentDefinition$S, effectiveProps(), instanceId);
|
|
7666
7861
|
}
|
|
7667
7862
|
return uniformsMap;
|
|
7668
7863
|
};
|
|
@@ -7670,6 +7865,7 @@ function ShaderComponent$3(props) {
|
|
|
7670
7865
|
...context,
|
|
7671
7866
|
shaderParentId: instanceId
|
|
7672
7867
|
}));
|
|
7868
|
+
const resolved = children(() => props.children);
|
|
7673
7869
|
let isRegistered = false;
|
|
7674
7870
|
onMount(() => {
|
|
7675
7871
|
const uniforms = getUniformsMap();
|
|
@@ -7687,7 +7883,7 @@ function ShaderComponent$3(props) {
|
|
|
7687
7883
|
renderOrder: props.renderOrder || 0,
|
|
7688
7884
|
transform: effectiveTransform()
|
|
7689
7885
|
};
|
|
7690
|
-
parentRegister(instanceId, componentDefinition$
|
|
7886
|
+
parentRegister(instanceId, componentDefinition$S.fragmentNode, parentId, metadata, uniforms, componentDefinition$S);
|
|
7691
7887
|
isRegistered = true;
|
|
7692
7888
|
} catch (error) {
|
|
7693
7889
|
console.error("Error registering shader node:", error);
|
|
@@ -7742,7 +7938,7 @@ function ShaderComponent$3(props) {
|
|
|
7742
7938
|
return childContextValue();
|
|
7743
7939
|
},
|
|
7744
7940
|
get children() {
|
|
7745
|
-
return
|
|
7941
|
+
return resolved();
|
|
7746
7942
|
}
|
|
7747
7943
|
});
|
|
7748
7944
|
}
|
|
@@ -7763,8 +7959,8 @@ const defaultProps$2 = {
|
|
|
7763
7959
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7764
7960
|
};
|
|
7765
7961
|
try {
|
|
7766
|
-
if (componentDefinition$
|
|
7767
|
-
Object.entries(componentDefinition$
|
|
7962
|
+
if (componentDefinition$T && componentDefinition$T.props) {
|
|
7963
|
+
Object.entries(componentDefinition$T.props).forEach(([key, config]) => {
|
|
7768
7964
|
const propConfig = config;
|
|
7769
7965
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7770
7966
|
defaultProps$2[key] = propConfig.default;
|
|
@@ -7782,7 +7978,7 @@ function ShaderComponent$2(props) {
|
|
|
7782
7978
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7783
7979
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7784
7980
|
} = context;
|
|
7785
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7981
|
+
const instanceId = props.id || `${componentDefinition$T.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7786
7982
|
const effectiveProps = createMemo(() => {
|
|
7787
7983
|
let baseProps = {
|
|
7788
7984
|
...defaultProps$2
|
|
@@ -7801,7 +7997,7 @@ function ShaderComponent$2(props) {
|
|
|
7801
7997
|
let uniformsMap = null;
|
|
7802
7998
|
const getUniformsMap = () => {
|
|
7803
7999
|
if (!uniformsMap) {
|
|
7804
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8000
|
+
uniformsMap = createUniformsMap(componentDefinition$T, effectiveProps(), instanceId);
|
|
7805
8001
|
}
|
|
7806
8002
|
return uniformsMap;
|
|
7807
8003
|
};
|
|
@@ -7809,6 +8005,7 @@ function ShaderComponent$2(props) {
|
|
|
7809
8005
|
...context,
|
|
7810
8006
|
shaderParentId: instanceId
|
|
7811
8007
|
}));
|
|
8008
|
+
const resolved = children(() => props.children);
|
|
7812
8009
|
let isRegistered = false;
|
|
7813
8010
|
onMount(() => {
|
|
7814
8011
|
const uniforms = getUniformsMap();
|
|
@@ -7826,7 +8023,7 @@ function ShaderComponent$2(props) {
|
|
|
7826
8023
|
renderOrder: props.renderOrder || 0,
|
|
7827
8024
|
transform: effectiveTransform()
|
|
7828
8025
|
};
|
|
7829
|
-
parentRegister(instanceId, componentDefinition$
|
|
8026
|
+
parentRegister(instanceId, componentDefinition$T.fragmentNode, parentId, metadata, uniforms, componentDefinition$T);
|
|
7830
8027
|
isRegistered = true;
|
|
7831
8028
|
} catch (error) {
|
|
7832
8029
|
console.error("Error registering shader node:", error);
|
|
@@ -7881,7 +8078,7 @@ function ShaderComponent$2(props) {
|
|
|
7881
8078
|
return childContextValue();
|
|
7882
8079
|
},
|
|
7883
8080
|
get children() {
|
|
7884
|
-
return
|
|
8081
|
+
return resolved();
|
|
7885
8082
|
}
|
|
7886
8083
|
});
|
|
7887
8084
|
}
|
|
@@ -7902,8 +8099,8 @@ const defaultProps$1 = {
|
|
|
7902
8099
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7903
8100
|
};
|
|
7904
8101
|
try {
|
|
7905
|
-
if (componentDefinition$
|
|
7906
|
-
Object.entries(componentDefinition$
|
|
8102
|
+
if (componentDefinition$U && componentDefinition$U.props) {
|
|
8103
|
+
Object.entries(componentDefinition$U.props).forEach(([key, config]) => {
|
|
7907
8104
|
const propConfig = config;
|
|
7908
8105
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7909
8106
|
defaultProps$1[key] = propConfig.default;
|
|
@@ -7921,7 +8118,7 @@ function ShaderComponent$1(props) {
|
|
|
7921
8118
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7922
8119
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7923
8120
|
} = context;
|
|
7924
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8121
|
+
const instanceId = props.id || `${componentDefinition$U.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7925
8122
|
const effectiveProps = createMemo(() => {
|
|
7926
8123
|
let baseProps = {
|
|
7927
8124
|
...defaultProps$1
|
|
@@ -7940,7 +8137,7 @@ function ShaderComponent$1(props) {
|
|
|
7940
8137
|
let uniformsMap = null;
|
|
7941
8138
|
const getUniformsMap = () => {
|
|
7942
8139
|
if (!uniformsMap) {
|
|
7943
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8140
|
+
uniformsMap = createUniformsMap(componentDefinition$U, effectiveProps(), instanceId);
|
|
7944
8141
|
}
|
|
7945
8142
|
return uniformsMap;
|
|
7946
8143
|
};
|
|
@@ -7948,6 +8145,7 @@ function ShaderComponent$1(props) {
|
|
|
7948
8145
|
...context,
|
|
7949
8146
|
shaderParentId: instanceId
|
|
7950
8147
|
}));
|
|
8148
|
+
const resolved = children(() => props.children);
|
|
7951
8149
|
let isRegistered = false;
|
|
7952
8150
|
onMount(() => {
|
|
7953
8151
|
const uniforms = getUniformsMap();
|
|
@@ -7965,7 +8163,7 @@ function ShaderComponent$1(props) {
|
|
|
7965
8163
|
renderOrder: props.renderOrder || 0,
|
|
7966
8164
|
transform: effectiveTransform()
|
|
7967
8165
|
};
|
|
7968
|
-
parentRegister(instanceId, componentDefinition$
|
|
8166
|
+
parentRegister(instanceId, componentDefinition$U.fragmentNode, parentId, metadata, uniforms, componentDefinition$U);
|
|
7969
8167
|
isRegistered = true;
|
|
7970
8168
|
} catch (error) {
|
|
7971
8169
|
console.error("Error registering shader node:", error);
|
|
@@ -8020,7 +8218,7 @@ function ShaderComponent$1(props) {
|
|
|
8020
8218
|
return childContextValue();
|
|
8021
8219
|
},
|
|
8022
8220
|
get children() {
|
|
8023
|
-
return
|
|
8221
|
+
return resolved();
|
|
8024
8222
|
}
|
|
8025
8223
|
});
|
|
8026
8224
|
}
|
|
@@ -8041,8 +8239,8 @@ const defaultProps = {
|
|
|
8041
8239
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8042
8240
|
};
|
|
8043
8241
|
try {
|
|
8044
|
-
if (componentDefinition$
|
|
8045
|
-
Object.entries(componentDefinition$
|
|
8242
|
+
if (componentDefinition$V && componentDefinition$V.props) {
|
|
8243
|
+
Object.entries(componentDefinition$V.props).forEach(([key, config]) => {
|
|
8046
8244
|
const propConfig = config;
|
|
8047
8245
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8048
8246
|
defaultProps[key] = propConfig.default;
|
|
@@ -8060,7 +8258,7 @@ function ShaderComponent(props) {
|
|
|
8060
8258
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8061
8259
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8062
8260
|
} = context;
|
|
8063
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8261
|
+
const instanceId = props.id || `${componentDefinition$V.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8064
8262
|
const effectiveProps = createMemo(() => {
|
|
8065
8263
|
let baseProps = {
|
|
8066
8264
|
...defaultProps
|
|
@@ -8079,7 +8277,7 @@ function ShaderComponent(props) {
|
|
|
8079
8277
|
let uniformsMap = null;
|
|
8080
8278
|
const getUniformsMap = () => {
|
|
8081
8279
|
if (!uniformsMap) {
|
|
8082
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8280
|
+
uniformsMap = createUniformsMap(componentDefinition$V, effectiveProps(), instanceId);
|
|
8083
8281
|
}
|
|
8084
8282
|
return uniformsMap;
|
|
8085
8283
|
};
|
|
@@ -8087,6 +8285,7 @@ function ShaderComponent(props) {
|
|
|
8087
8285
|
...context,
|
|
8088
8286
|
shaderParentId: instanceId
|
|
8089
8287
|
}));
|
|
8288
|
+
const resolved = children(() => props.children);
|
|
8090
8289
|
let isRegistered = false;
|
|
8091
8290
|
onMount(() => {
|
|
8092
8291
|
const uniforms = getUniformsMap();
|
|
@@ -8104,7 +8303,7 @@ function ShaderComponent(props) {
|
|
|
8104
8303
|
renderOrder: props.renderOrder || 0,
|
|
8105
8304
|
transform: effectiveTransform()
|
|
8106
8305
|
};
|
|
8107
|
-
parentRegister(instanceId, componentDefinition$
|
|
8306
|
+
parentRegister(instanceId, componentDefinition$V.fragmentNode, parentId, metadata, uniforms, componentDefinition$V);
|
|
8108
8307
|
isRegistered = true;
|
|
8109
8308
|
} catch (error) {
|
|
8110
8309
|
console.error("Error registering shader node:", error);
|
|
@@ -8159,45 +8358,46 @@ function ShaderComponent(props) {
|
|
|
8159
8358
|
return childContextValue();
|
|
8160
8359
|
},
|
|
8161
8360
|
get children() {
|
|
8162
|
-
return
|
|
8361
|
+
return resolved();
|
|
8163
8362
|
}
|
|
8164
8363
|
});
|
|
8165
8364
|
}
|
|
8166
8365
|
export {
|
|
8167
|
-
ShaderComponent$
|
|
8168
|
-
ShaderComponent$
|
|
8169
|
-
ShaderComponent$
|
|
8170
|
-
ShaderComponent$
|
|
8171
|
-
ShaderComponent$
|
|
8172
|
-
ShaderComponent$
|
|
8173
|
-
ShaderComponent$
|
|
8174
|
-
ShaderComponent$
|
|
8175
|
-
ShaderComponent$
|
|
8176
|
-
ShaderComponent$
|
|
8177
|
-
ShaderComponent$
|
|
8178
|
-
ShaderComponent$
|
|
8179
|
-
ShaderComponent$
|
|
8180
|
-
ShaderComponent$
|
|
8181
|
-
ShaderComponent$
|
|
8182
|
-
ShaderComponent$
|
|
8183
|
-
ShaderComponent$
|
|
8184
|
-
ShaderComponent$
|
|
8185
|
-
ShaderComponent$
|
|
8186
|
-
ShaderComponent$
|
|
8187
|
-
ShaderComponent$
|
|
8188
|
-
ShaderComponent$
|
|
8189
|
-
ShaderComponent$
|
|
8190
|
-
ShaderComponent$
|
|
8191
|
-
ShaderComponent$
|
|
8192
|
-
ShaderComponent$
|
|
8193
|
-
ShaderComponent$
|
|
8194
|
-
ShaderComponent$
|
|
8195
|
-
ShaderComponent$
|
|
8196
|
-
ShaderComponent$
|
|
8197
|
-
ShaderComponent$
|
|
8198
|
-
ShaderComponent$
|
|
8199
|
-
ShaderComponent$
|
|
8200
|
-
ShaderComponent$
|
|
8366
|
+
ShaderComponent$V as AngularBlur,
|
|
8367
|
+
ShaderComponent$U as Ascii,
|
|
8368
|
+
ShaderComponent$T as Beam,
|
|
8369
|
+
ShaderComponent$S as Blob,
|
|
8370
|
+
ShaderComponent$R as Blur,
|
|
8371
|
+
ShaderComponent$Q as BrightnessContrast,
|
|
8372
|
+
ShaderComponent$P as Bulge,
|
|
8373
|
+
ShaderComponent$O as CRTScreen,
|
|
8374
|
+
ShaderComponent$N as ChannelBlur,
|
|
8375
|
+
ShaderComponent$M as Checkerboard,
|
|
8376
|
+
ShaderComponent$L as ChromaFlow,
|
|
8377
|
+
ShaderComponent$K as ChromaticAberration,
|
|
8378
|
+
ShaderComponent$J as Circle,
|
|
8379
|
+
ShaderComponent$I as CursorTrail,
|
|
8380
|
+
ShaderComponent$H as DiffuseBlur,
|
|
8381
|
+
ShaderComponent$G as Dither,
|
|
8382
|
+
ShaderComponent$F as DotGrid,
|
|
8383
|
+
ShaderComponent$E as Duotone,
|
|
8384
|
+
ShaderComponent$D as FilmGrain,
|
|
8385
|
+
ShaderComponent$C as FloatingParticles,
|
|
8386
|
+
ShaderComponent$B as GlassTiles,
|
|
8387
|
+
ShaderComponent$A as Glow,
|
|
8388
|
+
ShaderComponent$z as Godrays,
|
|
8389
|
+
ShaderComponent$y as Grayscale,
|
|
8390
|
+
ShaderComponent$x as Grid,
|
|
8391
|
+
ShaderComponent$w as GridDistortion,
|
|
8392
|
+
ShaderComponent$v as Group,
|
|
8393
|
+
ShaderComponent$u as Halftone,
|
|
8394
|
+
ShaderComponent$t as HueShift,
|
|
8395
|
+
ShaderComponent$s as ImageTexture,
|
|
8396
|
+
ShaderComponent$r as Invert,
|
|
8397
|
+
ShaderComponent$q as LinearBlur,
|
|
8398
|
+
ShaderComponent$p as LinearGradient,
|
|
8399
|
+
ShaderComponent$o as Liquify,
|
|
8400
|
+
ShaderComponent$n as Perspective,
|
|
8201
8401
|
ShaderComponent$m as Pixelate,
|
|
8202
8402
|
ShaderComponent$l as PolarCoordinates,
|
|
8203
8403
|
ShaderComponent$k as Posterize,
|