shaders 2.2.34 → 2.2.36
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/Sharpness-cw57bW0s.js +41 -0
- package/dist/core/index.js +55 -51
- 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.d.ts +14 -0
- package/dist/core/shaders/Sharpness/index.d.ts.map +1 -0
- package/dist/core/shaders/Sharpness/index.js +2 -0
- 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/components/Sharpness.d.ts +31 -0
- package/dist/react/components/Sharpness.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-CwTRhENe.js → generatePresetCode-DtpUpaeM.js} +24 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +682 -404
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +242 -0
- package/dist/solid/components/Perspective.d.ts +28 -0
- package/dist/solid/components/Perspective.d.ts.map +1 -0
- package/dist/solid/components/Sharpness.d.ts +28 -0
- package/dist/solid/components/Sharpness.d.ts.map +1 -0
- package/dist/solid/index.d.ts +2 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +626 -344
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +24 -0
- package/dist/svelte/components/Perspective.svelte.d.ts +19 -0
- package/dist/svelte/components/Sharpness.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-Qh7jlXV3.js → generatePresetCode-Yu_cJh3q.js} +24 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +268 -46
- 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/components/Sharpness.vue.d.ts +57 -0
- package/dist/vue/components/Sharpness.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-Bf-TQPvI.js → generatePresetCode-DnK2X66E.js} +24 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +410 -162
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +17 -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/{SimplexNoise-CAtknQS7.js → SimplexNoise-CxF7Tl5O.js} +0 -0
- /package/dist/core/{SineWave-CHtV6kB4.js → SineWave-SIEiE1O3.js} +0 -0
- /package/dist/core/{SolidColor-CSSquNVW.js → SolidColor-zYROg_aE.js} +0 -0
- /package/dist/core/{Spherize-BJby0xSU.js → Spherize-tsKMpSaS.js} +0 -0
- /package/dist/core/{Spiral-CpB3-tFZ.js → Spiral-PsIc1BI9.js} +0 -0
- /package/dist/core/{Strands-C2KWiJc8.js → Strands-xsbd_3Bt.js} +0 -0
- /package/dist/core/{Stretch-Chpzutao.js → Stretch-BhHjbcqd.js} +0 -0
- /package/dist/core/{Swirl-qbMypv_R.js → Swirl-CV1prOHF.js} +0 -0
- /package/dist/core/{TiltShift-D0qyWoe3.js → TiltShift-BYQjUHpn.js} +0 -0
- /package/dist/core/{Tritone-DzeueG1F.js → Tritone-CJW8YTyB.js} +0 -0
- /package/dist/core/{Twirl-B2Ic0WGq.js → Twirl-5k_XPd51.js} +0 -0
- /package/dist/core/{Vibrance-BAGXelBi.js → Vibrance-c25pkbWj.js} +0 -0
- /package/dist/core/{WaveDistortion-DYFl_8vA.js → WaveDistortion-BRgbfqt3.js} +0 -0
- /package/dist/core/{ZoomBlur-CXpRNRJA.js → ZoomBlur-DEozXA8U.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -37,28 +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/
|
|
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";
|
|
62
64
|
import { generatePresetCode } from "./utils/generatePresetCode.js";
|
|
63
65
|
var _tmpl$ = /* @__PURE__ */ template(`<div><canvas data-renderer=shaders style=width:100%;height:100%;display:block>`);
|
|
64
66
|
const ShaderContext = createContext();
|
|
@@ -239,7 +241,7 @@ function useShaderContext() {
|
|
|
239
241
|
}
|
|
240
242
|
return ctx;
|
|
241
243
|
}
|
|
242
|
-
const DEFAULT_TRANSFORM$
|
|
244
|
+
const DEFAULT_TRANSFORM$V = {
|
|
243
245
|
offsetX: 0,
|
|
244
246
|
offsetY: 0,
|
|
245
247
|
rotation: 0,
|
|
@@ -248,7 +250,7 @@ const DEFAULT_TRANSFORM$T = {
|
|
|
248
250
|
anchorY: 0.5,
|
|
249
251
|
edges: "transparent"
|
|
250
252
|
};
|
|
251
|
-
const defaultProps$
|
|
253
|
+
const defaultProps$V = {
|
|
252
254
|
blendMode: "normal",
|
|
253
255
|
renderOrder: 0,
|
|
254
256
|
visible: true
|
|
@@ -258,6 +260,284 @@ const defaultProps$T = {
|
|
|
258
260
|
try {
|
|
259
261
|
if (componentDefinition && componentDefinition.props) {
|
|
260
262
|
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
263
|
+
const propConfig = config;
|
|
264
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
265
|
+
defaultProps$V[key] = propConfig.default;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
} catch (e) {
|
|
270
|
+
console.warn("Error extracting default props:", e);
|
|
271
|
+
}
|
|
272
|
+
function ShaderComponent$V(props) {
|
|
273
|
+
const context = useShaderContext();
|
|
274
|
+
const {
|
|
275
|
+
shaderParentId: parentId,
|
|
276
|
+
shaderNodeRegister: parentRegister,
|
|
277
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
278
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
279
|
+
} = context;
|
|
280
|
+
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
281
|
+
const effectiveProps = createMemo(() => {
|
|
282
|
+
let baseProps = {
|
|
283
|
+
...defaultProps$V
|
|
284
|
+
};
|
|
285
|
+
for (const [key, value] of Object.entries(props)) {
|
|
286
|
+
if (key !== "children" && value !== void 0) {
|
|
287
|
+
baseProps[key] = value;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return baseProps;
|
|
291
|
+
});
|
|
292
|
+
const effectiveTransform = createMemo(() => ({
|
|
293
|
+
...DEFAULT_TRANSFORM$V,
|
|
294
|
+
...props.transform
|
|
295
|
+
}));
|
|
296
|
+
let uniformsMap = null;
|
|
297
|
+
const getUniformsMap = () => {
|
|
298
|
+
if (!uniformsMap) {
|
|
299
|
+
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
300
|
+
}
|
|
301
|
+
return uniformsMap;
|
|
302
|
+
};
|
|
303
|
+
const childContextValue = createMemo(() => ({
|
|
304
|
+
...context,
|
|
305
|
+
shaderParentId: instanceId
|
|
306
|
+
}));
|
|
307
|
+
let isRegistered = false;
|
|
308
|
+
onMount(() => {
|
|
309
|
+
const uniforms = getUniformsMap();
|
|
310
|
+
if (!uniforms) return;
|
|
311
|
+
try {
|
|
312
|
+
const metadata = {
|
|
313
|
+
blendMode: props.blendMode || "normal",
|
|
314
|
+
opacity: props.opacity,
|
|
315
|
+
visible: props.visible === false ? false : true,
|
|
316
|
+
id: props.id,
|
|
317
|
+
mask: props.maskSource ? {
|
|
318
|
+
source: props.maskSource,
|
|
319
|
+
type: props.maskType || "alpha"
|
|
320
|
+
} : void 0,
|
|
321
|
+
renderOrder: props.renderOrder || 0,
|
|
322
|
+
transform: effectiveTransform()
|
|
323
|
+
};
|
|
324
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
325
|
+
isRegistered = true;
|
|
326
|
+
} catch (error) {
|
|
327
|
+
console.error("Error registering shader node:", error);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
onCleanup(() => {
|
|
331
|
+
isRegistered = false;
|
|
332
|
+
parentRegister(instanceId, null, null, null, null);
|
|
333
|
+
});
|
|
334
|
+
createEffect(() => {
|
|
335
|
+
if (!isRegistered) return;
|
|
336
|
+
const uniforms = getUniformsMap();
|
|
337
|
+
if (!uniforms) return;
|
|
338
|
+
try {
|
|
339
|
+
const props_snapshot = effectiveProps();
|
|
340
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
341
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
342
|
+
const {
|
|
343
|
+
uniform
|
|
344
|
+
} = uniformData;
|
|
345
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
346
|
+
const newValue = props_snapshot[propName];
|
|
347
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
} catch (error) {
|
|
351
|
+
console.error("Error updating uniforms:", error);
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
createEffect(() => {
|
|
355
|
+
if (!isRegistered) return;
|
|
356
|
+
try {
|
|
357
|
+
const metadata = {
|
|
358
|
+
blendMode: props.blendMode || "normal",
|
|
359
|
+
opacity: props.opacity,
|
|
360
|
+
visible: props.visible === false ? false : true,
|
|
361
|
+
id: props.id,
|
|
362
|
+
mask: props.maskSource ? {
|
|
363
|
+
source: props.maskSource,
|
|
364
|
+
type: props.maskType || "alpha"
|
|
365
|
+
} : void 0,
|
|
366
|
+
renderOrder: props.renderOrder || 0,
|
|
367
|
+
transform: effectiveTransform()
|
|
368
|
+
};
|
|
369
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
370
|
+
} catch (error) {
|
|
371
|
+
console.error("Error updating metadata:", error);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
return createComponent(ShaderContext.Provider, {
|
|
375
|
+
get value() {
|
|
376
|
+
return childContextValue();
|
|
377
|
+
},
|
|
378
|
+
get children() {
|
|
379
|
+
return props.children;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
const DEFAULT_TRANSFORM$U = {
|
|
384
|
+
offsetX: 0,
|
|
385
|
+
offsetY: 0,
|
|
386
|
+
rotation: 0,
|
|
387
|
+
scale: 1,
|
|
388
|
+
anchorX: 0.5,
|
|
389
|
+
anchorY: 0.5,
|
|
390
|
+
edges: "transparent"
|
|
391
|
+
};
|
|
392
|
+
const defaultProps$U = {
|
|
393
|
+
blendMode: "normal",
|
|
394
|
+
renderOrder: 0,
|
|
395
|
+
visible: true
|
|
396
|
+
// opacity intentionally has no default - handled by renderer
|
|
397
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
398
|
+
};
|
|
399
|
+
try {
|
|
400
|
+
if (componentDefinition$1 && componentDefinition$1.props) {
|
|
401
|
+
Object.entries(componentDefinition$1.props).forEach(([key, config]) => {
|
|
402
|
+
const propConfig = config;
|
|
403
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
404
|
+
defaultProps$U[key] = propConfig.default;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
} catch (e) {
|
|
409
|
+
console.warn("Error extracting default props:", e);
|
|
410
|
+
}
|
|
411
|
+
function ShaderComponent$U(props) {
|
|
412
|
+
const context = useShaderContext();
|
|
413
|
+
const {
|
|
414
|
+
shaderParentId: parentId,
|
|
415
|
+
shaderNodeRegister: parentRegister,
|
|
416
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
417
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
418
|
+
} = context;
|
|
419
|
+
const instanceId = props.id || `${componentDefinition$1.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
420
|
+
const effectiveProps = createMemo(() => {
|
|
421
|
+
let baseProps = {
|
|
422
|
+
...defaultProps$U
|
|
423
|
+
};
|
|
424
|
+
for (const [key, value] of Object.entries(props)) {
|
|
425
|
+
if (key !== "children" && value !== void 0) {
|
|
426
|
+
baseProps[key] = value;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return baseProps;
|
|
430
|
+
});
|
|
431
|
+
const effectiveTransform = createMemo(() => ({
|
|
432
|
+
...DEFAULT_TRANSFORM$U,
|
|
433
|
+
...props.transform
|
|
434
|
+
}));
|
|
435
|
+
let uniformsMap = null;
|
|
436
|
+
const getUniformsMap = () => {
|
|
437
|
+
if (!uniformsMap) {
|
|
438
|
+
uniformsMap = createUniformsMap(componentDefinition$1, effectiveProps(), instanceId);
|
|
439
|
+
}
|
|
440
|
+
return uniformsMap;
|
|
441
|
+
};
|
|
442
|
+
const childContextValue = createMemo(() => ({
|
|
443
|
+
...context,
|
|
444
|
+
shaderParentId: instanceId
|
|
445
|
+
}));
|
|
446
|
+
let isRegistered = false;
|
|
447
|
+
onMount(() => {
|
|
448
|
+
const uniforms = getUniformsMap();
|
|
449
|
+
if (!uniforms) return;
|
|
450
|
+
try {
|
|
451
|
+
const metadata = {
|
|
452
|
+
blendMode: props.blendMode || "normal",
|
|
453
|
+
opacity: props.opacity,
|
|
454
|
+
visible: props.visible === false ? false : true,
|
|
455
|
+
id: props.id,
|
|
456
|
+
mask: props.maskSource ? {
|
|
457
|
+
source: props.maskSource,
|
|
458
|
+
type: props.maskType || "alpha"
|
|
459
|
+
} : void 0,
|
|
460
|
+
renderOrder: props.renderOrder || 0,
|
|
461
|
+
transform: effectiveTransform()
|
|
462
|
+
};
|
|
463
|
+
parentRegister(instanceId, componentDefinition$1.fragmentNode, parentId, metadata, uniforms, componentDefinition$1);
|
|
464
|
+
isRegistered = true;
|
|
465
|
+
} catch (error) {
|
|
466
|
+
console.error("Error registering shader node:", error);
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
onCleanup(() => {
|
|
470
|
+
isRegistered = false;
|
|
471
|
+
parentRegister(instanceId, null, null, null, null);
|
|
472
|
+
});
|
|
473
|
+
createEffect(() => {
|
|
474
|
+
if (!isRegistered) return;
|
|
475
|
+
const uniforms = getUniformsMap();
|
|
476
|
+
if (!uniforms) return;
|
|
477
|
+
try {
|
|
478
|
+
const props_snapshot = effectiveProps();
|
|
479
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
480
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
481
|
+
const {
|
|
482
|
+
uniform
|
|
483
|
+
} = uniformData;
|
|
484
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
485
|
+
const newValue = props_snapshot[propName];
|
|
486
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
} catch (error) {
|
|
490
|
+
console.error("Error updating uniforms:", error);
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
createEffect(() => {
|
|
494
|
+
if (!isRegistered) return;
|
|
495
|
+
try {
|
|
496
|
+
const metadata = {
|
|
497
|
+
blendMode: props.blendMode || "normal",
|
|
498
|
+
opacity: props.opacity,
|
|
499
|
+
visible: props.visible === false ? false : true,
|
|
500
|
+
id: props.id,
|
|
501
|
+
mask: props.maskSource ? {
|
|
502
|
+
source: props.maskSource,
|
|
503
|
+
type: props.maskType || "alpha"
|
|
504
|
+
} : void 0,
|
|
505
|
+
renderOrder: props.renderOrder || 0,
|
|
506
|
+
transform: effectiveTransform()
|
|
507
|
+
};
|
|
508
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
509
|
+
} catch (error) {
|
|
510
|
+
console.error("Error updating metadata:", error);
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
return createComponent(ShaderContext.Provider, {
|
|
514
|
+
get value() {
|
|
515
|
+
return childContextValue();
|
|
516
|
+
},
|
|
517
|
+
get children() {
|
|
518
|
+
return props.children;
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
const DEFAULT_TRANSFORM$T = {
|
|
523
|
+
offsetX: 0,
|
|
524
|
+
offsetY: 0,
|
|
525
|
+
rotation: 0,
|
|
526
|
+
scale: 1,
|
|
527
|
+
anchorX: 0.5,
|
|
528
|
+
anchorY: 0.5,
|
|
529
|
+
edges: "transparent"
|
|
530
|
+
};
|
|
531
|
+
const defaultProps$T = {
|
|
532
|
+
blendMode: "normal",
|
|
533
|
+
renderOrder: 0,
|
|
534
|
+
visible: true
|
|
535
|
+
// opacity intentionally has no default - handled by renderer
|
|
536
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
537
|
+
};
|
|
538
|
+
try {
|
|
539
|
+
if (componentDefinition$2 && componentDefinition$2.props) {
|
|
540
|
+
Object.entries(componentDefinition$2.props).forEach(([key, config]) => {
|
|
261
541
|
const propConfig = config;
|
|
262
542
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
263
543
|
defaultProps$T[key] = propConfig.default;
|
|
@@ -275,7 +555,7 @@ function ShaderComponent$T(props) {
|
|
|
275
555
|
shaderUniformUpdate: parentUniformUpdate,
|
|
276
556
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
277
557
|
} = context;
|
|
278
|
-
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
558
|
+
const instanceId = props.id || `${componentDefinition$2.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
279
559
|
const effectiveProps = createMemo(() => {
|
|
280
560
|
let baseProps = {
|
|
281
561
|
...defaultProps$T
|
|
@@ -294,7 +574,7 @@ function ShaderComponent$T(props) {
|
|
|
294
574
|
let uniformsMap = null;
|
|
295
575
|
const getUniformsMap = () => {
|
|
296
576
|
if (!uniformsMap) {
|
|
297
|
-
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
577
|
+
uniformsMap = createUniformsMap(componentDefinition$2, effectiveProps(), instanceId);
|
|
298
578
|
}
|
|
299
579
|
return uniformsMap;
|
|
300
580
|
};
|
|
@@ -319,7 +599,7 @@ function ShaderComponent$T(props) {
|
|
|
319
599
|
renderOrder: props.renderOrder || 0,
|
|
320
600
|
transform: effectiveTransform()
|
|
321
601
|
};
|
|
322
|
-
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
602
|
+
parentRegister(instanceId, componentDefinition$2.fragmentNode, parentId, metadata, uniforms, componentDefinition$2);
|
|
323
603
|
isRegistered = true;
|
|
324
604
|
} catch (error) {
|
|
325
605
|
console.error("Error registering shader node:", error);
|
|
@@ -395,8 +675,8 @@ const defaultProps$S = {
|
|
|
395
675
|
// transform intentionally has no default - handled by effectiveTransform
|
|
396
676
|
};
|
|
397
677
|
try {
|
|
398
|
-
if (componentDefinition$
|
|
399
|
-
Object.entries(componentDefinition$
|
|
678
|
+
if (componentDefinition$3 && componentDefinition$3.props) {
|
|
679
|
+
Object.entries(componentDefinition$3.props).forEach(([key, config]) => {
|
|
400
680
|
const propConfig = config;
|
|
401
681
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
402
682
|
defaultProps$S[key] = propConfig.default;
|
|
@@ -414,7 +694,7 @@ function ShaderComponent$S(props) {
|
|
|
414
694
|
shaderUniformUpdate: parentUniformUpdate,
|
|
415
695
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
416
696
|
} = context;
|
|
417
|
-
const instanceId = props.id || `${componentDefinition$
|
|
697
|
+
const instanceId = props.id || `${componentDefinition$3.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
418
698
|
const effectiveProps = createMemo(() => {
|
|
419
699
|
let baseProps = {
|
|
420
700
|
...defaultProps$S
|
|
@@ -433,7 +713,7 @@ function ShaderComponent$S(props) {
|
|
|
433
713
|
let uniformsMap = null;
|
|
434
714
|
const getUniformsMap = () => {
|
|
435
715
|
if (!uniformsMap) {
|
|
436
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
716
|
+
uniformsMap = createUniformsMap(componentDefinition$3, effectiveProps(), instanceId);
|
|
437
717
|
}
|
|
438
718
|
return uniformsMap;
|
|
439
719
|
};
|
|
@@ -458,7 +738,7 @@ function ShaderComponent$S(props) {
|
|
|
458
738
|
renderOrder: props.renderOrder || 0,
|
|
459
739
|
transform: effectiveTransform()
|
|
460
740
|
};
|
|
461
|
-
parentRegister(instanceId, componentDefinition$
|
|
741
|
+
parentRegister(instanceId, componentDefinition$3.fragmentNode, parentId, metadata, uniforms, componentDefinition$3);
|
|
462
742
|
isRegistered = true;
|
|
463
743
|
} catch (error) {
|
|
464
744
|
console.error("Error registering shader node:", error);
|
|
@@ -534,8 +814,8 @@ const defaultProps$R = {
|
|
|
534
814
|
// transform intentionally has no default - handled by effectiveTransform
|
|
535
815
|
};
|
|
536
816
|
try {
|
|
537
|
-
if (componentDefinition$
|
|
538
|
-
Object.entries(componentDefinition$
|
|
817
|
+
if (componentDefinition$4 && componentDefinition$4.props) {
|
|
818
|
+
Object.entries(componentDefinition$4.props).forEach(([key, config]) => {
|
|
539
819
|
const propConfig = config;
|
|
540
820
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
541
821
|
defaultProps$R[key] = propConfig.default;
|
|
@@ -553,7 +833,7 @@ function ShaderComponent$R(props) {
|
|
|
553
833
|
shaderUniformUpdate: parentUniformUpdate,
|
|
554
834
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
555
835
|
} = context;
|
|
556
|
-
const instanceId = props.id || `${componentDefinition$
|
|
836
|
+
const instanceId = props.id || `${componentDefinition$4.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
557
837
|
const effectiveProps = createMemo(() => {
|
|
558
838
|
let baseProps = {
|
|
559
839
|
...defaultProps$R
|
|
@@ -572,7 +852,7 @@ function ShaderComponent$R(props) {
|
|
|
572
852
|
let uniformsMap = null;
|
|
573
853
|
const getUniformsMap = () => {
|
|
574
854
|
if (!uniformsMap) {
|
|
575
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
855
|
+
uniformsMap = createUniformsMap(componentDefinition$4, effectiveProps(), instanceId);
|
|
576
856
|
}
|
|
577
857
|
return uniformsMap;
|
|
578
858
|
};
|
|
@@ -597,7 +877,7 @@ function ShaderComponent$R(props) {
|
|
|
597
877
|
renderOrder: props.renderOrder || 0,
|
|
598
878
|
transform: effectiveTransform()
|
|
599
879
|
};
|
|
600
|
-
parentRegister(instanceId, componentDefinition$
|
|
880
|
+
parentRegister(instanceId, componentDefinition$4.fragmentNode, parentId, metadata, uniforms, componentDefinition$4);
|
|
601
881
|
isRegistered = true;
|
|
602
882
|
} catch (error) {
|
|
603
883
|
console.error("Error registering shader node:", error);
|
|
@@ -673,8 +953,8 @@ const defaultProps$Q = {
|
|
|
673
953
|
// transform intentionally has no default - handled by effectiveTransform
|
|
674
954
|
};
|
|
675
955
|
try {
|
|
676
|
-
if (componentDefinition$
|
|
677
|
-
Object.entries(componentDefinition$
|
|
956
|
+
if (componentDefinition$5 && componentDefinition$5.props) {
|
|
957
|
+
Object.entries(componentDefinition$5.props).forEach(([key, config]) => {
|
|
678
958
|
const propConfig = config;
|
|
679
959
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
680
960
|
defaultProps$Q[key] = propConfig.default;
|
|
@@ -692,7 +972,7 @@ function ShaderComponent$Q(props) {
|
|
|
692
972
|
shaderUniformUpdate: parentUniformUpdate,
|
|
693
973
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
694
974
|
} = context;
|
|
695
|
-
const instanceId = props.id || `${componentDefinition$
|
|
975
|
+
const instanceId = props.id || `${componentDefinition$5.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
696
976
|
const effectiveProps = createMemo(() => {
|
|
697
977
|
let baseProps = {
|
|
698
978
|
...defaultProps$Q
|
|
@@ -711,7 +991,7 @@ function ShaderComponent$Q(props) {
|
|
|
711
991
|
let uniformsMap = null;
|
|
712
992
|
const getUniformsMap = () => {
|
|
713
993
|
if (!uniformsMap) {
|
|
714
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
994
|
+
uniformsMap = createUniformsMap(componentDefinition$5, effectiveProps(), instanceId);
|
|
715
995
|
}
|
|
716
996
|
return uniformsMap;
|
|
717
997
|
};
|
|
@@ -736,7 +1016,7 @@ function ShaderComponent$Q(props) {
|
|
|
736
1016
|
renderOrder: props.renderOrder || 0,
|
|
737
1017
|
transform: effectiveTransform()
|
|
738
1018
|
};
|
|
739
|
-
parentRegister(instanceId, componentDefinition$
|
|
1019
|
+
parentRegister(instanceId, componentDefinition$5.fragmentNode, parentId, metadata, uniforms, componentDefinition$5);
|
|
740
1020
|
isRegistered = true;
|
|
741
1021
|
} catch (error) {
|
|
742
1022
|
console.error("Error registering shader node:", error);
|
|
@@ -812,8 +1092,8 @@ const defaultProps$P = {
|
|
|
812
1092
|
// transform intentionally has no default - handled by effectiveTransform
|
|
813
1093
|
};
|
|
814
1094
|
try {
|
|
815
|
-
if (componentDefinition$
|
|
816
|
-
Object.entries(componentDefinition$
|
|
1095
|
+
if (componentDefinition$6 && componentDefinition$6.props) {
|
|
1096
|
+
Object.entries(componentDefinition$6.props).forEach(([key, config]) => {
|
|
817
1097
|
const propConfig = config;
|
|
818
1098
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
819
1099
|
defaultProps$P[key] = propConfig.default;
|
|
@@ -831,7 +1111,7 @@ function ShaderComponent$P(props) {
|
|
|
831
1111
|
shaderUniformUpdate: parentUniformUpdate,
|
|
832
1112
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
833
1113
|
} = context;
|
|
834
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1114
|
+
const instanceId = props.id || `${componentDefinition$6.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
835
1115
|
const effectiveProps = createMemo(() => {
|
|
836
1116
|
let baseProps = {
|
|
837
1117
|
...defaultProps$P
|
|
@@ -850,7 +1130,7 @@ function ShaderComponent$P(props) {
|
|
|
850
1130
|
let uniformsMap = null;
|
|
851
1131
|
const getUniformsMap = () => {
|
|
852
1132
|
if (!uniformsMap) {
|
|
853
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1133
|
+
uniformsMap = createUniformsMap(componentDefinition$6, effectiveProps(), instanceId);
|
|
854
1134
|
}
|
|
855
1135
|
return uniformsMap;
|
|
856
1136
|
};
|
|
@@ -875,7 +1155,7 @@ function ShaderComponent$P(props) {
|
|
|
875
1155
|
renderOrder: props.renderOrder || 0,
|
|
876
1156
|
transform: effectiveTransform()
|
|
877
1157
|
};
|
|
878
|
-
parentRegister(instanceId, componentDefinition$
|
|
1158
|
+
parentRegister(instanceId, componentDefinition$6.fragmentNode, parentId, metadata, uniforms, componentDefinition$6);
|
|
879
1159
|
isRegistered = true;
|
|
880
1160
|
} catch (error) {
|
|
881
1161
|
console.error("Error registering shader node:", error);
|
|
@@ -951,8 +1231,8 @@ const defaultProps$O = {
|
|
|
951
1231
|
// transform intentionally has no default - handled by effectiveTransform
|
|
952
1232
|
};
|
|
953
1233
|
try {
|
|
954
|
-
if (componentDefinition$
|
|
955
|
-
Object.entries(componentDefinition$
|
|
1234
|
+
if (componentDefinition$7 && componentDefinition$7.props) {
|
|
1235
|
+
Object.entries(componentDefinition$7.props).forEach(([key, config]) => {
|
|
956
1236
|
const propConfig = config;
|
|
957
1237
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
958
1238
|
defaultProps$O[key] = propConfig.default;
|
|
@@ -970,7 +1250,7 @@ function ShaderComponent$O(props) {
|
|
|
970
1250
|
shaderUniformUpdate: parentUniformUpdate,
|
|
971
1251
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
972
1252
|
} = context;
|
|
973
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1253
|
+
const instanceId = props.id || `${componentDefinition$7.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
974
1254
|
const effectiveProps = createMemo(() => {
|
|
975
1255
|
let baseProps = {
|
|
976
1256
|
...defaultProps$O
|
|
@@ -989,7 +1269,7 @@ function ShaderComponent$O(props) {
|
|
|
989
1269
|
let uniformsMap = null;
|
|
990
1270
|
const getUniformsMap = () => {
|
|
991
1271
|
if (!uniformsMap) {
|
|
992
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1272
|
+
uniformsMap = createUniformsMap(componentDefinition$7, effectiveProps(), instanceId);
|
|
993
1273
|
}
|
|
994
1274
|
return uniformsMap;
|
|
995
1275
|
};
|
|
@@ -1014,7 +1294,7 @@ function ShaderComponent$O(props) {
|
|
|
1014
1294
|
renderOrder: props.renderOrder || 0,
|
|
1015
1295
|
transform: effectiveTransform()
|
|
1016
1296
|
};
|
|
1017
|
-
parentRegister(instanceId, componentDefinition$
|
|
1297
|
+
parentRegister(instanceId, componentDefinition$7.fragmentNode, parentId, metadata, uniforms, componentDefinition$7);
|
|
1018
1298
|
isRegistered = true;
|
|
1019
1299
|
} catch (error) {
|
|
1020
1300
|
console.error("Error registering shader node:", error);
|
|
@@ -1090,8 +1370,8 @@ const defaultProps$N = {
|
|
|
1090
1370
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1091
1371
|
};
|
|
1092
1372
|
try {
|
|
1093
|
-
if (componentDefinition$
|
|
1094
|
-
Object.entries(componentDefinition$
|
|
1373
|
+
if (componentDefinition$8 && componentDefinition$8.props) {
|
|
1374
|
+
Object.entries(componentDefinition$8.props).forEach(([key, config]) => {
|
|
1095
1375
|
const propConfig = config;
|
|
1096
1376
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1097
1377
|
defaultProps$N[key] = propConfig.default;
|
|
@@ -1109,7 +1389,7 @@ function ShaderComponent$N(props) {
|
|
|
1109
1389
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1110
1390
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1111
1391
|
} = context;
|
|
1112
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1392
|
+
const instanceId = props.id || `${componentDefinition$8.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1113
1393
|
const effectiveProps = createMemo(() => {
|
|
1114
1394
|
let baseProps = {
|
|
1115
1395
|
...defaultProps$N
|
|
@@ -1128,7 +1408,7 @@ function ShaderComponent$N(props) {
|
|
|
1128
1408
|
let uniformsMap = null;
|
|
1129
1409
|
const getUniformsMap = () => {
|
|
1130
1410
|
if (!uniformsMap) {
|
|
1131
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1411
|
+
uniformsMap = createUniformsMap(componentDefinition$8, effectiveProps(), instanceId);
|
|
1132
1412
|
}
|
|
1133
1413
|
return uniformsMap;
|
|
1134
1414
|
};
|
|
@@ -1153,7 +1433,7 @@ function ShaderComponent$N(props) {
|
|
|
1153
1433
|
renderOrder: props.renderOrder || 0,
|
|
1154
1434
|
transform: effectiveTransform()
|
|
1155
1435
|
};
|
|
1156
|
-
parentRegister(instanceId, componentDefinition$
|
|
1436
|
+
parentRegister(instanceId, componentDefinition$8.fragmentNode, parentId, metadata, uniforms, componentDefinition$8);
|
|
1157
1437
|
isRegistered = true;
|
|
1158
1438
|
} catch (error) {
|
|
1159
1439
|
console.error("Error registering shader node:", error);
|
|
@@ -1229,8 +1509,8 @@ const defaultProps$M = {
|
|
|
1229
1509
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1230
1510
|
};
|
|
1231
1511
|
try {
|
|
1232
|
-
if (componentDefinition$
|
|
1233
|
-
Object.entries(componentDefinition$
|
|
1512
|
+
if (componentDefinition$9 && componentDefinition$9.props) {
|
|
1513
|
+
Object.entries(componentDefinition$9.props).forEach(([key, config]) => {
|
|
1234
1514
|
const propConfig = config;
|
|
1235
1515
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1236
1516
|
defaultProps$M[key] = propConfig.default;
|
|
@@ -1248,7 +1528,7 @@ function ShaderComponent$M(props) {
|
|
|
1248
1528
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1249
1529
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1250
1530
|
} = context;
|
|
1251
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1531
|
+
const instanceId = props.id || `${componentDefinition$9.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1252
1532
|
const effectiveProps = createMemo(() => {
|
|
1253
1533
|
let baseProps = {
|
|
1254
1534
|
...defaultProps$M
|
|
@@ -1267,7 +1547,7 @@ function ShaderComponent$M(props) {
|
|
|
1267
1547
|
let uniformsMap = null;
|
|
1268
1548
|
const getUniformsMap = () => {
|
|
1269
1549
|
if (!uniformsMap) {
|
|
1270
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1550
|
+
uniformsMap = createUniformsMap(componentDefinition$9, effectiveProps(), instanceId);
|
|
1271
1551
|
}
|
|
1272
1552
|
return uniformsMap;
|
|
1273
1553
|
};
|
|
@@ -1292,7 +1572,7 @@ function ShaderComponent$M(props) {
|
|
|
1292
1572
|
renderOrder: props.renderOrder || 0,
|
|
1293
1573
|
transform: effectiveTransform()
|
|
1294
1574
|
};
|
|
1295
|
-
parentRegister(instanceId, componentDefinition$
|
|
1575
|
+
parentRegister(instanceId, componentDefinition$9.fragmentNode, parentId, metadata, uniforms, componentDefinition$9);
|
|
1296
1576
|
isRegistered = true;
|
|
1297
1577
|
} catch (error) {
|
|
1298
1578
|
console.error("Error registering shader node:", error);
|
|
@@ -1368,8 +1648,8 @@ const defaultProps$L = {
|
|
|
1368
1648
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1369
1649
|
};
|
|
1370
1650
|
try {
|
|
1371
|
-
if (componentDefinition$
|
|
1372
|
-
Object.entries(componentDefinition$
|
|
1651
|
+
if (componentDefinition$a && componentDefinition$a.props) {
|
|
1652
|
+
Object.entries(componentDefinition$a.props).forEach(([key, config]) => {
|
|
1373
1653
|
const propConfig = config;
|
|
1374
1654
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1375
1655
|
defaultProps$L[key] = propConfig.default;
|
|
@@ -1387,7 +1667,7 @@ function ShaderComponent$L(props) {
|
|
|
1387
1667
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1388
1668
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1389
1669
|
} = context;
|
|
1390
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1670
|
+
const instanceId = props.id || `${componentDefinition$a.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1391
1671
|
const effectiveProps = createMemo(() => {
|
|
1392
1672
|
let baseProps = {
|
|
1393
1673
|
...defaultProps$L
|
|
@@ -1406,7 +1686,7 @@ function ShaderComponent$L(props) {
|
|
|
1406
1686
|
let uniformsMap = null;
|
|
1407
1687
|
const getUniformsMap = () => {
|
|
1408
1688
|
if (!uniformsMap) {
|
|
1409
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1689
|
+
uniformsMap = createUniformsMap(componentDefinition$a, effectiveProps(), instanceId);
|
|
1410
1690
|
}
|
|
1411
1691
|
return uniformsMap;
|
|
1412
1692
|
};
|
|
@@ -1431,7 +1711,7 @@ function ShaderComponent$L(props) {
|
|
|
1431
1711
|
renderOrder: props.renderOrder || 0,
|
|
1432
1712
|
transform: effectiveTransform()
|
|
1433
1713
|
};
|
|
1434
|
-
parentRegister(instanceId, componentDefinition$
|
|
1714
|
+
parentRegister(instanceId, componentDefinition$a.fragmentNode, parentId, metadata, uniforms, componentDefinition$a);
|
|
1435
1715
|
isRegistered = true;
|
|
1436
1716
|
} catch (error) {
|
|
1437
1717
|
console.error("Error registering shader node:", error);
|
|
@@ -1507,8 +1787,8 @@ const defaultProps$K = {
|
|
|
1507
1787
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1508
1788
|
};
|
|
1509
1789
|
try {
|
|
1510
|
-
if (componentDefinition$
|
|
1511
|
-
Object.entries(componentDefinition$
|
|
1790
|
+
if (componentDefinition$b && componentDefinition$b.props) {
|
|
1791
|
+
Object.entries(componentDefinition$b.props).forEach(([key, config]) => {
|
|
1512
1792
|
const propConfig = config;
|
|
1513
1793
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1514
1794
|
defaultProps$K[key] = propConfig.default;
|
|
@@ -1526,7 +1806,7 @@ function ShaderComponent$K(props) {
|
|
|
1526
1806
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1527
1807
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1528
1808
|
} = context;
|
|
1529
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1809
|
+
const instanceId = props.id || `${componentDefinition$b.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1530
1810
|
const effectiveProps = createMemo(() => {
|
|
1531
1811
|
let baseProps = {
|
|
1532
1812
|
...defaultProps$K
|
|
@@ -1545,7 +1825,7 @@ function ShaderComponent$K(props) {
|
|
|
1545
1825
|
let uniformsMap = null;
|
|
1546
1826
|
const getUniformsMap = () => {
|
|
1547
1827
|
if (!uniformsMap) {
|
|
1548
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1828
|
+
uniformsMap = createUniformsMap(componentDefinition$b, effectiveProps(), instanceId);
|
|
1549
1829
|
}
|
|
1550
1830
|
return uniformsMap;
|
|
1551
1831
|
};
|
|
@@ -1570,7 +1850,7 @@ function ShaderComponent$K(props) {
|
|
|
1570
1850
|
renderOrder: props.renderOrder || 0,
|
|
1571
1851
|
transform: effectiveTransform()
|
|
1572
1852
|
};
|
|
1573
|
-
parentRegister(instanceId, componentDefinition$
|
|
1853
|
+
parentRegister(instanceId, componentDefinition$b.fragmentNode, parentId, metadata, uniforms, componentDefinition$b);
|
|
1574
1854
|
isRegistered = true;
|
|
1575
1855
|
} catch (error) {
|
|
1576
1856
|
console.error("Error registering shader node:", error);
|
|
@@ -1646,8 +1926,8 @@ const defaultProps$J = {
|
|
|
1646
1926
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1647
1927
|
};
|
|
1648
1928
|
try {
|
|
1649
|
-
if (componentDefinition$
|
|
1650
|
-
Object.entries(componentDefinition$
|
|
1929
|
+
if (componentDefinition$c && componentDefinition$c.props) {
|
|
1930
|
+
Object.entries(componentDefinition$c.props).forEach(([key, config]) => {
|
|
1651
1931
|
const propConfig = config;
|
|
1652
1932
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1653
1933
|
defaultProps$J[key] = propConfig.default;
|
|
@@ -1665,7 +1945,7 @@ function ShaderComponent$J(props) {
|
|
|
1665
1945
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1666
1946
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1667
1947
|
} = context;
|
|
1668
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1948
|
+
const instanceId = props.id || `${componentDefinition$c.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1669
1949
|
const effectiveProps = createMemo(() => {
|
|
1670
1950
|
let baseProps = {
|
|
1671
1951
|
...defaultProps$J
|
|
@@ -1684,7 +1964,7 @@ function ShaderComponent$J(props) {
|
|
|
1684
1964
|
let uniformsMap = null;
|
|
1685
1965
|
const getUniformsMap = () => {
|
|
1686
1966
|
if (!uniformsMap) {
|
|
1687
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1967
|
+
uniformsMap = createUniformsMap(componentDefinition$c, effectiveProps(), instanceId);
|
|
1688
1968
|
}
|
|
1689
1969
|
return uniformsMap;
|
|
1690
1970
|
};
|
|
@@ -1709,7 +1989,7 @@ function ShaderComponent$J(props) {
|
|
|
1709
1989
|
renderOrder: props.renderOrder || 0,
|
|
1710
1990
|
transform: effectiveTransform()
|
|
1711
1991
|
};
|
|
1712
|
-
parentRegister(instanceId, componentDefinition$
|
|
1992
|
+
parentRegister(instanceId, componentDefinition$c.fragmentNode, parentId, metadata, uniforms, componentDefinition$c);
|
|
1713
1993
|
isRegistered = true;
|
|
1714
1994
|
} catch (error) {
|
|
1715
1995
|
console.error("Error registering shader node:", error);
|
|
@@ -1785,8 +2065,8 @@ const defaultProps$I = {
|
|
|
1785
2065
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1786
2066
|
};
|
|
1787
2067
|
try {
|
|
1788
|
-
if (componentDefinition$
|
|
1789
|
-
Object.entries(componentDefinition$
|
|
2068
|
+
if (componentDefinition$d && componentDefinition$d.props) {
|
|
2069
|
+
Object.entries(componentDefinition$d.props).forEach(([key, config]) => {
|
|
1790
2070
|
const propConfig = config;
|
|
1791
2071
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1792
2072
|
defaultProps$I[key] = propConfig.default;
|
|
@@ -1804,7 +2084,7 @@ function ShaderComponent$I(props) {
|
|
|
1804
2084
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1805
2085
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1806
2086
|
} = context;
|
|
1807
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2087
|
+
const instanceId = props.id || `${componentDefinition$d.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1808
2088
|
const effectiveProps = createMemo(() => {
|
|
1809
2089
|
let baseProps = {
|
|
1810
2090
|
...defaultProps$I
|
|
@@ -1823,7 +2103,7 @@ function ShaderComponent$I(props) {
|
|
|
1823
2103
|
let uniformsMap = null;
|
|
1824
2104
|
const getUniformsMap = () => {
|
|
1825
2105
|
if (!uniformsMap) {
|
|
1826
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2106
|
+
uniformsMap = createUniformsMap(componentDefinition$d, effectiveProps(), instanceId);
|
|
1827
2107
|
}
|
|
1828
2108
|
return uniformsMap;
|
|
1829
2109
|
};
|
|
@@ -1848,7 +2128,7 @@ function ShaderComponent$I(props) {
|
|
|
1848
2128
|
renderOrder: props.renderOrder || 0,
|
|
1849
2129
|
transform: effectiveTransform()
|
|
1850
2130
|
};
|
|
1851
|
-
parentRegister(instanceId, componentDefinition$
|
|
2131
|
+
parentRegister(instanceId, componentDefinition$d.fragmentNode, parentId, metadata, uniforms, componentDefinition$d);
|
|
1852
2132
|
isRegistered = true;
|
|
1853
2133
|
} catch (error) {
|
|
1854
2134
|
console.error("Error registering shader node:", error);
|
|
@@ -1924,8 +2204,8 @@ const defaultProps$H = {
|
|
|
1924
2204
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1925
2205
|
};
|
|
1926
2206
|
try {
|
|
1927
|
-
if (componentDefinition$
|
|
1928
|
-
Object.entries(componentDefinition$
|
|
2207
|
+
if (componentDefinition$e && componentDefinition$e.props) {
|
|
2208
|
+
Object.entries(componentDefinition$e.props).forEach(([key, config]) => {
|
|
1929
2209
|
const propConfig = config;
|
|
1930
2210
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1931
2211
|
defaultProps$H[key] = propConfig.default;
|
|
@@ -1943,7 +2223,7 @@ function ShaderComponent$H(props) {
|
|
|
1943
2223
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1944
2224
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1945
2225
|
} = context;
|
|
1946
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2226
|
+
const instanceId = props.id || `${componentDefinition$e.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1947
2227
|
const effectiveProps = createMemo(() => {
|
|
1948
2228
|
let baseProps = {
|
|
1949
2229
|
...defaultProps$H
|
|
@@ -1962,7 +2242,7 @@ function ShaderComponent$H(props) {
|
|
|
1962
2242
|
let uniformsMap = null;
|
|
1963
2243
|
const getUniformsMap = () => {
|
|
1964
2244
|
if (!uniformsMap) {
|
|
1965
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2245
|
+
uniformsMap = createUniformsMap(componentDefinition$e, effectiveProps(), instanceId);
|
|
1966
2246
|
}
|
|
1967
2247
|
return uniformsMap;
|
|
1968
2248
|
};
|
|
@@ -1987,7 +2267,7 @@ function ShaderComponent$H(props) {
|
|
|
1987
2267
|
renderOrder: props.renderOrder || 0,
|
|
1988
2268
|
transform: effectiveTransform()
|
|
1989
2269
|
};
|
|
1990
|
-
parentRegister(instanceId, componentDefinition$
|
|
2270
|
+
parentRegister(instanceId, componentDefinition$e.fragmentNode, parentId, metadata, uniforms, componentDefinition$e);
|
|
1991
2271
|
isRegistered = true;
|
|
1992
2272
|
} catch (error) {
|
|
1993
2273
|
console.error("Error registering shader node:", error);
|
|
@@ -2063,8 +2343,8 @@ const defaultProps$G = {
|
|
|
2063
2343
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2064
2344
|
};
|
|
2065
2345
|
try {
|
|
2066
|
-
if (componentDefinition$
|
|
2067
|
-
Object.entries(componentDefinition$
|
|
2346
|
+
if (componentDefinition$f && componentDefinition$f.props) {
|
|
2347
|
+
Object.entries(componentDefinition$f.props).forEach(([key, config]) => {
|
|
2068
2348
|
const propConfig = config;
|
|
2069
2349
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2070
2350
|
defaultProps$G[key] = propConfig.default;
|
|
@@ -2082,7 +2362,7 @@ function ShaderComponent$G(props) {
|
|
|
2082
2362
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2083
2363
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2084
2364
|
} = context;
|
|
2085
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2365
|
+
const instanceId = props.id || `${componentDefinition$f.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2086
2366
|
const effectiveProps = createMemo(() => {
|
|
2087
2367
|
let baseProps = {
|
|
2088
2368
|
...defaultProps$G
|
|
@@ -2101,7 +2381,7 @@ function ShaderComponent$G(props) {
|
|
|
2101
2381
|
let uniformsMap = null;
|
|
2102
2382
|
const getUniformsMap = () => {
|
|
2103
2383
|
if (!uniformsMap) {
|
|
2104
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2384
|
+
uniformsMap = createUniformsMap(componentDefinition$f, effectiveProps(), instanceId);
|
|
2105
2385
|
}
|
|
2106
2386
|
return uniformsMap;
|
|
2107
2387
|
};
|
|
@@ -2126,7 +2406,7 @@ function ShaderComponent$G(props) {
|
|
|
2126
2406
|
renderOrder: props.renderOrder || 0,
|
|
2127
2407
|
transform: effectiveTransform()
|
|
2128
2408
|
};
|
|
2129
|
-
parentRegister(instanceId, componentDefinition$
|
|
2409
|
+
parentRegister(instanceId, componentDefinition$f.fragmentNode, parentId, metadata, uniforms, componentDefinition$f);
|
|
2130
2410
|
isRegistered = true;
|
|
2131
2411
|
} catch (error) {
|
|
2132
2412
|
console.error("Error registering shader node:", error);
|
|
@@ -2202,8 +2482,8 @@ const defaultProps$F = {
|
|
|
2202
2482
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2203
2483
|
};
|
|
2204
2484
|
try {
|
|
2205
|
-
if (componentDefinition$
|
|
2206
|
-
Object.entries(componentDefinition$
|
|
2485
|
+
if (componentDefinition$g && componentDefinition$g.props) {
|
|
2486
|
+
Object.entries(componentDefinition$g.props).forEach(([key, config]) => {
|
|
2207
2487
|
const propConfig = config;
|
|
2208
2488
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2209
2489
|
defaultProps$F[key] = propConfig.default;
|
|
@@ -2221,7 +2501,7 @@ function ShaderComponent$F(props) {
|
|
|
2221
2501
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2222
2502
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2223
2503
|
} = context;
|
|
2224
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2504
|
+
const instanceId = props.id || `${componentDefinition$g.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2225
2505
|
const effectiveProps = createMemo(() => {
|
|
2226
2506
|
let baseProps = {
|
|
2227
2507
|
...defaultProps$F
|
|
@@ -2240,7 +2520,7 @@ function ShaderComponent$F(props) {
|
|
|
2240
2520
|
let uniformsMap = null;
|
|
2241
2521
|
const getUniformsMap = () => {
|
|
2242
2522
|
if (!uniformsMap) {
|
|
2243
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2523
|
+
uniformsMap = createUniformsMap(componentDefinition$g, effectiveProps(), instanceId);
|
|
2244
2524
|
}
|
|
2245
2525
|
return uniformsMap;
|
|
2246
2526
|
};
|
|
@@ -2265,7 +2545,7 @@ function ShaderComponent$F(props) {
|
|
|
2265
2545
|
renderOrder: props.renderOrder || 0,
|
|
2266
2546
|
transform: effectiveTransform()
|
|
2267
2547
|
};
|
|
2268
|
-
parentRegister(instanceId, componentDefinition$
|
|
2548
|
+
parentRegister(instanceId, componentDefinition$g.fragmentNode, parentId, metadata, uniforms, componentDefinition$g);
|
|
2269
2549
|
isRegistered = true;
|
|
2270
2550
|
} catch (error) {
|
|
2271
2551
|
console.error("Error registering shader node:", error);
|
|
@@ -2341,8 +2621,8 @@ const defaultProps$E = {
|
|
|
2341
2621
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2342
2622
|
};
|
|
2343
2623
|
try {
|
|
2344
|
-
if (componentDefinition$
|
|
2345
|
-
Object.entries(componentDefinition$
|
|
2624
|
+
if (componentDefinition$h && componentDefinition$h.props) {
|
|
2625
|
+
Object.entries(componentDefinition$h.props).forEach(([key, config]) => {
|
|
2346
2626
|
const propConfig = config;
|
|
2347
2627
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2348
2628
|
defaultProps$E[key] = propConfig.default;
|
|
@@ -2360,7 +2640,7 @@ function ShaderComponent$E(props) {
|
|
|
2360
2640
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2361
2641
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2362
2642
|
} = context;
|
|
2363
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2643
|
+
const instanceId = props.id || `${componentDefinition$h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2364
2644
|
const effectiveProps = createMemo(() => {
|
|
2365
2645
|
let baseProps = {
|
|
2366
2646
|
...defaultProps$E
|
|
@@ -2379,7 +2659,7 @@ function ShaderComponent$E(props) {
|
|
|
2379
2659
|
let uniformsMap = null;
|
|
2380
2660
|
const getUniformsMap = () => {
|
|
2381
2661
|
if (!uniformsMap) {
|
|
2382
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2662
|
+
uniformsMap = createUniformsMap(componentDefinition$h, effectiveProps(), instanceId);
|
|
2383
2663
|
}
|
|
2384
2664
|
return uniformsMap;
|
|
2385
2665
|
};
|
|
@@ -2404,7 +2684,7 @@ function ShaderComponent$E(props) {
|
|
|
2404
2684
|
renderOrder: props.renderOrder || 0,
|
|
2405
2685
|
transform: effectiveTransform()
|
|
2406
2686
|
};
|
|
2407
|
-
parentRegister(instanceId, componentDefinition$
|
|
2687
|
+
parentRegister(instanceId, componentDefinition$h.fragmentNode, parentId, metadata, uniforms, componentDefinition$h);
|
|
2408
2688
|
isRegistered = true;
|
|
2409
2689
|
} catch (error) {
|
|
2410
2690
|
console.error("Error registering shader node:", error);
|
|
@@ -2480,8 +2760,8 @@ const defaultProps$D = {
|
|
|
2480
2760
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2481
2761
|
};
|
|
2482
2762
|
try {
|
|
2483
|
-
if (componentDefinition$
|
|
2484
|
-
Object.entries(componentDefinition$
|
|
2763
|
+
if (componentDefinition$i && componentDefinition$i.props) {
|
|
2764
|
+
Object.entries(componentDefinition$i.props).forEach(([key, config]) => {
|
|
2485
2765
|
const propConfig = config;
|
|
2486
2766
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2487
2767
|
defaultProps$D[key] = propConfig.default;
|
|
@@ -2499,7 +2779,7 @@ function ShaderComponent$D(props) {
|
|
|
2499
2779
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2500
2780
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2501
2781
|
} = context;
|
|
2502
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2782
|
+
const instanceId = props.id || `${componentDefinition$i.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2503
2783
|
const effectiveProps = createMemo(() => {
|
|
2504
2784
|
let baseProps = {
|
|
2505
2785
|
...defaultProps$D
|
|
@@ -2518,7 +2798,7 @@ function ShaderComponent$D(props) {
|
|
|
2518
2798
|
let uniformsMap = null;
|
|
2519
2799
|
const getUniformsMap = () => {
|
|
2520
2800
|
if (!uniformsMap) {
|
|
2521
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2801
|
+
uniformsMap = createUniformsMap(componentDefinition$i, effectiveProps(), instanceId);
|
|
2522
2802
|
}
|
|
2523
2803
|
return uniformsMap;
|
|
2524
2804
|
};
|
|
@@ -2543,7 +2823,7 @@ function ShaderComponent$D(props) {
|
|
|
2543
2823
|
renderOrder: props.renderOrder || 0,
|
|
2544
2824
|
transform: effectiveTransform()
|
|
2545
2825
|
};
|
|
2546
|
-
parentRegister(instanceId, componentDefinition$
|
|
2826
|
+
parentRegister(instanceId, componentDefinition$i.fragmentNode, parentId, metadata, uniforms, componentDefinition$i);
|
|
2547
2827
|
isRegistered = true;
|
|
2548
2828
|
} catch (error) {
|
|
2549
2829
|
console.error("Error registering shader node:", error);
|
|
@@ -2619,8 +2899,8 @@ const defaultProps$C = {
|
|
|
2619
2899
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2620
2900
|
};
|
|
2621
2901
|
try {
|
|
2622
|
-
if (componentDefinition$
|
|
2623
|
-
Object.entries(componentDefinition$
|
|
2902
|
+
if (componentDefinition$j && componentDefinition$j.props) {
|
|
2903
|
+
Object.entries(componentDefinition$j.props).forEach(([key, config]) => {
|
|
2624
2904
|
const propConfig = config;
|
|
2625
2905
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2626
2906
|
defaultProps$C[key] = propConfig.default;
|
|
@@ -2638,7 +2918,7 @@ function ShaderComponent$C(props) {
|
|
|
2638
2918
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2639
2919
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2640
2920
|
} = context;
|
|
2641
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2921
|
+
const instanceId = props.id || `${componentDefinition$j.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2642
2922
|
const effectiveProps = createMemo(() => {
|
|
2643
2923
|
let baseProps = {
|
|
2644
2924
|
...defaultProps$C
|
|
@@ -2657,7 +2937,7 @@ function ShaderComponent$C(props) {
|
|
|
2657
2937
|
let uniformsMap = null;
|
|
2658
2938
|
const getUniformsMap = () => {
|
|
2659
2939
|
if (!uniformsMap) {
|
|
2660
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2940
|
+
uniformsMap = createUniformsMap(componentDefinition$j, effectiveProps(), instanceId);
|
|
2661
2941
|
}
|
|
2662
2942
|
return uniformsMap;
|
|
2663
2943
|
};
|
|
@@ -2682,7 +2962,7 @@ function ShaderComponent$C(props) {
|
|
|
2682
2962
|
renderOrder: props.renderOrder || 0,
|
|
2683
2963
|
transform: effectiveTransform()
|
|
2684
2964
|
};
|
|
2685
|
-
parentRegister(instanceId, componentDefinition$
|
|
2965
|
+
parentRegister(instanceId, componentDefinition$j.fragmentNode, parentId, metadata, uniforms, componentDefinition$j);
|
|
2686
2966
|
isRegistered = true;
|
|
2687
2967
|
} catch (error) {
|
|
2688
2968
|
console.error("Error registering shader node:", error);
|
|
@@ -2758,8 +3038,8 @@ const defaultProps$B = {
|
|
|
2758
3038
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2759
3039
|
};
|
|
2760
3040
|
try {
|
|
2761
|
-
if (componentDefinition$
|
|
2762
|
-
Object.entries(componentDefinition$
|
|
3041
|
+
if (componentDefinition$k && componentDefinition$k.props) {
|
|
3042
|
+
Object.entries(componentDefinition$k.props).forEach(([key, config]) => {
|
|
2763
3043
|
const propConfig = config;
|
|
2764
3044
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2765
3045
|
defaultProps$B[key] = propConfig.default;
|
|
@@ -2777,7 +3057,7 @@ function ShaderComponent$B(props) {
|
|
|
2777
3057
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2778
3058
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2779
3059
|
} = context;
|
|
2780
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3060
|
+
const instanceId = props.id || `${componentDefinition$k.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2781
3061
|
const effectiveProps = createMemo(() => {
|
|
2782
3062
|
let baseProps = {
|
|
2783
3063
|
...defaultProps$B
|
|
@@ -2796,7 +3076,7 @@ function ShaderComponent$B(props) {
|
|
|
2796
3076
|
let uniformsMap = null;
|
|
2797
3077
|
const getUniformsMap = () => {
|
|
2798
3078
|
if (!uniformsMap) {
|
|
2799
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3079
|
+
uniformsMap = createUniformsMap(componentDefinition$k, effectiveProps(), instanceId);
|
|
2800
3080
|
}
|
|
2801
3081
|
return uniformsMap;
|
|
2802
3082
|
};
|
|
@@ -2821,7 +3101,7 @@ function ShaderComponent$B(props) {
|
|
|
2821
3101
|
renderOrder: props.renderOrder || 0,
|
|
2822
3102
|
transform: effectiveTransform()
|
|
2823
3103
|
};
|
|
2824
|
-
parentRegister(instanceId, componentDefinition$
|
|
3104
|
+
parentRegister(instanceId, componentDefinition$k.fragmentNode, parentId, metadata, uniforms, componentDefinition$k);
|
|
2825
3105
|
isRegistered = true;
|
|
2826
3106
|
} catch (error) {
|
|
2827
3107
|
console.error("Error registering shader node:", error);
|
|
@@ -2897,8 +3177,8 @@ const defaultProps$A = {
|
|
|
2897
3177
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2898
3178
|
};
|
|
2899
3179
|
try {
|
|
2900
|
-
if (componentDefinition$
|
|
2901
|
-
Object.entries(componentDefinition$
|
|
3180
|
+
if (componentDefinition$l && componentDefinition$l.props) {
|
|
3181
|
+
Object.entries(componentDefinition$l.props).forEach(([key, config]) => {
|
|
2902
3182
|
const propConfig = config;
|
|
2903
3183
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2904
3184
|
defaultProps$A[key] = propConfig.default;
|
|
@@ -2916,7 +3196,7 @@ function ShaderComponent$A(props) {
|
|
|
2916
3196
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2917
3197
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2918
3198
|
} = context;
|
|
2919
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3199
|
+
const instanceId = props.id || `${componentDefinition$l.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2920
3200
|
const effectiveProps = createMemo(() => {
|
|
2921
3201
|
let baseProps = {
|
|
2922
3202
|
...defaultProps$A
|
|
@@ -2935,7 +3215,7 @@ function ShaderComponent$A(props) {
|
|
|
2935
3215
|
let uniformsMap = null;
|
|
2936
3216
|
const getUniformsMap = () => {
|
|
2937
3217
|
if (!uniformsMap) {
|
|
2938
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3218
|
+
uniformsMap = createUniformsMap(componentDefinition$l, effectiveProps(), instanceId);
|
|
2939
3219
|
}
|
|
2940
3220
|
return uniformsMap;
|
|
2941
3221
|
};
|
|
@@ -2960,7 +3240,7 @@ function ShaderComponent$A(props) {
|
|
|
2960
3240
|
renderOrder: props.renderOrder || 0,
|
|
2961
3241
|
transform: effectiveTransform()
|
|
2962
3242
|
};
|
|
2963
|
-
parentRegister(instanceId, componentDefinition$
|
|
3243
|
+
parentRegister(instanceId, componentDefinition$l.fragmentNode, parentId, metadata, uniforms, componentDefinition$l);
|
|
2964
3244
|
isRegistered = true;
|
|
2965
3245
|
} catch (error) {
|
|
2966
3246
|
console.error("Error registering shader node:", error);
|
|
@@ -3036,8 +3316,8 @@ const defaultProps$z = {
|
|
|
3036
3316
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3037
3317
|
};
|
|
3038
3318
|
try {
|
|
3039
|
-
if (componentDefinition$
|
|
3040
|
-
Object.entries(componentDefinition$
|
|
3319
|
+
if (componentDefinition$m && componentDefinition$m.props) {
|
|
3320
|
+
Object.entries(componentDefinition$m.props).forEach(([key, config]) => {
|
|
3041
3321
|
const propConfig = config;
|
|
3042
3322
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3043
3323
|
defaultProps$z[key] = propConfig.default;
|
|
@@ -3055,7 +3335,7 @@ function ShaderComponent$z(props) {
|
|
|
3055
3335
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3056
3336
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3057
3337
|
} = context;
|
|
3058
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3338
|
+
const instanceId = props.id || `${componentDefinition$m.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3059
3339
|
const effectiveProps = createMemo(() => {
|
|
3060
3340
|
let baseProps = {
|
|
3061
3341
|
...defaultProps$z
|
|
@@ -3074,7 +3354,7 @@ function ShaderComponent$z(props) {
|
|
|
3074
3354
|
let uniformsMap = null;
|
|
3075
3355
|
const getUniformsMap = () => {
|
|
3076
3356
|
if (!uniformsMap) {
|
|
3077
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3357
|
+
uniformsMap = createUniformsMap(componentDefinition$m, effectiveProps(), instanceId);
|
|
3078
3358
|
}
|
|
3079
3359
|
return uniformsMap;
|
|
3080
3360
|
};
|
|
@@ -3099,7 +3379,7 @@ function ShaderComponent$z(props) {
|
|
|
3099
3379
|
renderOrder: props.renderOrder || 0,
|
|
3100
3380
|
transform: effectiveTransform()
|
|
3101
3381
|
};
|
|
3102
|
-
parentRegister(instanceId, componentDefinition$
|
|
3382
|
+
parentRegister(instanceId, componentDefinition$m.fragmentNode, parentId, metadata, uniforms, componentDefinition$m);
|
|
3103
3383
|
isRegistered = true;
|
|
3104
3384
|
} catch (error) {
|
|
3105
3385
|
console.error("Error registering shader node:", error);
|
|
@@ -3175,8 +3455,8 @@ const defaultProps$y = {
|
|
|
3175
3455
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3176
3456
|
};
|
|
3177
3457
|
try {
|
|
3178
|
-
if (componentDefinition$
|
|
3179
|
-
Object.entries(componentDefinition$
|
|
3458
|
+
if (componentDefinition$n && componentDefinition$n.props) {
|
|
3459
|
+
Object.entries(componentDefinition$n.props).forEach(([key, config]) => {
|
|
3180
3460
|
const propConfig = config;
|
|
3181
3461
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3182
3462
|
defaultProps$y[key] = propConfig.default;
|
|
@@ -3194,7 +3474,7 @@ function ShaderComponent$y(props) {
|
|
|
3194
3474
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3195
3475
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3196
3476
|
} = context;
|
|
3197
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3477
|
+
const instanceId = props.id || `${componentDefinition$n.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3198
3478
|
const effectiveProps = createMemo(() => {
|
|
3199
3479
|
let baseProps = {
|
|
3200
3480
|
...defaultProps$y
|
|
@@ -3213,7 +3493,7 @@ function ShaderComponent$y(props) {
|
|
|
3213
3493
|
let uniformsMap = null;
|
|
3214
3494
|
const getUniformsMap = () => {
|
|
3215
3495
|
if (!uniformsMap) {
|
|
3216
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3496
|
+
uniformsMap = createUniformsMap(componentDefinition$n, effectiveProps(), instanceId);
|
|
3217
3497
|
}
|
|
3218
3498
|
return uniformsMap;
|
|
3219
3499
|
};
|
|
@@ -3238,7 +3518,7 @@ function ShaderComponent$y(props) {
|
|
|
3238
3518
|
renderOrder: props.renderOrder || 0,
|
|
3239
3519
|
transform: effectiveTransform()
|
|
3240
3520
|
};
|
|
3241
|
-
parentRegister(instanceId, componentDefinition$
|
|
3521
|
+
parentRegister(instanceId, componentDefinition$n.fragmentNode, parentId, metadata, uniforms, componentDefinition$n);
|
|
3242
3522
|
isRegistered = true;
|
|
3243
3523
|
} catch (error) {
|
|
3244
3524
|
console.error("Error registering shader node:", error);
|
|
@@ -3314,8 +3594,8 @@ const defaultProps$x = {
|
|
|
3314
3594
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3315
3595
|
};
|
|
3316
3596
|
try {
|
|
3317
|
-
if (componentDefinition$
|
|
3318
|
-
Object.entries(componentDefinition$
|
|
3597
|
+
if (componentDefinition$o && componentDefinition$o.props) {
|
|
3598
|
+
Object.entries(componentDefinition$o.props).forEach(([key, config]) => {
|
|
3319
3599
|
const propConfig = config;
|
|
3320
3600
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3321
3601
|
defaultProps$x[key] = propConfig.default;
|
|
@@ -3333,7 +3613,7 @@ function ShaderComponent$x(props) {
|
|
|
3333
3613
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3334
3614
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3335
3615
|
} = context;
|
|
3336
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3616
|
+
const instanceId = props.id || `${componentDefinition$o.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3337
3617
|
const effectiveProps = createMemo(() => {
|
|
3338
3618
|
let baseProps = {
|
|
3339
3619
|
...defaultProps$x
|
|
@@ -3352,7 +3632,7 @@ function ShaderComponent$x(props) {
|
|
|
3352
3632
|
let uniformsMap = null;
|
|
3353
3633
|
const getUniformsMap = () => {
|
|
3354
3634
|
if (!uniformsMap) {
|
|
3355
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3635
|
+
uniformsMap = createUniformsMap(componentDefinition$o, effectiveProps(), instanceId);
|
|
3356
3636
|
}
|
|
3357
3637
|
return uniformsMap;
|
|
3358
3638
|
};
|
|
@@ -3377,7 +3657,7 @@ function ShaderComponent$x(props) {
|
|
|
3377
3657
|
renderOrder: props.renderOrder || 0,
|
|
3378
3658
|
transform: effectiveTransform()
|
|
3379
3659
|
};
|
|
3380
|
-
parentRegister(instanceId, componentDefinition$
|
|
3660
|
+
parentRegister(instanceId, componentDefinition$o.fragmentNode, parentId, metadata, uniforms, componentDefinition$o);
|
|
3381
3661
|
isRegistered = true;
|
|
3382
3662
|
} catch (error) {
|
|
3383
3663
|
console.error("Error registering shader node:", error);
|
|
@@ -3453,8 +3733,8 @@ const defaultProps$w = {
|
|
|
3453
3733
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3454
3734
|
};
|
|
3455
3735
|
try {
|
|
3456
|
-
if (componentDefinition$
|
|
3457
|
-
Object.entries(componentDefinition$
|
|
3736
|
+
if (componentDefinition$p && componentDefinition$p.props) {
|
|
3737
|
+
Object.entries(componentDefinition$p.props).forEach(([key, config]) => {
|
|
3458
3738
|
const propConfig = config;
|
|
3459
3739
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3460
3740
|
defaultProps$w[key] = propConfig.default;
|
|
@@ -3472,7 +3752,7 @@ function ShaderComponent$w(props) {
|
|
|
3472
3752
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3473
3753
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3474
3754
|
} = context;
|
|
3475
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3755
|
+
const instanceId = props.id || `${componentDefinition$p.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3476
3756
|
const effectiveProps = createMemo(() => {
|
|
3477
3757
|
let baseProps = {
|
|
3478
3758
|
...defaultProps$w
|
|
@@ -3491,7 +3771,7 @@ function ShaderComponent$w(props) {
|
|
|
3491
3771
|
let uniformsMap = null;
|
|
3492
3772
|
const getUniformsMap = () => {
|
|
3493
3773
|
if (!uniformsMap) {
|
|
3494
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3774
|
+
uniformsMap = createUniformsMap(componentDefinition$p, effectiveProps(), instanceId);
|
|
3495
3775
|
}
|
|
3496
3776
|
return uniformsMap;
|
|
3497
3777
|
};
|
|
@@ -3516,7 +3796,7 @@ function ShaderComponent$w(props) {
|
|
|
3516
3796
|
renderOrder: props.renderOrder || 0,
|
|
3517
3797
|
transform: effectiveTransform()
|
|
3518
3798
|
};
|
|
3519
|
-
parentRegister(instanceId, componentDefinition$
|
|
3799
|
+
parentRegister(instanceId, componentDefinition$p.fragmentNode, parentId, metadata, uniforms, componentDefinition$p);
|
|
3520
3800
|
isRegistered = true;
|
|
3521
3801
|
} catch (error) {
|
|
3522
3802
|
console.error("Error registering shader node:", error);
|
|
@@ -3592,8 +3872,8 @@ const defaultProps$v = {
|
|
|
3592
3872
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3593
3873
|
};
|
|
3594
3874
|
try {
|
|
3595
|
-
if (componentDefinition$
|
|
3596
|
-
Object.entries(componentDefinition$
|
|
3875
|
+
if (componentDefinition$q && componentDefinition$q.props) {
|
|
3876
|
+
Object.entries(componentDefinition$q.props).forEach(([key, config]) => {
|
|
3597
3877
|
const propConfig = config;
|
|
3598
3878
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3599
3879
|
defaultProps$v[key] = propConfig.default;
|
|
@@ -3611,7 +3891,7 @@ function ShaderComponent$v(props) {
|
|
|
3611
3891
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3612
3892
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3613
3893
|
} = context;
|
|
3614
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3894
|
+
const instanceId = props.id || `${componentDefinition$q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3615
3895
|
const effectiveProps = createMemo(() => {
|
|
3616
3896
|
let baseProps = {
|
|
3617
3897
|
...defaultProps$v
|
|
@@ -3630,7 +3910,7 @@ function ShaderComponent$v(props) {
|
|
|
3630
3910
|
let uniformsMap = null;
|
|
3631
3911
|
const getUniformsMap = () => {
|
|
3632
3912
|
if (!uniformsMap) {
|
|
3633
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3913
|
+
uniformsMap = createUniformsMap(componentDefinition$q, effectiveProps(), instanceId);
|
|
3634
3914
|
}
|
|
3635
3915
|
return uniformsMap;
|
|
3636
3916
|
};
|
|
@@ -3655,7 +3935,7 @@ function ShaderComponent$v(props) {
|
|
|
3655
3935
|
renderOrder: props.renderOrder || 0,
|
|
3656
3936
|
transform: effectiveTransform()
|
|
3657
3937
|
};
|
|
3658
|
-
parentRegister(instanceId, componentDefinition$
|
|
3938
|
+
parentRegister(instanceId, componentDefinition$q.fragmentNode, parentId, metadata, uniforms, componentDefinition$q);
|
|
3659
3939
|
isRegistered = true;
|
|
3660
3940
|
} catch (error) {
|
|
3661
3941
|
console.error("Error registering shader node:", error);
|
|
@@ -3731,8 +4011,8 @@ const defaultProps$u = {
|
|
|
3731
4011
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3732
4012
|
};
|
|
3733
4013
|
try {
|
|
3734
|
-
if (componentDefinition$
|
|
3735
|
-
Object.entries(componentDefinition$
|
|
4014
|
+
if (componentDefinition$r && componentDefinition$r.props) {
|
|
4015
|
+
Object.entries(componentDefinition$r.props).forEach(([key, config]) => {
|
|
3736
4016
|
const propConfig = config;
|
|
3737
4017
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3738
4018
|
defaultProps$u[key] = propConfig.default;
|
|
@@ -3750,7 +4030,7 @@ function ShaderComponent$u(props) {
|
|
|
3750
4030
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3751
4031
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3752
4032
|
} = context;
|
|
3753
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4033
|
+
const instanceId = props.id || `${componentDefinition$r.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3754
4034
|
const effectiveProps = createMemo(() => {
|
|
3755
4035
|
let baseProps = {
|
|
3756
4036
|
...defaultProps$u
|
|
@@ -3769,7 +4049,7 @@ function ShaderComponent$u(props) {
|
|
|
3769
4049
|
let uniformsMap = null;
|
|
3770
4050
|
const getUniformsMap = () => {
|
|
3771
4051
|
if (!uniformsMap) {
|
|
3772
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4052
|
+
uniformsMap = createUniformsMap(componentDefinition$r, effectiveProps(), instanceId);
|
|
3773
4053
|
}
|
|
3774
4054
|
return uniformsMap;
|
|
3775
4055
|
};
|
|
@@ -3794,7 +4074,7 @@ function ShaderComponent$u(props) {
|
|
|
3794
4074
|
renderOrder: props.renderOrder || 0,
|
|
3795
4075
|
transform: effectiveTransform()
|
|
3796
4076
|
};
|
|
3797
|
-
parentRegister(instanceId, componentDefinition$
|
|
4077
|
+
parentRegister(instanceId, componentDefinition$r.fragmentNode, parentId, metadata, uniforms, componentDefinition$r);
|
|
3798
4078
|
isRegistered = true;
|
|
3799
4079
|
} catch (error) {
|
|
3800
4080
|
console.error("Error registering shader node:", error);
|
|
@@ -3870,8 +4150,8 @@ const defaultProps$t = {
|
|
|
3870
4150
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3871
4151
|
};
|
|
3872
4152
|
try {
|
|
3873
|
-
if (componentDefinition$
|
|
3874
|
-
Object.entries(componentDefinition$
|
|
4153
|
+
if (componentDefinition$s && componentDefinition$s.props) {
|
|
4154
|
+
Object.entries(componentDefinition$s.props).forEach(([key, config]) => {
|
|
3875
4155
|
const propConfig = config;
|
|
3876
4156
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3877
4157
|
defaultProps$t[key] = propConfig.default;
|
|
@@ -3889,7 +4169,7 @@ function ShaderComponent$t(props) {
|
|
|
3889
4169
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3890
4170
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3891
4171
|
} = context;
|
|
3892
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4172
|
+
const instanceId = props.id || `${componentDefinition$s.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3893
4173
|
const effectiveProps = createMemo(() => {
|
|
3894
4174
|
let baseProps = {
|
|
3895
4175
|
...defaultProps$t
|
|
@@ -3908,7 +4188,7 @@ function ShaderComponent$t(props) {
|
|
|
3908
4188
|
let uniformsMap = null;
|
|
3909
4189
|
const getUniformsMap = () => {
|
|
3910
4190
|
if (!uniformsMap) {
|
|
3911
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4191
|
+
uniformsMap = createUniformsMap(componentDefinition$s, effectiveProps(), instanceId);
|
|
3912
4192
|
}
|
|
3913
4193
|
return uniformsMap;
|
|
3914
4194
|
};
|
|
@@ -3933,7 +4213,7 @@ function ShaderComponent$t(props) {
|
|
|
3933
4213
|
renderOrder: props.renderOrder || 0,
|
|
3934
4214
|
transform: effectiveTransform()
|
|
3935
4215
|
};
|
|
3936
|
-
parentRegister(instanceId, componentDefinition$
|
|
4216
|
+
parentRegister(instanceId, componentDefinition$s.fragmentNode, parentId, metadata, uniforms, componentDefinition$s);
|
|
3937
4217
|
isRegistered = true;
|
|
3938
4218
|
} catch (error) {
|
|
3939
4219
|
console.error("Error registering shader node:", error);
|
|
@@ -4009,8 +4289,8 @@ const defaultProps$s = {
|
|
|
4009
4289
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4010
4290
|
};
|
|
4011
4291
|
try {
|
|
4012
|
-
if (componentDefinition$
|
|
4013
|
-
Object.entries(componentDefinition$
|
|
4292
|
+
if (componentDefinition$t && componentDefinition$t.props) {
|
|
4293
|
+
Object.entries(componentDefinition$t.props).forEach(([key, config]) => {
|
|
4014
4294
|
const propConfig = config;
|
|
4015
4295
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4016
4296
|
defaultProps$s[key] = propConfig.default;
|
|
@@ -4028,7 +4308,7 @@ function ShaderComponent$s(props) {
|
|
|
4028
4308
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4029
4309
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4030
4310
|
} = context;
|
|
4031
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4311
|
+
const instanceId = props.id || `${componentDefinition$t.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4032
4312
|
const effectiveProps = createMemo(() => {
|
|
4033
4313
|
let baseProps = {
|
|
4034
4314
|
...defaultProps$s
|
|
@@ -4047,7 +4327,7 @@ function ShaderComponent$s(props) {
|
|
|
4047
4327
|
let uniformsMap = null;
|
|
4048
4328
|
const getUniformsMap = () => {
|
|
4049
4329
|
if (!uniformsMap) {
|
|
4050
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4330
|
+
uniformsMap = createUniformsMap(componentDefinition$t, effectiveProps(), instanceId);
|
|
4051
4331
|
}
|
|
4052
4332
|
return uniformsMap;
|
|
4053
4333
|
};
|
|
@@ -4072,7 +4352,7 @@ function ShaderComponent$s(props) {
|
|
|
4072
4352
|
renderOrder: props.renderOrder || 0,
|
|
4073
4353
|
transform: effectiveTransform()
|
|
4074
4354
|
};
|
|
4075
|
-
parentRegister(instanceId, componentDefinition$
|
|
4355
|
+
parentRegister(instanceId, componentDefinition$t.fragmentNode, parentId, metadata, uniforms, componentDefinition$t);
|
|
4076
4356
|
isRegistered = true;
|
|
4077
4357
|
} catch (error) {
|
|
4078
4358
|
console.error("Error registering shader node:", error);
|
|
@@ -4148,8 +4428,8 @@ const defaultProps$r = {
|
|
|
4148
4428
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4149
4429
|
};
|
|
4150
4430
|
try {
|
|
4151
|
-
if (componentDefinition$
|
|
4152
|
-
Object.entries(componentDefinition$
|
|
4431
|
+
if (componentDefinition$u && componentDefinition$u.props) {
|
|
4432
|
+
Object.entries(componentDefinition$u.props).forEach(([key, config]) => {
|
|
4153
4433
|
const propConfig = config;
|
|
4154
4434
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4155
4435
|
defaultProps$r[key] = propConfig.default;
|
|
@@ -4167,7 +4447,7 @@ function ShaderComponent$r(props) {
|
|
|
4167
4447
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4168
4448
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4169
4449
|
} = context;
|
|
4170
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4450
|
+
const instanceId = props.id || `${componentDefinition$u.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4171
4451
|
const effectiveProps = createMemo(() => {
|
|
4172
4452
|
let baseProps = {
|
|
4173
4453
|
...defaultProps$r
|
|
@@ -4186,7 +4466,7 @@ function ShaderComponent$r(props) {
|
|
|
4186
4466
|
let uniformsMap = null;
|
|
4187
4467
|
const getUniformsMap = () => {
|
|
4188
4468
|
if (!uniformsMap) {
|
|
4189
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4469
|
+
uniformsMap = createUniformsMap(componentDefinition$u, effectiveProps(), instanceId);
|
|
4190
4470
|
}
|
|
4191
4471
|
return uniformsMap;
|
|
4192
4472
|
};
|
|
@@ -4211,7 +4491,7 @@ function ShaderComponent$r(props) {
|
|
|
4211
4491
|
renderOrder: props.renderOrder || 0,
|
|
4212
4492
|
transform: effectiveTransform()
|
|
4213
4493
|
};
|
|
4214
|
-
parentRegister(instanceId, componentDefinition$
|
|
4494
|
+
parentRegister(instanceId, componentDefinition$u.fragmentNode, parentId, metadata, uniforms, componentDefinition$u);
|
|
4215
4495
|
isRegistered = true;
|
|
4216
4496
|
} catch (error) {
|
|
4217
4497
|
console.error("Error registering shader node:", error);
|
|
@@ -4287,8 +4567,8 @@ const defaultProps$q = {
|
|
|
4287
4567
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4288
4568
|
};
|
|
4289
4569
|
try {
|
|
4290
|
-
if (componentDefinition$
|
|
4291
|
-
Object.entries(componentDefinition$
|
|
4570
|
+
if (componentDefinition$v && componentDefinition$v.props) {
|
|
4571
|
+
Object.entries(componentDefinition$v.props).forEach(([key, config]) => {
|
|
4292
4572
|
const propConfig = config;
|
|
4293
4573
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4294
4574
|
defaultProps$q[key] = propConfig.default;
|
|
@@ -4306,7 +4586,7 @@ function ShaderComponent$q(props) {
|
|
|
4306
4586
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4307
4587
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4308
4588
|
} = context;
|
|
4309
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4589
|
+
const instanceId = props.id || `${componentDefinition$v.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4310
4590
|
const effectiveProps = createMemo(() => {
|
|
4311
4591
|
let baseProps = {
|
|
4312
4592
|
...defaultProps$q
|
|
@@ -4325,7 +4605,7 @@ function ShaderComponent$q(props) {
|
|
|
4325
4605
|
let uniformsMap = null;
|
|
4326
4606
|
const getUniformsMap = () => {
|
|
4327
4607
|
if (!uniformsMap) {
|
|
4328
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4608
|
+
uniformsMap = createUniformsMap(componentDefinition$v, effectiveProps(), instanceId);
|
|
4329
4609
|
}
|
|
4330
4610
|
return uniformsMap;
|
|
4331
4611
|
};
|
|
@@ -4350,7 +4630,7 @@ function ShaderComponent$q(props) {
|
|
|
4350
4630
|
renderOrder: props.renderOrder || 0,
|
|
4351
4631
|
transform: effectiveTransform()
|
|
4352
4632
|
};
|
|
4353
|
-
parentRegister(instanceId, componentDefinition$
|
|
4633
|
+
parentRegister(instanceId, componentDefinition$v.fragmentNode, parentId, metadata, uniforms, componentDefinition$v);
|
|
4354
4634
|
isRegistered = true;
|
|
4355
4635
|
} catch (error) {
|
|
4356
4636
|
console.error("Error registering shader node:", error);
|
|
@@ -4426,8 +4706,8 @@ const defaultProps$p = {
|
|
|
4426
4706
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4427
4707
|
};
|
|
4428
4708
|
try {
|
|
4429
|
-
if (componentDefinition$
|
|
4430
|
-
Object.entries(componentDefinition$
|
|
4709
|
+
if (componentDefinition$w && componentDefinition$w.props) {
|
|
4710
|
+
Object.entries(componentDefinition$w.props).forEach(([key, config]) => {
|
|
4431
4711
|
const propConfig = config;
|
|
4432
4712
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4433
4713
|
defaultProps$p[key] = propConfig.default;
|
|
@@ -4445,7 +4725,7 @@ function ShaderComponent$p(props) {
|
|
|
4445
4725
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4446
4726
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4447
4727
|
} = context;
|
|
4448
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4728
|
+
const instanceId = props.id || `${componentDefinition$w.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4449
4729
|
const effectiveProps = createMemo(() => {
|
|
4450
4730
|
let baseProps = {
|
|
4451
4731
|
...defaultProps$p
|
|
@@ -4464,7 +4744,7 @@ function ShaderComponent$p(props) {
|
|
|
4464
4744
|
let uniformsMap = null;
|
|
4465
4745
|
const getUniformsMap = () => {
|
|
4466
4746
|
if (!uniformsMap) {
|
|
4467
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4747
|
+
uniformsMap = createUniformsMap(componentDefinition$w, effectiveProps(), instanceId);
|
|
4468
4748
|
}
|
|
4469
4749
|
return uniformsMap;
|
|
4470
4750
|
};
|
|
@@ -4489,7 +4769,7 @@ function ShaderComponent$p(props) {
|
|
|
4489
4769
|
renderOrder: props.renderOrder || 0,
|
|
4490
4770
|
transform: effectiveTransform()
|
|
4491
4771
|
};
|
|
4492
|
-
parentRegister(instanceId, componentDefinition$
|
|
4772
|
+
parentRegister(instanceId, componentDefinition$w.fragmentNode, parentId, metadata, uniforms, componentDefinition$w);
|
|
4493
4773
|
isRegistered = true;
|
|
4494
4774
|
} catch (error) {
|
|
4495
4775
|
console.error("Error registering shader node:", error);
|
|
@@ -4565,8 +4845,8 @@ const defaultProps$o = {
|
|
|
4565
4845
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4566
4846
|
};
|
|
4567
4847
|
try {
|
|
4568
|
-
if (componentDefinition$
|
|
4569
|
-
Object.entries(componentDefinition$
|
|
4848
|
+
if (componentDefinition$x && componentDefinition$x.props) {
|
|
4849
|
+
Object.entries(componentDefinition$x.props).forEach(([key, config]) => {
|
|
4570
4850
|
const propConfig = config;
|
|
4571
4851
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4572
4852
|
defaultProps$o[key] = propConfig.default;
|
|
@@ -4584,7 +4864,7 @@ function ShaderComponent$o(props) {
|
|
|
4584
4864
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4585
4865
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4586
4866
|
} = context;
|
|
4587
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4867
|
+
const instanceId = props.id || `${componentDefinition$x.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4588
4868
|
const effectiveProps = createMemo(() => {
|
|
4589
4869
|
let baseProps = {
|
|
4590
4870
|
...defaultProps$o
|
|
@@ -4603,7 +4883,7 @@ function ShaderComponent$o(props) {
|
|
|
4603
4883
|
let uniformsMap = null;
|
|
4604
4884
|
const getUniformsMap = () => {
|
|
4605
4885
|
if (!uniformsMap) {
|
|
4606
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4886
|
+
uniformsMap = createUniformsMap(componentDefinition$x, effectiveProps(), instanceId);
|
|
4607
4887
|
}
|
|
4608
4888
|
return uniformsMap;
|
|
4609
4889
|
};
|
|
@@ -4628,7 +4908,7 @@ function ShaderComponent$o(props) {
|
|
|
4628
4908
|
renderOrder: props.renderOrder || 0,
|
|
4629
4909
|
transform: effectiveTransform()
|
|
4630
4910
|
};
|
|
4631
|
-
parentRegister(instanceId, componentDefinition$
|
|
4911
|
+
parentRegister(instanceId, componentDefinition$x.fragmentNode, parentId, metadata, uniforms, componentDefinition$x);
|
|
4632
4912
|
isRegistered = true;
|
|
4633
4913
|
} catch (error) {
|
|
4634
4914
|
console.error("Error registering shader node:", error);
|
|
@@ -4704,8 +4984,8 @@ const defaultProps$n = {
|
|
|
4704
4984
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4705
4985
|
};
|
|
4706
4986
|
try {
|
|
4707
|
-
if (componentDefinition$
|
|
4708
|
-
Object.entries(componentDefinition$
|
|
4987
|
+
if (componentDefinition$y && componentDefinition$y.props) {
|
|
4988
|
+
Object.entries(componentDefinition$y.props).forEach(([key, config]) => {
|
|
4709
4989
|
const propConfig = config;
|
|
4710
4990
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4711
4991
|
defaultProps$n[key] = propConfig.default;
|
|
@@ -4723,7 +5003,7 @@ function ShaderComponent$n(props) {
|
|
|
4723
5003
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4724
5004
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4725
5005
|
} = context;
|
|
4726
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5006
|
+
const instanceId = props.id || `${componentDefinition$y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4727
5007
|
const effectiveProps = createMemo(() => {
|
|
4728
5008
|
let baseProps = {
|
|
4729
5009
|
...defaultProps$n
|
|
@@ -4742,7 +5022,7 @@ function ShaderComponent$n(props) {
|
|
|
4742
5022
|
let uniformsMap = null;
|
|
4743
5023
|
const getUniformsMap = () => {
|
|
4744
5024
|
if (!uniformsMap) {
|
|
4745
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5025
|
+
uniformsMap = createUniformsMap(componentDefinition$y, effectiveProps(), instanceId);
|
|
4746
5026
|
}
|
|
4747
5027
|
return uniformsMap;
|
|
4748
5028
|
};
|
|
@@ -4767,7 +5047,7 @@ function ShaderComponent$n(props) {
|
|
|
4767
5047
|
renderOrder: props.renderOrder || 0,
|
|
4768
5048
|
transform: effectiveTransform()
|
|
4769
5049
|
};
|
|
4770
|
-
parentRegister(instanceId, componentDefinition$
|
|
5050
|
+
parentRegister(instanceId, componentDefinition$y.fragmentNode, parentId, metadata, uniforms, componentDefinition$y);
|
|
4771
5051
|
isRegistered = true;
|
|
4772
5052
|
} catch (error) {
|
|
4773
5053
|
console.error("Error registering shader node:", error);
|
|
@@ -4843,8 +5123,8 @@ const defaultProps$m = {
|
|
|
4843
5123
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4844
5124
|
};
|
|
4845
5125
|
try {
|
|
4846
|
-
if (componentDefinition$
|
|
4847
|
-
Object.entries(componentDefinition$
|
|
5126
|
+
if (componentDefinition$z && componentDefinition$z.props) {
|
|
5127
|
+
Object.entries(componentDefinition$z.props).forEach(([key, config]) => {
|
|
4848
5128
|
const propConfig = config;
|
|
4849
5129
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4850
5130
|
defaultProps$m[key] = propConfig.default;
|
|
@@ -4862,7 +5142,7 @@ function ShaderComponent$m(props) {
|
|
|
4862
5142
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4863
5143
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4864
5144
|
} = context;
|
|
4865
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5145
|
+
const instanceId = props.id || `${componentDefinition$z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4866
5146
|
const effectiveProps = createMemo(() => {
|
|
4867
5147
|
let baseProps = {
|
|
4868
5148
|
...defaultProps$m
|
|
@@ -4881,7 +5161,7 @@ function ShaderComponent$m(props) {
|
|
|
4881
5161
|
let uniformsMap = null;
|
|
4882
5162
|
const getUniformsMap = () => {
|
|
4883
5163
|
if (!uniformsMap) {
|
|
4884
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5164
|
+
uniformsMap = createUniformsMap(componentDefinition$z, effectiveProps(), instanceId);
|
|
4885
5165
|
}
|
|
4886
5166
|
return uniformsMap;
|
|
4887
5167
|
};
|
|
@@ -4906,7 +5186,7 @@ function ShaderComponent$m(props) {
|
|
|
4906
5186
|
renderOrder: props.renderOrder || 0,
|
|
4907
5187
|
transform: effectiveTransform()
|
|
4908
5188
|
};
|
|
4909
|
-
parentRegister(instanceId, componentDefinition$
|
|
5189
|
+
parentRegister(instanceId, componentDefinition$z.fragmentNode, parentId, metadata, uniforms, componentDefinition$z);
|
|
4910
5190
|
isRegistered = true;
|
|
4911
5191
|
} catch (error) {
|
|
4912
5192
|
console.error("Error registering shader node:", error);
|
|
@@ -4982,8 +5262,8 @@ const defaultProps$l = {
|
|
|
4982
5262
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4983
5263
|
};
|
|
4984
5264
|
try {
|
|
4985
|
-
if (componentDefinition$
|
|
4986
|
-
Object.entries(componentDefinition$
|
|
5265
|
+
if (componentDefinition$A && componentDefinition$A.props) {
|
|
5266
|
+
Object.entries(componentDefinition$A.props).forEach(([key, config]) => {
|
|
4987
5267
|
const propConfig = config;
|
|
4988
5268
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4989
5269
|
defaultProps$l[key] = propConfig.default;
|
|
@@ -5001,7 +5281,7 @@ function ShaderComponent$l(props) {
|
|
|
5001
5281
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5002
5282
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5003
5283
|
} = context;
|
|
5004
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5284
|
+
const instanceId = props.id || `${componentDefinition$A.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5005
5285
|
const effectiveProps = createMemo(() => {
|
|
5006
5286
|
let baseProps = {
|
|
5007
5287
|
...defaultProps$l
|
|
@@ -5020,7 +5300,7 @@ function ShaderComponent$l(props) {
|
|
|
5020
5300
|
let uniformsMap = null;
|
|
5021
5301
|
const getUniformsMap = () => {
|
|
5022
5302
|
if (!uniformsMap) {
|
|
5023
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5303
|
+
uniformsMap = createUniformsMap(componentDefinition$A, effectiveProps(), instanceId);
|
|
5024
5304
|
}
|
|
5025
5305
|
return uniformsMap;
|
|
5026
5306
|
};
|
|
@@ -5045,7 +5325,7 @@ function ShaderComponent$l(props) {
|
|
|
5045
5325
|
renderOrder: props.renderOrder || 0,
|
|
5046
5326
|
transform: effectiveTransform()
|
|
5047
5327
|
};
|
|
5048
|
-
parentRegister(instanceId, componentDefinition$
|
|
5328
|
+
parentRegister(instanceId, componentDefinition$A.fragmentNode, parentId, metadata, uniforms, componentDefinition$A);
|
|
5049
5329
|
isRegistered = true;
|
|
5050
5330
|
} catch (error) {
|
|
5051
5331
|
console.error("Error registering shader node:", error);
|
|
@@ -5121,8 +5401,8 @@ const defaultProps$k = {
|
|
|
5121
5401
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5122
5402
|
};
|
|
5123
5403
|
try {
|
|
5124
|
-
if (componentDefinition$
|
|
5125
|
-
Object.entries(componentDefinition$
|
|
5404
|
+
if (componentDefinition$B && componentDefinition$B.props) {
|
|
5405
|
+
Object.entries(componentDefinition$B.props).forEach(([key, config]) => {
|
|
5126
5406
|
const propConfig = config;
|
|
5127
5407
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5128
5408
|
defaultProps$k[key] = propConfig.default;
|
|
@@ -5140,7 +5420,7 @@ function ShaderComponent$k(props) {
|
|
|
5140
5420
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5141
5421
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5142
5422
|
} = context;
|
|
5143
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5423
|
+
const instanceId = props.id || `${componentDefinition$B.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5144
5424
|
const effectiveProps = createMemo(() => {
|
|
5145
5425
|
let baseProps = {
|
|
5146
5426
|
...defaultProps$k
|
|
@@ -5159,7 +5439,7 @@ function ShaderComponent$k(props) {
|
|
|
5159
5439
|
let uniformsMap = null;
|
|
5160
5440
|
const getUniformsMap = () => {
|
|
5161
5441
|
if (!uniformsMap) {
|
|
5162
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5442
|
+
uniformsMap = createUniformsMap(componentDefinition$B, effectiveProps(), instanceId);
|
|
5163
5443
|
}
|
|
5164
5444
|
return uniformsMap;
|
|
5165
5445
|
};
|
|
@@ -5184,7 +5464,7 @@ function ShaderComponent$k(props) {
|
|
|
5184
5464
|
renderOrder: props.renderOrder || 0,
|
|
5185
5465
|
transform: effectiveTransform()
|
|
5186
5466
|
};
|
|
5187
|
-
parentRegister(instanceId, componentDefinition$
|
|
5467
|
+
parentRegister(instanceId, componentDefinition$B.fragmentNode, parentId, metadata, uniforms, componentDefinition$B);
|
|
5188
5468
|
isRegistered = true;
|
|
5189
5469
|
} catch (error) {
|
|
5190
5470
|
console.error("Error registering shader node:", error);
|
|
@@ -5260,8 +5540,8 @@ const defaultProps$j = {
|
|
|
5260
5540
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5261
5541
|
};
|
|
5262
5542
|
try {
|
|
5263
|
-
if (componentDefinition$
|
|
5264
|
-
Object.entries(componentDefinition$
|
|
5543
|
+
if (componentDefinition$C && componentDefinition$C.props) {
|
|
5544
|
+
Object.entries(componentDefinition$C.props).forEach(([key, config]) => {
|
|
5265
5545
|
const propConfig = config;
|
|
5266
5546
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5267
5547
|
defaultProps$j[key] = propConfig.default;
|
|
@@ -5279,7 +5559,7 @@ function ShaderComponent$j(props) {
|
|
|
5279
5559
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5280
5560
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5281
5561
|
} = context;
|
|
5282
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5562
|
+
const instanceId = props.id || `${componentDefinition$C.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5283
5563
|
const effectiveProps = createMemo(() => {
|
|
5284
5564
|
let baseProps = {
|
|
5285
5565
|
...defaultProps$j
|
|
@@ -5298,7 +5578,7 @@ function ShaderComponent$j(props) {
|
|
|
5298
5578
|
let uniformsMap = null;
|
|
5299
5579
|
const getUniformsMap = () => {
|
|
5300
5580
|
if (!uniformsMap) {
|
|
5301
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5581
|
+
uniformsMap = createUniformsMap(componentDefinition$C, effectiveProps(), instanceId);
|
|
5302
5582
|
}
|
|
5303
5583
|
return uniformsMap;
|
|
5304
5584
|
};
|
|
@@ -5323,7 +5603,7 @@ function ShaderComponent$j(props) {
|
|
|
5323
5603
|
renderOrder: props.renderOrder || 0,
|
|
5324
5604
|
transform: effectiveTransform()
|
|
5325
5605
|
};
|
|
5326
|
-
parentRegister(instanceId, componentDefinition$
|
|
5606
|
+
parentRegister(instanceId, componentDefinition$C.fragmentNode, parentId, metadata, uniforms, componentDefinition$C);
|
|
5327
5607
|
isRegistered = true;
|
|
5328
5608
|
} catch (error) {
|
|
5329
5609
|
console.error("Error registering shader node:", error);
|
|
@@ -5399,8 +5679,8 @@ const defaultProps$i = {
|
|
|
5399
5679
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5400
5680
|
};
|
|
5401
5681
|
try {
|
|
5402
|
-
if (componentDefinition$
|
|
5403
|
-
Object.entries(componentDefinition$
|
|
5682
|
+
if (componentDefinition$D && componentDefinition$D.props) {
|
|
5683
|
+
Object.entries(componentDefinition$D.props).forEach(([key, config]) => {
|
|
5404
5684
|
const propConfig = config;
|
|
5405
5685
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5406
5686
|
defaultProps$i[key] = propConfig.default;
|
|
@@ -5418,7 +5698,7 @@ function ShaderComponent$i(props) {
|
|
|
5418
5698
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5419
5699
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5420
5700
|
} = context;
|
|
5421
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5701
|
+
const instanceId = props.id || `${componentDefinition$D.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5422
5702
|
const effectiveProps = createMemo(() => {
|
|
5423
5703
|
let baseProps = {
|
|
5424
5704
|
...defaultProps$i
|
|
@@ -5437,7 +5717,7 @@ function ShaderComponent$i(props) {
|
|
|
5437
5717
|
let uniformsMap = null;
|
|
5438
5718
|
const getUniformsMap = () => {
|
|
5439
5719
|
if (!uniformsMap) {
|
|
5440
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5720
|
+
uniformsMap = createUniformsMap(componentDefinition$D, effectiveProps(), instanceId);
|
|
5441
5721
|
}
|
|
5442
5722
|
return uniformsMap;
|
|
5443
5723
|
};
|
|
@@ -5462,7 +5742,7 @@ function ShaderComponent$i(props) {
|
|
|
5462
5742
|
renderOrder: props.renderOrder || 0,
|
|
5463
5743
|
transform: effectiveTransform()
|
|
5464
5744
|
};
|
|
5465
|
-
parentRegister(instanceId, componentDefinition$
|
|
5745
|
+
parentRegister(instanceId, componentDefinition$D.fragmentNode, parentId, metadata, uniforms, componentDefinition$D);
|
|
5466
5746
|
isRegistered = true;
|
|
5467
5747
|
} catch (error) {
|
|
5468
5748
|
console.error("Error registering shader node:", error);
|
|
@@ -5538,8 +5818,8 @@ const defaultProps$h = {
|
|
|
5538
5818
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5539
5819
|
};
|
|
5540
5820
|
try {
|
|
5541
|
-
if (componentDefinition$
|
|
5542
|
-
Object.entries(componentDefinition$
|
|
5821
|
+
if (componentDefinition$E && componentDefinition$E.props) {
|
|
5822
|
+
Object.entries(componentDefinition$E.props).forEach(([key, config]) => {
|
|
5543
5823
|
const propConfig = config;
|
|
5544
5824
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5545
5825
|
defaultProps$h[key] = propConfig.default;
|
|
@@ -5557,7 +5837,7 @@ function ShaderComponent$h(props) {
|
|
|
5557
5837
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5558
5838
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5559
5839
|
} = context;
|
|
5560
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5840
|
+
const instanceId = props.id || `${componentDefinition$E.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5561
5841
|
const effectiveProps = createMemo(() => {
|
|
5562
5842
|
let baseProps = {
|
|
5563
5843
|
...defaultProps$h
|
|
@@ -5576,7 +5856,7 @@ function ShaderComponent$h(props) {
|
|
|
5576
5856
|
let uniformsMap = null;
|
|
5577
5857
|
const getUniformsMap = () => {
|
|
5578
5858
|
if (!uniformsMap) {
|
|
5579
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5859
|
+
uniformsMap = createUniformsMap(componentDefinition$E, effectiveProps(), instanceId);
|
|
5580
5860
|
}
|
|
5581
5861
|
return uniformsMap;
|
|
5582
5862
|
};
|
|
@@ -5601,7 +5881,7 @@ function ShaderComponent$h(props) {
|
|
|
5601
5881
|
renderOrder: props.renderOrder || 0,
|
|
5602
5882
|
transform: effectiveTransform()
|
|
5603
5883
|
};
|
|
5604
|
-
parentRegister(instanceId, componentDefinition$
|
|
5884
|
+
parentRegister(instanceId, componentDefinition$E.fragmentNode, parentId, metadata, uniforms, componentDefinition$E);
|
|
5605
5885
|
isRegistered = true;
|
|
5606
5886
|
} catch (error) {
|
|
5607
5887
|
console.error("Error registering shader node:", error);
|
|
@@ -5677,8 +5957,8 @@ const defaultProps$g = {
|
|
|
5677
5957
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5678
5958
|
};
|
|
5679
5959
|
try {
|
|
5680
|
-
if (componentDefinition$
|
|
5681
|
-
Object.entries(componentDefinition$
|
|
5960
|
+
if (componentDefinition$F && componentDefinition$F.props) {
|
|
5961
|
+
Object.entries(componentDefinition$F.props).forEach(([key, config]) => {
|
|
5682
5962
|
const propConfig = config;
|
|
5683
5963
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5684
5964
|
defaultProps$g[key] = propConfig.default;
|
|
@@ -5696,7 +5976,7 @@ function ShaderComponent$g(props) {
|
|
|
5696
5976
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5697
5977
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5698
5978
|
} = context;
|
|
5699
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5979
|
+
const instanceId = props.id || `${componentDefinition$F.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5700
5980
|
const effectiveProps = createMemo(() => {
|
|
5701
5981
|
let baseProps = {
|
|
5702
5982
|
...defaultProps$g
|
|
@@ -5715,7 +5995,7 @@ function ShaderComponent$g(props) {
|
|
|
5715
5995
|
let uniformsMap = null;
|
|
5716
5996
|
const getUniformsMap = () => {
|
|
5717
5997
|
if (!uniformsMap) {
|
|
5718
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5998
|
+
uniformsMap = createUniformsMap(componentDefinition$F, effectiveProps(), instanceId);
|
|
5719
5999
|
}
|
|
5720
6000
|
return uniformsMap;
|
|
5721
6001
|
};
|
|
@@ -5740,7 +6020,7 @@ function ShaderComponent$g(props) {
|
|
|
5740
6020
|
renderOrder: props.renderOrder || 0,
|
|
5741
6021
|
transform: effectiveTransform()
|
|
5742
6022
|
};
|
|
5743
|
-
parentRegister(instanceId, componentDefinition$
|
|
6023
|
+
parentRegister(instanceId, componentDefinition$F.fragmentNode, parentId, metadata, uniforms, componentDefinition$F);
|
|
5744
6024
|
isRegistered = true;
|
|
5745
6025
|
} catch (error) {
|
|
5746
6026
|
console.error("Error registering shader node:", error);
|
|
@@ -5816,8 +6096,8 @@ const defaultProps$f = {
|
|
|
5816
6096
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5817
6097
|
};
|
|
5818
6098
|
try {
|
|
5819
|
-
if (componentDefinition$
|
|
5820
|
-
Object.entries(componentDefinition$
|
|
6099
|
+
if (componentDefinition$G && componentDefinition$G.props) {
|
|
6100
|
+
Object.entries(componentDefinition$G.props).forEach(([key, config]) => {
|
|
5821
6101
|
const propConfig = config;
|
|
5822
6102
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5823
6103
|
defaultProps$f[key] = propConfig.default;
|
|
@@ -5835,7 +6115,7 @@ function ShaderComponent$f(props) {
|
|
|
5835
6115
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5836
6116
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5837
6117
|
} = context;
|
|
5838
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6118
|
+
const instanceId = props.id || `${componentDefinition$G.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5839
6119
|
const effectiveProps = createMemo(() => {
|
|
5840
6120
|
let baseProps = {
|
|
5841
6121
|
...defaultProps$f
|
|
@@ -5854,7 +6134,7 @@ function ShaderComponent$f(props) {
|
|
|
5854
6134
|
let uniformsMap = null;
|
|
5855
6135
|
const getUniformsMap = () => {
|
|
5856
6136
|
if (!uniformsMap) {
|
|
5857
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6137
|
+
uniformsMap = createUniformsMap(componentDefinition$G, effectiveProps(), instanceId);
|
|
5858
6138
|
}
|
|
5859
6139
|
return uniformsMap;
|
|
5860
6140
|
};
|
|
@@ -5879,7 +6159,7 @@ function ShaderComponent$f(props) {
|
|
|
5879
6159
|
renderOrder: props.renderOrder || 0,
|
|
5880
6160
|
transform: effectiveTransform()
|
|
5881
6161
|
};
|
|
5882
|
-
parentRegister(instanceId, componentDefinition$
|
|
6162
|
+
parentRegister(instanceId, componentDefinition$G.fragmentNode, parentId, metadata, uniforms, componentDefinition$G);
|
|
5883
6163
|
isRegistered = true;
|
|
5884
6164
|
} catch (error) {
|
|
5885
6165
|
console.error("Error registering shader node:", error);
|
|
@@ -5955,8 +6235,8 @@ const defaultProps$e = {
|
|
|
5955
6235
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5956
6236
|
};
|
|
5957
6237
|
try {
|
|
5958
|
-
if (componentDefinition$
|
|
5959
|
-
Object.entries(componentDefinition$
|
|
6238
|
+
if (componentDefinition$H && componentDefinition$H.props) {
|
|
6239
|
+
Object.entries(componentDefinition$H.props).forEach(([key, config]) => {
|
|
5960
6240
|
const propConfig = config;
|
|
5961
6241
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5962
6242
|
defaultProps$e[key] = propConfig.default;
|
|
@@ -5974,7 +6254,7 @@ function ShaderComponent$e(props) {
|
|
|
5974
6254
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5975
6255
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5976
6256
|
} = context;
|
|
5977
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6257
|
+
const instanceId = props.id || `${componentDefinition$H.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5978
6258
|
const effectiveProps = createMemo(() => {
|
|
5979
6259
|
let baseProps = {
|
|
5980
6260
|
...defaultProps$e
|
|
@@ -5993,7 +6273,7 @@ function ShaderComponent$e(props) {
|
|
|
5993
6273
|
let uniformsMap = null;
|
|
5994
6274
|
const getUniformsMap = () => {
|
|
5995
6275
|
if (!uniformsMap) {
|
|
5996
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6276
|
+
uniformsMap = createUniformsMap(componentDefinition$H, effectiveProps(), instanceId);
|
|
5997
6277
|
}
|
|
5998
6278
|
return uniformsMap;
|
|
5999
6279
|
};
|
|
@@ -6018,7 +6298,7 @@ function ShaderComponent$e(props) {
|
|
|
6018
6298
|
renderOrder: props.renderOrder || 0,
|
|
6019
6299
|
transform: effectiveTransform()
|
|
6020
6300
|
};
|
|
6021
|
-
parentRegister(instanceId, componentDefinition$
|
|
6301
|
+
parentRegister(instanceId, componentDefinition$H.fragmentNode, parentId, metadata, uniforms, componentDefinition$H);
|
|
6022
6302
|
isRegistered = true;
|
|
6023
6303
|
} catch (error) {
|
|
6024
6304
|
console.error("Error registering shader node:", error);
|
|
@@ -6094,8 +6374,8 @@ const defaultProps$d = {
|
|
|
6094
6374
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6095
6375
|
};
|
|
6096
6376
|
try {
|
|
6097
|
-
if (componentDefinition$
|
|
6098
|
-
Object.entries(componentDefinition$
|
|
6377
|
+
if (componentDefinition$I && componentDefinition$I.props) {
|
|
6378
|
+
Object.entries(componentDefinition$I.props).forEach(([key, config]) => {
|
|
6099
6379
|
const propConfig = config;
|
|
6100
6380
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6101
6381
|
defaultProps$d[key] = propConfig.default;
|
|
@@ -6113,7 +6393,7 @@ function ShaderComponent$d(props) {
|
|
|
6113
6393
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6114
6394
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6115
6395
|
} = context;
|
|
6116
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6396
|
+
const instanceId = props.id || `${componentDefinition$I.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6117
6397
|
const effectiveProps = createMemo(() => {
|
|
6118
6398
|
let baseProps = {
|
|
6119
6399
|
...defaultProps$d
|
|
@@ -6132,7 +6412,7 @@ function ShaderComponent$d(props) {
|
|
|
6132
6412
|
let uniformsMap = null;
|
|
6133
6413
|
const getUniformsMap = () => {
|
|
6134
6414
|
if (!uniformsMap) {
|
|
6135
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6415
|
+
uniformsMap = createUniformsMap(componentDefinition$I, effectiveProps(), instanceId);
|
|
6136
6416
|
}
|
|
6137
6417
|
return uniformsMap;
|
|
6138
6418
|
};
|
|
@@ -6157,7 +6437,7 @@ function ShaderComponent$d(props) {
|
|
|
6157
6437
|
renderOrder: props.renderOrder || 0,
|
|
6158
6438
|
transform: effectiveTransform()
|
|
6159
6439
|
};
|
|
6160
|
-
parentRegister(instanceId, componentDefinition$
|
|
6440
|
+
parentRegister(instanceId, componentDefinition$I.fragmentNode, parentId, metadata, uniforms, componentDefinition$I);
|
|
6161
6441
|
isRegistered = true;
|
|
6162
6442
|
} catch (error) {
|
|
6163
6443
|
console.error("Error registering shader node:", error);
|
|
@@ -6233,8 +6513,8 @@ const defaultProps$c = {
|
|
|
6233
6513
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6234
6514
|
};
|
|
6235
6515
|
try {
|
|
6236
|
-
if (componentDefinition$
|
|
6237
|
-
Object.entries(componentDefinition$
|
|
6516
|
+
if (componentDefinition$J && componentDefinition$J.props) {
|
|
6517
|
+
Object.entries(componentDefinition$J.props).forEach(([key, config]) => {
|
|
6238
6518
|
const propConfig = config;
|
|
6239
6519
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6240
6520
|
defaultProps$c[key] = propConfig.default;
|
|
@@ -6252,7 +6532,7 @@ function ShaderComponent$c(props) {
|
|
|
6252
6532
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6253
6533
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6254
6534
|
} = context;
|
|
6255
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6535
|
+
const instanceId = props.id || `${componentDefinition$J.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6256
6536
|
const effectiveProps = createMemo(() => {
|
|
6257
6537
|
let baseProps = {
|
|
6258
6538
|
...defaultProps$c
|
|
@@ -6271,7 +6551,7 @@ function ShaderComponent$c(props) {
|
|
|
6271
6551
|
let uniformsMap = null;
|
|
6272
6552
|
const getUniformsMap = () => {
|
|
6273
6553
|
if (!uniformsMap) {
|
|
6274
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6554
|
+
uniformsMap = createUniformsMap(componentDefinition$J, effectiveProps(), instanceId);
|
|
6275
6555
|
}
|
|
6276
6556
|
return uniformsMap;
|
|
6277
6557
|
};
|
|
@@ -6296,7 +6576,7 @@ function ShaderComponent$c(props) {
|
|
|
6296
6576
|
renderOrder: props.renderOrder || 0,
|
|
6297
6577
|
transform: effectiveTransform()
|
|
6298
6578
|
};
|
|
6299
|
-
parentRegister(instanceId, componentDefinition$
|
|
6579
|
+
parentRegister(instanceId, componentDefinition$J.fragmentNode, parentId, metadata, uniforms, componentDefinition$J);
|
|
6300
6580
|
isRegistered = true;
|
|
6301
6581
|
} catch (error) {
|
|
6302
6582
|
console.error("Error registering shader node:", error);
|
|
@@ -6372,8 +6652,8 @@ const defaultProps$b = {
|
|
|
6372
6652
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6373
6653
|
};
|
|
6374
6654
|
try {
|
|
6375
|
-
if (componentDefinition$
|
|
6376
|
-
Object.entries(componentDefinition$
|
|
6655
|
+
if (componentDefinition$K && componentDefinition$K.props) {
|
|
6656
|
+
Object.entries(componentDefinition$K.props).forEach(([key, config]) => {
|
|
6377
6657
|
const propConfig = config;
|
|
6378
6658
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6379
6659
|
defaultProps$b[key] = propConfig.default;
|
|
@@ -6391,7 +6671,7 @@ function ShaderComponent$b(props) {
|
|
|
6391
6671
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6392
6672
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6393
6673
|
} = context;
|
|
6394
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6674
|
+
const instanceId = props.id || `${componentDefinition$K.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6395
6675
|
const effectiveProps = createMemo(() => {
|
|
6396
6676
|
let baseProps = {
|
|
6397
6677
|
...defaultProps$b
|
|
@@ -6410,7 +6690,7 @@ function ShaderComponent$b(props) {
|
|
|
6410
6690
|
let uniformsMap = null;
|
|
6411
6691
|
const getUniformsMap = () => {
|
|
6412
6692
|
if (!uniformsMap) {
|
|
6413
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6693
|
+
uniformsMap = createUniformsMap(componentDefinition$K, effectiveProps(), instanceId);
|
|
6414
6694
|
}
|
|
6415
6695
|
return uniformsMap;
|
|
6416
6696
|
};
|
|
@@ -6435,7 +6715,7 @@ function ShaderComponent$b(props) {
|
|
|
6435
6715
|
renderOrder: props.renderOrder || 0,
|
|
6436
6716
|
transform: effectiveTransform()
|
|
6437
6717
|
};
|
|
6438
|
-
parentRegister(instanceId, componentDefinition$
|
|
6718
|
+
parentRegister(instanceId, componentDefinition$K.fragmentNode, parentId, metadata, uniforms, componentDefinition$K);
|
|
6439
6719
|
isRegistered = true;
|
|
6440
6720
|
} catch (error) {
|
|
6441
6721
|
console.error("Error registering shader node:", error);
|
|
@@ -6511,8 +6791,8 @@ const defaultProps$a = {
|
|
|
6511
6791
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6512
6792
|
};
|
|
6513
6793
|
try {
|
|
6514
|
-
if (componentDefinition$
|
|
6515
|
-
Object.entries(componentDefinition$
|
|
6794
|
+
if (componentDefinition$L && componentDefinition$L.props) {
|
|
6795
|
+
Object.entries(componentDefinition$L.props).forEach(([key, config]) => {
|
|
6516
6796
|
const propConfig = config;
|
|
6517
6797
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6518
6798
|
defaultProps$a[key] = propConfig.default;
|
|
@@ -6530,7 +6810,7 @@ function ShaderComponent$a(props) {
|
|
|
6530
6810
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6531
6811
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6532
6812
|
} = context;
|
|
6533
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6813
|
+
const instanceId = props.id || `${componentDefinition$L.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6534
6814
|
const effectiveProps = createMemo(() => {
|
|
6535
6815
|
let baseProps = {
|
|
6536
6816
|
...defaultProps$a
|
|
@@ -6549,7 +6829,7 @@ function ShaderComponent$a(props) {
|
|
|
6549
6829
|
let uniformsMap = null;
|
|
6550
6830
|
const getUniformsMap = () => {
|
|
6551
6831
|
if (!uniformsMap) {
|
|
6552
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6832
|
+
uniformsMap = createUniformsMap(componentDefinition$L, effectiveProps(), instanceId);
|
|
6553
6833
|
}
|
|
6554
6834
|
return uniformsMap;
|
|
6555
6835
|
};
|
|
@@ -6574,7 +6854,7 @@ function ShaderComponent$a(props) {
|
|
|
6574
6854
|
renderOrder: props.renderOrder || 0,
|
|
6575
6855
|
transform: effectiveTransform()
|
|
6576
6856
|
};
|
|
6577
|
-
parentRegister(instanceId, componentDefinition$
|
|
6857
|
+
parentRegister(instanceId, componentDefinition$L.fragmentNode, parentId, metadata, uniforms, componentDefinition$L);
|
|
6578
6858
|
isRegistered = true;
|
|
6579
6859
|
} catch (error) {
|
|
6580
6860
|
console.error("Error registering shader node:", error);
|
|
@@ -6650,8 +6930,8 @@ const defaultProps$9 = {
|
|
|
6650
6930
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6651
6931
|
};
|
|
6652
6932
|
try {
|
|
6653
|
-
if (componentDefinition$
|
|
6654
|
-
Object.entries(componentDefinition$
|
|
6933
|
+
if (componentDefinition$M && componentDefinition$M.props) {
|
|
6934
|
+
Object.entries(componentDefinition$M.props).forEach(([key, config]) => {
|
|
6655
6935
|
const propConfig = config;
|
|
6656
6936
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6657
6937
|
defaultProps$9[key] = propConfig.default;
|
|
@@ -6669,7 +6949,7 @@ function ShaderComponent$9(props) {
|
|
|
6669
6949
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6670
6950
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6671
6951
|
} = context;
|
|
6672
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6952
|
+
const instanceId = props.id || `${componentDefinition$M.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6673
6953
|
const effectiveProps = createMemo(() => {
|
|
6674
6954
|
let baseProps = {
|
|
6675
6955
|
...defaultProps$9
|
|
@@ -6688,7 +6968,7 @@ function ShaderComponent$9(props) {
|
|
|
6688
6968
|
let uniformsMap = null;
|
|
6689
6969
|
const getUniformsMap = () => {
|
|
6690
6970
|
if (!uniformsMap) {
|
|
6691
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6971
|
+
uniformsMap = createUniformsMap(componentDefinition$M, effectiveProps(), instanceId);
|
|
6692
6972
|
}
|
|
6693
6973
|
return uniformsMap;
|
|
6694
6974
|
};
|
|
@@ -6713,7 +6993,7 @@ function ShaderComponent$9(props) {
|
|
|
6713
6993
|
renderOrder: props.renderOrder || 0,
|
|
6714
6994
|
transform: effectiveTransform()
|
|
6715
6995
|
};
|
|
6716
|
-
parentRegister(instanceId, componentDefinition$
|
|
6996
|
+
parentRegister(instanceId, componentDefinition$M.fragmentNode, parentId, metadata, uniforms, componentDefinition$M);
|
|
6717
6997
|
isRegistered = true;
|
|
6718
6998
|
} catch (error) {
|
|
6719
6999
|
console.error("Error registering shader node:", error);
|
|
@@ -6789,8 +7069,8 @@ const defaultProps$8 = {
|
|
|
6789
7069
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6790
7070
|
};
|
|
6791
7071
|
try {
|
|
6792
|
-
if (componentDefinition$
|
|
6793
|
-
Object.entries(componentDefinition$
|
|
7072
|
+
if (componentDefinition$N && componentDefinition$N.props) {
|
|
7073
|
+
Object.entries(componentDefinition$N.props).forEach(([key, config]) => {
|
|
6794
7074
|
const propConfig = config;
|
|
6795
7075
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6796
7076
|
defaultProps$8[key] = propConfig.default;
|
|
@@ -6808,7 +7088,7 @@ function ShaderComponent$8(props) {
|
|
|
6808
7088
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6809
7089
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6810
7090
|
} = context;
|
|
6811
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7091
|
+
const instanceId = props.id || `${componentDefinition$N.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6812
7092
|
const effectiveProps = createMemo(() => {
|
|
6813
7093
|
let baseProps = {
|
|
6814
7094
|
...defaultProps$8
|
|
@@ -6827,7 +7107,7 @@ function ShaderComponent$8(props) {
|
|
|
6827
7107
|
let uniformsMap = null;
|
|
6828
7108
|
const getUniformsMap = () => {
|
|
6829
7109
|
if (!uniformsMap) {
|
|
6830
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7110
|
+
uniformsMap = createUniformsMap(componentDefinition$N, effectiveProps(), instanceId);
|
|
6831
7111
|
}
|
|
6832
7112
|
return uniformsMap;
|
|
6833
7113
|
};
|
|
@@ -6852,7 +7132,7 @@ function ShaderComponent$8(props) {
|
|
|
6852
7132
|
renderOrder: props.renderOrder || 0,
|
|
6853
7133
|
transform: effectiveTransform()
|
|
6854
7134
|
};
|
|
6855
|
-
parentRegister(instanceId, componentDefinition$
|
|
7135
|
+
parentRegister(instanceId, componentDefinition$N.fragmentNode, parentId, metadata, uniforms, componentDefinition$N);
|
|
6856
7136
|
isRegistered = true;
|
|
6857
7137
|
} catch (error) {
|
|
6858
7138
|
console.error("Error registering shader node:", error);
|
|
@@ -6928,8 +7208,8 @@ const defaultProps$7 = {
|
|
|
6928
7208
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6929
7209
|
};
|
|
6930
7210
|
try {
|
|
6931
|
-
if (componentDefinition$
|
|
6932
|
-
Object.entries(componentDefinition$
|
|
7211
|
+
if (componentDefinition$O && componentDefinition$O.props) {
|
|
7212
|
+
Object.entries(componentDefinition$O.props).forEach(([key, config]) => {
|
|
6933
7213
|
const propConfig = config;
|
|
6934
7214
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6935
7215
|
defaultProps$7[key] = propConfig.default;
|
|
@@ -6947,7 +7227,7 @@ function ShaderComponent$7(props) {
|
|
|
6947
7227
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6948
7228
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6949
7229
|
} = context;
|
|
6950
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7230
|
+
const instanceId = props.id || `${componentDefinition$O.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6951
7231
|
const effectiveProps = createMemo(() => {
|
|
6952
7232
|
let baseProps = {
|
|
6953
7233
|
...defaultProps$7
|
|
@@ -6966,7 +7246,7 @@ function ShaderComponent$7(props) {
|
|
|
6966
7246
|
let uniformsMap = null;
|
|
6967
7247
|
const getUniformsMap = () => {
|
|
6968
7248
|
if (!uniformsMap) {
|
|
6969
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7249
|
+
uniformsMap = createUniformsMap(componentDefinition$O, effectiveProps(), instanceId);
|
|
6970
7250
|
}
|
|
6971
7251
|
return uniformsMap;
|
|
6972
7252
|
};
|
|
@@ -6991,7 +7271,7 @@ function ShaderComponent$7(props) {
|
|
|
6991
7271
|
renderOrder: props.renderOrder || 0,
|
|
6992
7272
|
transform: effectiveTransform()
|
|
6993
7273
|
};
|
|
6994
|
-
parentRegister(instanceId, componentDefinition$
|
|
7274
|
+
parentRegister(instanceId, componentDefinition$O.fragmentNode, parentId, metadata, uniforms, componentDefinition$O);
|
|
6995
7275
|
isRegistered = true;
|
|
6996
7276
|
} catch (error) {
|
|
6997
7277
|
console.error("Error registering shader node:", error);
|
|
@@ -7067,8 +7347,8 @@ const defaultProps$6 = {
|
|
|
7067
7347
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7068
7348
|
};
|
|
7069
7349
|
try {
|
|
7070
|
-
if (componentDefinition$
|
|
7071
|
-
Object.entries(componentDefinition$
|
|
7350
|
+
if (componentDefinition$P && componentDefinition$P.props) {
|
|
7351
|
+
Object.entries(componentDefinition$P.props).forEach(([key, config]) => {
|
|
7072
7352
|
const propConfig = config;
|
|
7073
7353
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7074
7354
|
defaultProps$6[key] = propConfig.default;
|
|
@@ -7086,7 +7366,7 @@ function ShaderComponent$6(props) {
|
|
|
7086
7366
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7087
7367
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7088
7368
|
} = context;
|
|
7089
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7369
|
+
const instanceId = props.id || `${componentDefinition$P.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7090
7370
|
const effectiveProps = createMemo(() => {
|
|
7091
7371
|
let baseProps = {
|
|
7092
7372
|
...defaultProps$6
|
|
@@ -7105,7 +7385,7 @@ function ShaderComponent$6(props) {
|
|
|
7105
7385
|
let uniformsMap = null;
|
|
7106
7386
|
const getUniformsMap = () => {
|
|
7107
7387
|
if (!uniformsMap) {
|
|
7108
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7388
|
+
uniformsMap = createUniformsMap(componentDefinition$P, effectiveProps(), instanceId);
|
|
7109
7389
|
}
|
|
7110
7390
|
return uniformsMap;
|
|
7111
7391
|
};
|
|
@@ -7130,7 +7410,7 @@ function ShaderComponent$6(props) {
|
|
|
7130
7410
|
renderOrder: props.renderOrder || 0,
|
|
7131
7411
|
transform: effectiveTransform()
|
|
7132
7412
|
};
|
|
7133
|
-
parentRegister(instanceId, componentDefinition$
|
|
7413
|
+
parentRegister(instanceId, componentDefinition$P.fragmentNode, parentId, metadata, uniforms, componentDefinition$P);
|
|
7134
7414
|
isRegistered = true;
|
|
7135
7415
|
} catch (error) {
|
|
7136
7416
|
console.error("Error registering shader node:", error);
|
|
@@ -7206,8 +7486,8 @@ const defaultProps$5 = {
|
|
|
7206
7486
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7207
7487
|
};
|
|
7208
7488
|
try {
|
|
7209
|
-
if (componentDefinition$
|
|
7210
|
-
Object.entries(componentDefinition$
|
|
7489
|
+
if (componentDefinition$Q && componentDefinition$Q.props) {
|
|
7490
|
+
Object.entries(componentDefinition$Q.props).forEach(([key, config]) => {
|
|
7211
7491
|
const propConfig = config;
|
|
7212
7492
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7213
7493
|
defaultProps$5[key] = propConfig.default;
|
|
@@ -7225,7 +7505,7 @@ function ShaderComponent$5(props) {
|
|
|
7225
7505
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7226
7506
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7227
7507
|
} = context;
|
|
7228
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7508
|
+
const instanceId = props.id || `${componentDefinition$Q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7229
7509
|
const effectiveProps = createMemo(() => {
|
|
7230
7510
|
let baseProps = {
|
|
7231
7511
|
...defaultProps$5
|
|
@@ -7244,7 +7524,7 @@ function ShaderComponent$5(props) {
|
|
|
7244
7524
|
let uniformsMap = null;
|
|
7245
7525
|
const getUniformsMap = () => {
|
|
7246
7526
|
if (!uniformsMap) {
|
|
7247
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7527
|
+
uniformsMap = createUniformsMap(componentDefinition$Q, effectiveProps(), instanceId);
|
|
7248
7528
|
}
|
|
7249
7529
|
return uniformsMap;
|
|
7250
7530
|
};
|
|
@@ -7269,7 +7549,7 @@ function ShaderComponent$5(props) {
|
|
|
7269
7549
|
renderOrder: props.renderOrder || 0,
|
|
7270
7550
|
transform: effectiveTransform()
|
|
7271
7551
|
};
|
|
7272
|
-
parentRegister(instanceId, componentDefinition$
|
|
7552
|
+
parentRegister(instanceId, componentDefinition$Q.fragmentNode, parentId, metadata, uniforms, componentDefinition$Q);
|
|
7273
7553
|
isRegistered = true;
|
|
7274
7554
|
} catch (error) {
|
|
7275
7555
|
console.error("Error registering shader node:", error);
|
|
@@ -7345,8 +7625,8 @@ const defaultProps$4 = {
|
|
|
7345
7625
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7346
7626
|
};
|
|
7347
7627
|
try {
|
|
7348
|
-
if (componentDefinition$
|
|
7349
|
-
Object.entries(componentDefinition$
|
|
7628
|
+
if (componentDefinition$R && componentDefinition$R.props) {
|
|
7629
|
+
Object.entries(componentDefinition$R.props).forEach(([key, config]) => {
|
|
7350
7630
|
const propConfig = config;
|
|
7351
7631
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7352
7632
|
defaultProps$4[key] = propConfig.default;
|
|
@@ -7364,7 +7644,7 @@ function ShaderComponent$4(props) {
|
|
|
7364
7644
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7365
7645
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7366
7646
|
} = context;
|
|
7367
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7647
|
+
const instanceId = props.id || `${componentDefinition$R.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7368
7648
|
const effectiveProps = createMemo(() => {
|
|
7369
7649
|
let baseProps = {
|
|
7370
7650
|
...defaultProps$4
|
|
@@ -7383,7 +7663,7 @@ function ShaderComponent$4(props) {
|
|
|
7383
7663
|
let uniformsMap = null;
|
|
7384
7664
|
const getUniformsMap = () => {
|
|
7385
7665
|
if (!uniformsMap) {
|
|
7386
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7666
|
+
uniformsMap = createUniformsMap(componentDefinition$R, effectiveProps(), instanceId);
|
|
7387
7667
|
}
|
|
7388
7668
|
return uniformsMap;
|
|
7389
7669
|
};
|
|
@@ -7408,7 +7688,7 @@ function ShaderComponent$4(props) {
|
|
|
7408
7688
|
renderOrder: props.renderOrder || 0,
|
|
7409
7689
|
transform: effectiveTransform()
|
|
7410
7690
|
};
|
|
7411
|
-
parentRegister(instanceId, componentDefinition$
|
|
7691
|
+
parentRegister(instanceId, componentDefinition$R.fragmentNode, parentId, metadata, uniforms, componentDefinition$R);
|
|
7412
7692
|
isRegistered = true;
|
|
7413
7693
|
} catch (error) {
|
|
7414
7694
|
console.error("Error registering shader node:", error);
|
|
@@ -7484,8 +7764,8 @@ const defaultProps$3 = {
|
|
|
7484
7764
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7485
7765
|
};
|
|
7486
7766
|
try {
|
|
7487
|
-
if (componentDefinition$
|
|
7488
|
-
Object.entries(componentDefinition$
|
|
7767
|
+
if (componentDefinition$S && componentDefinition$S.props) {
|
|
7768
|
+
Object.entries(componentDefinition$S.props).forEach(([key, config]) => {
|
|
7489
7769
|
const propConfig = config;
|
|
7490
7770
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7491
7771
|
defaultProps$3[key] = propConfig.default;
|
|
@@ -7503,7 +7783,7 @@ function ShaderComponent$3(props) {
|
|
|
7503
7783
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7504
7784
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7505
7785
|
} = context;
|
|
7506
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7786
|
+
const instanceId = props.id || `${componentDefinition$S.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7507
7787
|
const effectiveProps = createMemo(() => {
|
|
7508
7788
|
let baseProps = {
|
|
7509
7789
|
...defaultProps$3
|
|
@@ -7522,7 +7802,7 @@ function ShaderComponent$3(props) {
|
|
|
7522
7802
|
let uniformsMap = null;
|
|
7523
7803
|
const getUniformsMap = () => {
|
|
7524
7804
|
if (!uniformsMap) {
|
|
7525
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7805
|
+
uniformsMap = createUniformsMap(componentDefinition$S, effectiveProps(), instanceId);
|
|
7526
7806
|
}
|
|
7527
7807
|
return uniformsMap;
|
|
7528
7808
|
};
|
|
@@ -7547,7 +7827,7 @@ function ShaderComponent$3(props) {
|
|
|
7547
7827
|
renderOrder: props.renderOrder || 0,
|
|
7548
7828
|
transform: effectiveTransform()
|
|
7549
7829
|
};
|
|
7550
|
-
parentRegister(instanceId, componentDefinition$
|
|
7830
|
+
parentRegister(instanceId, componentDefinition$S.fragmentNode, parentId, metadata, uniforms, componentDefinition$S);
|
|
7551
7831
|
isRegistered = true;
|
|
7552
7832
|
} catch (error) {
|
|
7553
7833
|
console.error("Error registering shader node:", error);
|
|
@@ -7623,8 +7903,8 @@ const defaultProps$2 = {
|
|
|
7623
7903
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7624
7904
|
};
|
|
7625
7905
|
try {
|
|
7626
|
-
if (componentDefinition$
|
|
7627
|
-
Object.entries(componentDefinition$
|
|
7906
|
+
if (componentDefinition$T && componentDefinition$T.props) {
|
|
7907
|
+
Object.entries(componentDefinition$T.props).forEach(([key, config]) => {
|
|
7628
7908
|
const propConfig = config;
|
|
7629
7909
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7630
7910
|
defaultProps$2[key] = propConfig.default;
|
|
@@ -7642,7 +7922,7 @@ function ShaderComponent$2(props) {
|
|
|
7642
7922
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7643
7923
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7644
7924
|
} = context;
|
|
7645
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7925
|
+
const instanceId = props.id || `${componentDefinition$T.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7646
7926
|
const effectiveProps = createMemo(() => {
|
|
7647
7927
|
let baseProps = {
|
|
7648
7928
|
...defaultProps$2
|
|
@@ -7661,7 +7941,7 @@ function ShaderComponent$2(props) {
|
|
|
7661
7941
|
let uniformsMap = null;
|
|
7662
7942
|
const getUniformsMap = () => {
|
|
7663
7943
|
if (!uniformsMap) {
|
|
7664
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7944
|
+
uniformsMap = createUniformsMap(componentDefinition$T, effectiveProps(), instanceId);
|
|
7665
7945
|
}
|
|
7666
7946
|
return uniformsMap;
|
|
7667
7947
|
};
|
|
@@ -7686,7 +7966,7 @@ function ShaderComponent$2(props) {
|
|
|
7686
7966
|
renderOrder: props.renderOrder || 0,
|
|
7687
7967
|
transform: effectiveTransform()
|
|
7688
7968
|
};
|
|
7689
|
-
parentRegister(instanceId, componentDefinition$
|
|
7969
|
+
parentRegister(instanceId, componentDefinition$T.fragmentNode, parentId, metadata, uniforms, componentDefinition$T);
|
|
7690
7970
|
isRegistered = true;
|
|
7691
7971
|
} catch (error) {
|
|
7692
7972
|
console.error("Error registering shader node:", error);
|
|
@@ -7762,8 +8042,8 @@ const defaultProps$1 = {
|
|
|
7762
8042
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7763
8043
|
};
|
|
7764
8044
|
try {
|
|
7765
|
-
if (componentDefinition$
|
|
7766
|
-
Object.entries(componentDefinition$
|
|
8045
|
+
if (componentDefinition$U && componentDefinition$U.props) {
|
|
8046
|
+
Object.entries(componentDefinition$U.props).forEach(([key, config]) => {
|
|
7767
8047
|
const propConfig = config;
|
|
7768
8048
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7769
8049
|
defaultProps$1[key] = propConfig.default;
|
|
@@ -7781,7 +8061,7 @@ function ShaderComponent$1(props) {
|
|
|
7781
8061
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7782
8062
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7783
8063
|
} = context;
|
|
7784
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8064
|
+
const instanceId = props.id || `${componentDefinition$U.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7785
8065
|
const effectiveProps = createMemo(() => {
|
|
7786
8066
|
let baseProps = {
|
|
7787
8067
|
...defaultProps$1
|
|
@@ -7800,7 +8080,7 @@ function ShaderComponent$1(props) {
|
|
|
7800
8080
|
let uniformsMap = null;
|
|
7801
8081
|
const getUniformsMap = () => {
|
|
7802
8082
|
if (!uniformsMap) {
|
|
7803
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8083
|
+
uniformsMap = createUniformsMap(componentDefinition$U, effectiveProps(), instanceId);
|
|
7804
8084
|
}
|
|
7805
8085
|
return uniformsMap;
|
|
7806
8086
|
};
|
|
@@ -7825,7 +8105,7 @@ function ShaderComponent$1(props) {
|
|
|
7825
8105
|
renderOrder: props.renderOrder || 0,
|
|
7826
8106
|
transform: effectiveTransform()
|
|
7827
8107
|
};
|
|
7828
|
-
parentRegister(instanceId, componentDefinition$
|
|
8108
|
+
parentRegister(instanceId, componentDefinition$U.fragmentNode, parentId, metadata, uniforms, componentDefinition$U);
|
|
7829
8109
|
isRegistered = true;
|
|
7830
8110
|
} catch (error) {
|
|
7831
8111
|
console.error("Error registering shader node:", error);
|
|
@@ -7901,8 +8181,8 @@ const defaultProps = {
|
|
|
7901
8181
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7902
8182
|
};
|
|
7903
8183
|
try {
|
|
7904
|
-
if (componentDefinition$
|
|
7905
|
-
Object.entries(componentDefinition$
|
|
8184
|
+
if (componentDefinition$V && componentDefinition$V.props) {
|
|
8185
|
+
Object.entries(componentDefinition$V.props).forEach(([key, config]) => {
|
|
7906
8186
|
const propConfig = config;
|
|
7907
8187
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7908
8188
|
defaultProps[key] = propConfig.default;
|
|
@@ -7920,7 +8200,7 @@ function ShaderComponent(props) {
|
|
|
7920
8200
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7921
8201
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7922
8202
|
} = context;
|
|
7923
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8203
|
+
const instanceId = props.id || `${componentDefinition$V.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7924
8204
|
const effectiveProps = createMemo(() => {
|
|
7925
8205
|
let baseProps = {
|
|
7926
8206
|
...defaultProps
|
|
@@ -7939,7 +8219,7 @@ function ShaderComponent(props) {
|
|
|
7939
8219
|
let uniformsMap = null;
|
|
7940
8220
|
const getUniformsMap = () => {
|
|
7941
8221
|
if (!uniformsMap) {
|
|
7942
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8222
|
+
uniformsMap = createUniformsMap(componentDefinition$V, effectiveProps(), instanceId);
|
|
7943
8223
|
}
|
|
7944
8224
|
return uniformsMap;
|
|
7945
8225
|
};
|
|
@@ -7964,7 +8244,7 @@ function ShaderComponent(props) {
|
|
|
7964
8244
|
renderOrder: props.renderOrder || 0,
|
|
7965
8245
|
transform: effectiveTransform()
|
|
7966
8246
|
};
|
|
7967
|
-
parentRegister(instanceId, componentDefinition$
|
|
8247
|
+
parentRegister(instanceId, componentDefinition$V.fragmentNode, parentId, metadata, uniforms, componentDefinition$V);
|
|
7968
8248
|
isRegistered = true;
|
|
7969
8249
|
} catch (error) {
|
|
7970
8250
|
console.error("Error registering shader node:", error);
|
|
@@ -8024,49 +8304,51 @@ function ShaderComponent(props) {
|
|
|
8024
8304
|
});
|
|
8025
8305
|
}
|
|
8026
8306
|
export {
|
|
8027
|
-
ShaderComponent$
|
|
8028
|
-
ShaderComponent$
|
|
8029
|
-
ShaderComponent$
|
|
8030
|
-
ShaderComponent$
|
|
8031
|
-
ShaderComponent$
|
|
8032
|
-
ShaderComponent$
|
|
8033
|
-
ShaderComponent$
|
|
8034
|
-
ShaderComponent$
|
|
8035
|
-
ShaderComponent$
|
|
8036
|
-
ShaderComponent$
|
|
8037
|
-
ShaderComponent$
|
|
8038
|
-
ShaderComponent$
|
|
8039
|
-
ShaderComponent$
|
|
8040
|
-
ShaderComponent$
|
|
8041
|
-
ShaderComponent$
|
|
8042
|
-
ShaderComponent$
|
|
8043
|
-
ShaderComponent$
|
|
8044
|
-
ShaderComponent$
|
|
8045
|
-
ShaderComponent$
|
|
8046
|
-
ShaderComponent$
|
|
8047
|
-
ShaderComponent$
|
|
8048
|
-
ShaderComponent$
|
|
8049
|
-
ShaderComponent$
|
|
8050
|
-
ShaderComponent$
|
|
8051
|
-
ShaderComponent$
|
|
8052
|
-
ShaderComponent$
|
|
8053
|
-
ShaderComponent$
|
|
8054
|
-
ShaderComponent$
|
|
8055
|
-
ShaderComponent$
|
|
8056
|
-
ShaderComponent$
|
|
8057
|
-
ShaderComponent$
|
|
8058
|
-
ShaderComponent$
|
|
8059
|
-
ShaderComponent$
|
|
8060
|
-
ShaderComponent$
|
|
8061
|
-
ShaderComponent$
|
|
8062
|
-
ShaderComponent$
|
|
8063
|
-
ShaderComponent$
|
|
8064
|
-
ShaderComponent$
|
|
8065
|
-
ShaderComponent$
|
|
8066
|
-
ShaderComponent$
|
|
8067
|
-
ShaderComponent$
|
|
8068
|
-
ShaderComponent$
|
|
8307
|
+
ShaderComponent$V as AngularBlur,
|
|
8308
|
+
ShaderComponent$U as Ascii,
|
|
8309
|
+
ShaderComponent$T as Beam,
|
|
8310
|
+
ShaderComponent$S as Blob,
|
|
8311
|
+
ShaderComponent$R as Blur,
|
|
8312
|
+
ShaderComponent$Q as BrightnessContrast,
|
|
8313
|
+
ShaderComponent$P as Bulge,
|
|
8314
|
+
ShaderComponent$O as CRTScreen,
|
|
8315
|
+
ShaderComponent$N as ChannelBlur,
|
|
8316
|
+
ShaderComponent$M as Checkerboard,
|
|
8317
|
+
ShaderComponent$L as ChromaFlow,
|
|
8318
|
+
ShaderComponent$K as ChromaticAberration,
|
|
8319
|
+
ShaderComponent$J as Circle,
|
|
8320
|
+
ShaderComponent$I as CursorTrail,
|
|
8321
|
+
ShaderComponent$H as DiffuseBlur,
|
|
8322
|
+
ShaderComponent$G as Dither,
|
|
8323
|
+
ShaderComponent$F as DotGrid,
|
|
8324
|
+
ShaderComponent$E as Duotone,
|
|
8325
|
+
ShaderComponent$D as FilmGrain,
|
|
8326
|
+
ShaderComponent$C as FloatingParticles,
|
|
8327
|
+
ShaderComponent$B as GlassTiles,
|
|
8328
|
+
ShaderComponent$A as Glow,
|
|
8329
|
+
ShaderComponent$z as Godrays,
|
|
8330
|
+
ShaderComponent$y as Grayscale,
|
|
8331
|
+
ShaderComponent$x as Grid,
|
|
8332
|
+
ShaderComponent$w as GridDistortion,
|
|
8333
|
+
ShaderComponent$v as Group,
|
|
8334
|
+
ShaderComponent$u as Halftone,
|
|
8335
|
+
ShaderComponent$t as HueShift,
|
|
8336
|
+
ShaderComponent$s as ImageTexture,
|
|
8337
|
+
ShaderComponent$r as Invert,
|
|
8338
|
+
ShaderComponent$q as LinearBlur,
|
|
8339
|
+
ShaderComponent$p as LinearGradient,
|
|
8340
|
+
ShaderComponent$o as Liquify,
|
|
8341
|
+
ShaderComponent$n as Perspective,
|
|
8342
|
+
ShaderComponent$m as Pixelate,
|
|
8343
|
+
ShaderComponent$l as PolarCoordinates,
|
|
8344
|
+
ShaderComponent$k as Posterize,
|
|
8345
|
+
ShaderComponent$j as ProgressiveBlur,
|
|
8346
|
+
ShaderComponent$i as RadialGradient,
|
|
8347
|
+
ShaderComponent$h as RectangularCoordinates,
|
|
8348
|
+
ShaderComponent$g as Ripples,
|
|
8349
|
+
ShaderComponent$f as Saturation,
|
|
8069
8350
|
Shader,
|
|
8351
|
+
ShaderComponent$e as Sharpness,
|
|
8070
8352
|
ShaderComponent$d as SimplexNoise,
|
|
8071
8353
|
ShaderComponent$c as SineWave,
|
|
8072
8354
|
ShaderComponent$b as SolidColor,
|