shaders 2.2.41 → 2.2.43
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/Shatter-COjV2jLy.js +299 -0
- package/dist/core/WebcamTexture-D4Uv7Plz.js +168 -0
- package/dist/core/index.js +43 -39
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Shatter/index.d.ts +70 -0
- package/dist/core/shaders/Shatter/index.d.ts.map +1 -0
- package/dist/core/shaders/Shatter/index.js +4 -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/Stripes/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/Tint/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/WebcamTexture/index.d.ts +21 -0
- package/dist/core/shaders/WebcamTexture/index.d.ts.map +1 -0
- package/dist/core/shaders/WebcamTexture/index.js +2 -0
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/components/Shatter.d.ts +31 -0
- package/dist/react/components/Shatter.d.ts.map +1 -0
- package/dist/react/components/WebcamTexture.d.ts +31 -0
- package/dist/react/components/WebcamTexture.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-K6ZAneRr.js → generatePresetCode-D0yiVxb4.js} +21 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +717 -439
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +337 -0
- package/dist/solid/components/Shatter.d.ts +28 -0
- package/dist/solid/components/Shatter.d.ts.map +1 -0
- package/dist/solid/components/WebcamTexture.d.ts +28 -0
- package/dist/solid/components/WebcamTexture.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 +659 -375
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +21 -0
- package/dist/svelte/components/Shatter.svelte.d.ts +19 -0
- package/dist/svelte/components/WebcamTexture.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-x1dhDaQ3.js → generatePresetCode-DUGaV_ym.js} +21 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +256 -34
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Shatter.vue.d.ts +57 -0
- package/dist/vue/components/Shatter.vue.d.ts.map +1 -0
- package/dist/vue/components/WebcamTexture.vue.d.ts +57 -0
- package/dist/vue/components/WebcamTexture.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-BaNcX5ua.js → generatePresetCode-CShQ8TLw.js} +21 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +381 -130
- 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/{SimplexNoise-CMMeggo6.js → SimplexNoise-Ce79jgYM.js} +0 -0
- /package/dist/core/{SineWave-DVVLqHPw.js → SineWave-Cv2gOU8a.js} +0 -0
- /package/dist/core/{SolidColor-zYROg_aE.js → SolidColor-DFkDBFq3.js} +0 -0
- /package/dist/core/{Spherize-tsKMpSaS.js → Spherize-R-s4pX9t.js} +0 -0
- /package/dist/core/{Spiral-DDyVSeG_.js → Spiral-W4dALX1z.js} +0 -0
- /package/dist/core/{Strands-B9vY4uA7.js → Strands-DtN5POfO.js} +0 -0
- /package/dist/core/{Stretch-BhHjbcqd.js → Stretch-BzvP_hdu.js} +0 -0
- /package/dist/core/{Stripes-TdCUOh07.js → Stripes-BbNFX05u.js} +0 -0
- /package/dist/core/{Swirl-m1-Mnzj5.js → Swirl-CfsYsr4X.js} +0 -0
- /package/dist/core/{TiltShift-C_NUqKZF.js → TiltShift-B6gbm7Z8.js} +0 -0
- /package/dist/core/{Tint-ChKku9xR.js → Tint-CpnitsHw.js} +0 -0
- /package/dist/core/{Tritone-D-NcV7N-.js → Tritone-DzvSKVfR.js} +0 -0
- /package/dist/core/{Twirl-Cqzll6nW.js → Twirl-BXH4uAd6.js} +0 -0
- /package/dist/core/{Vibrance-CxunJkcb.js → Vibrance-ByN9bRgU.js} +0 -0
- /package/dist/core/{WaveDistortion-UQZKCfKh.js → WaveDistortion-BA1PyqYH.js} +0 -0
- /package/dist/core/{ZoomBlur-DqKYdlmm.js → ZoomBlur-CIkkDBIo.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -47,22 +47,24 @@ import { componentDefinition as componentDefinition$E } from "../core/shaders/Re
|
|
|
47
47
|
import { componentDefinition as componentDefinition$F } from "../core/shaders/Ripples/index.js";
|
|
48
48
|
import { componentDefinition as componentDefinition$G } from "../core/shaders/Saturation/index.js";
|
|
49
49
|
import { componentDefinition as componentDefinition$H } from "../core/shaders/Sharpness/index.js";
|
|
50
|
-
import { componentDefinition as componentDefinition$I } from "../core/shaders/
|
|
51
|
-
import { componentDefinition as componentDefinition$J } from "../core/shaders/
|
|
52
|
-
import { componentDefinition as componentDefinition$K } from "../core/shaders/
|
|
53
|
-
import { componentDefinition as componentDefinition$L } from "../core/shaders/
|
|
54
|
-
import { componentDefinition as componentDefinition$M } from "../core/shaders/
|
|
55
|
-
import { componentDefinition as componentDefinition$N } from "../core/shaders/
|
|
56
|
-
import { componentDefinition as componentDefinition$O } from "../core/shaders/
|
|
57
|
-
import { componentDefinition as componentDefinition$P } from "../core/shaders/
|
|
58
|
-
import { componentDefinition as componentDefinition$Q } from "../core/shaders/
|
|
59
|
-
import { componentDefinition as componentDefinition$R } from "../core/shaders/
|
|
60
|
-
import { componentDefinition as componentDefinition$S } from "../core/shaders/
|
|
61
|
-
import { componentDefinition as componentDefinition$T } from "../core/shaders/
|
|
62
|
-
import { componentDefinition as componentDefinition$U } from "../core/shaders/
|
|
63
|
-
import { componentDefinition as componentDefinition$V } from "../core/shaders/
|
|
64
|
-
import { componentDefinition as componentDefinition$W } from "../core/shaders/
|
|
65
|
-
import { componentDefinition as componentDefinition$X } from "../core/shaders/
|
|
50
|
+
import { componentDefinition as componentDefinition$I } from "../core/shaders/Shatter/index.js";
|
|
51
|
+
import { componentDefinition as componentDefinition$J } from "../core/shaders/SimplexNoise/index.js";
|
|
52
|
+
import { componentDefinition as componentDefinition$K } from "../core/shaders/SineWave/index.js";
|
|
53
|
+
import { componentDefinition as componentDefinition$L } from "../core/shaders/SolidColor/index.js";
|
|
54
|
+
import { componentDefinition as componentDefinition$M } from "../core/shaders/Spherize/index.js";
|
|
55
|
+
import { componentDefinition as componentDefinition$N } from "../core/shaders/Spiral/index.js";
|
|
56
|
+
import { componentDefinition as componentDefinition$O } from "../core/shaders/Strands/index.js";
|
|
57
|
+
import { componentDefinition as componentDefinition$P } from "../core/shaders/Stretch/index.js";
|
|
58
|
+
import { componentDefinition as componentDefinition$Q } from "../core/shaders/Stripes/index.js";
|
|
59
|
+
import { componentDefinition as componentDefinition$R } from "../core/shaders/Swirl/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$S } from "../core/shaders/TiltShift/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$T } from "../core/shaders/Tint/index.js";
|
|
62
|
+
import { componentDefinition as componentDefinition$U } from "../core/shaders/Tritone/index.js";
|
|
63
|
+
import { componentDefinition as componentDefinition$V } from "../core/shaders/Twirl/index.js";
|
|
64
|
+
import { componentDefinition as componentDefinition$W } from "../core/shaders/Vibrance/index.js";
|
|
65
|
+
import { componentDefinition as componentDefinition$X } from "../core/shaders/WaveDistortion/index.js";
|
|
66
|
+
import { componentDefinition as componentDefinition$Y } from "../core/shaders/WebcamTexture/index.js";
|
|
67
|
+
import { componentDefinition as componentDefinition$Z } from "../core/shaders/ZoomBlur/index.js";
|
|
66
68
|
import { generatePresetCode } from "./utils/generatePresetCode.js";
|
|
67
69
|
var _tmpl$ = /* @__PURE__ */ template(`<div><canvas data-renderer=shaders style=width:100%;height:100%;display:block>`);
|
|
68
70
|
const ShaderContext = createContext();
|
|
@@ -243,7 +245,7 @@ function useShaderContext() {
|
|
|
243
245
|
}
|
|
244
246
|
return ctx;
|
|
245
247
|
}
|
|
246
|
-
const DEFAULT_TRANSFORM$
|
|
248
|
+
const DEFAULT_TRANSFORM$Z = {
|
|
247
249
|
offsetX: 0,
|
|
248
250
|
offsetY: 0,
|
|
249
251
|
rotation: 0,
|
|
@@ -252,7 +254,7 @@ const DEFAULT_TRANSFORM$X = {
|
|
|
252
254
|
anchorY: 0.5,
|
|
253
255
|
edges: "transparent"
|
|
254
256
|
};
|
|
255
|
-
const defaultProps$
|
|
257
|
+
const defaultProps$Z = {
|
|
256
258
|
blendMode: "normal",
|
|
257
259
|
renderOrder: 0,
|
|
258
260
|
visible: true
|
|
@@ -262,6 +264,286 @@ const defaultProps$X = {
|
|
|
262
264
|
try {
|
|
263
265
|
if (componentDefinition && componentDefinition.props) {
|
|
264
266
|
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
267
|
+
const propConfig = config;
|
|
268
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
269
|
+
defaultProps$Z[key] = propConfig.default;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
} catch (e) {
|
|
274
|
+
console.warn("Error extracting default props:", e);
|
|
275
|
+
}
|
|
276
|
+
function ShaderComponent$Z(props) {
|
|
277
|
+
const [local, otherProps] = splitProps(props, ["children"]);
|
|
278
|
+
const context = useShaderContext();
|
|
279
|
+
const {
|
|
280
|
+
shaderParentId: parentId,
|
|
281
|
+
shaderNodeRegister: parentRegister,
|
|
282
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
283
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
284
|
+
} = context;
|
|
285
|
+
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
286
|
+
const effectiveProps = createMemo(() => {
|
|
287
|
+
let baseProps = {
|
|
288
|
+
...defaultProps$Z
|
|
289
|
+
};
|
|
290
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
291
|
+
if (value !== void 0) {
|
|
292
|
+
baseProps[key] = value;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return baseProps;
|
|
296
|
+
});
|
|
297
|
+
const effectiveTransform = createMemo(() => ({
|
|
298
|
+
...DEFAULT_TRANSFORM$Z,
|
|
299
|
+
...props.transform
|
|
300
|
+
}));
|
|
301
|
+
let uniformsMap = null;
|
|
302
|
+
const getUniformsMap = () => {
|
|
303
|
+
if (!uniformsMap) {
|
|
304
|
+
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
305
|
+
}
|
|
306
|
+
return uniformsMap;
|
|
307
|
+
};
|
|
308
|
+
const childContextValue = createMemo(() => ({
|
|
309
|
+
...context,
|
|
310
|
+
shaderParentId: instanceId
|
|
311
|
+
}));
|
|
312
|
+
let isRegistered = false;
|
|
313
|
+
onMount(() => {
|
|
314
|
+
const uniforms = getUniformsMap();
|
|
315
|
+
if (!uniforms) return;
|
|
316
|
+
try {
|
|
317
|
+
const metadata = {
|
|
318
|
+
blendMode: props.blendMode || "normal",
|
|
319
|
+
opacity: props.opacity,
|
|
320
|
+
visible: props.visible === false ? false : true,
|
|
321
|
+
id: props.id,
|
|
322
|
+
mask: props.maskSource ? {
|
|
323
|
+
source: props.maskSource,
|
|
324
|
+
type: props.maskType || "alpha"
|
|
325
|
+
} : void 0,
|
|
326
|
+
renderOrder: props.renderOrder || 0,
|
|
327
|
+
transform: effectiveTransform()
|
|
328
|
+
};
|
|
329
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
330
|
+
isRegistered = true;
|
|
331
|
+
} catch (error) {
|
|
332
|
+
console.error("Error registering shader node:", error);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
onCleanup(() => {
|
|
336
|
+
isRegistered = false;
|
|
337
|
+
parentRegister(instanceId, null, null, null, null);
|
|
338
|
+
});
|
|
339
|
+
createEffect(() => {
|
|
340
|
+
if (!isRegistered) return;
|
|
341
|
+
const uniforms = getUniformsMap();
|
|
342
|
+
if (!uniforms) return;
|
|
343
|
+
try {
|
|
344
|
+
const props_snapshot = effectiveProps();
|
|
345
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
346
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
347
|
+
const {
|
|
348
|
+
uniform
|
|
349
|
+
} = uniformData;
|
|
350
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
351
|
+
const newValue = props_snapshot[propName];
|
|
352
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
} catch (error) {
|
|
356
|
+
console.error("Error updating uniforms:", error);
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
createEffect(() => {
|
|
360
|
+
if (!isRegistered) return;
|
|
361
|
+
try {
|
|
362
|
+
const metadata = {
|
|
363
|
+
blendMode: props.blendMode || "normal",
|
|
364
|
+
opacity: props.opacity,
|
|
365
|
+
visible: props.visible === false ? false : true,
|
|
366
|
+
id: props.id,
|
|
367
|
+
mask: props.maskSource ? {
|
|
368
|
+
source: props.maskSource,
|
|
369
|
+
type: props.maskType || "alpha"
|
|
370
|
+
} : void 0,
|
|
371
|
+
renderOrder: props.renderOrder || 0,
|
|
372
|
+
transform: effectiveTransform()
|
|
373
|
+
};
|
|
374
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
375
|
+
} catch (error) {
|
|
376
|
+
console.error("Error updating metadata:", error);
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
return createComponent(ShaderContext.Provider, {
|
|
380
|
+
get value() {
|
|
381
|
+
return childContextValue();
|
|
382
|
+
},
|
|
383
|
+
get children() {
|
|
384
|
+
return local.children;
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
const DEFAULT_TRANSFORM$Y = {
|
|
389
|
+
offsetX: 0,
|
|
390
|
+
offsetY: 0,
|
|
391
|
+
rotation: 0,
|
|
392
|
+
scale: 1,
|
|
393
|
+
anchorX: 0.5,
|
|
394
|
+
anchorY: 0.5,
|
|
395
|
+
edges: "transparent"
|
|
396
|
+
};
|
|
397
|
+
const defaultProps$Y = {
|
|
398
|
+
blendMode: "normal",
|
|
399
|
+
renderOrder: 0,
|
|
400
|
+
visible: true
|
|
401
|
+
// opacity intentionally has no default - handled by renderer
|
|
402
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
403
|
+
};
|
|
404
|
+
try {
|
|
405
|
+
if (componentDefinition$1 && componentDefinition$1.props) {
|
|
406
|
+
Object.entries(componentDefinition$1.props).forEach(([key, config]) => {
|
|
407
|
+
const propConfig = config;
|
|
408
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
409
|
+
defaultProps$Y[key] = propConfig.default;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
} catch (e) {
|
|
414
|
+
console.warn("Error extracting default props:", e);
|
|
415
|
+
}
|
|
416
|
+
function ShaderComponent$Y(props) {
|
|
417
|
+
const [local, otherProps] = splitProps(props, ["children"]);
|
|
418
|
+
const context = useShaderContext();
|
|
419
|
+
const {
|
|
420
|
+
shaderParentId: parentId,
|
|
421
|
+
shaderNodeRegister: parentRegister,
|
|
422
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
423
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
424
|
+
} = context;
|
|
425
|
+
const instanceId = props.id || `${componentDefinition$1.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
426
|
+
const effectiveProps = createMemo(() => {
|
|
427
|
+
let baseProps = {
|
|
428
|
+
...defaultProps$Y
|
|
429
|
+
};
|
|
430
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
431
|
+
if (value !== void 0) {
|
|
432
|
+
baseProps[key] = value;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return baseProps;
|
|
436
|
+
});
|
|
437
|
+
const effectiveTransform = createMemo(() => ({
|
|
438
|
+
...DEFAULT_TRANSFORM$Y,
|
|
439
|
+
...props.transform
|
|
440
|
+
}));
|
|
441
|
+
let uniformsMap = null;
|
|
442
|
+
const getUniformsMap = () => {
|
|
443
|
+
if (!uniformsMap) {
|
|
444
|
+
uniformsMap = createUniformsMap(componentDefinition$1, effectiveProps(), instanceId);
|
|
445
|
+
}
|
|
446
|
+
return uniformsMap;
|
|
447
|
+
};
|
|
448
|
+
const childContextValue = createMemo(() => ({
|
|
449
|
+
...context,
|
|
450
|
+
shaderParentId: instanceId
|
|
451
|
+
}));
|
|
452
|
+
let isRegistered = false;
|
|
453
|
+
onMount(() => {
|
|
454
|
+
const uniforms = getUniformsMap();
|
|
455
|
+
if (!uniforms) return;
|
|
456
|
+
try {
|
|
457
|
+
const metadata = {
|
|
458
|
+
blendMode: props.blendMode || "normal",
|
|
459
|
+
opacity: props.opacity,
|
|
460
|
+
visible: props.visible === false ? false : true,
|
|
461
|
+
id: props.id,
|
|
462
|
+
mask: props.maskSource ? {
|
|
463
|
+
source: props.maskSource,
|
|
464
|
+
type: props.maskType || "alpha"
|
|
465
|
+
} : void 0,
|
|
466
|
+
renderOrder: props.renderOrder || 0,
|
|
467
|
+
transform: effectiveTransform()
|
|
468
|
+
};
|
|
469
|
+
parentRegister(instanceId, componentDefinition$1.fragmentNode, parentId, metadata, uniforms, componentDefinition$1);
|
|
470
|
+
isRegistered = true;
|
|
471
|
+
} catch (error) {
|
|
472
|
+
console.error("Error registering shader node:", error);
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
onCleanup(() => {
|
|
476
|
+
isRegistered = false;
|
|
477
|
+
parentRegister(instanceId, null, null, null, null);
|
|
478
|
+
});
|
|
479
|
+
createEffect(() => {
|
|
480
|
+
if (!isRegistered) return;
|
|
481
|
+
const uniforms = getUniformsMap();
|
|
482
|
+
if (!uniforms) return;
|
|
483
|
+
try {
|
|
484
|
+
const props_snapshot = effectiveProps();
|
|
485
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
486
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
487
|
+
const {
|
|
488
|
+
uniform
|
|
489
|
+
} = uniformData;
|
|
490
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
491
|
+
const newValue = props_snapshot[propName];
|
|
492
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
} catch (error) {
|
|
496
|
+
console.error("Error updating uniforms:", error);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
createEffect(() => {
|
|
500
|
+
if (!isRegistered) return;
|
|
501
|
+
try {
|
|
502
|
+
const metadata = {
|
|
503
|
+
blendMode: props.blendMode || "normal",
|
|
504
|
+
opacity: props.opacity,
|
|
505
|
+
visible: props.visible === false ? false : true,
|
|
506
|
+
id: props.id,
|
|
507
|
+
mask: props.maskSource ? {
|
|
508
|
+
source: props.maskSource,
|
|
509
|
+
type: props.maskType || "alpha"
|
|
510
|
+
} : void 0,
|
|
511
|
+
renderOrder: props.renderOrder || 0,
|
|
512
|
+
transform: effectiveTransform()
|
|
513
|
+
};
|
|
514
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
515
|
+
} catch (error) {
|
|
516
|
+
console.error("Error updating metadata:", error);
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
return createComponent(ShaderContext.Provider, {
|
|
520
|
+
get value() {
|
|
521
|
+
return childContextValue();
|
|
522
|
+
},
|
|
523
|
+
get children() {
|
|
524
|
+
return local.children;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
const DEFAULT_TRANSFORM$X = {
|
|
529
|
+
offsetX: 0,
|
|
530
|
+
offsetY: 0,
|
|
531
|
+
rotation: 0,
|
|
532
|
+
scale: 1,
|
|
533
|
+
anchorX: 0.5,
|
|
534
|
+
anchorY: 0.5,
|
|
535
|
+
edges: "transparent"
|
|
536
|
+
};
|
|
537
|
+
const defaultProps$X = {
|
|
538
|
+
blendMode: "normal",
|
|
539
|
+
renderOrder: 0,
|
|
540
|
+
visible: true
|
|
541
|
+
// opacity intentionally has no default - handled by renderer
|
|
542
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
543
|
+
};
|
|
544
|
+
try {
|
|
545
|
+
if (componentDefinition$2 && componentDefinition$2.props) {
|
|
546
|
+
Object.entries(componentDefinition$2.props).forEach(([key, config]) => {
|
|
265
547
|
const propConfig = config;
|
|
266
548
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
267
549
|
defaultProps$X[key] = propConfig.default;
|
|
@@ -280,7 +562,7 @@ function ShaderComponent$X(props) {
|
|
|
280
562
|
shaderUniformUpdate: parentUniformUpdate,
|
|
281
563
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
282
564
|
} = context;
|
|
283
|
-
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
565
|
+
const instanceId = props.id || `${componentDefinition$2.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
284
566
|
const effectiveProps = createMemo(() => {
|
|
285
567
|
let baseProps = {
|
|
286
568
|
...defaultProps$X
|
|
@@ -299,7 +581,7 @@ function ShaderComponent$X(props) {
|
|
|
299
581
|
let uniformsMap = null;
|
|
300
582
|
const getUniformsMap = () => {
|
|
301
583
|
if (!uniformsMap) {
|
|
302
|
-
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
584
|
+
uniformsMap = createUniformsMap(componentDefinition$2, effectiveProps(), instanceId);
|
|
303
585
|
}
|
|
304
586
|
return uniformsMap;
|
|
305
587
|
};
|
|
@@ -324,7 +606,7 @@ function ShaderComponent$X(props) {
|
|
|
324
606
|
renderOrder: props.renderOrder || 0,
|
|
325
607
|
transform: effectiveTransform()
|
|
326
608
|
};
|
|
327
|
-
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
609
|
+
parentRegister(instanceId, componentDefinition$2.fragmentNode, parentId, metadata, uniforms, componentDefinition$2);
|
|
328
610
|
isRegistered = true;
|
|
329
611
|
} catch (error) {
|
|
330
612
|
console.error("Error registering shader node:", error);
|
|
@@ -400,8 +682,8 @@ const defaultProps$W = {
|
|
|
400
682
|
// transform intentionally has no default - handled by effectiveTransform
|
|
401
683
|
};
|
|
402
684
|
try {
|
|
403
|
-
if (componentDefinition$
|
|
404
|
-
Object.entries(componentDefinition$
|
|
685
|
+
if (componentDefinition$3 && componentDefinition$3.props) {
|
|
686
|
+
Object.entries(componentDefinition$3.props).forEach(([key, config]) => {
|
|
405
687
|
const propConfig = config;
|
|
406
688
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
407
689
|
defaultProps$W[key] = propConfig.default;
|
|
@@ -420,7 +702,7 @@ function ShaderComponent$W(props) {
|
|
|
420
702
|
shaderUniformUpdate: parentUniformUpdate,
|
|
421
703
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
422
704
|
} = context;
|
|
423
|
-
const instanceId = props.id || `${componentDefinition$
|
|
705
|
+
const instanceId = props.id || `${componentDefinition$3.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
424
706
|
const effectiveProps = createMemo(() => {
|
|
425
707
|
let baseProps = {
|
|
426
708
|
...defaultProps$W
|
|
@@ -439,7 +721,7 @@ function ShaderComponent$W(props) {
|
|
|
439
721
|
let uniformsMap = null;
|
|
440
722
|
const getUniformsMap = () => {
|
|
441
723
|
if (!uniformsMap) {
|
|
442
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
724
|
+
uniformsMap = createUniformsMap(componentDefinition$3, effectiveProps(), instanceId);
|
|
443
725
|
}
|
|
444
726
|
return uniformsMap;
|
|
445
727
|
};
|
|
@@ -464,7 +746,7 @@ function ShaderComponent$W(props) {
|
|
|
464
746
|
renderOrder: props.renderOrder || 0,
|
|
465
747
|
transform: effectiveTransform()
|
|
466
748
|
};
|
|
467
|
-
parentRegister(instanceId, componentDefinition$
|
|
749
|
+
parentRegister(instanceId, componentDefinition$3.fragmentNode, parentId, metadata, uniforms, componentDefinition$3);
|
|
468
750
|
isRegistered = true;
|
|
469
751
|
} catch (error) {
|
|
470
752
|
console.error("Error registering shader node:", error);
|
|
@@ -540,8 +822,8 @@ const defaultProps$V = {
|
|
|
540
822
|
// transform intentionally has no default - handled by effectiveTransform
|
|
541
823
|
};
|
|
542
824
|
try {
|
|
543
|
-
if (componentDefinition$
|
|
544
|
-
Object.entries(componentDefinition$
|
|
825
|
+
if (componentDefinition$4 && componentDefinition$4.props) {
|
|
826
|
+
Object.entries(componentDefinition$4.props).forEach(([key, config]) => {
|
|
545
827
|
const propConfig = config;
|
|
546
828
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
547
829
|
defaultProps$V[key] = propConfig.default;
|
|
@@ -560,7 +842,7 @@ function ShaderComponent$V(props) {
|
|
|
560
842
|
shaderUniformUpdate: parentUniformUpdate,
|
|
561
843
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
562
844
|
} = context;
|
|
563
|
-
const instanceId = props.id || `${componentDefinition$
|
|
845
|
+
const instanceId = props.id || `${componentDefinition$4.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
564
846
|
const effectiveProps = createMemo(() => {
|
|
565
847
|
let baseProps = {
|
|
566
848
|
...defaultProps$V
|
|
@@ -579,7 +861,7 @@ function ShaderComponent$V(props) {
|
|
|
579
861
|
let uniformsMap = null;
|
|
580
862
|
const getUniformsMap = () => {
|
|
581
863
|
if (!uniformsMap) {
|
|
582
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
864
|
+
uniformsMap = createUniformsMap(componentDefinition$4, effectiveProps(), instanceId);
|
|
583
865
|
}
|
|
584
866
|
return uniformsMap;
|
|
585
867
|
};
|
|
@@ -604,7 +886,7 @@ function ShaderComponent$V(props) {
|
|
|
604
886
|
renderOrder: props.renderOrder || 0,
|
|
605
887
|
transform: effectiveTransform()
|
|
606
888
|
};
|
|
607
|
-
parentRegister(instanceId, componentDefinition$
|
|
889
|
+
parentRegister(instanceId, componentDefinition$4.fragmentNode, parentId, metadata, uniforms, componentDefinition$4);
|
|
608
890
|
isRegistered = true;
|
|
609
891
|
} catch (error) {
|
|
610
892
|
console.error("Error registering shader node:", error);
|
|
@@ -680,8 +962,8 @@ const defaultProps$U = {
|
|
|
680
962
|
// transform intentionally has no default - handled by effectiveTransform
|
|
681
963
|
};
|
|
682
964
|
try {
|
|
683
|
-
if (componentDefinition$
|
|
684
|
-
Object.entries(componentDefinition$
|
|
965
|
+
if (componentDefinition$5 && componentDefinition$5.props) {
|
|
966
|
+
Object.entries(componentDefinition$5.props).forEach(([key, config]) => {
|
|
685
967
|
const propConfig = config;
|
|
686
968
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
687
969
|
defaultProps$U[key] = propConfig.default;
|
|
@@ -700,7 +982,7 @@ function ShaderComponent$U(props) {
|
|
|
700
982
|
shaderUniformUpdate: parentUniformUpdate,
|
|
701
983
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
702
984
|
} = context;
|
|
703
|
-
const instanceId = props.id || `${componentDefinition$
|
|
985
|
+
const instanceId = props.id || `${componentDefinition$5.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
704
986
|
const effectiveProps = createMemo(() => {
|
|
705
987
|
let baseProps = {
|
|
706
988
|
...defaultProps$U
|
|
@@ -719,7 +1001,7 @@ function ShaderComponent$U(props) {
|
|
|
719
1001
|
let uniformsMap = null;
|
|
720
1002
|
const getUniformsMap = () => {
|
|
721
1003
|
if (!uniformsMap) {
|
|
722
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1004
|
+
uniformsMap = createUniformsMap(componentDefinition$5, effectiveProps(), instanceId);
|
|
723
1005
|
}
|
|
724
1006
|
return uniformsMap;
|
|
725
1007
|
};
|
|
@@ -744,7 +1026,7 @@ function ShaderComponent$U(props) {
|
|
|
744
1026
|
renderOrder: props.renderOrder || 0,
|
|
745
1027
|
transform: effectiveTransform()
|
|
746
1028
|
};
|
|
747
|
-
parentRegister(instanceId, componentDefinition$
|
|
1029
|
+
parentRegister(instanceId, componentDefinition$5.fragmentNode, parentId, metadata, uniforms, componentDefinition$5);
|
|
748
1030
|
isRegistered = true;
|
|
749
1031
|
} catch (error) {
|
|
750
1032
|
console.error("Error registering shader node:", error);
|
|
@@ -820,8 +1102,8 @@ const defaultProps$T = {
|
|
|
820
1102
|
// transform intentionally has no default - handled by effectiveTransform
|
|
821
1103
|
};
|
|
822
1104
|
try {
|
|
823
|
-
if (componentDefinition$
|
|
824
|
-
Object.entries(componentDefinition$
|
|
1105
|
+
if (componentDefinition$6 && componentDefinition$6.props) {
|
|
1106
|
+
Object.entries(componentDefinition$6.props).forEach(([key, config]) => {
|
|
825
1107
|
const propConfig = config;
|
|
826
1108
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
827
1109
|
defaultProps$T[key] = propConfig.default;
|
|
@@ -840,7 +1122,7 @@ function ShaderComponent$T(props) {
|
|
|
840
1122
|
shaderUniformUpdate: parentUniformUpdate,
|
|
841
1123
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
842
1124
|
} = context;
|
|
843
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1125
|
+
const instanceId = props.id || `${componentDefinition$6.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
844
1126
|
const effectiveProps = createMemo(() => {
|
|
845
1127
|
let baseProps = {
|
|
846
1128
|
...defaultProps$T
|
|
@@ -859,7 +1141,7 @@ function ShaderComponent$T(props) {
|
|
|
859
1141
|
let uniformsMap = null;
|
|
860
1142
|
const getUniformsMap = () => {
|
|
861
1143
|
if (!uniformsMap) {
|
|
862
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1144
|
+
uniformsMap = createUniformsMap(componentDefinition$6, effectiveProps(), instanceId);
|
|
863
1145
|
}
|
|
864
1146
|
return uniformsMap;
|
|
865
1147
|
};
|
|
@@ -884,7 +1166,7 @@ function ShaderComponent$T(props) {
|
|
|
884
1166
|
renderOrder: props.renderOrder || 0,
|
|
885
1167
|
transform: effectiveTransform()
|
|
886
1168
|
};
|
|
887
|
-
parentRegister(instanceId, componentDefinition$
|
|
1169
|
+
parentRegister(instanceId, componentDefinition$6.fragmentNode, parentId, metadata, uniforms, componentDefinition$6);
|
|
888
1170
|
isRegistered = true;
|
|
889
1171
|
} catch (error) {
|
|
890
1172
|
console.error("Error registering shader node:", error);
|
|
@@ -960,8 +1242,8 @@ const defaultProps$S = {
|
|
|
960
1242
|
// transform intentionally has no default - handled by effectiveTransform
|
|
961
1243
|
};
|
|
962
1244
|
try {
|
|
963
|
-
if (componentDefinition$
|
|
964
|
-
Object.entries(componentDefinition$
|
|
1245
|
+
if (componentDefinition$7 && componentDefinition$7.props) {
|
|
1246
|
+
Object.entries(componentDefinition$7.props).forEach(([key, config]) => {
|
|
965
1247
|
const propConfig = config;
|
|
966
1248
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
967
1249
|
defaultProps$S[key] = propConfig.default;
|
|
@@ -980,7 +1262,7 @@ function ShaderComponent$S(props) {
|
|
|
980
1262
|
shaderUniformUpdate: parentUniformUpdate,
|
|
981
1263
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
982
1264
|
} = context;
|
|
983
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1265
|
+
const instanceId = props.id || `${componentDefinition$7.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
984
1266
|
const effectiveProps = createMemo(() => {
|
|
985
1267
|
let baseProps = {
|
|
986
1268
|
...defaultProps$S
|
|
@@ -999,7 +1281,7 @@ function ShaderComponent$S(props) {
|
|
|
999
1281
|
let uniformsMap = null;
|
|
1000
1282
|
const getUniformsMap = () => {
|
|
1001
1283
|
if (!uniformsMap) {
|
|
1002
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1284
|
+
uniformsMap = createUniformsMap(componentDefinition$7, effectiveProps(), instanceId);
|
|
1003
1285
|
}
|
|
1004
1286
|
return uniformsMap;
|
|
1005
1287
|
};
|
|
@@ -1024,7 +1306,7 @@ function ShaderComponent$S(props) {
|
|
|
1024
1306
|
renderOrder: props.renderOrder || 0,
|
|
1025
1307
|
transform: effectiveTransform()
|
|
1026
1308
|
};
|
|
1027
|
-
parentRegister(instanceId, componentDefinition$
|
|
1309
|
+
parentRegister(instanceId, componentDefinition$7.fragmentNode, parentId, metadata, uniforms, componentDefinition$7);
|
|
1028
1310
|
isRegistered = true;
|
|
1029
1311
|
} catch (error) {
|
|
1030
1312
|
console.error("Error registering shader node:", error);
|
|
@@ -1100,8 +1382,8 @@ const defaultProps$R = {
|
|
|
1100
1382
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1101
1383
|
};
|
|
1102
1384
|
try {
|
|
1103
|
-
if (componentDefinition$
|
|
1104
|
-
Object.entries(componentDefinition$
|
|
1385
|
+
if (componentDefinition$8 && componentDefinition$8.props) {
|
|
1386
|
+
Object.entries(componentDefinition$8.props).forEach(([key, config]) => {
|
|
1105
1387
|
const propConfig = config;
|
|
1106
1388
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1107
1389
|
defaultProps$R[key] = propConfig.default;
|
|
@@ -1120,7 +1402,7 @@ function ShaderComponent$R(props) {
|
|
|
1120
1402
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1121
1403
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1122
1404
|
} = context;
|
|
1123
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1405
|
+
const instanceId = props.id || `${componentDefinition$8.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1124
1406
|
const effectiveProps = createMemo(() => {
|
|
1125
1407
|
let baseProps = {
|
|
1126
1408
|
...defaultProps$R
|
|
@@ -1139,7 +1421,7 @@ function ShaderComponent$R(props) {
|
|
|
1139
1421
|
let uniformsMap = null;
|
|
1140
1422
|
const getUniformsMap = () => {
|
|
1141
1423
|
if (!uniformsMap) {
|
|
1142
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1424
|
+
uniformsMap = createUniformsMap(componentDefinition$8, effectiveProps(), instanceId);
|
|
1143
1425
|
}
|
|
1144
1426
|
return uniformsMap;
|
|
1145
1427
|
};
|
|
@@ -1164,7 +1446,7 @@ function ShaderComponent$R(props) {
|
|
|
1164
1446
|
renderOrder: props.renderOrder || 0,
|
|
1165
1447
|
transform: effectiveTransform()
|
|
1166
1448
|
};
|
|
1167
|
-
parentRegister(instanceId, componentDefinition$
|
|
1449
|
+
parentRegister(instanceId, componentDefinition$8.fragmentNode, parentId, metadata, uniforms, componentDefinition$8);
|
|
1168
1450
|
isRegistered = true;
|
|
1169
1451
|
} catch (error) {
|
|
1170
1452
|
console.error("Error registering shader node:", error);
|
|
@@ -1240,8 +1522,8 @@ const defaultProps$Q = {
|
|
|
1240
1522
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1241
1523
|
};
|
|
1242
1524
|
try {
|
|
1243
|
-
if (componentDefinition$
|
|
1244
|
-
Object.entries(componentDefinition$
|
|
1525
|
+
if (componentDefinition$9 && componentDefinition$9.props) {
|
|
1526
|
+
Object.entries(componentDefinition$9.props).forEach(([key, config]) => {
|
|
1245
1527
|
const propConfig = config;
|
|
1246
1528
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1247
1529
|
defaultProps$Q[key] = propConfig.default;
|
|
@@ -1260,7 +1542,7 @@ function ShaderComponent$Q(props) {
|
|
|
1260
1542
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1261
1543
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1262
1544
|
} = context;
|
|
1263
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1545
|
+
const instanceId = props.id || `${componentDefinition$9.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1264
1546
|
const effectiveProps = createMemo(() => {
|
|
1265
1547
|
let baseProps = {
|
|
1266
1548
|
...defaultProps$Q
|
|
@@ -1279,7 +1561,7 @@ function ShaderComponent$Q(props) {
|
|
|
1279
1561
|
let uniformsMap = null;
|
|
1280
1562
|
const getUniformsMap = () => {
|
|
1281
1563
|
if (!uniformsMap) {
|
|
1282
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1564
|
+
uniformsMap = createUniformsMap(componentDefinition$9, effectiveProps(), instanceId);
|
|
1283
1565
|
}
|
|
1284
1566
|
return uniformsMap;
|
|
1285
1567
|
};
|
|
@@ -1304,7 +1586,7 @@ function ShaderComponent$Q(props) {
|
|
|
1304
1586
|
renderOrder: props.renderOrder || 0,
|
|
1305
1587
|
transform: effectiveTransform()
|
|
1306
1588
|
};
|
|
1307
|
-
parentRegister(instanceId, componentDefinition$
|
|
1589
|
+
parentRegister(instanceId, componentDefinition$9.fragmentNode, parentId, metadata, uniforms, componentDefinition$9);
|
|
1308
1590
|
isRegistered = true;
|
|
1309
1591
|
} catch (error) {
|
|
1310
1592
|
console.error("Error registering shader node:", error);
|
|
@@ -1380,8 +1662,8 @@ const defaultProps$P = {
|
|
|
1380
1662
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1381
1663
|
};
|
|
1382
1664
|
try {
|
|
1383
|
-
if (componentDefinition$
|
|
1384
|
-
Object.entries(componentDefinition$
|
|
1665
|
+
if (componentDefinition$a && componentDefinition$a.props) {
|
|
1666
|
+
Object.entries(componentDefinition$a.props).forEach(([key, config]) => {
|
|
1385
1667
|
const propConfig = config;
|
|
1386
1668
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1387
1669
|
defaultProps$P[key] = propConfig.default;
|
|
@@ -1400,7 +1682,7 @@ function ShaderComponent$P(props) {
|
|
|
1400
1682
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1401
1683
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1402
1684
|
} = context;
|
|
1403
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1685
|
+
const instanceId = props.id || `${componentDefinition$a.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1404
1686
|
const effectiveProps = createMemo(() => {
|
|
1405
1687
|
let baseProps = {
|
|
1406
1688
|
...defaultProps$P
|
|
@@ -1419,7 +1701,7 @@ function ShaderComponent$P(props) {
|
|
|
1419
1701
|
let uniformsMap = null;
|
|
1420
1702
|
const getUniformsMap = () => {
|
|
1421
1703
|
if (!uniformsMap) {
|
|
1422
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1704
|
+
uniformsMap = createUniformsMap(componentDefinition$a, effectiveProps(), instanceId);
|
|
1423
1705
|
}
|
|
1424
1706
|
return uniformsMap;
|
|
1425
1707
|
};
|
|
@@ -1444,7 +1726,7 @@ function ShaderComponent$P(props) {
|
|
|
1444
1726
|
renderOrder: props.renderOrder || 0,
|
|
1445
1727
|
transform: effectiveTransform()
|
|
1446
1728
|
};
|
|
1447
|
-
parentRegister(instanceId, componentDefinition$
|
|
1729
|
+
parentRegister(instanceId, componentDefinition$a.fragmentNode, parentId, metadata, uniforms, componentDefinition$a);
|
|
1448
1730
|
isRegistered = true;
|
|
1449
1731
|
} catch (error) {
|
|
1450
1732
|
console.error("Error registering shader node:", error);
|
|
@@ -1520,8 +1802,8 @@ const defaultProps$O = {
|
|
|
1520
1802
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1521
1803
|
};
|
|
1522
1804
|
try {
|
|
1523
|
-
if (componentDefinition$
|
|
1524
|
-
Object.entries(componentDefinition$
|
|
1805
|
+
if (componentDefinition$b && componentDefinition$b.props) {
|
|
1806
|
+
Object.entries(componentDefinition$b.props).forEach(([key, config]) => {
|
|
1525
1807
|
const propConfig = config;
|
|
1526
1808
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1527
1809
|
defaultProps$O[key] = propConfig.default;
|
|
@@ -1540,7 +1822,7 @@ function ShaderComponent$O(props) {
|
|
|
1540
1822
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1541
1823
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1542
1824
|
} = context;
|
|
1543
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1825
|
+
const instanceId = props.id || `${componentDefinition$b.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1544
1826
|
const effectiveProps = createMemo(() => {
|
|
1545
1827
|
let baseProps = {
|
|
1546
1828
|
...defaultProps$O
|
|
@@ -1559,7 +1841,7 @@ function ShaderComponent$O(props) {
|
|
|
1559
1841
|
let uniformsMap = null;
|
|
1560
1842
|
const getUniformsMap = () => {
|
|
1561
1843
|
if (!uniformsMap) {
|
|
1562
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1844
|
+
uniformsMap = createUniformsMap(componentDefinition$b, effectiveProps(), instanceId);
|
|
1563
1845
|
}
|
|
1564
1846
|
return uniformsMap;
|
|
1565
1847
|
};
|
|
@@ -1584,7 +1866,7 @@ function ShaderComponent$O(props) {
|
|
|
1584
1866
|
renderOrder: props.renderOrder || 0,
|
|
1585
1867
|
transform: effectiveTransform()
|
|
1586
1868
|
};
|
|
1587
|
-
parentRegister(instanceId, componentDefinition$
|
|
1869
|
+
parentRegister(instanceId, componentDefinition$b.fragmentNode, parentId, metadata, uniforms, componentDefinition$b);
|
|
1588
1870
|
isRegistered = true;
|
|
1589
1871
|
} catch (error) {
|
|
1590
1872
|
console.error("Error registering shader node:", error);
|
|
@@ -1660,8 +1942,8 @@ const defaultProps$N = {
|
|
|
1660
1942
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1661
1943
|
};
|
|
1662
1944
|
try {
|
|
1663
|
-
if (componentDefinition$
|
|
1664
|
-
Object.entries(componentDefinition$
|
|
1945
|
+
if (componentDefinition$c && componentDefinition$c.props) {
|
|
1946
|
+
Object.entries(componentDefinition$c.props).forEach(([key, config]) => {
|
|
1665
1947
|
const propConfig = config;
|
|
1666
1948
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1667
1949
|
defaultProps$N[key] = propConfig.default;
|
|
@@ -1680,7 +1962,7 @@ function ShaderComponent$N(props) {
|
|
|
1680
1962
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1681
1963
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1682
1964
|
} = context;
|
|
1683
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1965
|
+
const instanceId = props.id || `${componentDefinition$c.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1684
1966
|
const effectiveProps = createMemo(() => {
|
|
1685
1967
|
let baseProps = {
|
|
1686
1968
|
...defaultProps$N
|
|
@@ -1699,7 +1981,7 @@ function ShaderComponent$N(props) {
|
|
|
1699
1981
|
let uniformsMap = null;
|
|
1700
1982
|
const getUniformsMap = () => {
|
|
1701
1983
|
if (!uniformsMap) {
|
|
1702
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1984
|
+
uniformsMap = createUniformsMap(componentDefinition$c, effectiveProps(), instanceId);
|
|
1703
1985
|
}
|
|
1704
1986
|
return uniformsMap;
|
|
1705
1987
|
};
|
|
@@ -1724,7 +2006,7 @@ function ShaderComponent$N(props) {
|
|
|
1724
2006
|
renderOrder: props.renderOrder || 0,
|
|
1725
2007
|
transform: effectiveTransform()
|
|
1726
2008
|
};
|
|
1727
|
-
parentRegister(instanceId, componentDefinition$
|
|
2009
|
+
parentRegister(instanceId, componentDefinition$c.fragmentNode, parentId, metadata, uniforms, componentDefinition$c);
|
|
1728
2010
|
isRegistered = true;
|
|
1729
2011
|
} catch (error) {
|
|
1730
2012
|
console.error("Error registering shader node:", error);
|
|
@@ -1800,8 +2082,8 @@ const defaultProps$M = {
|
|
|
1800
2082
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1801
2083
|
};
|
|
1802
2084
|
try {
|
|
1803
|
-
if (componentDefinition$
|
|
1804
|
-
Object.entries(componentDefinition$
|
|
2085
|
+
if (componentDefinition$d && componentDefinition$d.props) {
|
|
2086
|
+
Object.entries(componentDefinition$d.props).forEach(([key, config]) => {
|
|
1805
2087
|
const propConfig = config;
|
|
1806
2088
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1807
2089
|
defaultProps$M[key] = propConfig.default;
|
|
@@ -1820,7 +2102,7 @@ function ShaderComponent$M(props) {
|
|
|
1820
2102
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1821
2103
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1822
2104
|
} = context;
|
|
1823
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2105
|
+
const instanceId = props.id || `${componentDefinition$d.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1824
2106
|
const effectiveProps = createMemo(() => {
|
|
1825
2107
|
let baseProps = {
|
|
1826
2108
|
...defaultProps$M
|
|
@@ -1839,7 +2121,7 @@ function ShaderComponent$M(props) {
|
|
|
1839
2121
|
let uniformsMap = null;
|
|
1840
2122
|
const getUniformsMap = () => {
|
|
1841
2123
|
if (!uniformsMap) {
|
|
1842
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2124
|
+
uniformsMap = createUniformsMap(componentDefinition$d, effectiveProps(), instanceId);
|
|
1843
2125
|
}
|
|
1844
2126
|
return uniformsMap;
|
|
1845
2127
|
};
|
|
@@ -1864,7 +2146,7 @@ function ShaderComponent$M(props) {
|
|
|
1864
2146
|
renderOrder: props.renderOrder || 0,
|
|
1865
2147
|
transform: effectiveTransform()
|
|
1866
2148
|
};
|
|
1867
|
-
parentRegister(instanceId, componentDefinition$
|
|
2149
|
+
parentRegister(instanceId, componentDefinition$d.fragmentNode, parentId, metadata, uniforms, componentDefinition$d);
|
|
1868
2150
|
isRegistered = true;
|
|
1869
2151
|
} catch (error) {
|
|
1870
2152
|
console.error("Error registering shader node:", error);
|
|
@@ -1940,8 +2222,8 @@ const defaultProps$L = {
|
|
|
1940
2222
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1941
2223
|
};
|
|
1942
2224
|
try {
|
|
1943
|
-
if (componentDefinition$
|
|
1944
|
-
Object.entries(componentDefinition$
|
|
2225
|
+
if (componentDefinition$e && componentDefinition$e.props) {
|
|
2226
|
+
Object.entries(componentDefinition$e.props).forEach(([key, config]) => {
|
|
1945
2227
|
const propConfig = config;
|
|
1946
2228
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1947
2229
|
defaultProps$L[key] = propConfig.default;
|
|
@@ -1960,7 +2242,7 @@ function ShaderComponent$L(props) {
|
|
|
1960
2242
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1961
2243
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1962
2244
|
} = context;
|
|
1963
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2245
|
+
const instanceId = props.id || `${componentDefinition$e.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1964
2246
|
const effectiveProps = createMemo(() => {
|
|
1965
2247
|
let baseProps = {
|
|
1966
2248
|
...defaultProps$L
|
|
@@ -1979,7 +2261,7 @@ function ShaderComponent$L(props) {
|
|
|
1979
2261
|
let uniformsMap = null;
|
|
1980
2262
|
const getUniformsMap = () => {
|
|
1981
2263
|
if (!uniformsMap) {
|
|
1982
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2264
|
+
uniformsMap = createUniformsMap(componentDefinition$e, effectiveProps(), instanceId);
|
|
1983
2265
|
}
|
|
1984
2266
|
return uniformsMap;
|
|
1985
2267
|
};
|
|
@@ -2004,7 +2286,7 @@ function ShaderComponent$L(props) {
|
|
|
2004
2286
|
renderOrder: props.renderOrder || 0,
|
|
2005
2287
|
transform: effectiveTransform()
|
|
2006
2288
|
};
|
|
2007
|
-
parentRegister(instanceId, componentDefinition$
|
|
2289
|
+
parentRegister(instanceId, componentDefinition$e.fragmentNode, parentId, metadata, uniforms, componentDefinition$e);
|
|
2008
2290
|
isRegistered = true;
|
|
2009
2291
|
} catch (error) {
|
|
2010
2292
|
console.error("Error registering shader node:", error);
|
|
@@ -2080,8 +2362,8 @@ const defaultProps$K = {
|
|
|
2080
2362
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2081
2363
|
};
|
|
2082
2364
|
try {
|
|
2083
|
-
if (componentDefinition$
|
|
2084
|
-
Object.entries(componentDefinition$
|
|
2365
|
+
if (componentDefinition$f && componentDefinition$f.props) {
|
|
2366
|
+
Object.entries(componentDefinition$f.props).forEach(([key, config]) => {
|
|
2085
2367
|
const propConfig = config;
|
|
2086
2368
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2087
2369
|
defaultProps$K[key] = propConfig.default;
|
|
@@ -2100,7 +2382,7 @@ function ShaderComponent$K(props) {
|
|
|
2100
2382
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2101
2383
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2102
2384
|
} = context;
|
|
2103
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2385
|
+
const instanceId = props.id || `${componentDefinition$f.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2104
2386
|
const effectiveProps = createMemo(() => {
|
|
2105
2387
|
let baseProps = {
|
|
2106
2388
|
...defaultProps$K
|
|
@@ -2119,7 +2401,7 @@ function ShaderComponent$K(props) {
|
|
|
2119
2401
|
let uniformsMap = null;
|
|
2120
2402
|
const getUniformsMap = () => {
|
|
2121
2403
|
if (!uniformsMap) {
|
|
2122
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2404
|
+
uniformsMap = createUniformsMap(componentDefinition$f, effectiveProps(), instanceId);
|
|
2123
2405
|
}
|
|
2124
2406
|
return uniformsMap;
|
|
2125
2407
|
};
|
|
@@ -2144,7 +2426,7 @@ function ShaderComponent$K(props) {
|
|
|
2144
2426
|
renderOrder: props.renderOrder || 0,
|
|
2145
2427
|
transform: effectiveTransform()
|
|
2146
2428
|
};
|
|
2147
|
-
parentRegister(instanceId, componentDefinition$
|
|
2429
|
+
parentRegister(instanceId, componentDefinition$f.fragmentNode, parentId, metadata, uniforms, componentDefinition$f);
|
|
2148
2430
|
isRegistered = true;
|
|
2149
2431
|
} catch (error) {
|
|
2150
2432
|
console.error("Error registering shader node:", error);
|
|
@@ -2220,8 +2502,8 @@ const defaultProps$J = {
|
|
|
2220
2502
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2221
2503
|
};
|
|
2222
2504
|
try {
|
|
2223
|
-
if (componentDefinition$
|
|
2224
|
-
Object.entries(componentDefinition$
|
|
2505
|
+
if (componentDefinition$g && componentDefinition$g.props) {
|
|
2506
|
+
Object.entries(componentDefinition$g.props).forEach(([key, config]) => {
|
|
2225
2507
|
const propConfig = config;
|
|
2226
2508
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2227
2509
|
defaultProps$J[key] = propConfig.default;
|
|
@@ -2240,7 +2522,7 @@ function ShaderComponent$J(props) {
|
|
|
2240
2522
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2241
2523
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2242
2524
|
} = context;
|
|
2243
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2525
|
+
const instanceId = props.id || `${componentDefinition$g.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2244
2526
|
const effectiveProps = createMemo(() => {
|
|
2245
2527
|
let baseProps = {
|
|
2246
2528
|
...defaultProps$J
|
|
@@ -2259,7 +2541,7 @@ function ShaderComponent$J(props) {
|
|
|
2259
2541
|
let uniformsMap = null;
|
|
2260
2542
|
const getUniformsMap = () => {
|
|
2261
2543
|
if (!uniformsMap) {
|
|
2262
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2544
|
+
uniformsMap = createUniformsMap(componentDefinition$g, effectiveProps(), instanceId);
|
|
2263
2545
|
}
|
|
2264
2546
|
return uniformsMap;
|
|
2265
2547
|
};
|
|
@@ -2284,7 +2566,7 @@ function ShaderComponent$J(props) {
|
|
|
2284
2566
|
renderOrder: props.renderOrder || 0,
|
|
2285
2567
|
transform: effectiveTransform()
|
|
2286
2568
|
};
|
|
2287
|
-
parentRegister(instanceId, componentDefinition$
|
|
2569
|
+
parentRegister(instanceId, componentDefinition$g.fragmentNode, parentId, metadata, uniforms, componentDefinition$g);
|
|
2288
2570
|
isRegistered = true;
|
|
2289
2571
|
} catch (error) {
|
|
2290
2572
|
console.error("Error registering shader node:", error);
|
|
@@ -2360,8 +2642,8 @@ const defaultProps$I = {
|
|
|
2360
2642
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2361
2643
|
};
|
|
2362
2644
|
try {
|
|
2363
|
-
if (componentDefinition$
|
|
2364
|
-
Object.entries(componentDefinition$
|
|
2645
|
+
if (componentDefinition$h && componentDefinition$h.props) {
|
|
2646
|
+
Object.entries(componentDefinition$h.props).forEach(([key, config]) => {
|
|
2365
2647
|
const propConfig = config;
|
|
2366
2648
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2367
2649
|
defaultProps$I[key] = propConfig.default;
|
|
@@ -2380,7 +2662,7 @@ function ShaderComponent$I(props) {
|
|
|
2380
2662
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2381
2663
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2382
2664
|
} = context;
|
|
2383
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2665
|
+
const instanceId = props.id || `${componentDefinition$h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2384
2666
|
const effectiveProps = createMemo(() => {
|
|
2385
2667
|
let baseProps = {
|
|
2386
2668
|
...defaultProps$I
|
|
@@ -2399,7 +2681,7 @@ function ShaderComponent$I(props) {
|
|
|
2399
2681
|
let uniformsMap = null;
|
|
2400
2682
|
const getUniformsMap = () => {
|
|
2401
2683
|
if (!uniformsMap) {
|
|
2402
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2684
|
+
uniformsMap = createUniformsMap(componentDefinition$h, effectiveProps(), instanceId);
|
|
2403
2685
|
}
|
|
2404
2686
|
return uniformsMap;
|
|
2405
2687
|
};
|
|
@@ -2424,7 +2706,7 @@ function ShaderComponent$I(props) {
|
|
|
2424
2706
|
renderOrder: props.renderOrder || 0,
|
|
2425
2707
|
transform: effectiveTransform()
|
|
2426
2708
|
};
|
|
2427
|
-
parentRegister(instanceId, componentDefinition$
|
|
2709
|
+
parentRegister(instanceId, componentDefinition$h.fragmentNode, parentId, metadata, uniforms, componentDefinition$h);
|
|
2428
2710
|
isRegistered = true;
|
|
2429
2711
|
} catch (error) {
|
|
2430
2712
|
console.error("Error registering shader node:", error);
|
|
@@ -2500,8 +2782,8 @@ const defaultProps$H = {
|
|
|
2500
2782
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2501
2783
|
};
|
|
2502
2784
|
try {
|
|
2503
|
-
if (componentDefinition$
|
|
2504
|
-
Object.entries(componentDefinition$
|
|
2785
|
+
if (componentDefinition$i && componentDefinition$i.props) {
|
|
2786
|
+
Object.entries(componentDefinition$i.props).forEach(([key, config]) => {
|
|
2505
2787
|
const propConfig = config;
|
|
2506
2788
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2507
2789
|
defaultProps$H[key] = propConfig.default;
|
|
@@ -2520,7 +2802,7 @@ function ShaderComponent$H(props) {
|
|
|
2520
2802
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2521
2803
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2522
2804
|
} = context;
|
|
2523
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2805
|
+
const instanceId = props.id || `${componentDefinition$i.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2524
2806
|
const effectiveProps = createMemo(() => {
|
|
2525
2807
|
let baseProps = {
|
|
2526
2808
|
...defaultProps$H
|
|
@@ -2539,7 +2821,7 @@ function ShaderComponent$H(props) {
|
|
|
2539
2821
|
let uniformsMap = null;
|
|
2540
2822
|
const getUniformsMap = () => {
|
|
2541
2823
|
if (!uniformsMap) {
|
|
2542
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2824
|
+
uniformsMap = createUniformsMap(componentDefinition$i, effectiveProps(), instanceId);
|
|
2543
2825
|
}
|
|
2544
2826
|
return uniformsMap;
|
|
2545
2827
|
};
|
|
@@ -2564,7 +2846,7 @@ function ShaderComponent$H(props) {
|
|
|
2564
2846
|
renderOrder: props.renderOrder || 0,
|
|
2565
2847
|
transform: effectiveTransform()
|
|
2566
2848
|
};
|
|
2567
|
-
parentRegister(instanceId, componentDefinition$
|
|
2849
|
+
parentRegister(instanceId, componentDefinition$i.fragmentNode, parentId, metadata, uniforms, componentDefinition$i);
|
|
2568
2850
|
isRegistered = true;
|
|
2569
2851
|
} catch (error) {
|
|
2570
2852
|
console.error("Error registering shader node:", error);
|
|
@@ -2640,8 +2922,8 @@ const defaultProps$G = {
|
|
|
2640
2922
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2641
2923
|
};
|
|
2642
2924
|
try {
|
|
2643
|
-
if (componentDefinition$
|
|
2644
|
-
Object.entries(componentDefinition$
|
|
2925
|
+
if (componentDefinition$j && componentDefinition$j.props) {
|
|
2926
|
+
Object.entries(componentDefinition$j.props).forEach(([key, config]) => {
|
|
2645
2927
|
const propConfig = config;
|
|
2646
2928
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2647
2929
|
defaultProps$G[key] = propConfig.default;
|
|
@@ -2660,7 +2942,7 @@ function ShaderComponent$G(props) {
|
|
|
2660
2942
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2661
2943
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2662
2944
|
} = context;
|
|
2663
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2945
|
+
const instanceId = props.id || `${componentDefinition$j.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2664
2946
|
const effectiveProps = createMemo(() => {
|
|
2665
2947
|
let baseProps = {
|
|
2666
2948
|
...defaultProps$G
|
|
@@ -2679,7 +2961,7 @@ function ShaderComponent$G(props) {
|
|
|
2679
2961
|
let uniformsMap = null;
|
|
2680
2962
|
const getUniformsMap = () => {
|
|
2681
2963
|
if (!uniformsMap) {
|
|
2682
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2964
|
+
uniformsMap = createUniformsMap(componentDefinition$j, effectiveProps(), instanceId);
|
|
2683
2965
|
}
|
|
2684
2966
|
return uniformsMap;
|
|
2685
2967
|
};
|
|
@@ -2704,7 +2986,7 @@ function ShaderComponent$G(props) {
|
|
|
2704
2986
|
renderOrder: props.renderOrder || 0,
|
|
2705
2987
|
transform: effectiveTransform()
|
|
2706
2988
|
};
|
|
2707
|
-
parentRegister(instanceId, componentDefinition$
|
|
2989
|
+
parentRegister(instanceId, componentDefinition$j.fragmentNode, parentId, metadata, uniforms, componentDefinition$j);
|
|
2708
2990
|
isRegistered = true;
|
|
2709
2991
|
} catch (error) {
|
|
2710
2992
|
console.error("Error registering shader node:", error);
|
|
@@ -2780,8 +3062,8 @@ const defaultProps$F = {
|
|
|
2780
3062
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2781
3063
|
};
|
|
2782
3064
|
try {
|
|
2783
|
-
if (componentDefinition$
|
|
2784
|
-
Object.entries(componentDefinition$
|
|
3065
|
+
if (componentDefinition$k && componentDefinition$k.props) {
|
|
3066
|
+
Object.entries(componentDefinition$k.props).forEach(([key, config]) => {
|
|
2785
3067
|
const propConfig = config;
|
|
2786
3068
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2787
3069
|
defaultProps$F[key] = propConfig.default;
|
|
@@ -2800,7 +3082,7 @@ function ShaderComponent$F(props) {
|
|
|
2800
3082
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2801
3083
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2802
3084
|
} = context;
|
|
2803
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3085
|
+
const instanceId = props.id || `${componentDefinition$k.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2804
3086
|
const effectiveProps = createMemo(() => {
|
|
2805
3087
|
let baseProps = {
|
|
2806
3088
|
...defaultProps$F
|
|
@@ -2819,7 +3101,7 @@ function ShaderComponent$F(props) {
|
|
|
2819
3101
|
let uniformsMap = null;
|
|
2820
3102
|
const getUniformsMap = () => {
|
|
2821
3103
|
if (!uniformsMap) {
|
|
2822
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3104
|
+
uniformsMap = createUniformsMap(componentDefinition$k, effectiveProps(), instanceId);
|
|
2823
3105
|
}
|
|
2824
3106
|
return uniformsMap;
|
|
2825
3107
|
};
|
|
@@ -2844,7 +3126,7 @@ function ShaderComponent$F(props) {
|
|
|
2844
3126
|
renderOrder: props.renderOrder || 0,
|
|
2845
3127
|
transform: effectiveTransform()
|
|
2846
3128
|
};
|
|
2847
|
-
parentRegister(instanceId, componentDefinition$
|
|
3129
|
+
parentRegister(instanceId, componentDefinition$k.fragmentNode, parentId, metadata, uniforms, componentDefinition$k);
|
|
2848
3130
|
isRegistered = true;
|
|
2849
3131
|
} catch (error) {
|
|
2850
3132
|
console.error("Error registering shader node:", error);
|
|
@@ -2920,8 +3202,8 @@ const defaultProps$E = {
|
|
|
2920
3202
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2921
3203
|
};
|
|
2922
3204
|
try {
|
|
2923
|
-
if (componentDefinition$
|
|
2924
|
-
Object.entries(componentDefinition$
|
|
3205
|
+
if (componentDefinition$l && componentDefinition$l.props) {
|
|
3206
|
+
Object.entries(componentDefinition$l.props).forEach(([key, config]) => {
|
|
2925
3207
|
const propConfig = config;
|
|
2926
3208
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2927
3209
|
defaultProps$E[key] = propConfig.default;
|
|
@@ -2940,7 +3222,7 @@ function ShaderComponent$E(props) {
|
|
|
2940
3222
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2941
3223
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2942
3224
|
} = context;
|
|
2943
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3225
|
+
const instanceId = props.id || `${componentDefinition$l.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2944
3226
|
const effectiveProps = createMemo(() => {
|
|
2945
3227
|
let baseProps = {
|
|
2946
3228
|
...defaultProps$E
|
|
@@ -2959,7 +3241,7 @@ function ShaderComponent$E(props) {
|
|
|
2959
3241
|
let uniformsMap = null;
|
|
2960
3242
|
const getUniformsMap = () => {
|
|
2961
3243
|
if (!uniformsMap) {
|
|
2962
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3244
|
+
uniformsMap = createUniformsMap(componentDefinition$l, effectiveProps(), instanceId);
|
|
2963
3245
|
}
|
|
2964
3246
|
return uniformsMap;
|
|
2965
3247
|
};
|
|
@@ -2984,7 +3266,7 @@ function ShaderComponent$E(props) {
|
|
|
2984
3266
|
renderOrder: props.renderOrder || 0,
|
|
2985
3267
|
transform: effectiveTransform()
|
|
2986
3268
|
};
|
|
2987
|
-
parentRegister(instanceId, componentDefinition$
|
|
3269
|
+
parentRegister(instanceId, componentDefinition$l.fragmentNode, parentId, metadata, uniforms, componentDefinition$l);
|
|
2988
3270
|
isRegistered = true;
|
|
2989
3271
|
} catch (error) {
|
|
2990
3272
|
console.error("Error registering shader node:", error);
|
|
@@ -3060,8 +3342,8 @@ const defaultProps$D = {
|
|
|
3060
3342
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3061
3343
|
};
|
|
3062
3344
|
try {
|
|
3063
|
-
if (componentDefinition$
|
|
3064
|
-
Object.entries(componentDefinition$
|
|
3345
|
+
if (componentDefinition$m && componentDefinition$m.props) {
|
|
3346
|
+
Object.entries(componentDefinition$m.props).forEach(([key, config]) => {
|
|
3065
3347
|
const propConfig = config;
|
|
3066
3348
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3067
3349
|
defaultProps$D[key] = propConfig.default;
|
|
@@ -3080,7 +3362,7 @@ function ShaderComponent$D(props) {
|
|
|
3080
3362
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3081
3363
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3082
3364
|
} = context;
|
|
3083
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3365
|
+
const instanceId = props.id || `${componentDefinition$m.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3084
3366
|
const effectiveProps = createMemo(() => {
|
|
3085
3367
|
let baseProps = {
|
|
3086
3368
|
...defaultProps$D
|
|
@@ -3099,7 +3381,7 @@ function ShaderComponent$D(props) {
|
|
|
3099
3381
|
let uniformsMap = null;
|
|
3100
3382
|
const getUniformsMap = () => {
|
|
3101
3383
|
if (!uniformsMap) {
|
|
3102
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3384
|
+
uniformsMap = createUniformsMap(componentDefinition$m, effectiveProps(), instanceId);
|
|
3103
3385
|
}
|
|
3104
3386
|
return uniformsMap;
|
|
3105
3387
|
};
|
|
@@ -3124,7 +3406,7 @@ function ShaderComponent$D(props) {
|
|
|
3124
3406
|
renderOrder: props.renderOrder || 0,
|
|
3125
3407
|
transform: effectiveTransform()
|
|
3126
3408
|
};
|
|
3127
|
-
parentRegister(instanceId, componentDefinition$
|
|
3409
|
+
parentRegister(instanceId, componentDefinition$m.fragmentNode, parentId, metadata, uniforms, componentDefinition$m);
|
|
3128
3410
|
isRegistered = true;
|
|
3129
3411
|
} catch (error) {
|
|
3130
3412
|
console.error("Error registering shader node:", error);
|
|
@@ -3200,8 +3482,8 @@ const defaultProps$C = {
|
|
|
3200
3482
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3201
3483
|
};
|
|
3202
3484
|
try {
|
|
3203
|
-
if (componentDefinition$
|
|
3204
|
-
Object.entries(componentDefinition$
|
|
3485
|
+
if (componentDefinition$n && componentDefinition$n.props) {
|
|
3486
|
+
Object.entries(componentDefinition$n.props).forEach(([key, config]) => {
|
|
3205
3487
|
const propConfig = config;
|
|
3206
3488
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3207
3489
|
defaultProps$C[key] = propConfig.default;
|
|
@@ -3220,7 +3502,7 @@ function ShaderComponent$C(props) {
|
|
|
3220
3502
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3221
3503
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3222
3504
|
} = context;
|
|
3223
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3505
|
+
const instanceId = props.id || `${componentDefinition$n.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3224
3506
|
const effectiveProps = createMemo(() => {
|
|
3225
3507
|
let baseProps = {
|
|
3226
3508
|
...defaultProps$C
|
|
@@ -3239,7 +3521,7 @@ function ShaderComponent$C(props) {
|
|
|
3239
3521
|
let uniformsMap = null;
|
|
3240
3522
|
const getUniformsMap = () => {
|
|
3241
3523
|
if (!uniformsMap) {
|
|
3242
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3524
|
+
uniformsMap = createUniformsMap(componentDefinition$n, effectiveProps(), instanceId);
|
|
3243
3525
|
}
|
|
3244
3526
|
return uniformsMap;
|
|
3245
3527
|
};
|
|
@@ -3264,7 +3546,7 @@ function ShaderComponent$C(props) {
|
|
|
3264
3546
|
renderOrder: props.renderOrder || 0,
|
|
3265
3547
|
transform: effectiveTransform()
|
|
3266
3548
|
};
|
|
3267
|
-
parentRegister(instanceId, componentDefinition$
|
|
3549
|
+
parentRegister(instanceId, componentDefinition$n.fragmentNode, parentId, metadata, uniforms, componentDefinition$n);
|
|
3268
3550
|
isRegistered = true;
|
|
3269
3551
|
} catch (error) {
|
|
3270
3552
|
console.error("Error registering shader node:", error);
|
|
@@ -3340,8 +3622,8 @@ const defaultProps$B = {
|
|
|
3340
3622
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3341
3623
|
};
|
|
3342
3624
|
try {
|
|
3343
|
-
if (componentDefinition$
|
|
3344
|
-
Object.entries(componentDefinition$
|
|
3625
|
+
if (componentDefinition$o && componentDefinition$o.props) {
|
|
3626
|
+
Object.entries(componentDefinition$o.props).forEach(([key, config]) => {
|
|
3345
3627
|
const propConfig = config;
|
|
3346
3628
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3347
3629
|
defaultProps$B[key] = propConfig.default;
|
|
@@ -3360,7 +3642,7 @@ function ShaderComponent$B(props) {
|
|
|
3360
3642
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3361
3643
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3362
3644
|
} = context;
|
|
3363
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3645
|
+
const instanceId = props.id || `${componentDefinition$o.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3364
3646
|
const effectiveProps = createMemo(() => {
|
|
3365
3647
|
let baseProps = {
|
|
3366
3648
|
...defaultProps$B
|
|
@@ -3379,7 +3661,7 @@ function ShaderComponent$B(props) {
|
|
|
3379
3661
|
let uniformsMap = null;
|
|
3380
3662
|
const getUniformsMap = () => {
|
|
3381
3663
|
if (!uniformsMap) {
|
|
3382
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3664
|
+
uniformsMap = createUniformsMap(componentDefinition$o, effectiveProps(), instanceId);
|
|
3383
3665
|
}
|
|
3384
3666
|
return uniformsMap;
|
|
3385
3667
|
};
|
|
@@ -3404,7 +3686,7 @@ function ShaderComponent$B(props) {
|
|
|
3404
3686
|
renderOrder: props.renderOrder || 0,
|
|
3405
3687
|
transform: effectiveTransform()
|
|
3406
3688
|
};
|
|
3407
|
-
parentRegister(instanceId, componentDefinition$
|
|
3689
|
+
parentRegister(instanceId, componentDefinition$o.fragmentNode, parentId, metadata, uniforms, componentDefinition$o);
|
|
3408
3690
|
isRegistered = true;
|
|
3409
3691
|
} catch (error) {
|
|
3410
3692
|
console.error("Error registering shader node:", error);
|
|
@@ -3480,8 +3762,8 @@ const defaultProps$A = {
|
|
|
3480
3762
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3481
3763
|
};
|
|
3482
3764
|
try {
|
|
3483
|
-
if (componentDefinition$
|
|
3484
|
-
Object.entries(componentDefinition$
|
|
3765
|
+
if (componentDefinition$p && componentDefinition$p.props) {
|
|
3766
|
+
Object.entries(componentDefinition$p.props).forEach(([key, config]) => {
|
|
3485
3767
|
const propConfig = config;
|
|
3486
3768
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3487
3769
|
defaultProps$A[key] = propConfig.default;
|
|
@@ -3500,7 +3782,7 @@ function ShaderComponent$A(props) {
|
|
|
3500
3782
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3501
3783
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3502
3784
|
} = context;
|
|
3503
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3785
|
+
const instanceId = props.id || `${componentDefinition$p.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3504
3786
|
const effectiveProps = createMemo(() => {
|
|
3505
3787
|
let baseProps = {
|
|
3506
3788
|
...defaultProps$A
|
|
@@ -3519,7 +3801,7 @@ function ShaderComponent$A(props) {
|
|
|
3519
3801
|
let uniformsMap = null;
|
|
3520
3802
|
const getUniformsMap = () => {
|
|
3521
3803
|
if (!uniformsMap) {
|
|
3522
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3804
|
+
uniformsMap = createUniformsMap(componentDefinition$p, effectiveProps(), instanceId);
|
|
3523
3805
|
}
|
|
3524
3806
|
return uniformsMap;
|
|
3525
3807
|
};
|
|
@@ -3544,7 +3826,7 @@ function ShaderComponent$A(props) {
|
|
|
3544
3826
|
renderOrder: props.renderOrder || 0,
|
|
3545
3827
|
transform: effectiveTransform()
|
|
3546
3828
|
};
|
|
3547
|
-
parentRegister(instanceId, componentDefinition$
|
|
3829
|
+
parentRegister(instanceId, componentDefinition$p.fragmentNode, parentId, metadata, uniforms, componentDefinition$p);
|
|
3548
3830
|
isRegistered = true;
|
|
3549
3831
|
} catch (error) {
|
|
3550
3832
|
console.error("Error registering shader node:", error);
|
|
@@ -3620,8 +3902,8 @@ const defaultProps$z = {
|
|
|
3620
3902
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3621
3903
|
};
|
|
3622
3904
|
try {
|
|
3623
|
-
if (componentDefinition$
|
|
3624
|
-
Object.entries(componentDefinition$
|
|
3905
|
+
if (componentDefinition$q && componentDefinition$q.props) {
|
|
3906
|
+
Object.entries(componentDefinition$q.props).forEach(([key, config]) => {
|
|
3625
3907
|
const propConfig = config;
|
|
3626
3908
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3627
3909
|
defaultProps$z[key] = propConfig.default;
|
|
@@ -3640,7 +3922,7 @@ function ShaderComponent$z(props) {
|
|
|
3640
3922
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3641
3923
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3642
3924
|
} = context;
|
|
3643
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3925
|
+
const instanceId = props.id || `${componentDefinition$q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3644
3926
|
const effectiveProps = createMemo(() => {
|
|
3645
3927
|
let baseProps = {
|
|
3646
3928
|
...defaultProps$z
|
|
@@ -3659,7 +3941,7 @@ function ShaderComponent$z(props) {
|
|
|
3659
3941
|
let uniformsMap = null;
|
|
3660
3942
|
const getUniformsMap = () => {
|
|
3661
3943
|
if (!uniformsMap) {
|
|
3662
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3944
|
+
uniformsMap = createUniformsMap(componentDefinition$q, effectiveProps(), instanceId);
|
|
3663
3945
|
}
|
|
3664
3946
|
return uniformsMap;
|
|
3665
3947
|
};
|
|
@@ -3684,7 +3966,7 @@ function ShaderComponent$z(props) {
|
|
|
3684
3966
|
renderOrder: props.renderOrder || 0,
|
|
3685
3967
|
transform: effectiveTransform()
|
|
3686
3968
|
};
|
|
3687
|
-
parentRegister(instanceId, componentDefinition$
|
|
3969
|
+
parentRegister(instanceId, componentDefinition$q.fragmentNode, parentId, metadata, uniforms, componentDefinition$q);
|
|
3688
3970
|
isRegistered = true;
|
|
3689
3971
|
} catch (error) {
|
|
3690
3972
|
console.error("Error registering shader node:", error);
|
|
@@ -3760,8 +4042,8 @@ const defaultProps$y = {
|
|
|
3760
4042
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3761
4043
|
};
|
|
3762
4044
|
try {
|
|
3763
|
-
if (componentDefinition$
|
|
3764
|
-
Object.entries(componentDefinition$
|
|
4045
|
+
if (componentDefinition$r && componentDefinition$r.props) {
|
|
4046
|
+
Object.entries(componentDefinition$r.props).forEach(([key, config]) => {
|
|
3765
4047
|
const propConfig = config;
|
|
3766
4048
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3767
4049
|
defaultProps$y[key] = propConfig.default;
|
|
@@ -3780,7 +4062,7 @@ function ShaderComponent$y(props) {
|
|
|
3780
4062
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3781
4063
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3782
4064
|
} = context;
|
|
3783
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4065
|
+
const instanceId = props.id || `${componentDefinition$r.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3784
4066
|
const effectiveProps = createMemo(() => {
|
|
3785
4067
|
let baseProps = {
|
|
3786
4068
|
...defaultProps$y
|
|
@@ -3799,7 +4081,7 @@ function ShaderComponent$y(props) {
|
|
|
3799
4081
|
let uniformsMap = null;
|
|
3800
4082
|
const getUniformsMap = () => {
|
|
3801
4083
|
if (!uniformsMap) {
|
|
3802
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4084
|
+
uniformsMap = createUniformsMap(componentDefinition$r, effectiveProps(), instanceId);
|
|
3803
4085
|
}
|
|
3804
4086
|
return uniformsMap;
|
|
3805
4087
|
};
|
|
@@ -3824,7 +4106,7 @@ function ShaderComponent$y(props) {
|
|
|
3824
4106
|
renderOrder: props.renderOrder || 0,
|
|
3825
4107
|
transform: effectiveTransform()
|
|
3826
4108
|
};
|
|
3827
|
-
parentRegister(instanceId, componentDefinition$
|
|
4109
|
+
parentRegister(instanceId, componentDefinition$r.fragmentNode, parentId, metadata, uniforms, componentDefinition$r);
|
|
3828
4110
|
isRegistered = true;
|
|
3829
4111
|
} catch (error) {
|
|
3830
4112
|
console.error("Error registering shader node:", error);
|
|
@@ -3900,8 +4182,8 @@ const defaultProps$x = {
|
|
|
3900
4182
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3901
4183
|
};
|
|
3902
4184
|
try {
|
|
3903
|
-
if (componentDefinition$
|
|
3904
|
-
Object.entries(componentDefinition$
|
|
4185
|
+
if (componentDefinition$s && componentDefinition$s.props) {
|
|
4186
|
+
Object.entries(componentDefinition$s.props).forEach(([key, config]) => {
|
|
3905
4187
|
const propConfig = config;
|
|
3906
4188
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3907
4189
|
defaultProps$x[key] = propConfig.default;
|
|
@@ -3920,7 +4202,7 @@ function ShaderComponent$x(props) {
|
|
|
3920
4202
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3921
4203
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3922
4204
|
} = context;
|
|
3923
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4205
|
+
const instanceId = props.id || `${componentDefinition$s.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3924
4206
|
const effectiveProps = createMemo(() => {
|
|
3925
4207
|
let baseProps = {
|
|
3926
4208
|
...defaultProps$x
|
|
@@ -3939,7 +4221,7 @@ function ShaderComponent$x(props) {
|
|
|
3939
4221
|
let uniformsMap = null;
|
|
3940
4222
|
const getUniformsMap = () => {
|
|
3941
4223
|
if (!uniformsMap) {
|
|
3942
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4224
|
+
uniformsMap = createUniformsMap(componentDefinition$s, effectiveProps(), instanceId);
|
|
3943
4225
|
}
|
|
3944
4226
|
return uniformsMap;
|
|
3945
4227
|
};
|
|
@@ -3964,7 +4246,7 @@ function ShaderComponent$x(props) {
|
|
|
3964
4246
|
renderOrder: props.renderOrder || 0,
|
|
3965
4247
|
transform: effectiveTransform()
|
|
3966
4248
|
};
|
|
3967
|
-
parentRegister(instanceId, componentDefinition$
|
|
4249
|
+
parentRegister(instanceId, componentDefinition$s.fragmentNode, parentId, metadata, uniforms, componentDefinition$s);
|
|
3968
4250
|
isRegistered = true;
|
|
3969
4251
|
} catch (error) {
|
|
3970
4252
|
console.error("Error registering shader node:", error);
|
|
@@ -4040,8 +4322,8 @@ const defaultProps$w = {
|
|
|
4040
4322
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4041
4323
|
};
|
|
4042
4324
|
try {
|
|
4043
|
-
if (componentDefinition$
|
|
4044
|
-
Object.entries(componentDefinition$
|
|
4325
|
+
if (componentDefinition$t && componentDefinition$t.props) {
|
|
4326
|
+
Object.entries(componentDefinition$t.props).forEach(([key, config]) => {
|
|
4045
4327
|
const propConfig = config;
|
|
4046
4328
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4047
4329
|
defaultProps$w[key] = propConfig.default;
|
|
@@ -4060,7 +4342,7 @@ function ShaderComponent$w(props) {
|
|
|
4060
4342
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4061
4343
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4062
4344
|
} = context;
|
|
4063
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4345
|
+
const instanceId = props.id || `${componentDefinition$t.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4064
4346
|
const effectiveProps = createMemo(() => {
|
|
4065
4347
|
let baseProps = {
|
|
4066
4348
|
...defaultProps$w
|
|
@@ -4079,7 +4361,7 @@ function ShaderComponent$w(props) {
|
|
|
4079
4361
|
let uniformsMap = null;
|
|
4080
4362
|
const getUniformsMap = () => {
|
|
4081
4363
|
if (!uniformsMap) {
|
|
4082
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4364
|
+
uniformsMap = createUniformsMap(componentDefinition$t, effectiveProps(), instanceId);
|
|
4083
4365
|
}
|
|
4084
4366
|
return uniformsMap;
|
|
4085
4367
|
};
|
|
@@ -4104,7 +4386,7 @@ function ShaderComponent$w(props) {
|
|
|
4104
4386
|
renderOrder: props.renderOrder || 0,
|
|
4105
4387
|
transform: effectiveTransform()
|
|
4106
4388
|
};
|
|
4107
|
-
parentRegister(instanceId, componentDefinition$
|
|
4389
|
+
parentRegister(instanceId, componentDefinition$t.fragmentNode, parentId, metadata, uniforms, componentDefinition$t);
|
|
4108
4390
|
isRegistered = true;
|
|
4109
4391
|
} catch (error) {
|
|
4110
4392
|
console.error("Error registering shader node:", error);
|
|
@@ -4180,8 +4462,8 @@ const defaultProps$v = {
|
|
|
4180
4462
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4181
4463
|
};
|
|
4182
4464
|
try {
|
|
4183
|
-
if (componentDefinition$
|
|
4184
|
-
Object.entries(componentDefinition$
|
|
4465
|
+
if (componentDefinition$u && componentDefinition$u.props) {
|
|
4466
|
+
Object.entries(componentDefinition$u.props).forEach(([key, config]) => {
|
|
4185
4467
|
const propConfig = config;
|
|
4186
4468
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4187
4469
|
defaultProps$v[key] = propConfig.default;
|
|
@@ -4200,7 +4482,7 @@ function ShaderComponent$v(props) {
|
|
|
4200
4482
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4201
4483
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4202
4484
|
} = context;
|
|
4203
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4485
|
+
const instanceId = props.id || `${componentDefinition$u.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4204
4486
|
const effectiveProps = createMemo(() => {
|
|
4205
4487
|
let baseProps = {
|
|
4206
4488
|
...defaultProps$v
|
|
@@ -4219,7 +4501,7 @@ function ShaderComponent$v(props) {
|
|
|
4219
4501
|
let uniformsMap = null;
|
|
4220
4502
|
const getUniformsMap = () => {
|
|
4221
4503
|
if (!uniformsMap) {
|
|
4222
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4504
|
+
uniformsMap = createUniformsMap(componentDefinition$u, effectiveProps(), instanceId);
|
|
4223
4505
|
}
|
|
4224
4506
|
return uniformsMap;
|
|
4225
4507
|
};
|
|
@@ -4244,7 +4526,7 @@ function ShaderComponent$v(props) {
|
|
|
4244
4526
|
renderOrder: props.renderOrder || 0,
|
|
4245
4527
|
transform: effectiveTransform()
|
|
4246
4528
|
};
|
|
4247
|
-
parentRegister(instanceId, componentDefinition$
|
|
4529
|
+
parentRegister(instanceId, componentDefinition$u.fragmentNode, parentId, metadata, uniforms, componentDefinition$u);
|
|
4248
4530
|
isRegistered = true;
|
|
4249
4531
|
} catch (error) {
|
|
4250
4532
|
console.error("Error registering shader node:", error);
|
|
@@ -4320,8 +4602,8 @@ const defaultProps$u = {
|
|
|
4320
4602
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4321
4603
|
};
|
|
4322
4604
|
try {
|
|
4323
|
-
if (componentDefinition$
|
|
4324
|
-
Object.entries(componentDefinition$
|
|
4605
|
+
if (componentDefinition$v && componentDefinition$v.props) {
|
|
4606
|
+
Object.entries(componentDefinition$v.props).forEach(([key, config]) => {
|
|
4325
4607
|
const propConfig = config;
|
|
4326
4608
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4327
4609
|
defaultProps$u[key] = propConfig.default;
|
|
@@ -4340,7 +4622,7 @@ function ShaderComponent$u(props) {
|
|
|
4340
4622
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4341
4623
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4342
4624
|
} = context;
|
|
4343
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4625
|
+
const instanceId = props.id || `${componentDefinition$v.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4344
4626
|
const effectiveProps = createMemo(() => {
|
|
4345
4627
|
let baseProps = {
|
|
4346
4628
|
...defaultProps$u
|
|
@@ -4359,7 +4641,7 @@ function ShaderComponent$u(props) {
|
|
|
4359
4641
|
let uniformsMap = null;
|
|
4360
4642
|
const getUniformsMap = () => {
|
|
4361
4643
|
if (!uniformsMap) {
|
|
4362
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4644
|
+
uniformsMap = createUniformsMap(componentDefinition$v, effectiveProps(), instanceId);
|
|
4363
4645
|
}
|
|
4364
4646
|
return uniformsMap;
|
|
4365
4647
|
};
|
|
@@ -4384,7 +4666,7 @@ function ShaderComponent$u(props) {
|
|
|
4384
4666
|
renderOrder: props.renderOrder || 0,
|
|
4385
4667
|
transform: effectiveTransform()
|
|
4386
4668
|
};
|
|
4387
|
-
parentRegister(instanceId, componentDefinition$
|
|
4669
|
+
parentRegister(instanceId, componentDefinition$v.fragmentNode, parentId, metadata, uniforms, componentDefinition$v);
|
|
4388
4670
|
isRegistered = true;
|
|
4389
4671
|
} catch (error) {
|
|
4390
4672
|
console.error("Error registering shader node:", error);
|
|
@@ -4460,8 +4742,8 @@ const defaultProps$t = {
|
|
|
4460
4742
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4461
4743
|
};
|
|
4462
4744
|
try {
|
|
4463
|
-
if (componentDefinition$
|
|
4464
|
-
Object.entries(componentDefinition$
|
|
4745
|
+
if (componentDefinition$w && componentDefinition$w.props) {
|
|
4746
|
+
Object.entries(componentDefinition$w.props).forEach(([key, config]) => {
|
|
4465
4747
|
const propConfig = config;
|
|
4466
4748
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4467
4749
|
defaultProps$t[key] = propConfig.default;
|
|
@@ -4480,7 +4762,7 @@ function ShaderComponent$t(props) {
|
|
|
4480
4762
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4481
4763
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4482
4764
|
} = context;
|
|
4483
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4765
|
+
const instanceId = props.id || `${componentDefinition$w.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4484
4766
|
const effectiveProps = createMemo(() => {
|
|
4485
4767
|
let baseProps = {
|
|
4486
4768
|
...defaultProps$t
|
|
@@ -4499,7 +4781,7 @@ function ShaderComponent$t(props) {
|
|
|
4499
4781
|
let uniformsMap = null;
|
|
4500
4782
|
const getUniformsMap = () => {
|
|
4501
4783
|
if (!uniformsMap) {
|
|
4502
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4784
|
+
uniformsMap = createUniformsMap(componentDefinition$w, effectiveProps(), instanceId);
|
|
4503
4785
|
}
|
|
4504
4786
|
return uniformsMap;
|
|
4505
4787
|
};
|
|
@@ -4524,7 +4806,7 @@ function ShaderComponent$t(props) {
|
|
|
4524
4806
|
renderOrder: props.renderOrder || 0,
|
|
4525
4807
|
transform: effectiveTransform()
|
|
4526
4808
|
};
|
|
4527
|
-
parentRegister(instanceId, componentDefinition$
|
|
4809
|
+
parentRegister(instanceId, componentDefinition$w.fragmentNode, parentId, metadata, uniforms, componentDefinition$w);
|
|
4528
4810
|
isRegistered = true;
|
|
4529
4811
|
} catch (error) {
|
|
4530
4812
|
console.error("Error registering shader node:", error);
|
|
@@ -4600,8 +4882,8 @@ const defaultProps$s = {
|
|
|
4600
4882
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4601
4883
|
};
|
|
4602
4884
|
try {
|
|
4603
|
-
if (componentDefinition$
|
|
4604
|
-
Object.entries(componentDefinition$
|
|
4885
|
+
if (componentDefinition$x && componentDefinition$x.props) {
|
|
4886
|
+
Object.entries(componentDefinition$x.props).forEach(([key, config]) => {
|
|
4605
4887
|
const propConfig = config;
|
|
4606
4888
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4607
4889
|
defaultProps$s[key] = propConfig.default;
|
|
@@ -4620,7 +4902,7 @@ function ShaderComponent$s(props) {
|
|
|
4620
4902
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4621
4903
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4622
4904
|
} = context;
|
|
4623
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4905
|
+
const instanceId = props.id || `${componentDefinition$x.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4624
4906
|
const effectiveProps = createMemo(() => {
|
|
4625
4907
|
let baseProps = {
|
|
4626
4908
|
...defaultProps$s
|
|
@@ -4639,7 +4921,7 @@ function ShaderComponent$s(props) {
|
|
|
4639
4921
|
let uniformsMap = null;
|
|
4640
4922
|
const getUniformsMap = () => {
|
|
4641
4923
|
if (!uniformsMap) {
|
|
4642
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4924
|
+
uniformsMap = createUniformsMap(componentDefinition$x, effectiveProps(), instanceId);
|
|
4643
4925
|
}
|
|
4644
4926
|
return uniformsMap;
|
|
4645
4927
|
};
|
|
@@ -4664,7 +4946,7 @@ function ShaderComponent$s(props) {
|
|
|
4664
4946
|
renderOrder: props.renderOrder || 0,
|
|
4665
4947
|
transform: effectiveTransform()
|
|
4666
4948
|
};
|
|
4667
|
-
parentRegister(instanceId, componentDefinition$
|
|
4949
|
+
parentRegister(instanceId, componentDefinition$x.fragmentNode, parentId, metadata, uniforms, componentDefinition$x);
|
|
4668
4950
|
isRegistered = true;
|
|
4669
4951
|
} catch (error) {
|
|
4670
4952
|
console.error("Error registering shader node:", error);
|
|
@@ -4740,8 +5022,8 @@ const defaultProps$r = {
|
|
|
4740
5022
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4741
5023
|
};
|
|
4742
5024
|
try {
|
|
4743
|
-
if (componentDefinition$
|
|
4744
|
-
Object.entries(componentDefinition$
|
|
5025
|
+
if (componentDefinition$y && componentDefinition$y.props) {
|
|
5026
|
+
Object.entries(componentDefinition$y.props).forEach(([key, config]) => {
|
|
4745
5027
|
const propConfig = config;
|
|
4746
5028
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4747
5029
|
defaultProps$r[key] = propConfig.default;
|
|
@@ -4760,7 +5042,7 @@ function ShaderComponent$r(props) {
|
|
|
4760
5042
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4761
5043
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4762
5044
|
} = context;
|
|
4763
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5045
|
+
const instanceId = props.id || `${componentDefinition$y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4764
5046
|
const effectiveProps = createMemo(() => {
|
|
4765
5047
|
let baseProps = {
|
|
4766
5048
|
...defaultProps$r
|
|
@@ -4779,7 +5061,7 @@ function ShaderComponent$r(props) {
|
|
|
4779
5061
|
let uniformsMap = null;
|
|
4780
5062
|
const getUniformsMap = () => {
|
|
4781
5063
|
if (!uniformsMap) {
|
|
4782
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5064
|
+
uniformsMap = createUniformsMap(componentDefinition$y, effectiveProps(), instanceId);
|
|
4783
5065
|
}
|
|
4784
5066
|
return uniformsMap;
|
|
4785
5067
|
};
|
|
@@ -4804,7 +5086,7 @@ function ShaderComponent$r(props) {
|
|
|
4804
5086
|
renderOrder: props.renderOrder || 0,
|
|
4805
5087
|
transform: effectiveTransform()
|
|
4806
5088
|
};
|
|
4807
|
-
parentRegister(instanceId, componentDefinition$
|
|
5089
|
+
parentRegister(instanceId, componentDefinition$y.fragmentNode, parentId, metadata, uniforms, componentDefinition$y);
|
|
4808
5090
|
isRegistered = true;
|
|
4809
5091
|
} catch (error) {
|
|
4810
5092
|
console.error("Error registering shader node:", error);
|
|
@@ -4880,8 +5162,8 @@ const defaultProps$q = {
|
|
|
4880
5162
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4881
5163
|
};
|
|
4882
5164
|
try {
|
|
4883
|
-
if (componentDefinition$
|
|
4884
|
-
Object.entries(componentDefinition$
|
|
5165
|
+
if (componentDefinition$z && componentDefinition$z.props) {
|
|
5166
|
+
Object.entries(componentDefinition$z.props).forEach(([key, config]) => {
|
|
4885
5167
|
const propConfig = config;
|
|
4886
5168
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4887
5169
|
defaultProps$q[key] = propConfig.default;
|
|
@@ -4900,7 +5182,7 @@ function ShaderComponent$q(props) {
|
|
|
4900
5182
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4901
5183
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4902
5184
|
} = context;
|
|
4903
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5185
|
+
const instanceId = props.id || `${componentDefinition$z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4904
5186
|
const effectiveProps = createMemo(() => {
|
|
4905
5187
|
let baseProps = {
|
|
4906
5188
|
...defaultProps$q
|
|
@@ -4919,7 +5201,7 @@ function ShaderComponent$q(props) {
|
|
|
4919
5201
|
let uniformsMap = null;
|
|
4920
5202
|
const getUniformsMap = () => {
|
|
4921
5203
|
if (!uniformsMap) {
|
|
4922
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5204
|
+
uniformsMap = createUniformsMap(componentDefinition$z, effectiveProps(), instanceId);
|
|
4923
5205
|
}
|
|
4924
5206
|
return uniformsMap;
|
|
4925
5207
|
};
|
|
@@ -4944,7 +5226,7 @@ function ShaderComponent$q(props) {
|
|
|
4944
5226
|
renderOrder: props.renderOrder || 0,
|
|
4945
5227
|
transform: effectiveTransform()
|
|
4946
5228
|
};
|
|
4947
|
-
parentRegister(instanceId, componentDefinition$
|
|
5229
|
+
parentRegister(instanceId, componentDefinition$z.fragmentNode, parentId, metadata, uniforms, componentDefinition$z);
|
|
4948
5230
|
isRegistered = true;
|
|
4949
5231
|
} catch (error) {
|
|
4950
5232
|
console.error("Error registering shader node:", error);
|
|
@@ -5020,8 +5302,8 @@ const defaultProps$p = {
|
|
|
5020
5302
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5021
5303
|
};
|
|
5022
5304
|
try {
|
|
5023
|
-
if (componentDefinition$
|
|
5024
|
-
Object.entries(componentDefinition$
|
|
5305
|
+
if (componentDefinition$A && componentDefinition$A.props) {
|
|
5306
|
+
Object.entries(componentDefinition$A.props).forEach(([key, config]) => {
|
|
5025
5307
|
const propConfig = config;
|
|
5026
5308
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5027
5309
|
defaultProps$p[key] = propConfig.default;
|
|
@@ -5040,7 +5322,7 @@ function ShaderComponent$p(props) {
|
|
|
5040
5322
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5041
5323
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5042
5324
|
} = context;
|
|
5043
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5325
|
+
const instanceId = props.id || `${componentDefinition$A.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5044
5326
|
const effectiveProps = createMemo(() => {
|
|
5045
5327
|
let baseProps = {
|
|
5046
5328
|
...defaultProps$p
|
|
@@ -5059,7 +5341,7 @@ function ShaderComponent$p(props) {
|
|
|
5059
5341
|
let uniformsMap = null;
|
|
5060
5342
|
const getUniformsMap = () => {
|
|
5061
5343
|
if (!uniformsMap) {
|
|
5062
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5344
|
+
uniformsMap = createUniformsMap(componentDefinition$A, effectiveProps(), instanceId);
|
|
5063
5345
|
}
|
|
5064
5346
|
return uniformsMap;
|
|
5065
5347
|
};
|
|
@@ -5084,7 +5366,7 @@ function ShaderComponent$p(props) {
|
|
|
5084
5366
|
renderOrder: props.renderOrder || 0,
|
|
5085
5367
|
transform: effectiveTransform()
|
|
5086
5368
|
};
|
|
5087
|
-
parentRegister(instanceId, componentDefinition$
|
|
5369
|
+
parentRegister(instanceId, componentDefinition$A.fragmentNode, parentId, metadata, uniforms, componentDefinition$A);
|
|
5088
5370
|
isRegistered = true;
|
|
5089
5371
|
} catch (error) {
|
|
5090
5372
|
console.error("Error registering shader node:", error);
|
|
@@ -5160,8 +5442,8 @@ const defaultProps$o = {
|
|
|
5160
5442
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5161
5443
|
};
|
|
5162
5444
|
try {
|
|
5163
|
-
if (componentDefinition$
|
|
5164
|
-
Object.entries(componentDefinition$
|
|
5445
|
+
if (componentDefinition$B && componentDefinition$B.props) {
|
|
5446
|
+
Object.entries(componentDefinition$B.props).forEach(([key, config]) => {
|
|
5165
5447
|
const propConfig = config;
|
|
5166
5448
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5167
5449
|
defaultProps$o[key] = propConfig.default;
|
|
@@ -5180,7 +5462,7 @@ function ShaderComponent$o(props) {
|
|
|
5180
5462
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5181
5463
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5182
5464
|
} = context;
|
|
5183
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5465
|
+
const instanceId = props.id || `${componentDefinition$B.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5184
5466
|
const effectiveProps = createMemo(() => {
|
|
5185
5467
|
let baseProps = {
|
|
5186
5468
|
...defaultProps$o
|
|
@@ -5199,7 +5481,7 @@ function ShaderComponent$o(props) {
|
|
|
5199
5481
|
let uniformsMap = null;
|
|
5200
5482
|
const getUniformsMap = () => {
|
|
5201
5483
|
if (!uniformsMap) {
|
|
5202
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5484
|
+
uniformsMap = createUniformsMap(componentDefinition$B, effectiveProps(), instanceId);
|
|
5203
5485
|
}
|
|
5204
5486
|
return uniformsMap;
|
|
5205
5487
|
};
|
|
@@ -5224,7 +5506,7 @@ function ShaderComponent$o(props) {
|
|
|
5224
5506
|
renderOrder: props.renderOrder || 0,
|
|
5225
5507
|
transform: effectiveTransform()
|
|
5226
5508
|
};
|
|
5227
|
-
parentRegister(instanceId, componentDefinition$
|
|
5509
|
+
parentRegister(instanceId, componentDefinition$B.fragmentNode, parentId, metadata, uniforms, componentDefinition$B);
|
|
5228
5510
|
isRegistered = true;
|
|
5229
5511
|
} catch (error) {
|
|
5230
5512
|
console.error("Error registering shader node:", error);
|
|
@@ -5300,8 +5582,8 @@ const defaultProps$n = {
|
|
|
5300
5582
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5301
5583
|
};
|
|
5302
5584
|
try {
|
|
5303
|
-
if (componentDefinition$
|
|
5304
|
-
Object.entries(componentDefinition$
|
|
5585
|
+
if (componentDefinition$C && componentDefinition$C.props) {
|
|
5586
|
+
Object.entries(componentDefinition$C.props).forEach(([key, config]) => {
|
|
5305
5587
|
const propConfig = config;
|
|
5306
5588
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5307
5589
|
defaultProps$n[key] = propConfig.default;
|
|
@@ -5320,7 +5602,7 @@ function ShaderComponent$n(props) {
|
|
|
5320
5602
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5321
5603
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5322
5604
|
} = context;
|
|
5323
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5605
|
+
const instanceId = props.id || `${componentDefinition$C.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5324
5606
|
const effectiveProps = createMemo(() => {
|
|
5325
5607
|
let baseProps = {
|
|
5326
5608
|
...defaultProps$n
|
|
@@ -5339,7 +5621,7 @@ function ShaderComponent$n(props) {
|
|
|
5339
5621
|
let uniformsMap = null;
|
|
5340
5622
|
const getUniformsMap = () => {
|
|
5341
5623
|
if (!uniformsMap) {
|
|
5342
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5624
|
+
uniformsMap = createUniformsMap(componentDefinition$C, effectiveProps(), instanceId);
|
|
5343
5625
|
}
|
|
5344
5626
|
return uniformsMap;
|
|
5345
5627
|
};
|
|
@@ -5364,7 +5646,7 @@ function ShaderComponent$n(props) {
|
|
|
5364
5646
|
renderOrder: props.renderOrder || 0,
|
|
5365
5647
|
transform: effectiveTransform()
|
|
5366
5648
|
};
|
|
5367
|
-
parentRegister(instanceId, componentDefinition$
|
|
5649
|
+
parentRegister(instanceId, componentDefinition$C.fragmentNode, parentId, metadata, uniforms, componentDefinition$C);
|
|
5368
5650
|
isRegistered = true;
|
|
5369
5651
|
} catch (error) {
|
|
5370
5652
|
console.error("Error registering shader node:", error);
|
|
@@ -5440,8 +5722,8 @@ const defaultProps$m = {
|
|
|
5440
5722
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5441
5723
|
};
|
|
5442
5724
|
try {
|
|
5443
|
-
if (componentDefinition$
|
|
5444
|
-
Object.entries(componentDefinition$
|
|
5725
|
+
if (componentDefinition$D && componentDefinition$D.props) {
|
|
5726
|
+
Object.entries(componentDefinition$D.props).forEach(([key, config]) => {
|
|
5445
5727
|
const propConfig = config;
|
|
5446
5728
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5447
5729
|
defaultProps$m[key] = propConfig.default;
|
|
@@ -5460,7 +5742,7 @@ function ShaderComponent$m(props) {
|
|
|
5460
5742
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5461
5743
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5462
5744
|
} = context;
|
|
5463
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5745
|
+
const instanceId = props.id || `${componentDefinition$D.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5464
5746
|
const effectiveProps = createMemo(() => {
|
|
5465
5747
|
let baseProps = {
|
|
5466
5748
|
...defaultProps$m
|
|
@@ -5479,7 +5761,7 @@ function ShaderComponent$m(props) {
|
|
|
5479
5761
|
let uniformsMap = null;
|
|
5480
5762
|
const getUniformsMap = () => {
|
|
5481
5763
|
if (!uniformsMap) {
|
|
5482
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5764
|
+
uniformsMap = createUniformsMap(componentDefinition$D, effectiveProps(), instanceId);
|
|
5483
5765
|
}
|
|
5484
5766
|
return uniformsMap;
|
|
5485
5767
|
};
|
|
@@ -5504,7 +5786,7 @@ function ShaderComponent$m(props) {
|
|
|
5504
5786
|
renderOrder: props.renderOrder || 0,
|
|
5505
5787
|
transform: effectiveTransform()
|
|
5506
5788
|
};
|
|
5507
|
-
parentRegister(instanceId, componentDefinition$
|
|
5789
|
+
parentRegister(instanceId, componentDefinition$D.fragmentNode, parentId, metadata, uniforms, componentDefinition$D);
|
|
5508
5790
|
isRegistered = true;
|
|
5509
5791
|
} catch (error) {
|
|
5510
5792
|
console.error("Error registering shader node:", error);
|
|
@@ -5580,8 +5862,8 @@ const defaultProps$l = {
|
|
|
5580
5862
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5581
5863
|
};
|
|
5582
5864
|
try {
|
|
5583
|
-
if (componentDefinition$
|
|
5584
|
-
Object.entries(componentDefinition$
|
|
5865
|
+
if (componentDefinition$E && componentDefinition$E.props) {
|
|
5866
|
+
Object.entries(componentDefinition$E.props).forEach(([key, config]) => {
|
|
5585
5867
|
const propConfig = config;
|
|
5586
5868
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5587
5869
|
defaultProps$l[key] = propConfig.default;
|
|
@@ -5600,7 +5882,7 @@ function ShaderComponent$l(props) {
|
|
|
5600
5882
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5601
5883
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5602
5884
|
} = context;
|
|
5603
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5885
|
+
const instanceId = props.id || `${componentDefinition$E.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5604
5886
|
const effectiveProps = createMemo(() => {
|
|
5605
5887
|
let baseProps = {
|
|
5606
5888
|
...defaultProps$l
|
|
@@ -5619,7 +5901,7 @@ function ShaderComponent$l(props) {
|
|
|
5619
5901
|
let uniformsMap = null;
|
|
5620
5902
|
const getUniformsMap = () => {
|
|
5621
5903
|
if (!uniformsMap) {
|
|
5622
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5904
|
+
uniformsMap = createUniformsMap(componentDefinition$E, effectiveProps(), instanceId);
|
|
5623
5905
|
}
|
|
5624
5906
|
return uniformsMap;
|
|
5625
5907
|
};
|
|
@@ -5644,7 +5926,7 @@ function ShaderComponent$l(props) {
|
|
|
5644
5926
|
renderOrder: props.renderOrder || 0,
|
|
5645
5927
|
transform: effectiveTransform()
|
|
5646
5928
|
};
|
|
5647
|
-
parentRegister(instanceId, componentDefinition$
|
|
5929
|
+
parentRegister(instanceId, componentDefinition$E.fragmentNode, parentId, metadata, uniforms, componentDefinition$E);
|
|
5648
5930
|
isRegistered = true;
|
|
5649
5931
|
} catch (error) {
|
|
5650
5932
|
console.error("Error registering shader node:", error);
|
|
@@ -5720,8 +6002,8 @@ const defaultProps$k = {
|
|
|
5720
6002
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5721
6003
|
};
|
|
5722
6004
|
try {
|
|
5723
|
-
if (componentDefinition$
|
|
5724
|
-
Object.entries(componentDefinition$
|
|
6005
|
+
if (componentDefinition$F && componentDefinition$F.props) {
|
|
6006
|
+
Object.entries(componentDefinition$F.props).forEach(([key, config]) => {
|
|
5725
6007
|
const propConfig = config;
|
|
5726
6008
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5727
6009
|
defaultProps$k[key] = propConfig.default;
|
|
@@ -5740,7 +6022,7 @@ function ShaderComponent$k(props) {
|
|
|
5740
6022
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5741
6023
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5742
6024
|
} = context;
|
|
5743
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6025
|
+
const instanceId = props.id || `${componentDefinition$F.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5744
6026
|
const effectiveProps = createMemo(() => {
|
|
5745
6027
|
let baseProps = {
|
|
5746
6028
|
...defaultProps$k
|
|
@@ -5759,7 +6041,7 @@ function ShaderComponent$k(props) {
|
|
|
5759
6041
|
let uniformsMap = null;
|
|
5760
6042
|
const getUniformsMap = () => {
|
|
5761
6043
|
if (!uniformsMap) {
|
|
5762
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6044
|
+
uniformsMap = createUniformsMap(componentDefinition$F, effectiveProps(), instanceId);
|
|
5763
6045
|
}
|
|
5764
6046
|
return uniformsMap;
|
|
5765
6047
|
};
|
|
@@ -5784,7 +6066,7 @@ function ShaderComponent$k(props) {
|
|
|
5784
6066
|
renderOrder: props.renderOrder || 0,
|
|
5785
6067
|
transform: effectiveTransform()
|
|
5786
6068
|
};
|
|
5787
|
-
parentRegister(instanceId, componentDefinition$
|
|
6069
|
+
parentRegister(instanceId, componentDefinition$F.fragmentNode, parentId, metadata, uniforms, componentDefinition$F);
|
|
5788
6070
|
isRegistered = true;
|
|
5789
6071
|
} catch (error) {
|
|
5790
6072
|
console.error("Error registering shader node:", error);
|
|
@@ -5860,8 +6142,8 @@ const defaultProps$j = {
|
|
|
5860
6142
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5861
6143
|
};
|
|
5862
6144
|
try {
|
|
5863
|
-
if (componentDefinition$
|
|
5864
|
-
Object.entries(componentDefinition$
|
|
6145
|
+
if (componentDefinition$G && componentDefinition$G.props) {
|
|
6146
|
+
Object.entries(componentDefinition$G.props).forEach(([key, config]) => {
|
|
5865
6147
|
const propConfig = config;
|
|
5866
6148
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5867
6149
|
defaultProps$j[key] = propConfig.default;
|
|
@@ -5880,7 +6162,7 @@ function ShaderComponent$j(props) {
|
|
|
5880
6162
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5881
6163
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5882
6164
|
} = context;
|
|
5883
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6165
|
+
const instanceId = props.id || `${componentDefinition$G.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5884
6166
|
const effectiveProps = createMemo(() => {
|
|
5885
6167
|
let baseProps = {
|
|
5886
6168
|
...defaultProps$j
|
|
@@ -5899,7 +6181,7 @@ function ShaderComponent$j(props) {
|
|
|
5899
6181
|
let uniformsMap = null;
|
|
5900
6182
|
const getUniformsMap = () => {
|
|
5901
6183
|
if (!uniformsMap) {
|
|
5902
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6184
|
+
uniformsMap = createUniformsMap(componentDefinition$G, effectiveProps(), instanceId);
|
|
5903
6185
|
}
|
|
5904
6186
|
return uniformsMap;
|
|
5905
6187
|
};
|
|
@@ -5924,7 +6206,7 @@ function ShaderComponent$j(props) {
|
|
|
5924
6206
|
renderOrder: props.renderOrder || 0,
|
|
5925
6207
|
transform: effectiveTransform()
|
|
5926
6208
|
};
|
|
5927
|
-
parentRegister(instanceId, componentDefinition$
|
|
6209
|
+
parentRegister(instanceId, componentDefinition$G.fragmentNode, parentId, metadata, uniforms, componentDefinition$G);
|
|
5928
6210
|
isRegistered = true;
|
|
5929
6211
|
} catch (error) {
|
|
5930
6212
|
console.error("Error registering shader node:", error);
|
|
@@ -6000,8 +6282,8 @@ const defaultProps$i = {
|
|
|
6000
6282
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6001
6283
|
};
|
|
6002
6284
|
try {
|
|
6003
|
-
if (componentDefinition$
|
|
6004
|
-
Object.entries(componentDefinition$
|
|
6285
|
+
if (componentDefinition$H && componentDefinition$H.props) {
|
|
6286
|
+
Object.entries(componentDefinition$H.props).forEach(([key, config]) => {
|
|
6005
6287
|
const propConfig = config;
|
|
6006
6288
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6007
6289
|
defaultProps$i[key] = propConfig.default;
|
|
@@ -6020,7 +6302,7 @@ function ShaderComponent$i(props) {
|
|
|
6020
6302
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6021
6303
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6022
6304
|
} = context;
|
|
6023
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6305
|
+
const instanceId = props.id || `${componentDefinition$H.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6024
6306
|
const effectiveProps = createMemo(() => {
|
|
6025
6307
|
let baseProps = {
|
|
6026
6308
|
...defaultProps$i
|
|
@@ -6039,7 +6321,7 @@ function ShaderComponent$i(props) {
|
|
|
6039
6321
|
let uniformsMap = null;
|
|
6040
6322
|
const getUniformsMap = () => {
|
|
6041
6323
|
if (!uniformsMap) {
|
|
6042
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6324
|
+
uniformsMap = createUniformsMap(componentDefinition$H, effectiveProps(), instanceId);
|
|
6043
6325
|
}
|
|
6044
6326
|
return uniformsMap;
|
|
6045
6327
|
};
|
|
@@ -6064,7 +6346,7 @@ function ShaderComponent$i(props) {
|
|
|
6064
6346
|
renderOrder: props.renderOrder || 0,
|
|
6065
6347
|
transform: effectiveTransform()
|
|
6066
6348
|
};
|
|
6067
|
-
parentRegister(instanceId, componentDefinition$
|
|
6349
|
+
parentRegister(instanceId, componentDefinition$H.fragmentNode, parentId, metadata, uniforms, componentDefinition$H);
|
|
6068
6350
|
isRegistered = true;
|
|
6069
6351
|
} catch (error) {
|
|
6070
6352
|
console.error("Error registering shader node:", error);
|
|
@@ -6140,8 +6422,8 @@ const defaultProps$h = {
|
|
|
6140
6422
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6141
6423
|
};
|
|
6142
6424
|
try {
|
|
6143
|
-
if (componentDefinition$
|
|
6144
|
-
Object.entries(componentDefinition$
|
|
6425
|
+
if (componentDefinition$I && componentDefinition$I.props) {
|
|
6426
|
+
Object.entries(componentDefinition$I.props).forEach(([key, config]) => {
|
|
6145
6427
|
const propConfig = config;
|
|
6146
6428
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6147
6429
|
defaultProps$h[key] = propConfig.default;
|
|
@@ -6160,7 +6442,7 @@ function ShaderComponent$h(props) {
|
|
|
6160
6442
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6161
6443
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6162
6444
|
} = context;
|
|
6163
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6445
|
+
const instanceId = props.id || `${componentDefinition$I.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6164
6446
|
const effectiveProps = createMemo(() => {
|
|
6165
6447
|
let baseProps = {
|
|
6166
6448
|
...defaultProps$h
|
|
@@ -6179,7 +6461,7 @@ function ShaderComponent$h(props) {
|
|
|
6179
6461
|
let uniformsMap = null;
|
|
6180
6462
|
const getUniformsMap = () => {
|
|
6181
6463
|
if (!uniformsMap) {
|
|
6182
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6464
|
+
uniformsMap = createUniformsMap(componentDefinition$I, effectiveProps(), instanceId);
|
|
6183
6465
|
}
|
|
6184
6466
|
return uniformsMap;
|
|
6185
6467
|
};
|
|
@@ -6204,7 +6486,7 @@ function ShaderComponent$h(props) {
|
|
|
6204
6486
|
renderOrder: props.renderOrder || 0,
|
|
6205
6487
|
transform: effectiveTransform()
|
|
6206
6488
|
};
|
|
6207
|
-
parentRegister(instanceId, componentDefinition$
|
|
6489
|
+
parentRegister(instanceId, componentDefinition$I.fragmentNode, parentId, metadata, uniforms, componentDefinition$I);
|
|
6208
6490
|
isRegistered = true;
|
|
6209
6491
|
} catch (error) {
|
|
6210
6492
|
console.error("Error registering shader node:", error);
|
|
@@ -6280,8 +6562,8 @@ const defaultProps$g = {
|
|
|
6280
6562
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6281
6563
|
};
|
|
6282
6564
|
try {
|
|
6283
|
-
if (componentDefinition$
|
|
6284
|
-
Object.entries(componentDefinition$
|
|
6565
|
+
if (componentDefinition$J && componentDefinition$J.props) {
|
|
6566
|
+
Object.entries(componentDefinition$J.props).forEach(([key, config]) => {
|
|
6285
6567
|
const propConfig = config;
|
|
6286
6568
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6287
6569
|
defaultProps$g[key] = propConfig.default;
|
|
@@ -6300,7 +6582,7 @@ function ShaderComponent$g(props) {
|
|
|
6300
6582
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6301
6583
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6302
6584
|
} = context;
|
|
6303
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6585
|
+
const instanceId = props.id || `${componentDefinition$J.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6304
6586
|
const effectiveProps = createMemo(() => {
|
|
6305
6587
|
let baseProps = {
|
|
6306
6588
|
...defaultProps$g
|
|
@@ -6319,7 +6601,7 @@ function ShaderComponent$g(props) {
|
|
|
6319
6601
|
let uniformsMap = null;
|
|
6320
6602
|
const getUniformsMap = () => {
|
|
6321
6603
|
if (!uniformsMap) {
|
|
6322
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6604
|
+
uniformsMap = createUniformsMap(componentDefinition$J, effectiveProps(), instanceId);
|
|
6323
6605
|
}
|
|
6324
6606
|
return uniformsMap;
|
|
6325
6607
|
};
|
|
@@ -6344,7 +6626,7 @@ function ShaderComponent$g(props) {
|
|
|
6344
6626
|
renderOrder: props.renderOrder || 0,
|
|
6345
6627
|
transform: effectiveTransform()
|
|
6346
6628
|
};
|
|
6347
|
-
parentRegister(instanceId, componentDefinition$
|
|
6629
|
+
parentRegister(instanceId, componentDefinition$J.fragmentNode, parentId, metadata, uniforms, componentDefinition$J);
|
|
6348
6630
|
isRegistered = true;
|
|
6349
6631
|
} catch (error) {
|
|
6350
6632
|
console.error("Error registering shader node:", error);
|
|
@@ -6420,8 +6702,8 @@ const defaultProps$f = {
|
|
|
6420
6702
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6421
6703
|
};
|
|
6422
6704
|
try {
|
|
6423
|
-
if (componentDefinition$
|
|
6424
|
-
Object.entries(componentDefinition$
|
|
6705
|
+
if (componentDefinition$K && componentDefinition$K.props) {
|
|
6706
|
+
Object.entries(componentDefinition$K.props).forEach(([key, config]) => {
|
|
6425
6707
|
const propConfig = config;
|
|
6426
6708
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6427
6709
|
defaultProps$f[key] = propConfig.default;
|
|
@@ -6440,7 +6722,7 @@ function ShaderComponent$f(props) {
|
|
|
6440
6722
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6441
6723
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6442
6724
|
} = context;
|
|
6443
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6725
|
+
const instanceId = props.id || `${componentDefinition$K.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6444
6726
|
const effectiveProps = createMemo(() => {
|
|
6445
6727
|
let baseProps = {
|
|
6446
6728
|
...defaultProps$f
|
|
@@ -6459,7 +6741,7 @@ function ShaderComponent$f(props) {
|
|
|
6459
6741
|
let uniformsMap = null;
|
|
6460
6742
|
const getUniformsMap = () => {
|
|
6461
6743
|
if (!uniformsMap) {
|
|
6462
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6744
|
+
uniformsMap = createUniformsMap(componentDefinition$K, effectiveProps(), instanceId);
|
|
6463
6745
|
}
|
|
6464
6746
|
return uniformsMap;
|
|
6465
6747
|
};
|
|
@@ -6484,7 +6766,7 @@ function ShaderComponent$f(props) {
|
|
|
6484
6766
|
renderOrder: props.renderOrder || 0,
|
|
6485
6767
|
transform: effectiveTransform()
|
|
6486
6768
|
};
|
|
6487
|
-
parentRegister(instanceId, componentDefinition$
|
|
6769
|
+
parentRegister(instanceId, componentDefinition$K.fragmentNode, parentId, metadata, uniforms, componentDefinition$K);
|
|
6488
6770
|
isRegistered = true;
|
|
6489
6771
|
} catch (error) {
|
|
6490
6772
|
console.error("Error registering shader node:", error);
|
|
@@ -6560,8 +6842,8 @@ const defaultProps$e = {
|
|
|
6560
6842
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6561
6843
|
};
|
|
6562
6844
|
try {
|
|
6563
|
-
if (componentDefinition$
|
|
6564
|
-
Object.entries(componentDefinition$
|
|
6845
|
+
if (componentDefinition$L && componentDefinition$L.props) {
|
|
6846
|
+
Object.entries(componentDefinition$L.props).forEach(([key, config]) => {
|
|
6565
6847
|
const propConfig = config;
|
|
6566
6848
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6567
6849
|
defaultProps$e[key] = propConfig.default;
|
|
@@ -6580,7 +6862,7 @@ function ShaderComponent$e(props) {
|
|
|
6580
6862
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6581
6863
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6582
6864
|
} = context;
|
|
6583
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6865
|
+
const instanceId = props.id || `${componentDefinition$L.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6584
6866
|
const effectiveProps = createMemo(() => {
|
|
6585
6867
|
let baseProps = {
|
|
6586
6868
|
...defaultProps$e
|
|
@@ -6599,7 +6881,7 @@ function ShaderComponent$e(props) {
|
|
|
6599
6881
|
let uniformsMap = null;
|
|
6600
6882
|
const getUniformsMap = () => {
|
|
6601
6883
|
if (!uniformsMap) {
|
|
6602
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6884
|
+
uniformsMap = createUniformsMap(componentDefinition$L, effectiveProps(), instanceId);
|
|
6603
6885
|
}
|
|
6604
6886
|
return uniformsMap;
|
|
6605
6887
|
};
|
|
@@ -6624,7 +6906,7 @@ function ShaderComponent$e(props) {
|
|
|
6624
6906
|
renderOrder: props.renderOrder || 0,
|
|
6625
6907
|
transform: effectiveTransform()
|
|
6626
6908
|
};
|
|
6627
|
-
parentRegister(instanceId, componentDefinition$
|
|
6909
|
+
parentRegister(instanceId, componentDefinition$L.fragmentNode, parentId, metadata, uniforms, componentDefinition$L);
|
|
6628
6910
|
isRegistered = true;
|
|
6629
6911
|
} catch (error) {
|
|
6630
6912
|
console.error("Error registering shader node:", error);
|
|
@@ -6700,8 +6982,8 @@ const defaultProps$d = {
|
|
|
6700
6982
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6701
6983
|
};
|
|
6702
6984
|
try {
|
|
6703
|
-
if (componentDefinition$
|
|
6704
|
-
Object.entries(componentDefinition$
|
|
6985
|
+
if (componentDefinition$M && componentDefinition$M.props) {
|
|
6986
|
+
Object.entries(componentDefinition$M.props).forEach(([key, config]) => {
|
|
6705
6987
|
const propConfig = config;
|
|
6706
6988
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6707
6989
|
defaultProps$d[key] = propConfig.default;
|
|
@@ -6720,7 +7002,7 @@ function ShaderComponent$d(props) {
|
|
|
6720
7002
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6721
7003
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6722
7004
|
} = context;
|
|
6723
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7005
|
+
const instanceId = props.id || `${componentDefinition$M.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6724
7006
|
const effectiveProps = createMemo(() => {
|
|
6725
7007
|
let baseProps = {
|
|
6726
7008
|
...defaultProps$d
|
|
@@ -6739,7 +7021,7 @@ function ShaderComponent$d(props) {
|
|
|
6739
7021
|
let uniformsMap = null;
|
|
6740
7022
|
const getUniformsMap = () => {
|
|
6741
7023
|
if (!uniformsMap) {
|
|
6742
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7024
|
+
uniformsMap = createUniformsMap(componentDefinition$M, effectiveProps(), instanceId);
|
|
6743
7025
|
}
|
|
6744
7026
|
return uniformsMap;
|
|
6745
7027
|
};
|
|
@@ -6764,7 +7046,7 @@ function ShaderComponent$d(props) {
|
|
|
6764
7046
|
renderOrder: props.renderOrder || 0,
|
|
6765
7047
|
transform: effectiveTransform()
|
|
6766
7048
|
};
|
|
6767
|
-
parentRegister(instanceId, componentDefinition$
|
|
7049
|
+
parentRegister(instanceId, componentDefinition$M.fragmentNode, parentId, metadata, uniforms, componentDefinition$M);
|
|
6768
7050
|
isRegistered = true;
|
|
6769
7051
|
} catch (error) {
|
|
6770
7052
|
console.error("Error registering shader node:", error);
|
|
@@ -6840,8 +7122,8 @@ const defaultProps$c = {
|
|
|
6840
7122
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6841
7123
|
};
|
|
6842
7124
|
try {
|
|
6843
|
-
if (componentDefinition$
|
|
6844
|
-
Object.entries(componentDefinition$
|
|
7125
|
+
if (componentDefinition$N && componentDefinition$N.props) {
|
|
7126
|
+
Object.entries(componentDefinition$N.props).forEach(([key, config]) => {
|
|
6845
7127
|
const propConfig = config;
|
|
6846
7128
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6847
7129
|
defaultProps$c[key] = propConfig.default;
|
|
@@ -6860,7 +7142,7 @@ function ShaderComponent$c(props) {
|
|
|
6860
7142
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6861
7143
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6862
7144
|
} = context;
|
|
6863
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7145
|
+
const instanceId = props.id || `${componentDefinition$N.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6864
7146
|
const effectiveProps = createMemo(() => {
|
|
6865
7147
|
let baseProps = {
|
|
6866
7148
|
...defaultProps$c
|
|
@@ -6879,7 +7161,7 @@ function ShaderComponent$c(props) {
|
|
|
6879
7161
|
let uniformsMap = null;
|
|
6880
7162
|
const getUniformsMap = () => {
|
|
6881
7163
|
if (!uniformsMap) {
|
|
6882
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7164
|
+
uniformsMap = createUniformsMap(componentDefinition$N, effectiveProps(), instanceId);
|
|
6883
7165
|
}
|
|
6884
7166
|
return uniformsMap;
|
|
6885
7167
|
};
|
|
@@ -6904,7 +7186,7 @@ function ShaderComponent$c(props) {
|
|
|
6904
7186
|
renderOrder: props.renderOrder || 0,
|
|
6905
7187
|
transform: effectiveTransform()
|
|
6906
7188
|
};
|
|
6907
|
-
parentRegister(instanceId, componentDefinition$
|
|
7189
|
+
parentRegister(instanceId, componentDefinition$N.fragmentNode, parentId, metadata, uniforms, componentDefinition$N);
|
|
6908
7190
|
isRegistered = true;
|
|
6909
7191
|
} catch (error) {
|
|
6910
7192
|
console.error("Error registering shader node:", error);
|
|
@@ -6980,8 +7262,8 @@ const defaultProps$b = {
|
|
|
6980
7262
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6981
7263
|
};
|
|
6982
7264
|
try {
|
|
6983
|
-
if (componentDefinition$
|
|
6984
|
-
Object.entries(componentDefinition$
|
|
7265
|
+
if (componentDefinition$O && componentDefinition$O.props) {
|
|
7266
|
+
Object.entries(componentDefinition$O.props).forEach(([key, config]) => {
|
|
6985
7267
|
const propConfig = config;
|
|
6986
7268
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6987
7269
|
defaultProps$b[key] = propConfig.default;
|
|
@@ -7000,7 +7282,7 @@ function ShaderComponent$b(props) {
|
|
|
7000
7282
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7001
7283
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7002
7284
|
} = context;
|
|
7003
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7285
|
+
const instanceId = props.id || `${componentDefinition$O.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7004
7286
|
const effectiveProps = createMemo(() => {
|
|
7005
7287
|
let baseProps = {
|
|
7006
7288
|
...defaultProps$b
|
|
@@ -7019,7 +7301,7 @@ function ShaderComponent$b(props) {
|
|
|
7019
7301
|
let uniformsMap = null;
|
|
7020
7302
|
const getUniformsMap = () => {
|
|
7021
7303
|
if (!uniformsMap) {
|
|
7022
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7304
|
+
uniformsMap = createUniformsMap(componentDefinition$O, effectiveProps(), instanceId);
|
|
7023
7305
|
}
|
|
7024
7306
|
return uniformsMap;
|
|
7025
7307
|
};
|
|
@@ -7044,7 +7326,7 @@ function ShaderComponent$b(props) {
|
|
|
7044
7326
|
renderOrder: props.renderOrder || 0,
|
|
7045
7327
|
transform: effectiveTransform()
|
|
7046
7328
|
};
|
|
7047
|
-
parentRegister(instanceId, componentDefinition$
|
|
7329
|
+
parentRegister(instanceId, componentDefinition$O.fragmentNode, parentId, metadata, uniforms, componentDefinition$O);
|
|
7048
7330
|
isRegistered = true;
|
|
7049
7331
|
} catch (error) {
|
|
7050
7332
|
console.error("Error registering shader node:", error);
|
|
@@ -7120,8 +7402,8 @@ const defaultProps$a = {
|
|
|
7120
7402
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7121
7403
|
};
|
|
7122
7404
|
try {
|
|
7123
|
-
if (componentDefinition$
|
|
7124
|
-
Object.entries(componentDefinition$
|
|
7405
|
+
if (componentDefinition$P && componentDefinition$P.props) {
|
|
7406
|
+
Object.entries(componentDefinition$P.props).forEach(([key, config]) => {
|
|
7125
7407
|
const propConfig = config;
|
|
7126
7408
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7127
7409
|
defaultProps$a[key] = propConfig.default;
|
|
@@ -7140,7 +7422,7 @@ function ShaderComponent$a(props) {
|
|
|
7140
7422
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7141
7423
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7142
7424
|
} = context;
|
|
7143
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7425
|
+
const instanceId = props.id || `${componentDefinition$P.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7144
7426
|
const effectiveProps = createMemo(() => {
|
|
7145
7427
|
let baseProps = {
|
|
7146
7428
|
...defaultProps$a
|
|
@@ -7159,7 +7441,7 @@ function ShaderComponent$a(props) {
|
|
|
7159
7441
|
let uniformsMap = null;
|
|
7160
7442
|
const getUniformsMap = () => {
|
|
7161
7443
|
if (!uniformsMap) {
|
|
7162
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7444
|
+
uniformsMap = createUniformsMap(componentDefinition$P, effectiveProps(), instanceId);
|
|
7163
7445
|
}
|
|
7164
7446
|
return uniformsMap;
|
|
7165
7447
|
};
|
|
@@ -7184,7 +7466,7 @@ function ShaderComponent$a(props) {
|
|
|
7184
7466
|
renderOrder: props.renderOrder || 0,
|
|
7185
7467
|
transform: effectiveTransform()
|
|
7186
7468
|
};
|
|
7187
|
-
parentRegister(instanceId, componentDefinition$
|
|
7469
|
+
parentRegister(instanceId, componentDefinition$P.fragmentNode, parentId, metadata, uniforms, componentDefinition$P);
|
|
7188
7470
|
isRegistered = true;
|
|
7189
7471
|
} catch (error) {
|
|
7190
7472
|
console.error("Error registering shader node:", error);
|
|
@@ -7260,8 +7542,8 @@ const defaultProps$9 = {
|
|
|
7260
7542
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7261
7543
|
};
|
|
7262
7544
|
try {
|
|
7263
|
-
if (componentDefinition$
|
|
7264
|
-
Object.entries(componentDefinition$
|
|
7545
|
+
if (componentDefinition$Q && componentDefinition$Q.props) {
|
|
7546
|
+
Object.entries(componentDefinition$Q.props).forEach(([key, config]) => {
|
|
7265
7547
|
const propConfig = config;
|
|
7266
7548
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7267
7549
|
defaultProps$9[key] = propConfig.default;
|
|
@@ -7280,7 +7562,7 @@ function ShaderComponent$9(props) {
|
|
|
7280
7562
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7281
7563
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7282
7564
|
} = context;
|
|
7283
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7565
|
+
const instanceId = props.id || `${componentDefinition$Q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7284
7566
|
const effectiveProps = createMemo(() => {
|
|
7285
7567
|
let baseProps = {
|
|
7286
7568
|
...defaultProps$9
|
|
@@ -7299,7 +7581,7 @@ function ShaderComponent$9(props) {
|
|
|
7299
7581
|
let uniformsMap = null;
|
|
7300
7582
|
const getUniformsMap = () => {
|
|
7301
7583
|
if (!uniformsMap) {
|
|
7302
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7584
|
+
uniformsMap = createUniformsMap(componentDefinition$Q, effectiveProps(), instanceId);
|
|
7303
7585
|
}
|
|
7304
7586
|
return uniformsMap;
|
|
7305
7587
|
};
|
|
@@ -7324,7 +7606,7 @@ function ShaderComponent$9(props) {
|
|
|
7324
7606
|
renderOrder: props.renderOrder || 0,
|
|
7325
7607
|
transform: effectiveTransform()
|
|
7326
7608
|
};
|
|
7327
|
-
parentRegister(instanceId, componentDefinition$
|
|
7609
|
+
parentRegister(instanceId, componentDefinition$Q.fragmentNode, parentId, metadata, uniforms, componentDefinition$Q);
|
|
7328
7610
|
isRegistered = true;
|
|
7329
7611
|
} catch (error) {
|
|
7330
7612
|
console.error("Error registering shader node:", error);
|
|
@@ -7400,8 +7682,8 @@ const defaultProps$8 = {
|
|
|
7400
7682
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7401
7683
|
};
|
|
7402
7684
|
try {
|
|
7403
|
-
if (componentDefinition$
|
|
7404
|
-
Object.entries(componentDefinition$
|
|
7685
|
+
if (componentDefinition$R && componentDefinition$R.props) {
|
|
7686
|
+
Object.entries(componentDefinition$R.props).forEach(([key, config]) => {
|
|
7405
7687
|
const propConfig = config;
|
|
7406
7688
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7407
7689
|
defaultProps$8[key] = propConfig.default;
|
|
@@ -7420,7 +7702,7 @@ function ShaderComponent$8(props) {
|
|
|
7420
7702
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7421
7703
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7422
7704
|
} = context;
|
|
7423
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7705
|
+
const instanceId = props.id || `${componentDefinition$R.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7424
7706
|
const effectiveProps = createMemo(() => {
|
|
7425
7707
|
let baseProps = {
|
|
7426
7708
|
...defaultProps$8
|
|
@@ -7439,7 +7721,7 @@ function ShaderComponent$8(props) {
|
|
|
7439
7721
|
let uniformsMap = null;
|
|
7440
7722
|
const getUniformsMap = () => {
|
|
7441
7723
|
if (!uniformsMap) {
|
|
7442
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7724
|
+
uniformsMap = createUniformsMap(componentDefinition$R, effectiveProps(), instanceId);
|
|
7443
7725
|
}
|
|
7444
7726
|
return uniformsMap;
|
|
7445
7727
|
};
|
|
@@ -7464,7 +7746,7 @@ function ShaderComponent$8(props) {
|
|
|
7464
7746
|
renderOrder: props.renderOrder || 0,
|
|
7465
7747
|
transform: effectiveTransform()
|
|
7466
7748
|
};
|
|
7467
|
-
parentRegister(instanceId, componentDefinition$
|
|
7749
|
+
parentRegister(instanceId, componentDefinition$R.fragmentNode, parentId, metadata, uniforms, componentDefinition$R);
|
|
7468
7750
|
isRegistered = true;
|
|
7469
7751
|
} catch (error) {
|
|
7470
7752
|
console.error("Error registering shader node:", error);
|
|
@@ -7540,8 +7822,8 @@ const defaultProps$7 = {
|
|
|
7540
7822
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7541
7823
|
};
|
|
7542
7824
|
try {
|
|
7543
|
-
if (componentDefinition$
|
|
7544
|
-
Object.entries(componentDefinition$
|
|
7825
|
+
if (componentDefinition$S && componentDefinition$S.props) {
|
|
7826
|
+
Object.entries(componentDefinition$S.props).forEach(([key, config]) => {
|
|
7545
7827
|
const propConfig = config;
|
|
7546
7828
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7547
7829
|
defaultProps$7[key] = propConfig.default;
|
|
@@ -7560,7 +7842,7 @@ function ShaderComponent$7(props) {
|
|
|
7560
7842
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7561
7843
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7562
7844
|
} = context;
|
|
7563
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7845
|
+
const instanceId = props.id || `${componentDefinition$S.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7564
7846
|
const effectiveProps = createMemo(() => {
|
|
7565
7847
|
let baseProps = {
|
|
7566
7848
|
...defaultProps$7
|
|
@@ -7579,7 +7861,7 @@ function ShaderComponent$7(props) {
|
|
|
7579
7861
|
let uniformsMap = null;
|
|
7580
7862
|
const getUniformsMap = () => {
|
|
7581
7863
|
if (!uniformsMap) {
|
|
7582
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7864
|
+
uniformsMap = createUniformsMap(componentDefinition$S, effectiveProps(), instanceId);
|
|
7583
7865
|
}
|
|
7584
7866
|
return uniformsMap;
|
|
7585
7867
|
};
|
|
@@ -7604,7 +7886,7 @@ function ShaderComponent$7(props) {
|
|
|
7604
7886
|
renderOrder: props.renderOrder || 0,
|
|
7605
7887
|
transform: effectiveTransform()
|
|
7606
7888
|
};
|
|
7607
|
-
parentRegister(instanceId, componentDefinition$
|
|
7889
|
+
parentRegister(instanceId, componentDefinition$S.fragmentNode, parentId, metadata, uniforms, componentDefinition$S);
|
|
7608
7890
|
isRegistered = true;
|
|
7609
7891
|
} catch (error) {
|
|
7610
7892
|
console.error("Error registering shader node:", error);
|
|
@@ -7680,8 +7962,8 @@ const defaultProps$6 = {
|
|
|
7680
7962
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7681
7963
|
};
|
|
7682
7964
|
try {
|
|
7683
|
-
if (componentDefinition$
|
|
7684
|
-
Object.entries(componentDefinition$
|
|
7965
|
+
if (componentDefinition$T && componentDefinition$T.props) {
|
|
7966
|
+
Object.entries(componentDefinition$T.props).forEach(([key, config]) => {
|
|
7685
7967
|
const propConfig = config;
|
|
7686
7968
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7687
7969
|
defaultProps$6[key] = propConfig.default;
|
|
@@ -7700,7 +7982,7 @@ function ShaderComponent$6(props) {
|
|
|
7700
7982
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7701
7983
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7702
7984
|
} = context;
|
|
7703
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7985
|
+
const instanceId = props.id || `${componentDefinition$T.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7704
7986
|
const effectiveProps = createMemo(() => {
|
|
7705
7987
|
let baseProps = {
|
|
7706
7988
|
...defaultProps$6
|
|
@@ -7719,7 +8001,7 @@ function ShaderComponent$6(props) {
|
|
|
7719
8001
|
let uniformsMap = null;
|
|
7720
8002
|
const getUniformsMap = () => {
|
|
7721
8003
|
if (!uniformsMap) {
|
|
7722
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8004
|
+
uniformsMap = createUniformsMap(componentDefinition$T, effectiveProps(), instanceId);
|
|
7723
8005
|
}
|
|
7724
8006
|
return uniformsMap;
|
|
7725
8007
|
};
|
|
@@ -7744,7 +8026,7 @@ function ShaderComponent$6(props) {
|
|
|
7744
8026
|
renderOrder: props.renderOrder || 0,
|
|
7745
8027
|
transform: effectiveTransform()
|
|
7746
8028
|
};
|
|
7747
|
-
parentRegister(instanceId, componentDefinition$
|
|
8029
|
+
parentRegister(instanceId, componentDefinition$T.fragmentNode, parentId, metadata, uniforms, componentDefinition$T);
|
|
7748
8030
|
isRegistered = true;
|
|
7749
8031
|
} catch (error) {
|
|
7750
8032
|
console.error("Error registering shader node:", error);
|
|
@@ -7820,8 +8102,8 @@ const defaultProps$5 = {
|
|
|
7820
8102
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7821
8103
|
};
|
|
7822
8104
|
try {
|
|
7823
|
-
if (componentDefinition$
|
|
7824
|
-
Object.entries(componentDefinition$
|
|
8105
|
+
if (componentDefinition$U && componentDefinition$U.props) {
|
|
8106
|
+
Object.entries(componentDefinition$U.props).forEach(([key, config]) => {
|
|
7825
8107
|
const propConfig = config;
|
|
7826
8108
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7827
8109
|
defaultProps$5[key] = propConfig.default;
|
|
@@ -7840,7 +8122,7 @@ function ShaderComponent$5(props) {
|
|
|
7840
8122
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7841
8123
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7842
8124
|
} = context;
|
|
7843
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8125
|
+
const instanceId = props.id || `${componentDefinition$U.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7844
8126
|
const effectiveProps = createMemo(() => {
|
|
7845
8127
|
let baseProps = {
|
|
7846
8128
|
...defaultProps$5
|
|
@@ -7859,7 +8141,7 @@ function ShaderComponent$5(props) {
|
|
|
7859
8141
|
let uniformsMap = null;
|
|
7860
8142
|
const getUniformsMap = () => {
|
|
7861
8143
|
if (!uniformsMap) {
|
|
7862
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8144
|
+
uniformsMap = createUniformsMap(componentDefinition$U, effectiveProps(), instanceId);
|
|
7863
8145
|
}
|
|
7864
8146
|
return uniformsMap;
|
|
7865
8147
|
};
|
|
@@ -7884,7 +8166,7 @@ function ShaderComponent$5(props) {
|
|
|
7884
8166
|
renderOrder: props.renderOrder || 0,
|
|
7885
8167
|
transform: effectiveTransform()
|
|
7886
8168
|
};
|
|
7887
|
-
parentRegister(instanceId, componentDefinition$
|
|
8169
|
+
parentRegister(instanceId, componentDefinition$U.fragmentNode, parentId, metadata, uniforms, componentDefinition$U);
|
|
7888
8170
|
isRegistered = true;
|
|
7889
8171
|
} catch (error) {
|
|
7890
8172
|
console.error("Error registering shader node:", error);
|
|
@@ -7960,8 +8242,8 @@ const defaultProps$4 = {
|
|
|
7960
8242
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7961
8243
|
};
|
|
7962
8244
|
try {
|
|
7963
|
-
if (componentDefinition$
|
|
7964
|
-
Object.entries(componentDefinition$
|
|
8245
|
+
if (componentDefinition$V && componentDefinition$V.props) {
|
|
8246
|
+
Object.entries(componentDefinition$V.props).forEach(([key, config]) => {
|
|
7965
8247
|
const propConfig = config;
|
|
7966
8248
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7967
8249
|
defaultProps$4[key] = propConfig.default;
|
|
@@ -7980,7 +8262,7 @@ function ShaderComponent$4(props) {
|
|
|
7980
8262
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7981
8263
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7982
8264
|
} = context;
|
|
7983
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8265
|
+
const instanceId = props.id || `${componentDefinition$V.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7984
8266
|
const effectiveProps = createMemo(() => {
|
|
7985
8267
|
let baseProps = {
|
|
7986
8268
|
...defaultProps$4
|
|
@@ -7999,7 +8281,7 @@ function ShaderComponent$4(props) {
|
|
|
7999
8281
|
let uniformsMap = null;
|
|
8000
8282
|
const getUniformsMap = () => {
|
|
8001
8283
|
if (!uniformsMap) {
|
|
8002
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8284
|
+
uniformsMap = createUniformsMap(componentDefinition$V, effectiveProps(), instanceId);
|
|
8003
8285
|
}
|
|
8004
8286
|
return uniformsMap;
|
|
8005
8287
|
};
|
|
@@ -8024,7 +8306,7 @@ function ShaderComponent$4(props) {
|
|
|
8024
8306
|
renderOrder: props.renderOrder || 0,
|
|
8025
8307
|
transform: effectiveTransform()
|
|
8026
8308
|
};
|
|
8027
|
-
parentRegister(instanceId, componentDefinition$
|
|
8309
|
+
parentRegister(instanceId, componentDefinition$V.fragmentNode, parentId, metadata, uniforms, componentDefinition$V);
|
|
8028
8310
|
isRegistered = true;
|
|
8029
8311
|
} catch (error) {
|
|
8030
8312
|
console.error("Error registering shader node:", error);
|
|
@@ -8100,8 +8382,8 @@ const defaultProps$3 = {
|
|
|
8100
8382
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8101
8383
|
};
|
|
8102
8384
|
try {
|
|
8103
|
-
if (componentDefinition$
|
|
8104
|
-
Object.entries(componentDefinition$
|
|
8385
|
+
if (componentDefinition$W && componentDefinition$W.props) {
|
|
8386
|
+
Object.entries(componentDefinition$W.props).forEach(([key, config]) => {
|
|
8105
8387
|
const propConfig = config;
|
|
8106
8388
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8107
8389
|
defaultProps$3[key] = propConfig.default;
|
|
@@ -8120,7 +8402,7 @@ function ShaderComponent$3(props) {
|
|
|
8120
8402
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8121
8403
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8122
8404
|
} = context;
|
|
8123
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8405
|
+
const instanceId = props.id || `${componentDefinition$W.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8124
8406
|
const effectiveProps = createMemo(() => {
|
|
8125
8407
|
let baseProps = {
|
|
8126
8408
|
...defaultProps$3
|
|
@@ -8139,7 +8421,7 @@ function ShaderComponent$3(props) {
|
|
|
8139
8421
|
let uniformsMap = null;
|
|
8140
8422
|
const getUniformsMap = () => {
|
|
8141
8423
|
if (!uniformsMap) {
|
|
8142
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8424
|
+
uniformsMap = createUniformsMap(componentDefinition$W, effectiveProps(), instanceId);
|
|
8143
8425
|
}
|
|
8144
8426
|
return uniformsMap;
|
|
8145
8427
|
};
|
|
@@ -8164,7 +8446,7 @@ function ShaderComponent$3(props) {
|
|
|
8164
8446
|
renderOrder: props.renderOrder || 0,
|
|
8165
8447
|
transform: effectiveTransform()
|
|
8166
8448
|
};
|
|
8167
|
-
parentRegister(instanceId, componentDefinition$
|
|
8449
|
+
parentRegister(instanceId, componentDefinition$W.fragmentNode, parentId, metadata, uniforms, componentDefinition$W);
|
|
8168
8450
|
isRegistered = true;
|
|
8169
8451
|
} catch (error) {
|
|
8170
8452
|
console.error("Error registering shader node:", error);
|
|
@@ -8240,8 +8522,8 @@ const defaultProps$2 = {
|
|
|
8240
8522
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8241
8523
|
};
|
|
8242
8524
|
try {
|
|
8243
|
-
if (componentDefinition$
|
|
8244
|
-
Object.entries(componentDefinition$
|
|
8525
|
+
if (componentDefinition$X && componentDefinition$X.props) {
|
|
8526
|
+
Object.entries(componentDefinition$X.props).forEach(([key, config]) => {
|
|
8245
8527
|
const propConfig = config;
|
|
8246
8528
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8247
8529
|
defaultProps$2[key] = propConfig.default;
|
|
@@ -8260,7 +8542,7 @@ function ShaderComponent$2(props) {
|
|
|
8260
8542
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8261
8543
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8262
8544
|
} = context;
|
|
8263
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8545
|
+
const instanceId = props.id || `${componentDefinition$X.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8264
8546
|
const effectiveProps = createMemo(() => {
|
|
8265
8547
|
let baseProps = {
|
|
8266
8548
|
...defaultProps$2
|
|
@@ -8279,7 +8561,7 @@ function ShaderComponent$2(props) {
|
|
|
8279
8561
|
let uniformsMap = null;
|
|
8280
8562
|
const getUniformsMap = () => {
|
|
8281
8563
|
if (!uniformsMap) {
|
|
8282
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8564
|
+
uniformsMap = createUniformsMap(componentDefinition$X, effectiveProps(), instanceId);
|
|
8283
8565
|
}
|
|
8284
8566
|
return uniformsMap;
|
|
8285
8567
|
};
|
|
@@ -8304,7 +8586,7 @@ function ShaderComponent$2(props) {
|
|
|
8304
8586
|
renderOrder: props.renderOrder || 0,
|
|
8305
8587
|
transform: effectiveTransform()
|
|
8306
8588
|
};
|
|
8307
|
-
parentRegister(instanceId, componentDefinition$
|
|
8589
|
+
parentRegister(instanceId, componentDefinition$X.fragmentNode, parentId, metadata, uniforms, componentDefinition$X);
|
|
8308
8590
|
isRegistered = true;
|
|
8309
8591
|
} catch (error) {
|
|
8310
8592
|
console.error("Error registering shader node:", error);
|
|
@@ -8380,8 +8662,8 @@ const defaultProps$1 = {
|
|
|
8380
8662
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8381
8663
|
};
|
|
8382
8664
|
try {
|
|
8383
|
-
if (componentDefinition$
|
|
8384
|
-
Object.entries(componentDefinition$
|
|
8665
|
+
if (componentDefinition$Y && componentDefinition$Y.props) {
|
|
8666
|
+
Object.entries(componentDefinition$Y.props).forEach(([key, config]) => {
|
|
8385
8667
|
const propConfig = config;
|
|
8386
8668
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8387
8669
|
defaultProps$1[key] = propConfig.default;
|
|
@@ -8400,7 +8682,7 @@ function ShaderComponent$1(props) {
|
|
|
8400
8682
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8401
8683
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8402
8684
|
} = context;
|
|
8403
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8685
|
+
const instanceId = props.id || `${componentDefinition$Y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8404
8686
|
const effectiveProps = createMemo(() => {
|
|
8405
8687
|
let baseProps = {
|
|
8406
8688
|
...defaultProps$1
|
|
@@ -8419,7 +8701,7 @@ function ShaderComponent$1(props) {
|
|
|
8419
8701
|
let uniformsMap = null;
|
|
8420
8702
|
const getUniformsMap = () => {
|
|
8421
8703
|
if (!uniformsMap) {
|
|
8422
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8704
|
+
uniformsMap = createUniformsMap(componentDefinition$Y, effectiveProps(), instanceId);
|
|
8423
8705
|
}
|
|
8424
8706
|
return uniformsMap;
|
|
8425
8707
|
};
|
|
@@ -8444,7 +8726,7 @@ function ShaderComponent$1(props) {
|
|
|
8444
8726
|
renderOrder: props.renderOrder || 0,
|
|
8445
8727
|
transform: effectiveTransform()
|
|
8446
8728
|
};
|
|
8447
|
-
parentRegister(instanceId, componentDefinition$
|
|
8729
|
+
parentRegister(instanceId, componentDefinition$Y.fragmentNode, parentId, metadata, uniforms, componentDefinition$Y);
|
|
8448
8730
|
isRegistered = true;
|
|
8449
8731
|
} catch (error) {
|
|
8450
8732
|
console.error("Error registering shader node:", error);
|
|
@@ -8520,8 +8802,8 @@ const defaultProps = {
|
|
|
8520
8802
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8521
8803
|
};
|
|
8522
8804
|
try {
|
|
8523
|
-
if (componentDefinition$
|
|
8524
|
-
Object.entries(componentDefinition$
|
|
8805
|
+
if (componentDefinition$Z && componentDefinition$Z.props) {
|
|
8806
|
+
Object.entries(componentDefinition$Z.props).forEach(([key, config]) => {
|
|
8525
8807
|
const propConfig = config;
|
|
8526
8808
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8527
8809
|
defaultProps[key] = propConfig.default;
|
|
@@ -8540,7 +8822,7 @@ function ShaderComponent(props) {
|
|
|
8540
8822
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8541
8823
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8542
8824
|
} = context;
|
|
8543
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8825
|
+
const instanceId = props.id || `${componentDefinition$Z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8544
8826
|
const effectiveProps = createMemo(() => {
|
|
8545
8827
|
let baseProps = {
|
|
8546
8828
|
...defaultProps
|
|
@@ -8559,7 +8841,7 @@ function ShaderComponent(props) {
|
|
|
8559
8841
|
let uniformsMap = null;
|
|
8560
8842
|
const getUniformsMap = () => {
|
|
8561
8843
|
if (!uniformsMap) {
|
|
8562
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8844
|
+
uniformsMap = createUniformsMap(componentDefinition$Z, effectiveProps(), instanceId);
|
|
8563
8845
|
}
|
|
8564
8846
|
return uniformsMap;
|
|
8565
8847
|
};
|
|
@@ -8584,7 +8866,7 @@ function ShaderComponent(props) {
|
|
|
8584
8866
|
renderOrder: props.renderOrder || 0,
|
|
8585
8867
|
transform: effectiveTransform()
|
|
8586
8868
|
};
|
|
8587
|
-
parentRegister(instanceId, componentDefinition$
|
|
8869
|
+
parentRegister(instanceId, componentDefinition$Z.fragmentNode, parentId, metadata, uniforms, componentDefinition$Z);
|
|
8588
8870
|
isRegistered = true;
|
|
8589
8871
|
} catch (error) {
|
|
8590
8872
|
console.error("Error registering shader node:", error);
|
|
@@ -8644,66 +8926,68 @@ function ShaderComponent(props) {
|
|
|
8644
8926
|
});
|
|
8645
8927
|
}
|
|
8646
8928
|
export {
|
|
8647
|
-
ShaderComponent$
|
|
8648
|
-
ShaderComponent$
|
|
8649
|
-
ShaderComponent$
|
|
8650
|
-
ShaderComponent$
|
|
8651
|
-
ShaderComponent$
|
|
8652
|
-
ShaderComponent$
|
|
8653
|
-
ShaderComponent$
|
|
8654
|
-
ShaderComponent$
|
|
8655
|
-
ShaderComponent$
|
|
8656
|
-
ShaderComponent$
|
|
8657
|
-
ShaderComponent$
|
|
8658
|
-
ShaderComponent$
|
|
8659
|
-
ShaderComponent$
|
|
8660
|
-
ShaderComponent$
|
|
8661
|
-
ShaderComponent$
|
|
8662
|
-
ShaderComponent$
|
|
8663
|
-
ShaderComponent$
|
|
8664
|
-
ShaderComponent$
|
|
8665
|
-
ShaderComponent$
|
|
8666
|
-
ShaderComponent$
|
|
8667
|
-
ShaderComponent$
|
|
8668
|
-
ShaderComponent$
|
|
8669
|
-
ShaderComponent$
|
|
8670
|
-
ShaderComponent$
|
|
8671
|
-
ShaderComponent$
|
|
8672
|
-
ShaderComponent$
|
|
8673
|
-
ShaderComponent$
|
|
8674
|
-
ShaderComponent$
|
|
8675
|
-
ShaderComponent$
|
|
8676
|
-
ShaderComponent$
|
|
8677
|
-
ShaderComponent$
|
|
8678
|
-
ShaderComponent$
|
|
8679
|
-
ShaderComponent$
|
|
8680
|
-
ShaderComponent$
|
|
8681
|
-
ShaderComponent$
|
|
8682
|
-
ShaderComponent$
|
|
8683
|
-
ShaderComponent$
|
|
8684
|
-
ShaderComponent$
|
|
8685
|
-
ShaderComponent$
|
|
8686
|
-
ShaderComponent$
|
|
8687
|
-
ShaderComponent$
|
|
8688
|
-
ShaderComponent$
|
|
8689
|
-
ShaderComponent$
|
|
8929
|
+
ShaderComponent$Z as AngularBlur,
|
|
8930
|
+
ShaderComponent$Y as Ascii,
|
|
8931
|
+
ShaderComponent$X as Beam,
|
|
8932
|
+
ShaderComponent$W as Blob,
|
|
8933
|
+
ShaderComponent$V as Blur,
|
|
8934
|
+
ShaderComponent$U as BrightnessContrast,
|
|
8935
|
+
ShaderComponent$T as Bulge,
|
|
8936
|
+
ShaderComponent$S as CRTScreen,
|
|
8937
|
+
ShaderComponent$R as ChannelBlur,
|
|
8938
|
+
ShaderComponent$Q as Checkerboard,
|
|
8939
|
+
ShaderComponent$P as ChromaFlow,
|
|
8940
|
+
ShaderComponent$O as ChromaticAberration,
|
|
8941
|
+
ShaderComponent$N as Circle,
|
|
8942
|
+
ShaderComponent$M as CursorTrail,
|
|
8943
|
+
ShaderComponent$L as DiffuseBlur,
|
|
8944
|
+
ShaderComponent$K as Dither,
|
|
8945
|
+
ShaderComponent$J as DotGrid,
|
|
8946
|
+
ShaderComponent$I as Duotone,
|
|
8947
|
+
ShaderComponent$H as FilmGrain,
|
|
8948
|
+
ShaderComponent$G as FloatingParticles,
|
|
8949
|
+
ShaderComponent$F as GlassTiles,
|
|
8950
|
+
ShaderComponent$E as Glow,
|
|
8951
|
+
ShaderComponent$D as Godrays,
|
|
8952
|
+
ShaderComponent$C as Grayscale,
|
|
8953
|
+
ShaderComponent$B as Grid,
|
|
8954
|
+
ShaderComponent$A as GridDistortion,
|
|
8955
|
+
ShaderComponent$z as Group,
|
|
8956
|
+
ShaderComponent$y as Halftone,
|
|
8957
|
+
ShaderComponent$x as HueShift,
|
|
8958
|
+
ShaderComponent$w as ImageTexture,
|
|
8959
|
+
ShaderComponent$v as Invert,
|
|
8960
|
+
ShaderComponent$u as LinearBlur,
|
|
8961
|
+
ShaderComponent$t as LinearGradient,
|
|
8962
|
+
ShaderComponent$s as Liquify,
|
|
8963
|
+
ShaderComponent$r as Perspective,
|
|
8964
|
+
ShaderComponent$q as Pixelate,
|
|
8965
|
+
ShaderComponent$p as PolarCoordinates,
|
|
8966
|
+
ShaderComponent$o as Posterize,
|
|
8967
|
+
ShaderComponent$n as ProgressiveBlur,
|
|
8968
|
+
ShaderComponent$m as RadialGradient,
|
|
8969
|
+
ShaderComponent$l as RectangularCoordinates,
|
|
8970
|
+
ShaderComponent$k as Ripples,
|
|
8971
|
+
ShaderComponent$j as Saturation,
|
|
8690
8972
|
Shader,
|
|
8691
|
-
ShaderComponent$
|
|
8692
|
-
ShaderComponent$
|
|
8693
|
-
ShaderComponent$
|
|
8694
|
-
ShaderComponent$
|
|
8695
|
-
ShaderComponent$
|
|
8696
|
-
ShaderComponent$
|
|
8697
|
-
ShaderComponent$
|
|
8698
|
-
ShaderComponent$
|
|
8699
|
-
ShaderComponent$
|
|
8700
|
-
ShaderComponent$
|
|
8701
|
-
ShaderComponent$
|
|
8702
|
-
ShaderComponent$
|
|
8703
|
-
ShaderComponent$
|
|
8704
|
-
ShaderComponent$
|
|
8705
|
-
ShaderComponent$
|
|
8706
|
-
ShaderComponent$
|
|
8973
|
+
ShaderComponent$i as Sharpness,
|
|
8974
|
+
ShaderComponent$h as Shatter,
|
|
8975
|
+
ShaderComponent$g as SimplexNoise,
|
|
8976
|
+
ShaderComponent$f as SineWave,
|
|
8977
|
+
ShaderComponent$e as SolidColor,
|
|
8978
|
+
ShaderComponent$d as Spherize,
|
|
8979
|
+
ShaderComponent$c as Spiral,
|
|
8980
|
+
ShaderComponent$b as Strands,
|
|
8981
|
+
ShaderComponent$a as Stretch,
|
|
8982
|
+
ShaderComponent$9 as Stripes,
|
|
8983
|
+
ShaderComponent$8 as Swirl,
|
|
8984
|
+
ShaderComponent$7 as TiltShift,
|
|
8985
|
+
ShaderComponent$6 as Tint,
|
|
8986
|
+
ShaderComponent$5 as Tritone,
|
|
8987
|
+
ShaderComponent$4 as Twirl,
|
|
8988
|
+
ShaderComponent$3 as Vibrance,
|
|
8989
|
+
ShaderComponent$2 as WaveDistortion,
|
|
8990
|
+
ShaderComponent$1 as WebcamTexture,
|
|
8707
8991
|
ShaderComponent as ZoomBlur,
|
|
8708
8992
|
generatePresetCode
|
|
8709
8993
|
};
|