shaders 2.2.39 → 2.2.41
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/Stripes-TdCUOh07.js +127 -0
- package/dist/core/Tint-ChKku9xR.js +56 -0
- package/dist/core/index.js +25 -21
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Stripes/index.d.ts +71 -0
- package/dist/core/shaders/Stripes/index.d.ts.map +1 -0
- package/dist/core/shaders/Stripes/index.js +5 -0
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tint/index.d.ts +29 -0
- package/dist/core/shaders/Tint/index.d.ts.map +1 -0
- package/dist/core/shaders/Tint/index.js +3 -0
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/components/Stripes.d.ts +31 -0
- package/dist/react/components/Stripes.d.ts.map +1 -0
- package/dist/react/components/Tint.d.ts +31 -0
- package/dist/react/components/Tint.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-CPcLELa5.js → generatePresetCode-K6ZAneRr.js} +22 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +690 -412
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +294 -0
- package/dist/solid/components/Stripes.d.ts +28 -0
- package/dist/solid/components/Stripes.d.ts.map +1 -0
- package/dist/solid/components/Tint.d.ts +28 -0
- package/dist/solid/components/Tint.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 +634 -350
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +22 -0
- package/dist/svelte/components/Stripes.svelte.d.ts +19 -0
- package/dist/svelte/components/Tint.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-By5juLjK.js → generatePresetCode-x1dhDaQ3.js} +22 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +238 -16
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Stripes.vue.d.ts +57 -0
- package/dist/vue/components/Stripes.vue.d.ts.map +1 -0
- package/dist/vue/components/Tint.vue.d.ts +57 -0
- package/dist/vue/components/Tint.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-REXb9hnv.js → generatePresetCode-BaNcX5ua.js} +22 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +300 -48
- 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/{Swirl-DoCDBZad.js → Swirl-m1-Mnzj5.js} +0 -0
- /package/dist/core/{TiltShift-BYQjUHpn.js → TiltShift-C_NUqKZF.js} +0 -0
- /package/dist/core/{Tritone-CJW8YTyB.js → Tritone-D-NcV7N-.js} +0 -0
- /package/dist/core/{Twirl-5k_XPd51.js → Twirl-Cqzll6nW.js} +0 -0
- /package/dist/core/{Vibrance-c25pkbWj.js → Vibrance-CxunJkcb.js} +0 -0
- /package/dist/core/{WaveDistortion-Bo2Ar13M.js → WaveDistortion-UQZKCfKh.js} +0 -0
- /package/dist/core/{ZoomBlur-DEozXA8U.js → ZoomBlur-DqKYdlmm.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -54,13 +54,15 @@ import { componentDefinition as componentDefinition$L } from "../core/shaders/Sp
|
|
|
54
54
|
import { componentDefinition as componentDefinition$M } from "../core/shaders/Spiral/index.js";
|
|
55
55
|
import { componentDefinition as componentDefinition$N } from "../core/shaders/Strands/index.js";
|
|
56
56
|
import { componentDefinition as componentDefinition$O } from "../core/shaders/Stretch/index.js";
|
|
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/
|
|
57
|
+
import { componentDefinition as componentDefinition$P } from "../core/shaders/Stripes/index.js";
|
|
58
|
+
import { componentDefinition as componentDefinition$Q } from "../core/shaders/Swirl/index.js";
|
|
59
|
+
import { componentDefinition as componentDefinition$R } from "../core/shaders/TiltShift/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$S } from "../core/shaders/Tint/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$T } from "../core/shaders/Tritone/index.js";
|
|
62
|
+
import { componentDefinition as componentDefinition$U } from "../core/shaders/Twirl/index.js";
|
|
63
|
+
import { componentDefinition as componentDefinition$V } from "../core/shaders/Vibrance/index.js";
|
|
64
|
+
import { componentDefinition as componentDefinition$W } from "../core/shaders/WaveDistortion/index.js";
|
|
65
|
+
import { componentDefinition as componentDefinition$X } from "../core/shaders/ZoomBlur/index.js";
|
|
64
66
|
import { generatePresetCode } from "./utils/generatePresetCode.js";
|
|
65
67
|
var _tmpl$ = /* @__PURE__ */ template(`<div><canvas data-renderer=shaders style=width:100%;height:100%;display:block>`);
|
|
66
68
|
const ShaderContext = createContext();
|
|
@@ -241,7 +243,7 @@ function useShaderContext() {
|
|
|
241
243
|
}
|
|
242
244
|
return ctx;
|
|
243
245
|
}
|
|
244
|
-
const DEFAULT_TRANSFORM$
|
|
246
|
+
const DEFAULT_TRANSFORM$X = {
|
|
245
247
|
offsetX: 0,
|
|
246
248
|
offsetY: 0,
|
|
247
249
|
rotation: 0,
|
|
@@ -250,7 +252,7 @@ const DEFAULT_TRANSFORM$V = {
|
|
|
250
252
|
anchorY: 0.5,
|
|
251
253
|
edges: "transparent"
|
|
252
254
|
};
|
|
253
|
-
const defaultProps$
|
|
255
|
+
const defaultProps$X = {
|
|
254
256
|
blendMode: "normal",
|
|
255
257
|
renderOrder: 0,
|
|
256
258
|
visible: true
|
|
@@ -260,6 +262,286 @@ const defaultProps$V = {
|
|
|
260
262
|
try {
|
|
261
263
|
if (componentDefinition && componentDefinition.props) {
|
|
262
264
|
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
265
|
+
const propConfig = config;
|
|
266
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
267
|
+
defaultProps$X[key] = propConfig.default;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
} catch (e) {
|
|
272
|
+
console.warn("Error extracting default props:", e);
|
|
273
|
+
}
|
|
274
|
+
function ShaderComponent$X(props) {
|
|
275
|
+
const [local, otherProps] = splitProps(props, ["children"]);
|
|
276
|
+
const context = useShaderContext();
|
|
277
|
+
const {
|
|
278
|
+
shaderParentId: parentId,
|
|
279
|
+
shaderNodeRegister: parentRegister,
|
|
280
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
281
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
282
|
+
} = context;
|
|
283
|
+
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
284
|
+
const effectiveProps = createMemo(() => {
|
|
285
|
+
let baseProps = {
|
|
286
|
+
...defaultProps$X
|
|
287
|
+
};
|
|
288
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
289
|
+
if (value !== void 0) {
|
|
290
|
+
baseProps[key] = value;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return baseProps;
|
|
294
|
+
});
|
|
295
|
+
const effectiveTransform = createMemo(() => ({
|
|
296
|
+
...DEFAULT_TRANSFORM$X,
|
|
297
|
+
...props.transform
|
|
298
|
+
}));
|
|
299
|
+
let uniformsMap = null;
|
|
300
|
+
const getUniformsMap = () => {
|
|
301
|
+
if (!uniformsMap) {
|
|
302
|
+
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
303
|
+
}
|
|
304
|
+
return uniformsMap;
|
|
305
|
+
};
|
|
306
|
+
const childContextValue = createMemo(() => ({
|
|
307
|
+
...context,
|
|
308
|
+
shaderParentId: instanceId
|
|
309
|
+
}));
|
|
310
|
+
let isRegistered = false;
|
|
311
|
+
onMount(() => {
|
|
312
|
+
const uniforms = getUniformsMap();
|
|
313
|
+
if (!uniforms) return;
|
|
314
|
+
try {
|
|
315
|
+
const metadata = {
|
|
316
|
+
blendMode: props.blendMode || "normal",
|
|
317
|
+
opacity: props.opacity,
|
|
318
|
+
visible: props.visible === false ? false : true,
|
|
319
|
+
id: props.id,
|
|
320
|
+
mask: props.maskSource ? {
|
|
321
|
+
source: props.maskSource,
|
|
322
|
+
type: props.maskType || "alpha"
|
|
323
|
+
} : void 0,
|
|
324
|
+
renderOrder: props.renderOrder || 0,
|
|
325
|
+
transform: effectiveTransform()
|
|
326
|
+
};
|
|
327
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
328
|
+
isRegistered = true;
|
|
329
|
+
} catch (error) {
|
|
330
|
+
console.error("Error registering shader node:", error);
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
onCleanup(() => {
|
|
334
|
+
isRegistered = false;
|
|
335
|
+
parentRegister(instanceId, null, null, null, null);
|
|
336
|
+
});
|
|
337
|
+
createEffect(() => {
|
|
338
|
+
if (!isRegistered) return;
|
|
339
|
+
const uniforms = getUniformsMap();
|
|
340
|
+
if (!uniforms) return;
|
|
341
|
+
try {
|
|
342
|
+
const props_snapshot = effectiveProps();
|
|
343
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
344
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
345
|
+
const {
|
|
346
|
+
uniform
|
|
347
|
+
} = uniformData;
|
|
348
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
349
|
+
const newValue = props_snapshot[propName];
|
|
350
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
} catch (error) {
|
|
354
|
+
console.error("Error updating uniforms:", error);
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
createEffect(() => {
|
|
358
|
+
if (!isRegistered) return;
|
|
359
|
+
try {
|
|
360
|
+
const metadata = {
|
|
361
|
+
blendMode: props.blendMode || "normal",
|
|
362
|
+
opacity: props.opacity,
|
|
363
|
+
visible: props.visible === false ? false : true,
|
|
364
|
+
id: props.id,
|
|
365
|
+
mask: props.maskSource ? {
|
|
366
|
+
source: props.maskSource,
|
|
367
|
+
type: props.maskType || "alpha"
|
|
368
|
+
} : void 0,
|
|
369
|
+
renderOrder: props.renderOrder || 0,
|
|
370
|
+
transform: effectiveTransform()
|
|
371
|
+
};
|
|
372
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
373
|
+
} catch (error) {
|
|
374
|
+
console.error("Error updating metadata:", error);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
return createComponent(ShaderContext.Provider, {
|
|
378
|
+
get value() {
|
|
379
|
+
return childContextValue();
|
|
380
|
+
},
|
|
381
|
+
get children() {
|
|
382
|
+
return local.children;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
const DEFAULT_TRANSFORM$W = {
|
|
387
|
+
offsetX: 0,
|
|
388
|
+
offsetY: 0,
|
|
389
|
+
rotation: 0,
|
|
390
|
+
scale: 1,
|
|
391
|
+
anchorX: 0.5,
|
|
392
|
+
anchorY: 0.5,
|
|
393
|
+
edges: "transparent"
|
|
394
|
+
};
|
|
395
|
+
const defaultProps$W = {
|
|
396
|
+
blendMode: "normal",
|
|
397
|
+
renderOrder: 0,
|
|
398
|
+
visible: true
|
|
399
|
+
// opacity intentionally has no default - handled by renderer
|
|
400
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
401
|
+
};
|
|
402
|
+
try {
|
|
403
|
+
if (componentDefinition$1 && componentDefinition$1.props) {
|
|
404
|
+
Object.entries(componentDefinition$1.props).forEach(([key, config]) => {
|
|
405
|
+
const propConfig = config;
|
|
406
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
407
|
+
defaultProps$W[key] = propConfig.default;
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
} catch (e) {
|
|
412
|
+
console.warn("Error extracting default props:", e);
|
|
413
|
+
}
|
|
414
|
+
function ShaderComponent$W(props) {
|
|
415
|
+
const [local, otherProps] = splitProps(props, ["children"]);
|
|
416
|
+
const context = useShaderContext();
|
|
417
|
+
const {
|
|
418
|
+
shaderParentId: parentId,
|
|
419
|
+
shaderNodeRegister: parentRegister,
|
|
420
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
421
|
+
shaderMetadataUpdate: parentMetadataUpdate
|
|
422
|
+
} = context;
|
|
423
|
+
const instanceId = props.id || `${componentDefinition$1.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
424
|
+
const effectiveProps = createMemo(() => {
|
|
425
|
+
let baseProps = {
|
|
426
|
+
...defaultProps$W
|
|
427
|
+
};
|
|
428
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
429
|
+
if (value !== void 0) {
|
|
430
|
+
baseProps[key] = value;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return baseProps;
|
|
434
|
+
});
|
|
435
|
+
const effectiveTransform = createMemo(() => ({
|
|
436
|
+
...DEFAULT_TRANSFORM$W,
|
|
437
|
+
...props.transform
|
|
438
|
+
}));
|
|
439
|
+
let uniformsMap = null;
|
|
440
|
+
const getUniformsMap = () => {
|
|
441
|
+
if (!uniformsMap) {
|
|
442
|
+
uniformsMap = createUniformsMap(componentDefinition$1, effectiveProps(), instanceId);
|
|
443
|
+
}
|
|
444
|
+
return uniformsMap;
|
|
445
|
+
};
|
|
446
|
+
const childContextValue = createMemo(() => ({
|
|
447
|
+
...context,
|
|
448
|
+
shaderParentId: instanceId
|
|
449
|
+
}));
|
|
450
|
+
let isRegistered = false;
|
|
451
|
+
onMount(() => {
|
|
452
|
+
const uniforms = getUniformsMap();
|
|
453
|
+
if (!uniforms) return;
|
|
454
|
+
try {
|
|
455
|
+
const metadata = {
|
|
456
|
+
blendMode: props.blendMode || "normal",
|
|
457
|
+
opacity: props.opacity,
|
|
458
|
+
visible: props.visible === false ? false : true,
|
|
459
|
+
id: props.id,
|
|
460
|
+
mask: props.maskSource ? {
|
|
461
|
+
source: props.maskSource,
|
|
462
|
+
type: props.maskType || "alpha"
|
|
463
|
+
} : void 0,
|
|
464
|
+
renderOrder: props.renderOrder || 0,
|
|
465
|
+
transform: effectiveTransform()
|
|
466
|
+
};
|
|
467
|
+
parentRegister(instanceId, componentDefinition$1.fragmentNode, parentId, metadata, uniforms, componentDefinition$1);
|
|
468
|
+
isRegistered = true;
|
|
469
|
+
} catch (error) {
|
|
470
|
+
console.error("Error registering shader node:", error);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
onCleanup(() => {
|
|
474
|
+
isRegistered = false;
|
|
475
|
+
parentRegister(instanceId, null, null, null, null);
|
|
476
|
+
});
|
|
477
|
+
createEffect(() => {
|
|
478
|
+
if (!isRegistered) return;
|
|
479
|
+
const uniforms = getUniformsMap();
|
|
480
|
+
if (!uniforms) return;
|
|
481
|
+
try {
|
|
482
|
+
const props_snapshot = effectiveProps();
|
|
483
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
484
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
485
|
+
const {
|
|
486
|
+
uniform
|
|
487
|
+
} = uniformData;
|
|
488
|
+
if ((uniform == null ? void 0 : uniform.value) !== void 0 && propName in props_snapshot) {
|
|
489
|
+
const newValue = props_snapshot[propName];
|
|
490
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
} catch (error) {
|
|
494
|
+
console.error("Error updating uniforms:", error);
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
createEffect(() => {
|
|
498
|
+
if (!isRegistered) return;
|
|
499
|
+
try {
|
|
500
|
+
const metadata = {
|
|
501
|
+
blendMode: props.blendMode || "normal",
|
|
502
|
+
opacity: props.opacity,
|
|
503
|
+
visible: props.visible === false ? false : true,
|
|
504
|
+
id: props.id,
|
|
505
|
+
mask: props.maskSource ? {
|
|
506
|
+
source: props.maskSource,
|
|
507
|
+
type: props.maskType || "alpha"
|
|
508
|
+
} : void 0,
|
|
509
|
+
renderOrder: props.renderOrder || 0,
|
|
510
|
+
transform: effectiveTransform()
|
|
511
|
+
};
|
|
512
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
513
|
+
} catch (error) {
|
|
514
|
+
console.error("Error updating metadata:", error);
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
return createComponent(ShaderContext.Provider, {
|
|
518
|
+
get value() {
|
|
519
|
+
return childContextValue();
|
|
520
|
+
},
|
|
521
|
+
get children() {
|
|
522
|
+
return local.children;
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
const DEFAULT_TRANSFORM$V = {
|
|
527
|
+
offsetX: 0,
|
|
528
|
+
offsetY: 0,
|
|
529
|
+
rotation: 0,
|
|
530
|
+
scale: 1,
|
|
531
|
+
anchorX: 0.5,
|
|
532
|
+
anchorY: 0.5,
|
|
533
|
+
edges: "transparent"
|
|
534
|
+
};
|
|
535
|
+
const defaultProps$V = {
|
|
536
|
+
blendMode: "normal",
|
|
537
|
+
renderOrder: 0,
|
|
538
|
+
visible: true
|
|
539
|
+
// opacity intentionally has no default - handled by renderer
|
|
540
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
541
|
+
};
|
|
542
|
+
try {
|
|
543
|
+
if (componentDefinition$2 && componentDefinition$2.props) {
|
|
544
|
+
Object.entries(componentDefinition$2.props).forEach(([key, config]) => {
|
|
263
545
|
const propConfig = config;
|
|
264
546
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
265
547
|
defaultProps$V[key] = propConfig.default;
|
|
@@ -278,7 +560,7 @@ function ShaderComponent$V(props) {
|
|
|
278
560
|
shaderUniformUpdate: parentUniformUpdate,
|
|
279
561
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
280
562
|
} = context;
|
|
281
|
-
const instanceId = props.id || `${componentDefinition.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
563
|
+
const instanceId = props.id || `${componentDefinition$2.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
282
564
|
const effectiveProps = createMemo(() => {
|
|
283
565
|
let baseProps = {
|
|
284
566
|
...defaultProps$V
|
|
@@ -297,7 +579,7 @@ function ShaderComponent$V(props) {
|
|
|
297
579
|
let uniformsMap = null;
|
|
298
580
|
const getUniformsMap = () => {
|
|
299
581
|
if (!uniformsMap) {
|
|
300
|
-
uniformsMap = createUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
582
|
+
uniformsMap = createUniformsMap(componentDefinition$2, effectiveProps(), instanceId);
|
|
301
583
|
}
|
|
302
584
|
return uniformsMap;
|
|
303
585
|
};
|
|
@@ -322,7 +604,7 @@ function ShaderComponent$V(props) {
|
|
|
322
604
|
renderOrder: props.renderOrder || 0,
|
|
323
605
|
transform: effectiveTransform()
|
|
324
606
|
};
|
|
325
|
-
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniforms, componentDefinition);
|
|
607
|
+
parentRegister(instanceId, componentDefinition$2.fragmentNode, parentId, metadata, uniforms, componentDefinition$2);
|
|
326
608
|
isRegistered = true;
|
|
327
609
|
} catch (error) {
|
|
328
610
|
console.error("Error registering shader node:", error);
|
|
@@ -398,8 +680,8 @@ const defaultProps$U = {
|
|
|
398
680
|
// transform intentionally has no default - handled by effectiveTransform
|
|
399
681
|
};
|
|
400
682
|
try {
|
|
401
|
-
if (componentDefinition$
|
|
402
|
-
Object.entries(componentDefinition$
|
|
683
|
+
if (componentDefinition$3 && componentDefinition$3.props) {
|
|
684
|
+
Object.entries(componentDefinition$3.props).forEach(([key, config]) => {
|
|
403
685
|
const propConfig = config;
|
|
404
686
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
405
687
|
defaultProps$U[key] = propConfig.default;
|
|
@@ -418,7 +700,7 @@ function ShaderComponent$U(props) {
|
|
|
418
700
|
shaderUniformUpdate: parentUniformUpdate,
|
|
419
701
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
420
702
|
} = context;
|
|
421
|
-
const instanceId = props.id || `${componentDefinition$
|
|
703
|
+
const instanceId = props.id || `${componentDefinition$3.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
422
704
|
const effectiveProps = createMemo(() => {
|
|
423
705
|
let baseProps = {
|
|
424
706
|
...defaultProps$U
|
|
@@ -437,7 +719,7 @@ function ShaderComponent$U(props) {
|
|
|
437
719
|
let uniformsMap = null;
|
|
438
720
|
const getUniformsMap = () => {
|
|
439
721
|
if (!uniformsMap) {
|
|
440
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
722
|
+
uniformsMap = createUniformsMap(componentDefinition$3, effectiveProps(), instanceId);
|
|
441
723
|
}
|
|
442
724
|
return uniformsMap;
|
|
443
725
|
};
|
|
@@ -462,7 +744,7 @@ function ShaderComponent$U(props) {
|
|
|
462
744
|
renderOrder: props.renderOrder || 0,
|
|
463
745
|
transform: effectiveTransform()
|
|
464
746
|
};
|
|
465
|
-
parentRegister(instanceId, componentDefinition$
|
|
747
|
+
parentRegister(instanceId, componentDefinition$3.fragmentNode, parentId, metadata, uniforms, componentDefinition$3);
|
|
466
748
|
isRegistered = true;
|
|
467
749
|
} catch (error) {
|
|
468
750
|
console.error("Error registering shader node:", error);
|
|
@@ -538,8 +820,8 @@ const defaultProps$T = {
|
|
|
538
820
|
// transform intentionally has no default - handled by effectiveTransform
|
|
539
821
|
};
|
|
540
822
|
try {
|
|
541
|
-
if (componentDefinition$
|
|
542
|
-
Object.entries(componentDefinition$
|
|
823
|
+
if (componentDefinition$4 && componentDefinition$4.props) {
|
|
824
|
+
Object.entries(componentDefinition$4.props).forEach(([key, config]) => {
|
|
543
825
|
const propConfig = config;
|
|
544
826
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
545
827
|
defaultProps$T[key] = propConfig.default;
|
|
@@ -558,7 +840,7 @@ function ShaderComponent$T(props) {
|
|
|
558
840
|
shaderUniformUpdate: parentUniformUpdate,
|
|
559
841
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
560
842
|
} = context;
|
|
561
|
-
const instanceId = props.id || `${componentDefinition$
|
|
843
|
+
const instanceId = props.id || `${componentDefinition$4.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
562
844
|
const effectiveProps = createMemo(() => {
|
|
563
845
|
let baseProps = {
|
|
564
846
|
...defaultProps$T
|
|
@@ -577,7 +859,7 @@ function ShaderComponent$T(props) {
|
|
|
577
859
|
let uniformsMap = null;
|
|
578
860
|
const getUniformsMap = () => {
|
|
579
861
|
if (!uniformsMap) {
|
|
580
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
862
|
+
uniformsMap = createUniformsMap(componentDefinition$4, effectiveProps(), instanceId);
|
|
581
863
|
}
|
|
582
864
|
return uniformsMap;
|
|
583
865
|
};
|
|
@@ -602,7 +884,7 @@ function ShaderComponent$T(props) {
|
|
|
602
884
|
renderOrder: props.renderOrder || 0,
|
|
603
885
|
transform: effectiveTransform()
|
|
604
886
|
};
|
|
605
|
-
parentRegister(instanceId, componentDefinition$
|
|
887
|
+
parentRegister(instanceId, componentDefinition$4.fragmentNode, parentId, metadata, uniforms, componentDefinition$4);
|
|
606
888
|
isRegistered = true;
|
|
607
889
|
} catch (error) {
|
|
608
890
|
console.error("Error registering shader node:", error);
|
|
@@ -678,8 +960,8 @@ const defaultProps$S = {
|
|
|
678
960
|
// transform intentionally has no default - handled by effectiveTransform
|
|
679
961
|
};
|
|
680
962
|
try {
|
|
681
|
-
if (componentDefinition$
|
|
682
|
-
Object.entries(componentDefinition$
|
|
963
|
+
if (componentDefinition$5 && componentDefinition$5.props) {
|
|
964
|
+
Object.entries(componentDefinition$5.props).forEach(([key, config]) => {
|
|
683
965
|
const propConfig = config;
|
|
684
966
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
685
967
|
defaultProps$S[key] = propConfig.default;
|
|
@@ -698,7 +980,7 @@ function ShaderComponent$S(props) {
|
|
|
698
980
|
shaderUniformUpdate: parentUniformUpdate,
|
|
699
981
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
700
982
|
} = context;
|
|
701
|
-
const instanceId = props.id || `${componentDefinition$
|
|
983
|
+
const instanceId = props.id || `${componentDefinition$5.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
702
984
|
const effectiveProps = createMemo(() => {
|
|
703
985
|
let baseProps = {
|
|
704
986
|
...defaultProps$S
|
|
@@ -717,7 +999,7 @@ function ShaderComponent$S(props) {
|
|
|
717
999
|
let uniformsMap = null;
|
|
718
1000
|
const getUniformsMap = () => {
|
|
719
1001
|
if (!uniformsMap) {
|
|
720
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1002
|
+
uniformsMap = createUniformsMap(componentDefinition$5, effectiveProps(), instanceId);
|
|
721
1003
|
}
|
|
722
1004
|
return uniformsMap;
|
|
723
1005
|
};
|
|
@@ -742,7 +1024,7 @@ function ShaderComponent$S(props) {
|
|
|
742
1024
|
renderOrder: props.renderOrder || 0,
|
|
743
1025
|
transform: effectiveTransform()
|
|
744
1026
|
};
|
|
745
|
-
parentRegister(instanceId, componentDefinition$
|
|
1027
|
+
parentRegister(instanceId, componentDefinition$5.fragmentNode, parentId, metadata, uniforms, componentDefinition$5);
|
|
746
1028
|
isRegistered = true;
|
|
747
1029
|
} catch (error) {
|
|
748
1030
|
console.error("Error registering shader node:", error);
|
|
@@ -818,8 +1100,8 @@ const defaultProps$R = {
|
|
|
818
1100
|
// transform intentionally has no default - handled by effectiveTransform
|
|
819
1101
|
};
|
|
820
1102
|
try {
|
|
821
|
-
if (componentDefinition$
|
|
822
|
-
Object.entries(componentDefinition$
|
|
1103
|
+
if (componentDefinition$6 && componentDefinition$6.props) {
|
|
1104
|
+
Object.entries(componentDefinition$6.props).forEach(([key, config]) => {
|
|
823
1105
|
const propConfig = config;
|
|
824
1106
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
825
1107
|
defaultProps$R[key] = propConfig.default;
|
|
@@ -838,7 +1120,7 @@ function ShaderComponent$R(props) {
|
|
|
838
1120
|
shaderUniformUpdate: parentUniformUpdate,
|
|
839
1121
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
840
1122
|
} = context;
|
|
841
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1123
|
+
const instanceId = props.id || `${componentDefinition$6.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
842
1124
|
const effectiveProps = createMemo(() => {
|
|
843
1125
|
let baseProps = {
|
|
844
1126
|
...defaultProps$R
|
|
@@ -857,7 +1139,7 @@ function ShaderComponent$R(props) {
|
|
|
857
1139
|
let uniformsMap = null;
|
|
858
1140
|
const getUniformsMap = () => {
|
|
859
1141
|
if (!uniformsMap) {
|
|
860
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1142
|
+
uniformsMap = createUniformsMap(componentDefinition$6, effectiveProps(), instanceId);
|
|
861
1143
|
}
|
|
862
1144
|
return uniformsMap;
|
|
863
1145
|
};
|
|
@@ -882,7 +1164,7 @@ function ShaderComponent$R(props) {
|
|
|
882
1164
|
renderOrder: props.renderOrder || 0,
|
|
883
1165
|
transform: effectiveTransform()
|
|
884
1166
|
};
|
|
885
|
-
parentRegister(instanceId, componentDefinition$
|
|
1167
|
+
parentRegister(instanceId, componentDefinition$6.fragmentNode, parentId, metadata, uniforms, componentDefinition$6);
|
|
886
1168
|
isRegistered = true;
|
|
887
1169
|
} catch (error) {
|
|
888
1170
|
console.error("Error registering shader node:", error);
|
|
@@ -958,8 +1240,8 @@ const defaultProps$Q = {
|
|
|
958
1240
|
// transform intentionally has no default - handled by effectiveTransform
|
|
959
1241
|
};
|
|
960
1242
|
try {
|
|
961
|
-
if (componentDefinition$
|
|
962
|
-
Object.entries(componentDefinition$
|
|
1243
|
+
if (componentDefinition$7 && componentDefinition$7.props) {
|
|
1244
|
+
Object.entries(componentDefinition$7.props).forEach(([key, config]) => {
|
|
963
1245
|
const propConfig = config;
|
|
964
1246
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
965
1247
|
defaultProps$Q[key] = propConfig.default;
|
|
@@ -978,7 +1260,7 @@ function ShaderComponent$Q(props) {
|
|
|
978
1260
|
shaderUniformUpdate: parentUniformUpdate,
|
|
979
1261
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
980
1262
|
} = context;
|
|
981
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1263
|
+
const instanceId = props.id || `${componentDefinition$7.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
982
1264
|
const effectiveProps = createMemo(() => {
|
|
983
1265
|
let baseProps = {
|
|
984
1266
|
...defaultProps$Q
|
|
@@ -997,7 +1279,7 @@ function ShaderComponent$Q(props) {
|
|
|
997
1279
|
let uniformsMap = null;
|
|
998
1280
|
const getUniformsMap = () => {
|
|
999
1281
|
if (!uniformsMap) {
|
|
1000
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1282
|
+
uniformsMap = createUniformsMap(componentDefinition$7, effectiveProps(), instanceId);
|
|
1001
1283
|
}
|
|
1002
1284
|
return uniformsMap;
|
|
1003
1285
|
};
|
|
@@ -1022,7 +1304,7 @@ function ShaderComponent$Q(props) {
|
|
|
1022
1304
|
renderOrder: props.renderOrder || 0,
|
|
1023
1305
|
transform: effectiveTransform()
|
|
1024
1306
|
};
|
|
1025
|
-
parentRegister(instanceId, componentDefinition$
|
|
1307
|
+
parentRegister(instanceId, componentDefinition$7.fragmentNode, parentId, metadata, uniforms, componentDefinition$7);
|
|
1026
1308
|
isRegistered = true;
|
|
1027
1309
|
} catch (error) {
|
|
1028
1310
|
console.error("Error registering shader node:", error);
|
|
@@ -1098,8 +1380,8 @@ const defaultProps$P = {
|
|
|
1098
1380
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1099
1381
|
};
|
|
1100
1382
|
try {
|
|
1101
|
-
if (componentDefinition$
|
|
1102
|
-
Object.entries(componentDefinition$
|
|
1383
|
+
if (componentDefinition$8 && componentDefinition$8.props) {
|
|
1384
|
+
Object.entries(componentDefinition$8.props).forEach(([key, config]) => {
|
|
1103
1385
|
const propConfig = config;
|
|
1104
1386
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1105
1387
|
defaultProps$P[key] = propConfig.default;
|
|
@@ -1118,7 +1400,7 @@ function ShaderComponent$P(props) {
|
|
|
1118
1400
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1119
1401
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1120
1402
|
} = context;
|
|
1121
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1403
|
+
const instanceId = props.id || `${componentDefinition$8.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1122
1404
|
const effectiveProps = createMemo(() => {
|
|
1123
1405
|
let baseProps = {
|
|
1124
1406
|
...defaultProps$P
|
|
@@ -1137,7 +1419,7 @@ function ShaderComponent$P(props) {
|
|
|
1137
1419
|
let uniformsMap = null;
|
|
1138
1420
|
const getUniformsMap = () => {
|
|
1139
1421
|
if (!uniformsMap) {
|
|
1140
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1422
|
+
uniformsMap = createUniformsMap(componentDefinition$8, effectiveProps(), instanceId);
|
|
1141
1423
|
}
|
|
1142
1424
|
return uniformsMap;
|
|
1143
1425
|
};
|
|
@@ -1162,7 +1444,7 @@ function ShaderComponent$P(props) {
|
|
|
1162
1444
|
renderOrder: props.renderOrder || 0,
|
|
1163
1445
|
transform: effectiveTransform()
|
|
1164
1446
|
};
|
|
1165
|
-
parentRegister(instanceId, componentDefinition$
|
|
1447
|
+
parentRegister(instanceId, componentDefinition$8.fragmentNode, parentId, metadata, uniforms, componentDefinition$8);
|
|
1166
1448
|
isRegistered = true;
|
|
1167
1449
|
} catch (error) {
|
|
1168
1450
|
console.error("Error registering shader node:", error);
|
|
@@ -1238,8 +1520,8 @@ const defaultProps$O = {
|
|
|
1238
1520
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1239
1521
|
};
|
|
1240
1522
|
try {
|
|
1241
|
-
if (componentDefinition$
|
|
1242
|
-
Object.entries(componentDefinition$
|
|
1523
|
+
if (componentDefinition$9 && componentDefinition$9.props) {
|
|
1524
|
+
Object.entries(componentDefinition$9.props).forEach(([key, config]) => {
|
|
1243
1525
|
const propConfig = config;
|
|
1244
1526
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1245
1527
|
defaultProps$O[key] = propConfig.default;
|
|
@@ -1258,7 +1540,7 @@ function ShaderComponent$O(props) {
|
|
|
1258
1540
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1259
1541
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1260
1542
|
} = context;
|
|
1261
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1543
|
+
const instanceId = props.id || `${componentDefinition$9.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1262
1544
|
const effectiveProps = createMemo(() => {
|
|
1263
1545
|
let baseProps = {
|
|
1264
1546
|
...defaultProps$O
|
|
@@ -1277,7 +1559,7 @@ function ShaderComponent$O(props) {
|
|
|
1277
1559
|
let uniformsMap = null;
|
|
1278
1560
|
const getUniformsMap = () => {
|
|
1279
1561
|
if (!uniformsMap) {
|
|
1280
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1562
|
+
uniformsMap = createUniformsMap(componentDefinition$9, effectiveProps(), instanceId);
|
|
1281
1563
|
}
|
|
1282
1564
|
return uniformsMap;
|
|
1283
1565
|
};
|
|
@@ -1302,7 +1584,7 @@ function ShaderComponent$O(props) {
|
|
|
1302
1584
|
renderOrder: props.renderOrder || 0,
|
|
1303
1585
|
transform: effectiveTransform()
|
|
1304
1586
|
};
|
|
1305
|
-
parentRegister(instanceId, componentDefinition$
|
|
1587
|
+
parentRegister(instanceId, componentDefinition$9.fragmentNode, parentId, metadata, uniforms, componentDefinition$9);
|
|
1306
1588
|
isRegistered = true;
|
|
1307
1589
|
} catch (error) {
|
|
1308
1590
|
console.error("Error registering shader node:", error);
|
|
@@ -1378,8 +1660,8 @@ const defaultProps$N = {
|
|
|
1378
1660
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1379
1661
|
};
|
|
1380
1662
|
try {
|
|
1381
|
-
if (componentDefinition$
|
|
1382
|
-
Object.entries(componentDefinition$
|
|
1663
|
+
if (componentDefinition$a && componentDefinition$a.props) {
|
|
1664
|
+
Object.entries(componentDefinition$a.props).forEach(([key, config]) => {
|
|
1383
1665
|
const propConfig = config;
|
|
1384
1666
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1385
1667
|
defaultProps$N[key] = propConfig.default;
|
|
@@ -1398,7 +1680,7 @@ function ShaderComponent$N(props) {
|
|
|
1398
1680
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1399
1681
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1400
1682
|
} = context;
|
|
1401
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1683
|
+
const instanceId = props.id || `${componentDefinition$a.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1402
1684
|
const effectiveProps = createMemo(() => {
|
|
1403
1685
|
let baseProps = {
|
|
1404
1686
|
...defaultProps$N
|
|
@@ -1417,7 +1699,7 @@ function ShaderComponent$N(props) {
|
|
|
1417
1699
|
let uniformsMap = null;
|
|
1418
1700
|
const getUniformsMap = () => {
|
|
1419
1701
|
if (!uniformsMap) {
|
|
1420
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1702
|
+
uniformsMap = createUniformsMap(componentDefinition$a, effectiveProps(), instanceId);
|
|
1421
1703
|
}
|
|
1422
1704
|
return uniformsMap;
|
|
1423
1705
|
};
|
|
@@ -1442,7 +1724,7 @@ function ShaderComponent$N(props) {
|
|
|
1442
1724
|
renderOrder: props.renderOrder || 0,
|
|
1443
1725
|
transform: effectiveTransform()
|
|
1444
1726
|
};
|
|
1445
|
-
parentRegister(instanceId, componentDefinition$
|
|
1727
|
+
parentRegister(instanceId, componentDefinition$a.fragmentNode, parentId, metadata, uniforms, componentDefinition$a);
|
|
1446
1728
|
isRegistered = true;
|
|
1447
1729
|
} catch (error) {
|
|
1448
1730
|
console.error("Error registering shader node:", error);
|
|
@@ -1518,8 +1800,8 @@ const defaultProps$M = {
|
|
|
1518
1800
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1519
1801
|
};
|
|
1520
1802
|
try {
|
|
1521
|
-
if (componentDefinition$
|
|
1522
|
-
Object.entries(componentDefinition$
|
|
1803
|
+
if (componentDefinition$b && componentDefinition$b.props) {
|
|
1804
|
+
Object.entries(componentDefinition$b.props).forEach(([key, config]) => {
|
|
1523
1805
|
const propConfig = config;
|
|
1524
1806
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1525
1807
|
defaultProps$M[key] = propConfig.default;
|
|
@@ -1538,7 +1820,7 @@ function ShaderComponent$M(props) {
|
|
|
1538
1820
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1539
1821
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1540
1822
|
} = context;
|
|
1541
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1823
|
+
const instanceId = props.id || `${componentDefinition$b.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1542
1824
|
const effectiveProps = createMemo(() => {
|
|
1543
1825
|
let baseProps = {
|
|
1544
1826
|
...defaultProps$M
|
|
@@ -1557,7 +1839,7 @@ function ShaderComponent$M(props) {
|
|
|
1557
1839
|
let uniformsMap = null;
|
|
1558
1840
|
const getUniformsMap = () => {
|
|
1559
1841
|
if (!uniformsMap) {
|
|
1560
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1842
|
+
uniformsMap = createUniformsMap(componentDefinition$b, effectiveProps(), instanceId);
|
|
1561
1843
|
}
|
|
1562
1844
|
return uniformsMap;
|
|
1563
1845
|
};
|
|
@@ -1582,7 +1864,7 @@ function ShaderComponent$M(props) {
|
|
|
1582
1864
|
renderOrder: props.renderOrder || 0,
|
|
1583
1865
|
transform: effectiveTransform()
|
|
1584
1866
|
};
|
|
1585
|
-
parentRegister(instanceId, componentDefinition$
|
|
1867
|
+
parentRegister(instanceId, componentDefinition$b.fragmentNode, parentId, metadata, uniforms, componentDefinition$b);
|
|
1586
1868
|
isRegistered = true;
|
|
1587
1869
|
} catch (error) {
|
|
1588
1870
|
console.error("Error registering shader node:", error);
|
|
@@ -1658,8 +1940,8 @@ const defaultProps$L = {
|
|
|
1658
1940
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1659
1941
|
};
|
|
1660
1942
|
try {
|
|
1661
|
-
if (componentDefinition$
|
|
1662
|
-
Object.entries(componentDefinition$
|
|
1943
|
+
if (componentDefinition$c && componentDefinition$c.props) {
|
|
1944
|
+
Object.entries(componentDefinition$c.props).forEach(([key, config]) => {
|
|
1663
1945
|
const propConfig = config;
|
|
1664
1946
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1665
1947
|
defaultProps$L[key] = propConfig.default;
|
|
@@ -1678,7 +1960,7 @@ function ShaderComponent$L(props) {
|
|
|
1678
1960
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1679
1961
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1680
1962
|
} = context;
|
|
1681
|
-
const instanceId = props.id || `${componentDefinition$
|
|
1963
|
+
const instanceId = props.id || `${componentDefinition$c.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1682
1964
|
const effectiveProps = createMemo(() => {
|
|
1683
1965
|
let baseProps = {
|
|
1684
1966
|
...defaultProps$L
|
|
@@ -1697,7 +1979,7 @@ function ShaderComponent$L(props) {
|
|
|
1697
1979
|
let uniformsMap = null;
|
|
1698
1980
|
const getUniformsMap = () => {
|
|
1699
1981
|
if (!uniformsMap) {
|
|
1700
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
1982
|
+
uniformsMap = createUniformsMap(componentDefinition$c, effectiveProps(), instanceId);
|
|
1701
1983
|
}
|
|
1702
1984
|
return uniformsMap;
|
|
1703
1985
|
};
|
|
@@ -1722,7 +2004,7 @@ function ShaderComponent$L(props) {
|
|
|
1722
2004
|
renderOrder: props.renderOrder || 0,
|
|
1723
2005
|
transform: effectiveTransform()
|
|
1724
2006
|
};
|
|
1725
|
-
parentRegister(instanceId, componentDefinition$
|
|
2007
|
+
parentRegister(instanceId, componentDefinition$c.fragmentNode, parentId, metadata, uniforms, componentDefinition$c);
|
|
1726
2008
|
isRegistered = true;
|
|
1727
2009
|
} catch (error) {
|
|
1728
2010
|
console.error("Error registering shader node:", error);
|
|
@@ -1798,8 +2080,8 @@ const defaultProps$K = {
|
|
|
1798
2080
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1799
2081
|
};
|
|
1800
2082
|
try {
|
|
1801
|
-
if (componentDefinition$
|
|
1802
|
-
Object.entries(componentDefinition$
|
|
2083
|
+
if (componentDefinition$d && componentDefinition$d.props) {
|
|
2084
|
+
Object.entries(componentDefinition$d.props).forEach(([key, config]) => {
|
|
1803
2085
|
const propConfig = config;
|
|
1804
2086
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1805
2087
|
defaultProps$K[key] = propConfig.default;
|
|
@@ -1818,7 +2100,7 @@ function ShaderComponent$K(props) {
|
|
|
1818
2100
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1819
2101
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1820
2102
|
} = context;
|
|
1821
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2103
|
+
const instanceId = props.id || `${componentDefinition$d.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1822
2104
|
const effectiveProps = createMemo(() => {
|
|
1823
2105
|
let baseProps = {
|
|
1824
2106
|
...defaultProps$K
|
|
@@ -1837,7 +2119,7 @@ function ShaderComponent$K(props) {
|
|
|
1837
2119
|
let uniformsMap = null;
|
|
1838
2120
|
const getUniformsMap = () => {
|
|
1839
2121
|
if (!uniformsMap) {
|
|
1840
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2122
|
+
uniformsMap = createUniformsMap(componentDefinition$d, effectiveProps(), instanceId);
|
|
1841
2123
|
}
|
|
1842
2124
|
return uniformsMap;
|
|
1843
2125
|
};
|
|
@@ -1862,7 +2144,7 @@ function ShaderComponent$K(props) {
|
|
|
1862
2144
|
renderOrder: props.renderOrder || 0,
|
|
1863
2145
|
transform: effectiveTransform()
|
|
1864
2146
|
};
|
|
1865
|
-
parentRegister(instanceId, componentDefinition$
|
|
2147
|
+
parentRegister(instanceId, componentDefinition$d.fragmentNode, parentId, metadata, uniforms, componentDefinition$d);
|
|
1866
2148
|
isRegistered = true;
|
|
1867
2149
|
} catch (error) {
|
|
1868
2150
|
console.error("Error registering shader node:", error);
|
|
@@ -1938,8 +2220,8 @@ const defaultProps$J = {
|
|
|
1938
2220
|
// transform intentionally has no default - handled by effectiveTransform
|
|
1939
2221
|
};
|
|
1940
2222
|
try {
|
|
1941
|
-
if (componentDefinition$
|
|
1942
|
-
Object.entries(componentDefinition$
|
|
2223
|
+
if (componentDefinition$e && componentDefinition$e.props) {
|
|
2224
|
+
Object.entries(componentDefinition$e.props).forEach(([key, config]) => {
|
|
1943
2225
|
const propConfig = config;
|
|
1944
2226
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
1945
2227
|
defaultProps$J[key] = propConfig.default;
|
|
@@ -1958,7 +2240,7 @@ function ShaderComponent$J(props) {
|
|
|
1958
2240
|
shaderUniformUpdate: parentUniformUpdate,
|
|
1959
2241
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
1960
2242
|
} = context;
|
|
1961
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2243
|
+
const instanceId = props.id || `${componentDefinition$e.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
1962
2244
|
const effectiveProps = createMemo(() => {
|
|
1963
2245
|
let baseProps = {
|
|
1964
2246
|
...defaultProps$J
|
|
@@ -1977,7 +2259,7 @@ function ShaderComponent$J(props) {
|
|
|
1977
2259
|
let uniformsMap = null;
|
|
1978
2260
|
const getUniformsMap = () => {
|
|
1979
2261
|
if (!uniformsMap) {
|
|
1980
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2262
|
+
uniformsMap = createUniformsMap(componentDefinition$e, effectiveProps(), instanceId);
|
|
1981
2263
|
}
|
|
1982
2264
|
return uniformsMap;
|
|
1983
2265
|
};
|
|
@@ -2002,7 +2284,7 @@ function ShaderComponent$J(props) {
|
|
|
2002
2284
|
renderOrder: props.renderOrder || 0,
|
|
2003
2285
|
transform: effectiveTransform()
|
|
2004
2286
|
};
|
|
2005
|
-
parentRegister(instanceId, componentDefinition$
|
|
2287
|
+
parentRegister(instanceId, componentDefinition$e.fragmentNode, parentId, metadata, uniforms, componentDefinition$e);
|
|
2006
2288
|
isRegistered = true;
|
|
2007
2289
|
} catch (error) {
|
|
2008
2290
|
console.error("Error registering shader node:", error);
|
|
@@ -2078,8 +2360,8 @@ const defaultProps$I = {
|
|
|
2078
2360
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2079
2361
|
};
|
|
2080
2362
|
try {
|
|
2081
|
-
if (componentDefinition$
|
|
2082
|
-
Object.entries(componentDefinition$
|
|
2363
|
+
if (componentDefinition$f && componentDefinition$f.props) {
|
|
2364
|
+
Object.entries(componentDefinition$f.props).forEach(([key, config]) => {
|
|
2083
2365
|
const propConfig = config;
|
|
2084
2366
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2085
2367
|
defaultProps$I[key] = propConfig.default;
|
|
@@ -2098,7 +2380,7 @@ function ShaderComponent$I(props) {
|
|
|
2098
2380
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2099
2381
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2100
2382
|
} = context;
|
|
2101
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2383
|
+
const instanceId = props.id || `${componentDefinition$f.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2102
2384
|
const effectiveProps = createMemo(() => {
|
|
2103
2385
|
let baseProps = {
|
|
2104
2386
|
...defaultProps$I
|
|
@@ -2117,7 +2399,7 @@ function ShaderComponent$I(props) {
|
|
|
2117
2399
|
let uniformsMap = null;
|
|
2118
2400
|
const getUniformsMap = () => {
|
|
2119
2401
|
if (!uniformsMap) {
|
|
2120
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2402
|
+
uniformsMap = createUniformsMap(componentDefinition$f, effectiveProps(), instanceId);
|
|
2121
2403
|
}
|
|
2122
2404
|
return uniformsMap;
|
|
2123
2405
|
};
|
|
@@ -2142,7 +2424,7 @@ function ShaderComponent$I(props) {
|
|
|
2142
2424
|
renderOrder: props.renderOrder || 0,
|
|
2143
2425
|
transform: effectiveTransform()
|
|
2144
2426
|
};
|
|
2145
|
-
parentRegister(instanceId, componentDefinition$
|
|
2427
|
+
parentRegister(instanceId, componentDefinition$f.fragmentNode, parentId, metadata, uniforms, componentDefinition$f);
|
|
2146
2428
|
isRegistered = true;
|
|
2147
2429
|
} catch (error) {
|
|
2148
2430
|
console.error("Error registering shader node:", error);
|
|
@@ -2218,8 +2500,8 @@ const defaultProps$H = {
|
|
|
2218
2500
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2219
2501
|
};
|
|
2220
2502
|
try {
|
|
2221
|
-
if (componentDefinition$
|
|
2222
|
-
Object.entries(componentDefinition$
|
|
2503
|
+
if (componentDefinition$g && componentDefinition$g.props) {
|
|
2504
|
+
Object.entries(componentDefinition$g.props).forEach(([key, config]) => {
|
|
2223
2505
|
const propConfig = config;
|
|
2224
2506
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2225
2507
|
defaultProps$H[key] = propConfig.default;
|
|
@@ -2238,7 +2520,7 @@ function ShaderComponent$H(props) {
|
|
|
2238
2520
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2239
2521
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2240
2522
|
} = context;
|
|
2241
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2523
|
+
const instanceId = props.id || `${componentDefinition$g.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2242
2524
|
const effectiveProps = createMemo(() => {
|
|
2243
2525
|
let baseProps = {
|
|
2244
2526
|
...defaultProps$H
|
|
@@ -2257,7 +2539,7 @@ function ShaderComponent$H(props) {
|
|
|
2257
2539
|
let uniformsMap = null;
|
|
2258
2540
|
const getUniformsMap = () => {
|
|
2259
2541
|
if (!uniformsMap) {
|
|
2260
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2542
|
+
uniformsMap = createUniformsMap(componentDefinition$g, effectiveProps(), instanceId);
|
|
2261
2543
|
}
|
|
2262
2544
|
return uniformsMap;
|
|
2263
2545
|
};
|
|
@@ -2282,7 +2564,7 @@ function ShaderComponent$H(props) {
|
|
|
2282
2564
|
renderOrder: props.renderOrder || 0,
|
|
2283
2565
|
transform: effectiveTransform()
|
|
2284
2566
|
};
|
|
2285
|
-
parentRegister(instanceId, componentDefinition$
|
|
2567
|
+
parentRegister(instanceId, componentDefinition$g.fragmentNode, parentId, metadata, uniforms, componentDefinition$g);
|
|
2286
2568
|
isRegistered = true;
|
|
2287
2569
|
} catch (error) {
|
|
2288
2570
|
console.error("Error registering shader node:", error);
|
|
@@ -2358,8 +2640,8 @@ const defaultProps$G = {
|
|
|
2358
2640
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2359
2641
|
};
|
|
2360
2642
|
try {
|
|
2361
|
-
if (componentDefinition$
|
|
2362
|
-
Object.entries(componentDefinition$
|
|
2643
|
+
if (componentDefinition$h && componentDefinition$h.props) {
|
|
2644
|
+
Object.entries(componentDefinition$h.props).forEach(([key, config]) => {
|
|
2363
2645
|
const propConfig = config;
|
|
2364
2646
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2365
2647
|
defaultProps$G[key] = propConfig.default;
|
|
@@ -2378,7 +2660,7 @@ function ShaderComponent$G(props) {
|
|
|
2378
2660
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2379
2661
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2380
2662
|
} = context;
|
|
2381
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2663
|
+
const instanceId = props.id || `${componentDefinition$h.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2382
2664
|
const effectiveProps = createMemo(() => {
|
|
2383
2665
|
let baseProps = {
|
|
2384
2666
|
...defaultProps$G
|
|
@@ -2397,7 +2679,7 @@ function ShaderComponent$G(props) {
|
|
|
2397
2679
|
let uniformsMap = null;
|
|
2398
2680
|
const getUniformsMap = () => {
|
|
2399
2681
|
if (!uniformsMap) {
|
|
2400
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2682
|
+
uniformsMap = createUniformsMap(componentDefinition$h, effectiveProps(), instanceId);
|
|
2401
2683
|
}
|
|
2402
2684
|
return uniformsMap;
|
|
2403
2685
|
};
|
|
@@ -2422,7 +2704,7 @@ function ShaderComponent$G(props) {
|
|
|
2422
2704
|
renderOrder: props.renderOrder || 0,
|
|
2423
2705
|
transform: effectiveTransform()
|
|
2424
2706
|
};
|
|
2425
|
-
parentRegister(instanceId, componentDefinition$
|
|
2707
|
+
parentRegister(instanceId, componentDefinition$h.fragmentNode, parentId, metadata, uniforms, componentDefinition$h);
|
|
2426
2708
|
isRegistered = true;
|
|
2427
2709
|
} catch (error) {
|
|
2428
2710
|
console.error("Error registering shader node:", error);
|
|
@@ -2498,8 +2780,8 @@ const defaultProps$F = {
|
|
|
2498
2780
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2499
2781
|
};
|
|
2500
2782
|
try {
|
|
2501
|
-
if (componentDefinition$
|
|
2502
|
-
Object.entries(componentDefinition$
|
|
2783
|
+
if (componentDefinition$i && componentDefinition$i.props) {
|
|
2784
|
+
Object.entries(componentDefinition$i.props).forEach(([key, config]) => {
|
|
2503
2785
|
const propConfig = config;
|
|
2504
2786
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2505
2787
|
defaultProps$F[key] = propConfig.default;
|
|
@@ -2518,7 +2800,7 @@ function ShaderComponent$F(props) {
|
|
|
2518
2800
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2519
2801
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2520
2802
|
} = context;
|
|
2521
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2803
|
+
const instanceId = props.id || `${componentDefinition$i.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2522
2804
|
const effectiveProps = createMemo(() => {
|
|
2523
2805
|
let baseProps = {
|
|
2524
2806
|
...defaultProps$F
|
|
@@ -2537,7 +2819,7 @@ function ShaderComponent$F(props) {
|
|
|
2537
2819
|
let uniformsMap = null;
|
|
2538
2820
|
const getUniformsMap = () => {
|
|
2539
2821
|
if (!uniformsMap) {
|
|
2540
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2822
|
+
uniformsMap = createUniformsMap(componentDefinition$i, effectiveProps(), instanceId);
|
|
2541
2823
|
}
|
|
2542
2824
|
return uniformsMap;
|
|
2543
2825
|
};
|
|
@@ -2562,7 +2844,7 @@ function ShaderComponent$F(props) {
|
|
|
2562
2844
|
renderOrder: props.renderOrder || 0,
|
|
2563
2845
|
transform: effectiveTransform()
|
|
2564
2846
|
};
|
|
2565
|
-
parentRegister(instanceId, componentDefinition$
|
|
2847
|
+
parentRegister(instanceId, componentDefinition$i.fragmentNode, parentId, metadata, uniforms, componentDefinition$i);
|
|
2566
2848
|
isRegistered = true;
|
|
2567
2849
|
} catch (error) {
|
|
2568
2850
|
console.error("Error registering shader node:", error);
|
|
@@ -2638,8 +2920,8 @@ const defaultProps$E = {
|
|
|
2638
2920
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2639
2921
|
};
|
|
2640
2922
|
try {
|
|
2641
|
-
if (componentDefinition$
|
|
2642
|
-
Object.entries(componentDefinition$
|
|
2923
|
+
if (componentDefinition$j && componentDefinition$j.props) {
|
|
2924
|
+
Object.entries(componentDefinition$j.props).forEach(([key, config]) => {
|
|
2643
2925
|
const propConfig = config;
|
|
2644
2926
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2645
2927
|
defaultProps$E[key] = propConfig.default;
|
|
@@ -2658,7 +2940,7 @@ function ShaderComponent$E(props) {
|
|
|
2658
2940
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2659
2941
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2660
2942
|
} = context;
|
|
2661
|
-
const instanceId = props.id || `${componentDefinition$
|
|
2943
|
+
const instanceId = props.id || `${componentDefinition$j.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2662
2944
|
const effectiveProps = createMemo(() => {
|
|
2663
2945
|
let baseProps = {
|
|
2664
2946
|
...defaultProps$E
|
|
@@ -2677,7 +2959,7 @@ function ShaderComponent$E(props) {
|
|
|
2677
2959
|
let uniformsMap = null;
|
|
2678
2960
|
const getUniformsMap = () => {
|
|
2679
2961
|
if (!uniformsMap) {
|
|
2680
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
2962
|
+
uniformsMap = createUniformsMap(componentDefinition$j, effectiveProps(), instanceId);
|
|
2681
2963
|
}
|
|
2682
2964
|
return uniformsMap;
|
|
2683
2965
|
};
|
|
@@ -2702,7 +2984,7 @@ function ShaderComponent$E(props) {
|
|
|
2702
2984
|
renderOrder: props.renderOrder || 0,
|
|
2703
2985
|
transform: effectiveTransform()
|
|
2704
2986
|
};
|
|
2705
|
-
parentRegister(instanceId, componentDefinition$
|
|
2987
|
+
parentRegister(instanceId, componentDefinition$j.fragmentNode, parentId, metadata, uniforms, componentDefinition$j);
|
|
2706
2988
|
isRegistered = true;
|
|
2707
2989
|
} catch (error) {
|
|
2708
2990
|
console.error("Error registering shader node:", error);
|
|
@@ -2778,8 +3060,8 @@ const defaultProps$D = {
|
|
|
2778
3060
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2779
3061
|
};
|
|
2780
3062
|
try {
|
|
2781
|
-
if (componentDefinition$
|
|
2782
|
-
Object.entries(componentDefinition$
|
|
3063
|
+
if (componentDefinition$k && componentDefinition$k.props) {
|
|
3064
|
+
Object.entries(componentDefinition$k.props).forEach(([key, config]) => {
|
|
2783
3065
|
const propConfig = config;
|
|
2784
3066
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2785
3067
|
defaultProps$D[key] = propConfig.default;
|
|
@@ -2798,7 +3080,7 @@ function ShaderComponent$D(props) {
|
|
|
2798
3080
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2799
3081
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2800
3082
|
} = context;
|
|
2801
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3083
|
+
const instanceId = props.id || `${componentDefinition$k.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2802
3084
|
const effectiveProps = createMemo(() => {
|
|
2803
3085
|
let baseProps = {
|
|
2804
3086
|
...defaultProps$D
|
|
@@ -2817,7 +3099,7 @@ function ShaderComponent$D(props) {
|
|
|
2817
3099
|
let uniformsMap = null;
|
|
2818
3100
|
const getUniformsMap = () => {
|
|
2819
3101
|
if (!uniformsMap) {
|
|
2820
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3102
|
+
uniformsMap = createUniformsMap(componentDefinition$k, effectiveProps(), instanceId);
|
|
2821
3103
|
}
|
|
2822
3104
|
return uniformsMap;
|
|
2823
3105
|
};
|
|
@@ -2842,7 +3124,7 @@ function ShaderComponent$D(props) {
|
|
|
2842
3124
|
renderOrder: props.renderOrder || 0,
|
|
2843
3125
|
transform: effectiveTransform()
|
|
2844
3126
|
};
|
|
2845
|
-
parentRegister(instanceId, componentDefinition$
|
|
3127
|
+
parentRegister(instanceId, componentDefinition$k.fragmentNode, parentId, metadata, uniforms, componentDefinition$k);
|
|
2846
3128
|
isRegistered = true;
|
|
2847
3129
|
} catch (error) {
|
|
2848
3130
|
console.error("Error registering shader node:", error);
|
|
@@ -2918,8 +3200,8 @@ const defaultProps$C = {
|
|
|
2918
3200
|
// transform intentionally has no default - handled by effectiveTransform
|
|
2919
3201
|
};
|
|
2920
3202
|
try {
|
|
2921
|
-
if (componentDefinition$
|
|
2922
|
-
Object.entries(componentDefinition$
|
|
3203
|
+
if (componentDefinition$l && componentDefinition$l.props) {
|
|
3204
|
+
Object.entries(componentDefinition$l.props).forEach(([key, config]) => {
|
|
2923
3205
|
const propConfig = config;
|
|
2924
3206
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
2925
3207
|
defaultProps$C[key] = propConfig.default;
|
|
@@ -2938,7 +3220,7 @@ function ShaderComponent$C(props) {
|
|
|
2938
3220
|
shaderUniformUpdate: parentUniformUpdate,
|
|
2939
3221
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
2940
3222
|
} = context;
|
|
2941
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3223
|
+
const instanceId = props.id || `${componentDefinition$l.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
2942
3224
|
const effectiveProps = createMemo(() => {
|
|
2943
3225
|
let baseProps = {
|
|
2944
3226
|
...defaultProps$C
|
|
@@ -2957,7 +3239,7 @@ function ShaderComponent$C(props) {
|
|
|
2957
3239
|
let uniformsMap = null;
|
|
2958
3240
|
const getUniformsMap = () => {
|
|
2959
3241
|
if (!uniformsMap) {
|
|
2960
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3242
|
+
uniformsMap = createUniformsMap(componentDefinition$l, effectiveProps(), instanceId);
|
|
2961
3243
|
}
|
|
2962
3244
|
return uniformsMap;
|
|
2963
3245
|
};
|
|
@@ -2982,7 +3264,7 @@ function ShaderComponent$C(props) {
|
|
|
2982
3264
|
renderOrder: props.renderOrder || 0,
|
|
2983
3265
|
transform: effectiveTransform()
|
|
2984
3266
|
};
|
|
2985
|
-
parentRegister(instanceId, componentDefinition$
|
|
3267
|
+
parentRegister(instanceId, componentDefinition$l.fragmentNode, parentId, metadata, uniforms, componentDefinition$l);
|
|
2986
3268
|
isRegistered = true;
|
|
2987
3269
|
} catch (error) {
|
|
2988
3270
|
console.error("Error registering shader node:", error);
|
|
@@ -3058,8 +3340,8 @@ const defaultProps$B = {
|
|
|
3058
3340
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3059
3341
|
};
|
|
3060
3342
|
try {
|
|
3061
|
-
if (componentDefinition$
|
|
3062
|
-
Object.entries(componentDefinition$
|
|
3343
|
+
if (componentDefinition$m && componentDefinition$m.props) {
|
|
3344
|
+
Object.entries(componentDefinition$m.props).forEach(([key, config]) => {
|
|
3063
3345
|
const propConfig = config;
|
|
3064
3346
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3065
3347
|
defaultProps$B[key] = propConfig.default;
|
|
@@ -3078,7 +3360,7 @@ function ShaderComponent$B(props) {
|
|
|
3078
3360
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3079
3361
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3080
3362
|
} = context;
|
|
3081
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3363
|
+
const instanceId = props.id || `${componentDefinition$m.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3082
3364
|
const effectiveProps = createMemo(() => {
|
|
3083
3365
|
let baseProps = {
|
|
3084
3366
|
...defaultProps$B
|
|
@@ -3097,7 +3379,7 @@ function ShaderComponent$B(props) {
|
|
|
3097
3379
|
let uniformsMap = null;
|
|
3098
3380
|
const getUniformsMap = () => {
|
|
3099
3381
|
if (!uniformsMap) {
|
|
3100
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3382
|
+
uniformsMap = createUniformsMap(componentDefinition$m, effectiveProps(), instanceId);
|
|
3101
3383
|
}
|
|
3102
3384
|
return uniformsMap;
|
|
3103
3385
|
};
|
|
@@ -3122,7 +3404,7 @@ function ShaderComponent$B(props) {
|
|
|
3122
3404
|
renderOrder: props.renderOrder || 0,
|
|
3123
3405
|
transform: effectiveTransform()
|
|
3124
3406
|
};
|
|
3125
|
-
parentRegister(instanceId, componentDefinition$
|
|
3407
|
+
parentRegister(instanceId, componentDefinition$m.fragmentNode, parentId, metadata, uniforms, componentDefinition$m);
|
|
3126
3408
|
isRegistered = true;
|
|
3127
3409
|
} catch (error) {
|
|
3128
3410
|
console.error("Error registering shader node:", error);
|
|
@@ -3198,8 +3480,8 @@ const defaultProps$A = {
|
|
|
3198
3480
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3199
3481
|
};
|
|
3200
3482
|
try {
|
|
3201
|
-
if (componentDefinition$
|
|
3202
|
-
Object.entries(componentDefinition$
|
|
3483
|
+
if (componentDefinition$n && componentDefinition$n.props) {
|
|
3484
|
+
Object.entries(componentDefinition$n.props).forEach(([key, config]) => {
|
|
3203
3485
|
const propConfig = config;
|
|
3204
3486
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3205
3487
|
defaultProps$A[key] = propConfig.default;
|
|
@@ -3218,7 +3500,7 @@ function ShaderComponent$A(props) {
|
|
|
3218
3500
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3219
3501
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3220
3502
|
} = context;
|
|
3221
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3503
|
+
const instanceId = props.id || `${componentDefinition$n.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3222
3504
|
const effectiveProps = createMemo(() => {
|
|
3223
3505
|
let baseProps = {
|
|
3224
3506
|
...defaultProps$A
|
|
@@ -3237,7 +3519,7 @@ function ShaderComponent$A(props) {
|
|
|
3237
3519
|
let uniformsMap = null;
|
|
3238
3520
|
const getUniformsMap = () => {
|
|
3239
3521
|
if (!uniformsMap) {
|
|
3240
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3522
|
+
uniformsMap = createUniformsMap(componentDefinition$n, effectiveProps(), instanceId);
|
|
3241
3523
|
}
|
|
3242
3524
|
return uniformsMap;
|
|
3243
3525
|
};
|
|
@@ -3262,7 +3544,7 @@ function ShaderComponent$A(props) {
|
|
|
3262
3544
|
renderOrder: props.renderOrder || 0,
|
|
3263
3545
|
transform: effectiveTransform()
|
|
3264
3546
|
};
|
|
3265
|
-
parentRegister(instanceId, componentDefinition$
|
|
3547
|
+
parentRegister(instanceId, componentDefinition$n.fragmentNode, parentId, metadata, uniforms, componentDefinition$n);
|
|
3266
3548
|
isRegistered = true;
|
|
3267
3549
|
} catch (error) {
|
|
3268
3550
|
console.error("Error registering shader node:", error);
|
|
@@ -3338,8 +3620,8 @@ const defaultProps$z = {
|
|
|
3338
3620
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3339
3621
|
};
|
|
3340
3622
|
try {
|
|
3341
|
-
if (componentDefinition$
|
|
3342
|
-
Object.entries(componentDefinition$
|
|
3623
|
+
if (componentDefinition$o && componentDefinition$o.props) {
|
|
3624
|
+
Object.entries(componentDefinition$o.props).forEach(([key, config]) => {
|
|
3343
3625
|
const propConfig = config;
|
|
3344
3626
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3345
3627
|
defaultProps$z[key] = propConfig.default;
|
|
@@ -3358,7 +3640,7 @@ function ShaderComponent$z(props) {
|
|
|
3358
3640
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3359
3641
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3360
3642
|
} = context;
|
|
3361
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3643
|
+
const instanceId = props.id || `${componentDefinition$o.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3362
3644
|
const effectiveProps = createMemo(() => {
|
|
3363
3645
|
let baseProps = {
|
|
3364
3646
|
...defaultProps$z
|
|
@@ -3377,7 +3659,7 @@ function ShaderComponent$z(props) {
|
|
|
3377
3659
|
let uniformsMap = null;
|
|
3378
3660
|
const getUniformsMap = () => {
|
|
3379
3661
|
if (!uniformsMap) {
|
|
3380
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3662
|
+
uniformsMap = createUniformsMap(componentDefinition$o, effectiveProps(), instanceId);
|
|
3381
3663
|
}
|
|
3382
3664
|
return uniformsMap;
|
|
3383
3665
|
};
|
|
@@ -3402,7 +3684,7 @@ function ShaderComponent$z(props) {
|
|
|
3402
3684
|
renderOrder: props.renderOrder || 0,
|
|
3403
3685
|
transform: effectiveTransform()
|
|
3404
3686
|
};
|
|
3405
|
-
parentRegister(instanceId, componentDefinition$
|
|
3687
|
+
parentRegister(instanceId, componentDefinition$o.fragmentNode, parentId, metadata, uniforms, componentDefinition$o);
|
|
3406
3688
|
isRegistered = true;
|
|
3407
3689
|
} catch (error) {
|
|
3408
3690
|
console.error("Error registering shader node:", error);
|
|
@@ -3478,8 +3760,8 @@ const defaultProps$y = {
|
|
|
3478
3760
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3479
3761
|
};
|
|
3480
3762
|
try {
|
|
3481
|
-
if (componentDefinition$
|
|
3482
|
-
Object.entries(componentDefinition$
|
|
3763
|
+
if (componentDefinition$p && componentDefinition$p.props) {
|
|
3764
|
+
Object.entries(componentDefinition$p.props).forEach(([key, config]) => {
|
|
3483
3765
|
const propConfig = config;
|
|
3484
3766
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3485
3767
|
defaultProps$y[key] = propConfig.default;
|
|
@@ -3498,7 +3780,7 @@ function ShaderComponent$y(props) {
|
|
|
3498
3780
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3499
3781
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3500
3782
|
} = context;
|
|
3501
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3783
|
+
const instanceId = props.id || `${componentDefinition$p.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3502
3784
|
const effectiveProps = createMemo(() => {
|
|
3503
3785
|
let baseProps = {
|
|
3504
3786
|
...defaultProps$y
|
|
@@ -3517,7 +3799,7 @@ function ShaderComponent$y(props) {
|
|
|
3517
3799
|
let uniformsMap = null;
|
|
3518
3800
|
const getUniformsMap = () => {
|
|
3519
3801
|
if (!uniformsMap) {
|
|
3520
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3802
|
+
uniformsMap = createUniformsMap(componentDefinition$p, effectiveProps(), instanceId);
|
|
3521
3803
|
}
|
|
3522
3804
|
return uniformsMap;
|
|
3523
3805
|
};
|
|
@@ -3542,7 +3824,7 @@ function ShaderComponent$y(props) {
|
|
|
3542
3824
|
renderOrder: props.renderOrder || 0,
|
|
3543
3825
|
transform: effectiveTransform()
|
|
3544
3826
|
};
|
|
3545
|
-
parentRegister(instanceId, componentDefinition$
|
|
3827
|
+
parentRegister(instanceId, componentDefinition$p.fragmentNode, parentId, metadata, uniforms, componentDefinition$p);
|
|
3546
3828
|
isRegistered = true;
|
|
3547
3829
|
} catch (error) {
|
|
3548
3830
|
console.error("Error registering shader node:", error);
|
|
@@ -3618,8 +3900,8 @@ const defaultProps$x = {
|
|
|
3618
3900
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3619
3901
|
};
|
|
3620
3902
|
try {
|
|
3621
|
-
if (componentDefinition$
|
|
3622
|
-
Object.entries(componentDefinition$
|
|
3903
|
+
if (componentDefinition$q && componentDefinition$q.props) {
|
|
3904
|
+
Object.entries(componentDefinition$q.props).forEach(([key, config]) => {
|
|
3623
3905
|
const propConfig = config;
|
|
3624
3906
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3625
3907
|
defaultProps$x[key] = propConfig.default;
|
|
@@ -3638,7 +3920,7 @@ function ShaderComponent$x(props) {
|
|
|
3638
3920
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3639
3921
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3640
3922
|
} = context;
|
|
3641
|
-
const instanceId = props.id || `${componentDefinition$
|
|
3923
|
+
const instanceId = props.id || `${componentDefinition$q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3642
3924
|
const effectiveProps = createMemo(() => {
|
|
3643
3925
|
let baseProps = {
|
|
3644
3926
|
...defaultProps$x
|
|
@@ -3657,7 +3939,7 @@ function ShaderComponent$x(props) {
|
|
|
3657
3939
|
let uniformsMap = null;
|
|
3658
3940
|
const getUniformsMap = () => {
|
|
3659
3941
|
if (!uniformsMap) {
|
|
3660
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
3942
|
+
uniformsMap = createUniformsMap(componentDefinition$q, effectiveProps(), instanceId);
|
|
3661
3943
|
}
|
|
3662
3944
|
return uniformsMap;
|
|
3663
3945
|
};
|
|
@@ -3682,7 +3964,7 @@ function ShaderComponent$x(props) {
|
|
|
3682
3964
|
renderOrder: props.renderOrder || 0,
|
|
3683
3965
|
transform: effectiveTransform()
|
|
3684
3966
|
};
|
|
3685
|
-
parentRegister(instanceId, componentDefinition$
|
|
3967
|
+
parentRegister(instanceId, componentDefinition$q.fragmentNode, parentId, metadata, uniforms, componentDefinition$q);
|
|
3686
3968
|
isRegistered = true;
|
|
3687
3969
|
} catch (error) {
|
|
3688
3970
|
console.error("Error registering shader node:", error);
|
|
@@ -3758,8 +4040,8 @@ const defaultProps$w = {
|
|
|
3758
4040
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3759
4041
|
};
|
|
3760
4042
|
try {
|
|
3761
|
-
if (componentDefinition$
|
|
3762
|
-
Object.entries(componentDefinition$
|
|
4043
|
+
if (componentDefinition$r && componentDefinition$r.props) {
|
|
4044
|
+
Object.entries(componentDefinition$r.props).forEach(([key, config]) => {
|
|
3763
4045
|
const propConfig = config;
|
|
3764
4046
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3765
4047
|
defaultProps$w[key] = propConfig.default;
|
|
@@ -3778,7 +4060,7 @@ function ShaderComponent$w(props) {
|
|
|
3778
4060
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3779
4061
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3780
4062
|
} = context;
|
|
3781
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4063
|
+
const instanceId = props.id || `${componentDefinition$r.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3782
4064
|
const effectiveProps = createMemo(() => {
|
|
3783
4065
|
let baseProps = {
|
|
3784
4066
|
...defaultProps$w
|
|
@@ -3797,7 +4079,7 @@ function ShaderComponent$w(props) {
|
|
|
3797
4079
|
let uniformsMap = null;
|
|
3798
4080
|
const getUniformsMap = () => {
|
|
3799
4081
|
if (!uniformsMap) {
|
|
3800
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4082
|
+
uniformsMap = createUniformsMap(componentDefinition$r, effectiveProps(), instanceId);
|
|
3801
4083
|
}
|
|
3802
4084
|
return uniformsMap;
|
|
3803
4085
|
};
|
|
@@ -3822,7 +4104,7 @@ function ShaderComponent$w(props) {
|
|
|
3822
4104
|
renderOrder: props.renderOrder || 0,
|
|
3823
4105
|
transform: effectiveTransform()
|
|
3824
4106
|
};
|
|
3825
|
-
parentRegister(instanceId, componentDefinition$
|
|
4107
|
+
parentRegister(instanceId, componentDefinition$r.fragmentNode, parentId, metadata, uniforms, componentDefinition$r);
|
|
3826
4108
|
isRegistered = true;
|
|
3827
4109
|
} catch (error) {
|
|
3828
4110
|
console.error("Error registering shader node:", error);
|
|
@@ -3898,8 +4180,8 @@ const defaultProps$v = {
|
|
|
3898
4180
|
// transform intentionally has no default - handled by effectiveTransform
|
|
3899
4181
|
};
|
|
3900
4182
|
try {
|
|
3901
|
-
if (componentDefinition$
|
|
3902
|
-
Object.entries(componentDefinition$
|
|
4183
|
+
if (componentDefinition$s && componentDefinition$s.props) {
|
|
4184
|
+
Object.entries(componentDefinition$s.props).forEach(([key, config]) => {
|
|
3903
4185
|
const propConfig = config;
|
|
3904
4186
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
3905
4187
|
defaultProps$v[key] = propConfig.default;
|
|
@@ -3918,7 +4200,7 @@ function ShaderComponent$v(props) {
|
|
|
3918
4200
|
shaderUniformUpdate: parentUniformUpdate,
|
|
3919
4201
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
3920
4202
|
} = context;
|
|
3921
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4203
|
+
const instanceId = props.id || `${componentDefinition$s.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
3922
4204
|
const effectiveProps = createMemo(() => {
|
|
3923
4205
|
let baseProps = {
|
|
3924
4206
|
...defaultProps$v
|
|
@@ -3937,7 +4219,7 @@ function ShaderComponent$v(props) {
|
|
|
3937
4219
|
let uniformsMap = null;
|
|
3938
4220
|
const getUniformsMap = () => {
|
|
3939
4221
|
if (!uniformsMap) {
|
|
3940
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4222
|
+
uniformsMap = createUniformsMap(componentDefinition$s, effectiveProps(), instanceId);
|
|
3941
4223
|
}
|
|
3942
4224
|
return uniformsMap;
|
|
3943
4225
|
};
|
|
@@ -3962,7 +4244,7 @@ function ShaderComponent$v(props) {
|
|
|
3962
4244
|
renderOrder: props.renderOrder || 0,
|
|
3963
4245
|
transform: effectiveTransform()
|
|
3964
4246
|
};
|
|
3965
|
-
parentRegister(instanceId, componentDefinition$
|
|
4247
|
+
parentRegister(instanceId, componentDefinition$s.fragmentNode, parentId, metadata, uniforms, componentDefinition$s);
|
|
3966
4248
|
isRegistered = true;
|
|
3967
4249
|
} catch (error) {
|
|
3968
4250
|
console.error("Error registering shader node:", error);
|
|
@@ -4038,8 +4320,8 @@ const defaultProps$u = {
|
|
|
4038
4320
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4039
4321
|
};
|
|
4040
4322
|
try {
|
|
4041
|
-
if (componentDefinition$
|
|
4042
|
-
Object.entries(componentDefinition$
|
|
4323
|
+
if (componentDefinition$t && componentDefinition$t.props) {
|
|
4324
|
+
Object.entries(componentDefinition$t.props).forEach(([key, config]) => {
|
|
4043
4325
|
const propConfig = config;
|
|
4044
4326
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4045
4327
|
defaultProps$u[key] = propConfig.default;
|
|
@@ -4058,7 +4340,7 @@ function ShaderComponent$u(props) {
|
|
|
4058
4340
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4059
4341
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4060
4342
|
} = context;
|
|
4061
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4343
|
+
const instanceId = props.id || `${componentDefinition$t.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4062
4344
|
const effectiveProps = createMemo(() => {
|
|
4063
4345
|
let baseProps = {
|
|
4064
4346
|
...defaultProps$u
|
|
@@ -4077,7 +4359,7 @@ function ShaderComponent$u(props) {
|
|
|
4077
4359
|
let uniformsMap = null;
|
|
4078
4360
|
const getUniformsMap = () => {
|
|
4079
4361
|
if (!uniformsMap) {
|
|
4080
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4362
|
+
uniformsMap = createUniformsMap(componentDefinition$t, effectiveProps(), instanceId);
|
|
4081
4363
|
}
|
|
4082
4364
|
return uniformsMap;
|
|
4083
4365
|
};
|
|
@@ -4102,7 +4384,7 @@ function ShaderComponent$u(props) {
|
|
|
4102
4384
|
renderOrder: props.renderOrder || 0,
|
|
4103
4385
|
transform: effectiveTransform()
|
|
4104
4386
|
};
|
|
4105
|
-
parentRegister(instanceId, componentDefinition$
|
|
4387
|
+
parentRegister(instanceId, componentDefinition$t.fragmentNode, parentId, metadata, uniforms, componentDefinition$t);
|
|
4106
4388
|
isRegistered = true;
|
|
4107
4389
|
} catch (error) {
|
|
4108
4390
|
console.error("Error registering shader node:", error);
|
|
@@ -4178,8 +4460,8 @@ const defaultProps$t = {
|
|
|
4178
4460
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4179
4461
|
};
|
|
4180
4462
|
try {
|
|
4181
|
-
if (componentDefinition$
|
|
4182
|
-
Object.entries(componentDefinition$
|
|
4463
|
+
if (componentDefinition$u && componentDefinition$u.props) {
|
|
4464
|
+
Object.entries(componentDefinition$u.props).forEach(([key, config]) => {
|
|
4183
4465
|
const propConfig = config;
|
|
4184
4466
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4185
4467
|
defaultProps$t[key] = propConfig.default;
|
|
@@ -4198,7 +4480,7 @@ function ShaderComponent$t(props) {
|
|
|
4198
4480
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4199
4481
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4200
4482
|
} = context;
|
|
4201
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4483
|
+
const instanceId = props.id || `${componentDefinition$u.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4202
4484
|
const effectiveProps = createMemo(() => {
|
|
4203
4485
|
let baseProps = {
|
|
4204
4486
|
...defaultProps$t
|
|
@@ -4217,7 +4499,7 @@ function ShaderComponent$t(props) {
|
|
|
4217
4499
|
let uniformsMap = null;
|
|
4218
4500
|
const getUniformsMap = () => {
|
|
4219
4501
|
if (!uniformsMap) {
|
|
4220
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4502
|
+
uniformsMap = createUniformsMap(componentDefinition$u, effectiveProps(), instanceId);
|
|
4221
4503
|
}
|
|
4222
4504
|
return uniformsMap;
|
|
4223
4505
|
};
|
|
@@ -4242,7 +4524,7 @@ function ShaderComponent$t(props) {
|
|
|
4242
4524
|
renderOrder: props.renderOrder || 0,
|
|
4243
4525
|
transform: effectiveTransform()
|
|
4244
4526
|
};
|
|
4245
|
-
parentRegister(instanceId, componentDefinition$
|
|
4527
|
+
parentRegister(instanceId, componentDefinition$u.fragmentNode, parentId, metadata, uniforms, componentDefinition$u);
|
|
4246
4528
|
isRegistered = true;
|
|
4247
4529
|
} catch (error) {
|
|
4248
4530
|
console.error("Error registering shader node:", error);
|
|
@@ -4318,8 +4600,8 @@ const defaultProps$s = {
|
|
|
4318
4600
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4319
4601
|
};
|
|
4320
4602
|
try {
|
|
4321
|
-
if (componentDefinition$
|
|
4322
|
-
Object.entries(componentDefinition$
|
|
4603
|
+
if (componentDefinition$v && componentDefinition$v.props) {
|
|
4604
|
+
Object.entries(componentDefinition$v.props).forEach(([key, config]) => {
|
|
4323
4605
|
const propConfig = config;
|
|
4324
4606
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4325
4607
|
defaultProps$s[key] = propConfig.default;
|
|
@@ -4338,7 +4620,7 @@ function ShaderComponent$s(props) {
|
|
|
4338
4620
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4339
4621
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4340
4622
|
} = context;
|
|
4341
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4623
|
+
const instanceId = props.id || `${componentDefinition$v.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4342
4624
|
const effectiveProps = createMemo(() => {
|
|
4343
4625
|
let baseProps = {
|
|
4344
4626
|
...defaultProps$s
|
|
@@ -4357,7 +4639,7 @@ function ShaderComponent$s(props) {
|
|
|
4357
4639
|
let uniformsMap = null;
|
|
4358
4640
|
const getUniformsMap = () => {
|
|
4359
4641
|
if (!uniformsMap) {
|
|
4360
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4642
|
+
uniformsMap = createUniformsMap(componentDefinition$v, effectiveProps(), instanceId);
|
|
4361
4643
|
}
|
|
4362
4644
|
return uniformsMap;
|
|
4363
4645
|
};
|
|
@@ -4382,7 +4664,7 @@ function ShaderComponent$s(props) {
|
|
|
4382
4664
|
renderOrder: props.renderOrder || 0,
|
|
4383
4665
|
transform: effectiveTransform()
|
|
4384
4666
|
};
|
|
4385
|
-
parentRegister(instanceId, componentDefinition$
|
|
4667
|
+
parentRegister(instanceId, componentDefinition$v.fragmentNode, parentId, metadata, uniforms, componentDefinition$v);
|
|
4386
4668
|
isRegistered = true;
|
|
4387
4669
|
} catch (error) {
|
|
4388
4670
|
console.error("Error registering shader node:", error);
|
|
@@ -4458,8 +4740,8 @@ const defaultProps$r = {
|
|
|
4458
4740
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4459
4741
|
};
|
|
4460
4742
|
try {
|
|
4461
|
-
if (componentDefinition$
|
|
4462
|
-
Object.entries(componentDefinition$
|
|
4743
|
+
if (componentDefinition$w && componentDefinition$w.props) {
|
|
4744
|
+
Object.entries(componentDefinition$w.props).forEach(([key, config]) => {
|
|
4463
4745
|
const propConfig = config;
|
|
4464
4746
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4465
4747
|
defaultProps$r[key] = propConfig.default;
|
|
@@ -4478,7 +4760,7 @@ function ShaderComponent$r(props) {
|
|
|
4478
4760
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4479
4761
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4480
4762
|
} = context;
|
|
4481
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4763
|
+
const instanceId = props.id || `${componentDefinition$w.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4482
4764
|
const effectiveProps = createMemo(() => {
|
|
4483
4765
|
let baseProps = {
|
|
4484
4766
|
...defaultProps$r
|
|
@@ -4497,7 +4779,7 @@ function ShaderComponent$r(props) {
|
|
|
4497
4779
|
let uniformsMap = null;
|
|
4498
4780
|
const getUniformsMap = () => {
|
|
4499
4781
|
if (!uniformsMap) {
|
|
4500
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4782
|
+
uniformsMap = createUniformsMap(componentDefinition$w, effectiveProps(), instanceId);
|
|
4501
4783
|
}
|
|
4502
4784
|
return uniformsMap;
|
|
4503
4785
|
};
|
|
@@ -4522,7 +4804,7 @@ function ShaderComponent$r(props) {
|
|
|
4522
4804
|
renderOrder: props.renderOrder || 0,
|
|
4523
4805
|
transform: effectiveTransform()
|
|
4524
4806
|
};
|
|
4525
|
-
parentRegister(instanceId, componentDefinition$
|
|
4807
|
+
parentRegister(instanceId, componentDefinition$w.fragmentNode, parentId, metadata, uniforms, componentDefinition$w);
|
|
4526
4808
|
isRegistered = true;
|
|
4527
4809
|
} catch (error) {
|
|
4528
4810
|
console.error("Error registering shader node:", error);
|
|
@@ -4598,8 +4880,8 @@ const defaultProps$q = {
|
|
|
4598
4880
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4599
4881
|
};
|
|
4600
4882
|
try {
|
|
4601
|
-
if (componentDefinition$
|
|
4602
|
-
Object.entries(componentDefinition$
|
|
4883
|
+
if (componentDefinition$x && componentDefinition$x.props) {
|
|
4884
|
+
Object.entries(componentDefinition$x.props).forEach(([key, config]) => {
|
|
4603
4885
|
const propConfig = config;
|
|
4604
4886
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4605
4887
|
defaultProps$q[key] = propConfig.default;
|
|
@@ -4618,7 +4900,7 @@ function ShaderComponent$q(props) {
|
|
|
4618
4900
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4619
4901
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4620
4902
|
} = context;
|
|
4621
|
-
const instanceId = props.id || `${componentDefinition$
|
|
4903
|
+
const instanceId = props.id || `${componentDefinition$x.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4622
4904
|
const effectiveProps = createMemo(() => {
|
|
4623
4905
|
let baseProps = {
|
|
4624
4906
|
...defaultProps$q
|
|
@@ -4637,7 +4919,7 @@ function ShaderComponent$q(props) {
|
|
|
4637
4919
|
let uniformsMap = null;
|
|
4638
4920
|
const getUniformsMap = () => {
|
|
4639
4921
|
if (!uniformsMap) {
|
|
4640
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
4922
|
+
uniformsMap = createUniformsMap(componentDefinition$x, effectiveProps(), instanceId);
|
|
4641
4923
|
}
|
|
4642
4924
|
return uniformsMap;
|
|
4643
4925
|
};
|
|
@@ -4662,7 +4944,7 @@ function ShaderComponent$q(props) {
|
|
|
4662
4944
|
renderOrder: props.renderOrder || 0,
|
|
4663
4945
|
transform: effectiveTransform()
|
|
4664
4946
|
};
|
|
4665
|
-
parentRegister(instanceId, componentDefinition$
|
|
4947
|
+
parentRegister(instanceId, componentDefinition$x.fragmentNode, parentId, metadata, uniforms, componentDefinition$x);
|
|
4666
4948
|
isRegistered = true;
|
|
4667
4949
|
} catch (error) {
|
|
4668
4950
|
console.error("Error registering shader node:", error);
|
|
@@ -4738,8 +5020,8 @@ const defaultProps$p = {
|
|
|
4738
5020
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4739
5021
|
};
|
|
4740
5022
|
try {
|
|
4741
|
-
if (componentDefinition$
|
|
4742
|
-
Object.entries(componentDefinition$
|
|
5023
|
+
if (componentDefinition$y && componentDefinition$y.props) {
|
|
5024
|
+
Object.entries(componentDefinition$y.props).forEach(([key, config]) => {
|
|
4743
5025
|
const propConfig = config;
|
|
4744
5026
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4745
5027
|
defaultProps$p[key] = propConfig.default;
|
|
@@ -4758,7 +5040,7 @@ function ShaderComponent$p(props) {
|
|
|
4758
5040
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4759
5041
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4760
5042
|
} = context;
|
|
4761
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5043
|
+
const instanceId = props.id || `${componentDefinition$y.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4762
5044
|
const effectiveProps = createMemo(() => {
|
|
4763
5045
|
let baseProps = {
|
|
4764
5046
|
...defaultProps$p
|
|
@@ -4777,7 +5059,7 @@ function ShaderComponent$p(props) {
|
|
|
4777
5059
|
let uniformsMap = null;
|
|
4778
5060
|
const getUniformsMap = () => {
|
|
4779
5061
|
if (!uniformsMap) {
|
|
4780
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5062
|
+
uniformsMap = createUniformsMap(componentDefinition$y, effectiveProps(), instanceId);
|
|
4781
5063
|
}
|
|
4782
5064
|
return uniformsMap;
|
|
4783
5065
|
};
|
|
@@ -4802,7 +5084,7 @@ function ShaderComponent$p(props) {
|
|
|
4802
5084
|
renderOrder: props.renderOrder || 0,
|
|
4803
5085
|
transform: effectiveTransform()
|
|
4804
5086
|
};
|
|
4805
|
-
parentRegister(instanceId, componentDefinition$
|
|
5087
|
+
parentRegister(instanceId, componentDefinition$y.fragmentNode, parentId, metadata, uniforms, componentDefinition$y);
|
|
4806
5088
|
isRegistered = true;
|
|
4807
5089
|
} catch (error) {
|
|
4808
5090
|
console.error("Error registering shader node:", error);
|
|
@@ -4878,8 +5160,8 @@ const defaultProps$o = {
|
|
|
4878
5160
|
// transform intentionally has no default - handled by effectiveTransform
|
|
4879
5161
|
};
|
|
4880
5162
|
try {
|
|
4881
|
-
if (componentDefinition$
|
|
4882
|
-
Object.entries(componentDefinition$
|
|
5163
|
+
if (componentDefinition$z && componentDefinition$z.props) {
|
|
5164
|
+
Object.entries(componentDefinition$z.props).forEach(([key, config]) => {
|
|
4883
5165
|
const propConfig = config;
|
|
4884
5166
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
4885
5167
|
defaultProps$o[key] = propConfig.default;
|
|
@@ -4898,7 +5180,7 @@ function ShaderComponent$o(props) {
|
|
|
4898
5180
|
shaderUniformUpdate: parentUniformUpdate,
|
|
4899
5181
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
4900
5182
|
} = context;
|
|
4901
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5183
|
+
const instanceId = props.id || `${componentDefinition$z.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
4902
5184
|
const effectiveProps = createMemo(() => {
|
|
4903
5185
|
let baseProps = {
|
|
4904
5186
|
...defaultProps$o
|
|
@@ -4917,7 +5199,7 @@ function ShaderComponent$o(props) {
|
|
|
4917
5199
|
let uniformsMap = null;
|
|
4918
5200
|
const getUniformsMap = () => {
|
|
4919
5201
|
if (!uniformsMap) {
|
|
4920
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5202
|
+
uniformsMap = createUniformsMap(componentDefinition$z, effectiveProps(), instanceId);
|
|
4921
5203
|
}
|
|
4922
5204
|
return uniformsMap;
|
|
4923
5205
|
};
|
|
@@ -4942,7 +5224,7 @@ function ShaderComponent$o(props) {
|
|
|
4942
5224
|
renderOrder: props.renderOrder || 0,
|
|
4943
5225
|
transform: effectiveTransform()
|
|
4944
5226
|
};
|
|
4945
|
-
parentRegister(instanceId, componentDefinition$
|
|
5227
|
+
parentRegister(instanceId, componentDefinition$z.fragmentNode, parentId, metadata, uniforms, componentDefinition$z);
|
|
4946
5228
|
isRegistered = true;
|
|
4947
5229
|
} catch (error) {
|
|
4948
5230
|
console.error("Error registering shader node:", error);
|
|
@@ -5018,8 +5300,8 @@ const defaultProps$n = {
|
|
|
5018
5300
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5019
5301
|
};
|
|
5020
5302
|
try {
|
|
5021
|
-
if (componentDefinition$
|
|
5022
|
-
Object.entries(componentDefinition$
|
|
5303
|
+
if (componentDefinition$A && componentDefinition$A.props) {
|
|
5304
|
+
Object.entries(componentDefinition$A.props).forEach(([key, config]) => {
|
|
5023
5305
|
const propConfig = config;
|
|
5024
5306
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5025
5307
|
defaultProps$n[key] = propConfig.default;
|
|
@@ -5038,7 +5320,7 @@ function ShaderComponent$n(props) {
|
|
|
5038
5320
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5039
5321
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5040
5322
|
} = context;
|
|
5041
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5323
|
+
const instanceId = props.id || `${componentDefinition$A.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5042
5324
|
const effectiveProps = createMemo(() => {
|
|
5043
5325
|
let baseProps = {
|
|
5044
5326
|
...defaultProps$n
|
|
@@ -5057,7 +5339,7 @@ function ShaderComponent$n(props) {
|
|
|
5057
5339
|
let uniformsMap = null;
|
|
5058
5340
|
const getUniformsMap = () => {
|
|
5059
5341
|
if (!uniformsMap) {
|
|
5060
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5342
|
+
uniformsMap = createUniformsMap(componentDefinition$A, effectiveProps(), instanceId);
|
|
5061
5343
|
}
|
|
5062
5344
|
return uniformsMap;
|
|
5063
5345
|
};
|
|
@@ -5082,7 +5364,7 @@ function ShaderComponent$n(props) {
|
|
|
5082
5364
|
renderOrder: props.renderOrder || 0,
|
|
5083
5365
|
transform: effectiveTransform()
|
|
5084
5366
|
};
|
|
5085
|
-
parentRegister(instanceId, componentDefinition$
|
|
5367
|
+
parentRegister(instanceId, componentDefinition$A.fragmentNode, parentId, metadata, uniforms, componentDefinition$A);
|
|
5086
5368
|
isRegistered = true;
|
|
5087
5369
|
} catch (error) {
|
|
5088
5370
|
console.error("Error registering shader node:", error);
|
|
@@ -5158,8 +5440,8 @@ const defaultProps$m = {
|
|
|
5158
5440
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5159
5441
|
};
|
|
5160
5442
|
try {
|
|
5161
|
-
if (componentDefinition$
|
|
5162
|
-
Object.entries(componentDefinition$
|
|
5443
|
+
if (componentDefinition$B && componentDefinition$B.props) {
|
|
5444
|
+
Object.entries(componentDefinition$B.props).forEach(([key, config]) => {
|
|
5163
5445
|
const propConfig = config;
|
|
5164
5446
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5165
5447
|
defaultProps$m[key] = propConfig.default;
|
|
@@ -5178,7 +5460,7 @@ function ShaderComponent$m(props) {
|
|
|
5178
5460
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5179
5461
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5180
5462
|
} = context;
|
|
5181
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5463
|
+
const instanceId = props.id || `${componentDefinition$B.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5182
5464
|
const effectiveProps = createMemo(() => {
|
|
5183
5465
|
let baseProps = {
|
|
5184
5466
|
...defaultProps$m
|
|
@@ -5197,7 +5479,7 @@ function ShaderComponent$m(props) {
|
|
|
5197
5479
|
let uniformsMap = null;
|
|
5198
5480
|
const getUniformsMap = () => {
|
|
5199
5481
|
if (!uniformsMap) {
|
|
5200
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5482
|
+
uniformsMap = createUniformsMap(componentDefinition$B, effectiveProps(), instanceId);
|
|
5201
5483
|
}
|
|
5202
5484
|
return uniformsMap;
|
|
5203
5485
|
};
|
|
@@ -5222,7 +5504,7 @@ function ShaderComponent$m(props) {
|
|
|
5222
5504
|
renderOrder: props.renderOrder || 0,
|
|
5223
5505
|
transform: effectiveTransform()
|
|
5224
5506
|
};
|
|
5225
|
-
parentRegister(instanceId, componentDefinition$
|
|
5507
|
+
parentRegister(instanceId, componentDefinition$B.fragmentNode, parentId, metadata, uniforms, componentDefinition$B);
|
|
5226
5508
|
isRegistered = true;
|
|
5227
5509
|
} catch (error) {
|
|
5228
5510
|
console.error("Error registering shader node:", error);
|
|
@@ -5298,8 +5580,8 @@ const defaultProps$l = {
|
|
|
5298
5580
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5299
5581
|
};
|
|
5300
5582
|
try {
|
|
5301
|
-
if (componentDefinition$
|
|
5302
|
-
Object.entries(componentDefinition$
|
|
5583
|
+
if (componentDefinition$C && componentDefinition$C.props) {
|
|
5584
|
+
Object.entries(componentDefinition$C.props).forEach(([key, config]) => {
|
|
5303
5585
|
const propConfig = config;
|
|
5304
5586
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5305
5587
|
defaultProps$l[key] = propConfig.default;
|
|
@@ -5318,7 +5600,7 @@ function ShaderComponent$l(props) {
|
|
|
5318
5600
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5319
5601
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5320
5602
|
} = context;
|
|
5321
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5603
|
+
const instanceId = props.id || `${componentDefinition$C.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5322
5604
|
const effectiveProps = createMemo(() => {
|
|
5323
5605
|
let baseProps = {
|
|
5324
5606
|
...defaultProps$l
|
|
@@ -5337,7 +5619,7 @@ function ShaderComponent$l(props) {
|
|
|
5337
5619
|
let uniformsMap = null;
|
|
5338
5620
|
const getUniformsMap = () => {
|
|
5339
5621
|
if (!uniformsMap) {
|
|
5340
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5622
|
+
uniformsMap = createUniformsMap(componentDefinition$C, effectiveProps(), instanceId);
|
|
5341
5623
|
}
|
|
5342
5624
|
return uniformsMap;
|
|
5343
5625
|
};
|
|
@@ -5362,7 +5644,7 @@ function ShaderComponent$l(props) {
|
|
|
5362
5644
|
renderOrder: props.renderOrder || 0,
|
|
5363
5645
|
transform: effectiveTransform()
|
|
5364
5646
|
};
|
|
5365
|
-
parentRegister(instanceId, componentDefinition$
|
|
5647
|
+
parentRegister(instanceId, componentDefinition$C.fragmentNode, parentId, metadata, uniforms, componentDefinition$C);
|
|
5366
5648
|
isRegistered = true;
|
|
5367
5649
|
} catch (error) {
|
|
5368
5650
|
console.error("Error registering shader node:", error);
|
|
@@ -5438,8 +5720,8 @@ const defaultProps$k = {
|
|
|
5438
5720
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5439
5721
|
};
|
|
5440
5722
|
try {
|
|
5441
|
-
if (componentDefinition$
|
|
5442
|
-
Object.entries(componentDefinition$
|
|
5723
|
+
if (componentDefinition$D && componentDefinition$D.props) {
|
|
5724
|
+
Object.entries(componentDefinition$D.props).forEach(([key, config]) => {
|
|
5443
5725
|
const propConfig = config;
|
|
5444
5726
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5445
5727
|
defaultProps$k[key] = propConfig.default;
|
|
@@ -5458,7 +5740,7 @@ function ShaderComponent$k(props) {
|
|
|
5458
5740
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5459
5741
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5460
5742
|
} = context;
|
|
5461
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5743
|
+
const instanceId = props.id || `${componentDefinition$D.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5462
5744
|
const effectiveProps = createMemo(() => {
|
|
5463
5745
|
let baseProps = {
|
|
5464
5746
|
...defaultProps$k
|
|
@@ -5477,7 +5759,7 @@ function ShaderComponent$k(props) {
|
|
|
5477
5759
|
let uniformsMap = null;
|
|
5478
5760
|
const getUniformsMap = () => {
|
|
5479
5761
|
if (!uniformsMap) {
|
|
5480
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5762
|
+
uniformsMap = createUniformsMap(componentDefinition$D, effectiveProps(), instanceId);
|
|
5481
5763
|
}
|
|
5482
5764
|
return uniformsMap;
|
|
5483
5765
|
};
|
|
@@ -5502,7 +5784,7 @@ function ShaderComponent$k(props) {
|
|
|
5502
5784
|
renderOrder: props.renderOrder || 0,
|
|
5503
5785
|
transform: effectiveTransform()
|
|
5504
5786
|
};
|
|
5505
|
-
parentRegister(instanceId, componentDefinition$
|
|
5787
|
+
parentRegister(instanceId, componentDefinition$D.fragmentNode, parentId, metadata, uniforms, componentDefinition$D);
|
|
5506
5788
|
isRegistered = true;
|
|
5507
5789
|
} catch (error) {
|
|
5508
5790
|
console.error("Error registering shader node:", error);
|
|
@@ -5578,8 +5860,8 @@ const defaultProps$j = {
|
|
|
5578
5860
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5579
5861
|
};
|
|
5580
5862
|
try {
|
|
5581
|
-
if (componentDefinition$
|
|
5582
|
-
Object.entries(componentDefinition$
|
|
5863
|
+
if (componentDefinition$E && componentDefinition$E.props) {
|
|
5864
|
+
Object.entries(componentDefinition$E.props).forEach(([key, config]) => {
|
|
5583
5865
|
const propConfig = config;
|
|
5584
5866
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5585
5867
|
defaultProps$j[key] = propConfig.default;
|
|
@@ -5598,7 +5880,7 @@ function ShaderComponent$j(props) {
|
|
|
5598
5880
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5599
5881
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5600
5882
|
} = context;
|
|
5601
|
-
const instanceId = props.id || `${componentDefinition$
|
|
5883
|
+
const instanceId = props.id || `${componentDefinition$E.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5602
5884
|
const effectiveProps = createMemo(() => {
|
|
5603
5885
|
let baseProps = {
|
|
5604
5886
|
...defaultProps$j
|
|
@@ -5617,7 +5899,7 @@ function ShaderComponent$j(props) {
|
|
|
5617
5899
|
let uniformsMap = null;
|
|
5618
5900
|
const getUniformsMap = () => {
|
|
5619
5901
|
if (!uniformsMap) {
|
|
5620
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
5902
|
+
uniformsMap = createUniformsMap(componentDefinition$E, effectiveProps(), instanceId);
|
|
5621
5903
|
}
|
|
5622
5904
|
return uniformsMap;
|
|
5623
5905
|
};
|
|
@@ -5642,7 +5924,7 @@ function ShaderComponent$j(props) {
|
|
|
5642
5924
|
renderOrder: props.renderOrder || 0,
|
|
5643
5925
|
transform: effectiveTransform()
|
|
5644
5926
|
};
|
|
5645
|
-
parentRegister(instanceId, componentDefinition$
|
|
5927
|
+
parentRegister(instanceId, componentDefinition$E.fragmentNode, parentId, metadata, uniforms, componentDefinition$E);
|
|
5646
5928
|
isRegistered = true;
|
|
5647
5929
|
} catch (error) {
|
|
5648
5930
|
console.error("Error registering shader node:", error);
|
|
@@ -5718,8 +6000,8 @@ const defaultProps$i = {
|
|
|
5718
6000
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5719
6001
|
};
|
|
5720
6002
|
try {
|
|
5721
|
-
if (componentDefinition$
|
|
5722
|
-
Object.entries(componentDefinition$
|
|
6003
|
+
if (componentDefinition$F && componentDefinition$F.props) {
|
|
6004
|
+
Object.entries(componentDefinition$F.props).forEach(([key, config]) => {
|
|
5723
6005
|
const propConfig = config;
|
|
5724
6006
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5725
6007
|
defaultProps$i[key] = propConfig.default;
|
|
@@ -5738,7 +6020,7 @@ function ShaderComponent$i(props) {
|
|
|
5738
6020
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5739
6021
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5740
6022
|
} = context;
|
|
5741
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6023
|
+
const instanceId = props.id || `${componentDefinition$F.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5742
6024
|
const effectiveProps = createMemo(() => {
|
|
5743
6025
|
let baseProps = {
|
|
5744
6026
|
...defaultProps$i
|
|
@@ -5757,7 +6039,7 @@ function ShaderComponent$i(props) {
|
|
|
5757
6039
|
let uniformsMap = null;
|
|
5758
6040
|
const getUniformsMap = () => {
|
|
5759
6041
|
if (!uniformsMap) {
|
|
5760
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6042
|
+
uniformsMap = createUniformsMap(componentDefinition$F, effectiveProps(), instanceId);
|
|
5761
6043
|
}
|
|
5762
6044
|
return uniformsMap;
|
|
5763
6045
|
};
|
|
@@ -5782,7 +6064,7 @@ function ShaderComponent$i(props) {
|
|
|
5782
6064
|
renderOrder: props.renderOrder || 0,
|
|
5783
6065
|
transform: effectiveTransform()
|
|
5784
6066
|
};
|
|
5785
|
-
parentRegister(instanceId, componentDefinition$
|
|
6067
|
+
parentRegister(instanceId, componentDefinition$F.fragmentNode, parentId, metadata, uniforms, componentDefinition$F);
|
|
5786
6068
|
isRegistered = true;
|
|
5787
6069
|
} catch (error) {
|
|
5788
6070
|
console.error("Error registering shader node:", error);
|
|
@@ -5858,8 +6140,8 @@ const defaultProps$h = {
|
|
|
5858
6140
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5859
6141
|
};
|
|
5860
6142
|
try {
|
|
5861
|
-
if (componentDefinition$
|
|
5862
|
-
Object.entries(componentDefinition$
|
|
6143
|
+
if (componentDefinition$G && componentDefinition$G.props) {
|
|
6144
|
+
Object.entries(componentDefinition$G.props).forEach(([key, config]) => {
|
|
5863
6145
|
const propConfig = config;
|
|
5864
6146
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
5865
6147
|
defaultProps$h[key] = propConfig.default;
|
|
@@ -5878,7 +6160,7 @@ function ShaderComponent$h(props) {
|
|
|
5878
6160
|
shaderUniformUpdate: parentUniformUpdate,
|
|
5879
6161
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
5880
6162
|
} = context;
|
|
5881
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6163
|
+
const instanceId = props.id || `${componentDefinition$G.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
5882
6164
|
const effectiveProps = createMemo(() => {
|
|
5883
6165
|
let baseProps = {
|
|
5884
6166
|
...defaultProps$h
|
|
@@ -5897,7 +6179,7 @@ function ShaderComponent$h(props) {
|
|
|
5897
6179
|
let uniformsMap = null;
|
|
5898
6180
|
const getUniformsMap = () => {
|
|
5899
6181
|
if (!uniformsMap) {
|
|
5900
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6182
|
+
uniformsMap = createUniformsMap(componentDefinition$G, effectiveProps(), instanceId);
|
|
5901
6183
|
}
|
|
5902
6184
|
return uniformsMap;
|
|
5903
6185
|
};
|
|
@@ -5922,7 +6204,7 @@ function ShaderComponent$h(props) {
|
|
|
5922
6204
|
renderOrder: props.renderOrder || 0,
|
|
5923
6205
|
transform: effectiveTransform()
|
|
5924
6206
|
};
|
|
5925
|
-
parentRegister(instanceId, componentDefinition$
|
|
6207
|
+
parentRegister(instanceId, componentDefinition$G.fragmentNode, parentId, metadata, uniforms, componentDefinition$G);
|
|
5926
6208
|
isRegistered = true;
|
|
5927
6209
|
} catch (error) {
|
|
5928
6210
|
console.error("Error registering shader node:", error);
|
|
@@ -5998,8 +6280,8 @@ const defaultProps$g = {
|
|
|
5998
6280
|
// transform intentionally has no default - handled by effectiveTransform
|
|
5999
6281
|
};
|
|
6000
6282
|
try {
|
|
6001
|
-
if (componentDefinition$
|
|
6002
|
-
Object.entries(componentDefinition$
|
|
6283
|
+
if (componentDefinition$H && componentDefinition$H.props) {
|
|
6284
|
+
Object.entries(componentDefinition$H.props).forEach(([key, config]) => {
|
|
6003
6285
|
const propConfig = config;
|
|
6004
6286
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6005
6287
|
defaultProps$g[key] = propConfig.default;
|
|
@@ -6018,7 +6300,7 @@ function ShaderComponent$g(props) {
|
|
|
6018
6300
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6019
6301
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6020
6302
|
} = context;
|
|
6021
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6303
|
+
const instanceId = props.id || `${componentDefinition$H.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6022
6304
|
const effectiveProps = createMemo(() => {
|
|
6023
6305
|
let baseProps = {
|
|
6024
6306
|
...defaultProps$g
|
|
@@ -6037,7 +6319,7 @@ function ShaderComponent$g(props) {
|
|
|
6037
6319
|
let uniformsMap = null;
|
|
6038
6320
|
const getUniformsMap = () => {
|
|
6039
6321
|
if (!uniformsMap) {
|
|
6040
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6322
|
+
uniformsMap = createUniformsMap(componentDefinition$H, effectiveProps(), instanceId);
|
|
6041
6323
|
}
|
|
6042
6324
|
return uniformsMap;
|
|
6043
6325
|
};
|
|
@@ -6062,7 +6344,7 @@ function ShaderComponent$g(props) {
|
|
|
6062
6344
|
renderOrder: props.renderOrder || 0,
|
|
6063
6345
|
transform: effectiveTransform()
|
|
6064
6346
|
};
|
|
6065
|
-
parentRegister(instanceId, componentDefinition$
|
|
6347
|
+
parentRegister(instanceId, componentDefinition$H.fragmentNode, parentId, metadata, uniforms, componentDefinition$H);
|
|
6066
6348
|
isRegistered = true;
|
|
6067
6349
|
} catch (error) {
|
|
6068
6350
|
console.error("Error registering shader node:", error);
|
|
@@ -6138,8 +6420,8 @@ const defaultProps$f = {
|
|
|
6138
6420
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6139
6421
|
};
|
|
6140
6422
|
try {
|
|
6141
|
-
if (componentDefinition$
|
|
6142
|
-
Object.entries(componentDefinition$
|
|
6423
|
+
if (componentDefinition$I && componentDefinition$I.props) {
|
|
6424
|
+
Object.entries(componentDefinition$I.props).forEach(([key, config]) => {
|
|
6143
6425
|
const propConfig = config;
|
|
6144
6426
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6145
6427
|
defaultProps$f[key] = propConfig.default;
|
|
@@ -6158,7 +6440,7 @@ function ShaderComponent$f(props) {
|
|
|
6158
6440
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6159
6441
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6160
6442
|
} = context;
|
|
6161
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6443
|
+
const instanceId = props.id || `${componentDefinition$I.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6162
6444
|
const effectiveProps = createMemo(() => {
|
|
6163
6445
|
let baseProps = {
|
|
6164
6446
|
...defaultProps$f
|
|
@@ -6177,7 +6459,7 @@ function ShaderComponent$f(props) {
|
|
|
6177
6459
|
let uniformsMap = null;
|
|
6178
6460
|
const getUniformsMap = () => {
|
|
6179
6461
|
if (!uniformsMap) {
|
|
6180
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6462
|
+
uniformsMap = createUniformsMap(componentDefinition$I, effectiveProps(), instanceId);
|
|
6181
6463
|
}
|
|
6182
6464
|
return uniformsMap;
|
|
6183
6465
|
};
|
|
@@ -6202,7 +6484,7 @@ function ShaderComponent$f(props) {
|
|
|
6202
6484
|
renderOrder: props.renderOrder || 0,
|
|
6203
6485
|
transform: effectiveTransform()
|
|
6204
6486
|
};
|
|
6205
|
-
parentRegister(instanceId, componentDefinition$
|
|
6487
|
+
parentRegister(instanceId, componentDefinition$I.fragmentNode, parentId, metadata, uniforms, componentDefinition$I);
|
|
6206
6488
|
isRegistered = true;
|
|
6207
6489
|
} catch (error) {
|
|
6208
6490
|
console.error("Error registering shader node:", error);
|
|
@@ -6278,8 +6560,8 @@ const defaultProps$e = {
|
|
|
6278
6560
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6279
6561
|
};
|
|
6280
6562
|
try {
|
|
6281
|
-
if (componentDefinition$
|
|
6282
|
-
Object.entries(componentDefinition$
|
|
6563
|
+
if (componentDefinition$J && componentDefinition$J.props) {
|
|
6564
|
+
Object.entries(componentDefinition$J.props).forEach(([key, config]) => {
|
|
6283
6565
|
const propConfig = config;
|
|
6284
6566
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6285
6567
|
defaultProps$e[key] = propConfig.default;
|
|
@@ -6298,7 +6580,7 @@ function ShaderComponent$e(props) {
|
|
|
6298
6580
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6299
6581
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6300
6582
|
} = context;
|
|
6301
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6583
|
+
const instanceId = props.id || `${componentDefinition$J.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6302
6584
|
const effectiveProps = createMemo(() => {
|
|
6303
6585
|
let baseProps = {
|
|
6304
6586
|
...defaultProps$e
|
|
@@ -6317,7 +6599,7 @@ function ShaderComponent$e(props) {
|
|
|
6317
6599
|
let uniformsMap = null;
|
|
6318
6600
|
const getUniformsMap = () => {
|
|
6319
6601
|
if (!uniformsMap) {
|
|
6320
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6602
|
+
uniformsMap = createUniformsMap(componentDefinition$J, effectiveProps(), instanceId);
|
|
6321
6603
|
}
|
|
6322
6604
|
return uniformsMap;
|
|
6323
6605
|
};
|
|
@@ -6342,7 +6624,7 @@ function ShaderComponent$e(props) {
|
|
|
6342
6624
|
renderOrder: props.renderOrder || 0,
|
|
6343
6625
|
transform: effectiveTransform()
|
|
6344
6626
|
};
|
|
6345
|
-
parentRegister(instanceId, componentDefinition$
|
|
6627
|
+
parentRegister(instanceId, componentDefinition$J.fragmentNode, parentId, metadata, uniforms, componentDefinition$J);
|
|
6346
6628
|
isRegistered = true;
|
|
6347
6629
|
} catch (error) {
|
|
6348
6630
|
console.error("Error registering shader node:", error);
|
|
@@ -6418,8 +6700,8 @@ const defaultProps$d = {
|
|
|
6418
6700
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6419
6701
|
};
|
|
6420
6702
|
try {
|
|
6421
|
-
if (componentDefinition$
|
|
6422
|
-
Object.entries(componentDefinition$
|
|
6703
|
+
if (componentDefinition$K && componentDefinition$K.props) {
|
|
6704
|
+
Object.entries(componentDefinition$K.props).forEach(([key, config]) => {
|
|
6423
6705
|
const propConfig = config;
|
|
6424
6706
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6425
6707
|
defaultProps$d[key] = propConfig.default;
|
|
@@ -6438,7 +6720,7 @@ function ShaderComponent$d(props) {
|
|
|
6438
6720
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6439
6721
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6440
6722
|
} = context;
|
|
6441
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6723
|
+
const instanceId = props.id || `${componentDefinition$K.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6442
6724
|
const effectiveProps = createMemo(() => {
|
|
6443
6725
|
let baseProps = {
|
|
6444
6726
|
...defaultProps$d
|
|
@@ -6457,7 +6739,7 @@ function ShaderComponent$d(props) {
|
|
|
6457
6739
|
let uniformsMap = null;
|
|
6458
6740
|
const getUniformsMap = () => {
|
|
6459
6741
|
if (!uniformsMap) {
|
|
6460
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6742
|
+
uniformsMap = createUniformsMap(componentDefinition$K, effectiveProps(), instanceId);
|
|
6461
6743
|
}
|
|
6462
6744
|
return uniformsMap;
|
|
6463
6745
|
};
|
|
@@ -6482,7 +6764,7 @@ function ShaderComponent$d(props) {
|
|
|
6482
6764
|
renderOrder: props.renderOrder || 0,
|
|
6483
6765
|
transform: effectiveTransform()
|
|
6484
6766
|
};
|
|
6485
|
-
parentRegister(instanceId, componentDefinition$
|
|
6767
|
+
parentRegister(instanceId, componentDefinition$K.fragmentNode, parentId, metadata, uniforms, componentDefinition$K);
|
|
6486
6768
|
isRegistered = true;
|
|
6487
6769
|
} catch (error) {
|
|
6488
6770
|
console.error("Error registering shader node:", error);
|
|
@@ -6558,8 +6840,8 @@ const defaultProps$c = {
|
|
|
6558
6840
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6559
6841
|
};
|
|
6560
6842
|
try {
|
|
6561
|
-
if (componentDefinition$
|
|
6562
|
-
Object.entries(componentDefinition$
|
|
6843
|
+
if (componentDefinition$L && componentDefinition$L.props) {
|
|
6844
|
+
Object.entries(componentDefinition$L.props).forEach(([key, config]) => {
|
|
6563
6845
|
const propConfig = config;
|
|
6564
6846
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6565
6847
|
defaultProps$c[key] = propConfig.default;
|
|
@@ -6578,7 +6860,7 @@ function ShaderComponent$c(props) {
|
|
|
6578
6860
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6579
6861
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6580
6862
|
} = context;
|
|
6581
|
-
const instanceId = props.id || `${componentDefinition$
|
|
6863
|
+
const instanceId = props.id || `${componentDefinition$L.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6582
6864
|
const effectiveProps = createMemo(() => {
|
|
6583
6865
|
let baseProps = {
|
|
6584
6866
|
...defaultProps$c
|
|
@@ -6597,7 +6879,7 @@ function ShaderComponent$c(props) {
|
|
|
6597
6879
|
let uniformsMap = null;
|
|
6598
6880
|
const getUniformsMap = () => {
|
|
6599
6881
|
if (!uniformsMap) {
|
|
6600
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
6882
|
+
uniformsMap = createUniformsMap(componentDefinition$L, effectiveProps(), instanceId);
|
|
6601
6883
|
}
|
|
6602
6884
|
return uniformsMap;
|
|
6603
6885
|
};
|
|
@@ -6622,7 +6904,7 @@ function ShaderComponent$c(props) {
|
|
|
6622
6904
|
renderOrder: props.renderOrder || 0,
|
|
6623
6905
|
transform: effectiveTransform()
|
|
6624
6906
|
};
|
|
6625
|
-
parentRegister(instanceId, componentDefinition$
|
|
6907
|
+
parentRegister(instanceId, componentDefinition$L.fragmentNode, parentId, metadata, uniforms, componentDefinition$L);
|
|
6626
6908
|
isRegistered = true;
|
|
6627
6909
|
} catch (error) {
|
|
6628
6910
|
console.error("Error registering shader node:", error);
|
|
@@ -6698,8 +6980,8 @@ const defaultProps$b = {
|
|
|
6698
6980
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6699
6981
|
};
|
|
6700
6982
|
try {
|
|
6701
|
-
if (componentDefinition$
|
|
6702
|
-
Object.entries(componentDefinition$
|
|
6983
|
+
if (componentDefinition$M && componentDefinition$M.props) {
|
|
6984
|
+
Object.entries(componentDefinition$M.props).forEach(([key, config]) => {
|
|
6703
6985
|
const propConfig = config;
|
|
6704
6986
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6705
6987
|
defaultProps$b[key] = propConfig.default;
|
|
@@ -6718,7 +7000,7 @@ function ShaderComponent$b(props) {
|
|
|
6718
7000
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6719
7001
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6720
7002
|
} = context;
|
|
6721
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7003
|
+
const instanceId = props.id || `${componentDefinition$M.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6722
7004
|
const effectiveProps = createMemo(() => {
|
|
6723
7005
|
let baseProps = {
|
|
6724
7006
|
...defaultProps$b
|
|
@@ -6737,7 +7019,7 @@ function ShaderComponent$b(props) {
|
|
|
6737
7019
|
let uniformsMap = null;
|
|
6738
7020
|
const getUniformsMap = () => {
|
|
6739
7021
|
if (!uniformsMap) {
|
|
6740
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7022
|
+
uniformsMap = createUniformsMap(componentDefinition$M, effectiveProps(), instanceId);
|
|
6741
7023
|
}
|
|
6742
7024
|
return uniformsMap;
|
|
6743
7025
|
};
|
|
@@ -6762,7 +7044,7 @@ function ShaderComponent$b(props) {
|
|
|
6762
7044
|
renderOrder: props.renderOrder || 0,
|
|
6763
7045
|
transform: effectiveTransform()
|
|
6764
7046
|
};
|
|
6765
|
-
parentRegister(instanceId, componentDefinition$
|
|
7047
|
+
parentRegister(instanceId, componentDefinition$M.fragmentNode, parentId, metadata, uniforms, componentDefinition$M);
|
|
6766
7048
|
isRegistered = true;
|
|
6767
7049
|
} catch (error) {
|
|
6768
7050
|
console.error("Error registering shader node:", error);
|
|
@@ -6838,8 +7120,8 @@ const defaultProps$a = {
|
|
|
6838
7120
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6839
7121
|
};
|
|
6840
7122
|
try {
|
|
6841
|
-
if (componentDefinition$
|
|
6842
|
-
Object.entries(componentDefinition$
|
|
7123
|
+
if (componentDefinition$N && componentDefinition$N.props) {
|
|
7124
|
+
Object.entries(componentDefinition$N.props).forEach(([key, config]) => {
|
|
6843
7125
|
const propConfig = config;
|
|
6844
7126
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6845
7127
|
defaultProps$a[key] = propConfig.default;
|
|
@@ -6858,7 +7140,7 @@ function ShaderComponent$a(props) {
|
|
|
6858
7140
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6859
7141
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
6860
7142
|
} = context;
|
|
6861
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7143
|
+
const instanceId = props.id || `${componentDefinition$N.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6862
7144
|
const effectiveProps = createMemo(() => {
|
|
6863
7145
|
let baseProps = {
|
|
6864
7146
|
...defaultProps$a
|
|
@@ -6877,7 +7159,7 @@ function ShaderComponent$a(props) {
|
|
|
6877
7159
|
let uniformsMap = null;
|
|
6878
7160
|
const getUniformsMap = () => {
|
|
6879
7161
|
if (!uniformsMap) {
|
|
6880
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7162
|
+
uniformsMap = createUniformsMap(componentDefinition$N, effectiveProps(), instanceId);
|
|
6881
7163
|
}
|
|
6882
7164
|
return uniformsMap;
|
|
6883
7165
|
};
|
|
@@ -6902,7 +7184,7 @@ function ShaderComponent$a(props) {
|
|
|
6902
7184
|
renderOrder: props.renderOrder || 0,
|
|
6903
7185
|
transform: effectiveTransform()
|
|
6904
7186
|
};
|
|
6905
|
-
parentRegister(instanceId, componentDefinition$
|
|
7187
|
+
parentRegister(instanceId, componentDefinition$N.fragmentNode, parentId, metadata, uniforms, componentDefinition$N);
|
|
6906
7188
|
isRegistered = true;
|
|
6907
7189
|
} catch (error) {
|
|
6908
7190
|
console.error("Error registering shader node:", error);
|
|
@@ -6978,8 +7260,8 @@ const defaultProps$9 = {
|
|
|
6978
7260
|
// transform intentionally has no default - handled by effectiveTransform
|
|
6979
7261
|
};
|
|
6980
7262
|
try {
|
|
6981
|
-
if (componentDefinition$
|
|
6982
|
-
Object.entries(componentDefinition$
|
|
7263
|
+
if (componentDefinition$O && componentDefinition$O.props) {
|
|
7264
|
+
Object.entries(componentDefinition$O.props).forEach(([key, config]) => {
|
|
6983
7265
|
const propConfig = config;
|
|
6984
7266
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
6985
7267
|
defaultProps$9[key] = propConfig.default;
|
|
@@ -6998,7 +7280,7 @@ function ShaderComponent$9(props) {
|
|
|
6998
7280
|
shaderUniformUpdate: parentUniformUpdate,
|
|
6999
7281
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7000
7282
|
} = context;
|
|
7001
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7283
|
+
const instanceId = props.id || `${componentDefinition$O.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7002
7284
|
const effectiveProps = createMemo(() => {
|
|
7003
7285
|
let baseProps = {
|
|
7004
7286
|
...defaultProps$9
|
|
@@ -7017,7 +7299,7 @@ function ShaderComponent$9(props) {
|
|
|
7017
7299
|
let uniformsMap = null;
|
|
7018
7300
|
const getUniformsMap = () => {
|
|
7019
7301
|
if (!uniformsMap) {
|
|
7020
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7302
|
+
uniformsMap = createUniformsMap(componentDefinition$O, effectiveProps(), instanceId);
|
|
7021
7303
|
}
|
|
7022
7304
|
return uniformsMap;
|
|
7023
7305
|
};
|
|
@@ -7042,7 +7324,7 @@ function ShaderComponent$9(props) {
|
|
|
7042
7324
|
renderOrder: props.renderOrder || 0,
|
|
7043
7325
|
transform: effectiveTransform()
|
|
7044
7326
|
};
|
|
7045
|
-
parentRegister(instanceId, componentDefinition$
|
|
7327
|
+
parentRegister(instanceId, componentDefinition$O.fragmentNode, parentId, metadata, uniforms, componentDefinition$O);
|
|
7046
7328
|
isRegistered = true;
|
|
7047
7329
|
} catch (error) {
|
|
7048
7330
|
console.error("Error registering shader node:", error);
|
|
@@ -7118,8 +7400,8 @@ const defaultProps$8 = {
|
|
|
7118
7400
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7119
7401
|
};
|
|
7120
7402
|
try {
|
|
7121
|
-
if (componentDefinition$
|
|
7122
|
-
Object.entries(componentDefinition$
|
|
7403
|
+
if (componentDefinition$P && componentDefinition$P.props) {
|
|
7404
|
+
Object.entries(componentDefinition$P.props).forEach(([key, config]) => {
|
|
7123
7405
|
const propConfig = config;
|
|
7124
7406
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7125
7407
|
defaultProps$8[key] = propConfig.default;
|
|
@@ -7138,7 +7420,7 @@ function ShaderComponent$8(props) {
|
|
|
7138
7420
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7139
7421
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7140
7422
|
} = context;
|
|
7141
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7423
|
+
const instanceId = props.id || `${componentDefinition$P.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7142
7424
|
const effectiveProps = createMemo(() => {
|
|
7143
7425
|
let baseProps = {
|
|
7144
7426
|
...defaultProps$8
|
|
@@ -7157,7 +7439,7 @@ function ShaderComponent$8(props) {
|
|
|
7157
7439
|
let uniformsMap = null;
|
|
7158
7440
|
const getUniformsMap = () => {
|
|
7159
7441
|
if (!uniformsMap) {
|
|
7160
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7442
|
+
uniformsMap = createUniformsMap(componentDefinition$P, effectiveProps(), instanceId);
|
|
7161
7443
|
}
|
|
7162
7444
|
return uniformsMap;
|
|
7163
7445
|
};
|
|
@@ -7182,7 +7464,7 @@ function ShaderComponent$8(props) {
|
|
|
7182
7464
|
renderOrder: props.renderOrder || 0,
|
|
7183
7465
|
transform: effectiveTransform()
|
|
7184
7466
|
};
|
|
7185
|
-
parentRegister(instanceId, componentDefinition$
|
|
7467
|
+
parentRegister(instanceId, componentDefinition$P.fragmentNode, parentId, metadata, uniforms, componentDefinition$P);
|
|
7186
7468
|
isRegistered = true;
|
|
7187
7469
|
} catch (error) {
|
|
7188
7470
|
console.error("Error registering shader node:", error);
|
|
@@ -7258,8 +7540,8 @@ const defaultProps$7 = {
|
|
|
7258
7540
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7259
7541
|
};
|
|
7260
7542
|
try {
|
|
7261
|
-
if (componentDefinition$
|
|
7262
|
-
Object.entries(componentDefinition$
|
|
7543
|
+
if (componentDefinition$Q && componentDefinition$Q.props) {
|
|
7544
|
+
Object.entries(componentDefinition$Q.props).forEach(([key, config]) => {
|
|
7263
7545
|
const propConfig = config;
|
|
7264
7546
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7265
7547
|
defaultProps$7[key] = propConfig.default;
|
|
@@ -7278,7 +7560,7 @@ function ShaderComponent$7(props) {
|
|
|
7278
7560
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7279
7561
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7280
7562
|
} = context;
|
|
7281
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7563
|
+
const instanceId = props.id || `${componentDefinition$Q.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7282
7564
|
const effectiveProps = createMemo(() => {
|
|
7283
7565
|
let baseProps = {
|
|
7284
7566
|
...defaultProps$7
|
|
@@ -7297,7 +7579,7 @@ function ShaderComponent$7(props) {
|
|
|
7297
7579
|
let uniformsMap = null;
|
|
7298
7580
|
const getUniformsMap = () => {
|
|
7299
7581
|
if (!uniformsMap) {
|
|
7300
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7582
|
+
uniformsMap = createUniformsMap(componentDefinition$Q, effectiveProps(), instanceId);
|
|
7301
7583
|
}
|
|
7302
7584
|
return uniformsMap;
|
|
7303
7585
|
};
|
|
@@ -7322,7 +7604,7 @@ function ShaderComponent$7(props) {
|
|
|
7322
7604
|
renderOrder: props.renderOrder || 0,
|
|
7323
7605
|
transform: effectiveTransform()
|
|
7324
7606
|
};
|
|
7325
|
-
parentRegister(instanceId, componentDefinition$
|
|
7607
|
+
parentRegister(instanceId, componentDefinition$Q.fragmentNode, parentId, metadata, uniforms, componentDefinition$Q);
|
|
7326
7608
|
isRegistered = true;
|
|
7327
7609
|
} catch (error) {
|
|
7328
7610
|
console.error("Error registering shader node:", error);
|
|
@@ -7398,8 +7680,8 @@ const defaultProps$6 = {
|
|
|
7398
7680
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7399
7681
|
};
|
|
7400
7682
|
try {
|
|
7401
|
-
if (componentDefinition$
|
|
7402
|
-
Object.entries(componentDefinition$
|
|
7683
|
+
if (componentDefinition$R && componentDefinition$R.props) {
|
|
7684
|
+
Object.entries(componentDefinition$R.props).forEach(([key, config]) => {
|
|
7403
7685
|
const propConfig = config;
|
|
7404
7686
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7405
7687
|
defaultProps$6[key] = propConfig.default;
|
|
@@ -7418,7 +7700,7 @@ function ShaderComponent$6(props) {
|
|
|
7418
7700
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7419
7701
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7420
7702
|
} = context;
|
|
7421
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7703
|
+
const instanceId = props.id || `${componentDefinition$R.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7422
7704
|
const effectiveProps = createMemo(() => {
|
|
7423
7705
|
let baseProps = {
|
|
7424
7706
|
...defaultProps$6
|
|
@@ -7437,7 +7719,7 @@ function ShaderComponent$6(props) {
|
|
|
7437
7719
|
let uniformsMap = null;
|
|
7438
7720
|
const getUniformsMap = () => {
|
|
7439
7721
|
if (!uniformsMap) {
|
|
7440
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7722
|
+
uniformsMap = createUniformsMap(componentDefinition$R, effectiveProps(), instanceId);
|
|
7441
7723
|
}
|
|
7442
7724
|
return uniformsMap;
|
|
7443
7725
|
};
|
|
@@ -7462,7 +7744,7 @@ function ShaderComponent$6(props) {
|
|
|
7462
7744
|
renderOrder: props.renderOrder || 0,
|
|
7463
7745
|
transform: effectiveTransform()
|
|
7464
7746
|
};
|
|
7465
|
-
parentRegister(instanceId, componentDefinition$
|
|
7747
|
+
parentRegister(instanceId, componentDefinition$R.fragmentNode, parentId, metadata, uniforms, componentDefinition$R);
|
|
7466
7748
|
isRegistered = true;
|
|
7467
7749
|
} catch (error) {
|
|
7468
7750
|
console.error("Error registering shader node:", error);
|
|
@@ -7538,8 +7820,8 @@ const defaultProps$5 = {
|
|
|
7538
7820
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7539
7821
|
};
|
|
7540
7822
|
try {
|
|
7541
|
-
if (componentDefinition$
|
|
7542
|
-
Object.entries(componentDefinition$
|
|
7823
|
+
if (componentDefinition$S && componentDefinition$S.props) {
|
|
7824
|
+
Object.entries(componentDefinition$S.props).forEach(([key, config]) => {
|
|
7543
7825
|
const propConfig = config;
|
|
7544
7826
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7545
7827
|
defaultProps$5[key] = propConfig.default;
|
|
@@ -7558,7 +7840,7 @@ function ShaderComponent$5(props) {
|
|
|
7558
7840
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7559
7841
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7560
7842
|
} = context;
|
|
7561
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7843
|
+
const instanceId = props.id || `${componentDefinition$S.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7562
7844
|
const effectiveProps = createMemo(() => {
|
|
7563
7845
|
let baseProps = {
|
|
7564
7846
|
...defaultProps$5
|
|
@@ -7577,7 +7859,7 @@ function ShaderComponent$5(props) {
|
|
|
7577
7859
|
let uniformsMap = null;
|
|
7578
7860
|
const getUniformsMap = () => {
|
|
7579
7861
|
if (!uniformsMap) {
|
|
7580
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
7862
|
+
uniformsMap = createUniformsMap(componentDefinition$S, effectiveProps(), instanceId);
|
|
7581
7863
|
}
|
|
7582
7864
|
return uniformsMap;
|
|
7583
7865
|
};
|
|
@@ -7602,7 +7884,7 @@ function ShaderComponent$5(props) {
|
|
|
7602
7884
|
renderOrder: props.renderOrder || 0,
|
|
7603
7885
|
transform: effectiveTransform()
|
|
7604
7886
|
};
|
|
7605
|
-
parentRegister(instanceId, componentDefinition$
|
|
7887
|
+
parentRegister(instanceId, componentDefinition$S.fragmentNode, parentId, metadata, uniforms, componentDefinition$S);
|
|
7606
7888
|
isRegistered = true;
|
|
7607
7889
|
} catch (error) {
|
|
7608
7890
|
console.error("Error registering shader node:", error);
|
|
@@ -7678,8 +7960,8 @@ const defaultProps$4 = {
|
|
|
7678
7960
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7679
7961
|
};
|
|
7680
7962
|
try {
|
|
7681
|
-
if (componentDefinition$
|
|
7682
|
-
Object.entries(componentDefinition$
|
|
7963
|
+
if (componentDefinition$T && componentDefinition$T.props) {
|
|
7964
|
+
Object.entries(componentDefinition$T.props).forEach(([key, config]) => {
|
|
7683
7965
|
const propConfig = config;
|
|
7684
7966
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7685
7967
|
defaultProps$4[key] = propConfig.default;
|
|
@@ -7698,7 +7980,7 @@ function ShaderComponent$4(props) {
|
|
|
7698
7980
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7699
7981
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7700
7982
|
} = context;
|
|
7701
|
-
const instanceId = props.id || `${componentDefinition$
|
|
7983
|
+
const instanceId = props.id || `${componentDefinition$T.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7702
7984
|
const effectiveProps = createMemo(() => {
|
|
7703
7985
|
let baseProps = {
|
|
7704
7986
|
...defaultProps$4
|
|
@@ -7717,7 +7999,7 @@ function ShaderComponent$4(props) {
|
|
|
7717
7999
|
let uniformsMap = null;
|
|
7718
8000
|
const getUniformsMap = () => {
|
|
7719
8001
|
if (!uniformsMap) {
|
|
7720
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8002
|
+
uniformsMap = createUniformsMap(componentDefinition$T, effectiveProps(), instanceId);
|
|
7721
8003
|
}
|
|
7722
8004
|
return uniformsMap;
|
|
7723
8005
|
};
|
|
@@ -7742,7 +8024,7 @@ function ShaderComponent$4(props) {
|
|
|
7742
8024
|
renderOrder: props.renderOrder || 0,
|
|
7743
8025
|
transform: effectiveTransform()
|
|
7744
8026
|
};
|
|
7745
|
-
parentRegister(instanceId, componentDefinition$
|
|
8027
|
+
parentRegister(instanceId, componentDefinition$T.fragmentNode, parentId, metadata, uniforms, componentDefinition$T);
|
|
7746
8028
|
isRegistered = true;
|
|
7747
8029
|
} catch (error) {
|
|
7748
8030
|
console.error("Error registering shader node:", error);
|
|
@@ -7818,8 +8100,8 @@ const defaultProps$3 = {
|
|
|
7818
8100
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7819
8101
|
};
|
|
7820
8102
|
try {
|
|
7821
|
-
if (componentDefinition$
|
|
7822
|
-
Object.entries(componentDefinition$
|
|
8103
|
+
if (componentDefinition$U && componentDefinition$U.props) {
|
|
8104
|
+
Object.entries(componentDefinition$U.props).forEach(([key, config]) => {
|
|
7823
8105
|
const propConfig = config;
|
|
7824
8106
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7825
8107
|
defaultProps$3[key] = propConfig.default;
|
|
@@ -7838,7 +8120,7 @@ function ShaderComponent$3(props) {
|
|
|
7838
8120
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7839
8121
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7840
8122
|
} = context;
|
|
7841
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8123
|
+
const instanceId = props.id || `${componentDefinition$U.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7842
8124
|
const effectiveProps = createMemo(() => {
|
|
7843
8125
|
let baseProps = {
|
|
7844
8126
|
...defaultProps$3
|
|
@@ -7857,7 +8139,7 @@ function ShaderComponent$3(props) {
|
|
|
7857
8139
|
let uniformsMap = null;
|
|
7858
8140
|
const getUniformsMap = () => {
|
|
7859
8141
|
if (!uniformsMap) {
|
|
7860
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8142
|
+
uniformsMap = createUniformsMap(componentDefinition$U, effectiveProps(), instanceId);
|
|
7861
8143
|
}
|
|
7862
8144
|
return uniformsMap;
|
|
7863
8145
|
};
|
|
@@ -7882,7 +8164,7 @@ function ShaderComponent$3(props) {
|
|
|
7882
8164
|
renderOrder: props.renderOrder || 0,
|
|
7883
8165
|
transform: effectiveTransform()
|
|
7884
8166
|
};
|
|
7885
|
-
parentRegister(instanceId, componentDefinition$
|
|
8167
|
+
parentRegister(instanceId, componentDefinition$U.fragmentNode, parentId, metadata, uniforms, componentDefinition$U);
|
|
7886
8168
|
isRegistered = true;
|
|
7887
8169
|
} catch (error) {
|
|
7888
8170
|
console.error("Error registering shader node:", error);
|
|
@@ -7958,8 +8240,8 @@ const defaultProps$2 = {
|
|
|
7958
8240
|
// transform intentionally has no default - handled by effectiveTransform
|
|
7959
8241
|
};
|
|
7960
8242
|
try {
|
|
7961
|
-
if (componentDefinition$
|
|
7962
|
-
Object.entries(componentDefinition$
|
|
8243
|
+
if (componentDefinition$V && componentDefinition$V.props) {
|
|
8244
|
+
Object.entries(componentDefinition$V.props).forEach(([key, config]) => {
|
|
7963
8245
|
const propConfig = config;
|
|
7964
8246
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
7965
8247
|
defaultProps$2[key] = propConfig.default;
|
|
@@ -7978,7 +8260,7 @@ function ShaderComponent$2(props) {
|
|
|
7978
8260
|
shaderUniformUpdate: parentUniformUpdate,
|
|
7979
8261
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
7980
8262
|
} = context;
|
|
7981
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8263
|
+
const instanceId = props.id || `${componentDefinition$V.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7982
8264
|
const effectiveProps = createMemo(() => {
|
|
7983
8265
|
let baseProps = {
|
|
7984
8266
|
...defaultProps$2
|
|
@@ -7997,7 +8279,7 @@ function ShaderComponent$2(props) {
|
|
|
7997
8279
|
let uniformsMap = null;
|
|
7998
8280
|
const getUniformsMap = () => {
|
|
7999
8281
|
if (!uniformsMap) {
|
|
8000
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8282
|
+
uniformsMap = createUniformsMap(componentDefinition$V, effectiveProps(), instanceId);
|
|
8001
8283
|
}
|
|
8002
8284
|
return uniformsMap;
|
|
8003
8285
|
};
|
|
@@ -8022,7 +8304,7 @@ function ShaderComponent$2(props) {
|
|
|
8022
8304
|
renderOrder: props.renderOrder || 0,
|
|
8023
8305
|
transform: effectiveTransform()
|
|
8024
8306
|
};
|
|
8025
|
-
parentRegister(instanceId, componentDefinition$
|
|
8307
|
+
parentRegister(instanceId, componentDefinition$V.fragmentNode, parentId, metadata, uniforms, componentDefinition$V);
|
|
8026
8308
|
isRegistered = true;
|
|
8027
8309
|
} catch (error) {
|
|
8028
8310
|
console.error("Error registering shader node:", error);
|
|
@@ -8098,8 +8380,8 @@ const defaultProps$1 = {
|
|
|
8098
8380
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8099
8381
|
};
|
|
8100
8382
|
try {
|
|
8101
|
-
if (componentDefinition$
|
|
8102
|
-
Object.entries(componentDefinition$
|
|
8383
|
+
if (componentDefinition$W && componentDefinition$W.props) {
|
|
8384
|
+
Object.entries(componentDefinition$W.props).forEach(([key, config]) => {
|
|
8103
8385
|
const propConfig = config;
|
|
8104
8386
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8105
8387
|
defaultProps$1[key] = propConfig.default;
|
|
@@ -8118,7 +8400,7 @@ function ShaderComponent$1(props) {
|
|
|
8118
8400
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8119
8401
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8120
8402
|
} = context;
|
|
8121
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8403
|
+
const instanceId = props.id || `${componentDefinition$W.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8122
8404
|
const effectiveProps = createMemo(() => {
|
|
8123
8405
|
let baseProps = {
|
|
8124
8406
|
...defaultProps$1
|
|
@@ -8137,7 +8419,7 @@ function ShaderComponent$1(props) {
|
|
|
8137
8419
|
let uniformsMap = null;
|
|
8138
8420
|
const getUniformsMap = () => {
|
|
8139
8421
|
if (!uniformsMap) {
|
|
8140
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8422
|
+
uniformsMap = createUniformsMap(componentDefinition$W, effectiveProps(), instanceId);
|
|
8141
8423
|
}
|
|
8142
8424
|
return uniformsMap;
|
|
8143
8425
|
};
|
|
@@ -8162,7 +8444,7 @@ function ShaderComponent$1(props) {
|
|
|
8162
8444
|
renderOrder: props.renderOrder || 0,
|
|
8163
8445
|
transform: effectiveTransform()
|
|
8164
8446
|
};
|
|
8165
|
-
parentRegister(instanceId, componentDefinition$
|
|
8447
|
+
parentRegister(instanceId, componentDefinition$W.fragmentNode, parentId, metadata, uniforms, componentDefinition$W);
|
|
8166
8448
|
isRegistered = true;
|
|
8167
8449
|
} catch (error) {
|
|
8168
8450
|
console.error("Error registering shader node:", error);
|
|
@@ -8238,8 +8520,8 @@ const defaultProps = {
|
|
|
8238
8520
|
// transform intentionally has no default - handled by effectiveTransform
|
|
8239
8521
|
};
|
|
8240
8522
|
try {
|
|
8241
|
-
if (componentDefinition$
|
|
8242
|
-
Object.entries(componentDefinition$
|
|
8523
|
+
if (componentDefinition$X && componentDefinition$X.props) {
|
|
8524
|
+
Object.entries(componentDefinition$X.props).forEach(([key, config]) => {
|
|
8243
8525
|
const propConfig = config;
|
|
8244
8526
|
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
8245
8527
|
defaultProps[key] = propConfig.default;
|
|
@@ -8258,7 +8540,7 @@ function ShaderComponent(props) {
|
|
|
8258
8540
|
shaderUniformUpdate: parentUniformUpdate,
|
|
8259
8541
|
shaderMetadataUpdate: parentMetadataUpdate
|
|
8260
8542
|
} = context;
|
|
8261
|
-
const instanceId = props.id || `${componentDefinition$
|
|
8543
|
+
const instanceId = props.id || `${componentDefinition$X.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
8262
8544
|
const effectiveProps = createMemo(() => {
|
|
8263
8545
|
let baseProps = {
|
|
8264
8546
|
...defaultProps
|
|
@@ -8277,7 +8559,7 @@ function ShaderComponent(props) {
|
|
|
8277
8559
|
let uniformsMap = null;
|
|
8278
8560
|
const getUniformsMap = () => {
|
|
8279
8561
|
if (!uniformsMap) {
|
|
8280
|
-
uniformsMap = createUniformsMap(componentDefinition$
|
|
8562
|
+
uniformsMap = createUniformsMap(componentDefinition$X, effectiveProps(), instanceId);
|
|
8281
8563
|
}
|
|
8282
8564
|
return uniformsMap;
|
|
8283
8565
|
};
|
|
@@ -8302,7 +8584,7 @@ function ShaderComponent(props) {
|
|
|
8302
8584
|
renderOrder: props.renderOrder || 0,
|
|
8303
8585
|
transform: effectiveTransform()
|
|
8304
8586
|
};
|
|
8305
|
-
parentRegister(instanceId, componentDefinition$
|
|
8587
|
+
parentRegister(instanceId, componentDefinition$X.fragmentNode, parentId, metadata, uniforms, componentDefinition$X);
|
|
8306
8588
|
isRegistered = true;
|
|
8307
8589
|
} catch (error) {
|
|
8308
8590
|
console.error("Error registering shader node:", error);
|
|
@@ -8362,60 +8644,62 @@ function ShaderComponent(props) {
|
|
|
8362
8644
|
});
|
|
8363
8645
|
}
|
|
8364
8646
|
export {
|
|
8365
|
-
ShaderComponent$
|
|
8366
|
-
ShaderComponent$
|
|
8367
|
-
ShaderComponent$
|
|
8368
|
-
ShaderComponent$
|
|
8369
|
-
ShaderComponent$
|
|
8370
|
-
ShaderComponent$
|
|
8371
|
-
ShaderComponent$
|
|
8372
|
-
ShaderComponent$
|
|
8373
|
-
ShaderComponent$
|
|
8374
|
-
ShaderComponent$
|
|
8375
|
-
ShaderComponent$
|
|
8376
|
-
ShaderComponent$
|
|
8377
|
-
ShaderComponent$
|
|
8378
|
-
ShaderComponent$
|
|
8379
|
-
ShaderComponent$
|
|
8380
|
-
ShaderComponent$
|
|
8381
|
-
ShaderComponent$
|
|
8382
|
-
ShaderComponent$
|
|
8383
|
-
ShaderComponent$
|
|
8384
|
-
ShaderComponent$
|
|
8385
|
-
ShaderComponent$
|
|
8386
|
-
ShaderComponent$
|
|
8387
|
-
ShaderComponent$
|
|
8388
|
-
ShaderComponent$
|
|
8389
|
-
ShaderComponent$
|
|
8390
|
-
ShaderComponent$
|
|
8391
|
-
ShaderComponent$
|
|
8392
|
-
ShaderComponent$
|
|
8393
|
-
ShaderComponent$
|
|
8394
|
-
ShaderComponent$
|
|
8395
|
-
ShaderComponent$
|
|
8396
|
-
ShaderComponent$
|
|
8397
|
-
ShaderComponent$
|
|
8398
|
-
ShaderComponent$
|
|
8399
|
-
ShaderComponent$
|
|
8400
|
-
ShaderComponent$
|
|
8401
|
-
ShaderComponent$
|
|
8402
|
-
ShaderComponent$
|
|
8403
|
-
ShaderComponent$
|
|
8404
|
-
ShaderComponent$
|
|
8405
|
-
ShaderComponent$
|
|
8406
|
-
ShaderComponent$
|
|
8407
|
-
ShaderComponent$
|
|
8647
|
+
ShaderComponent$X as AngularBlur,
|
|
8648
|
+
ShaderComponent$W as Ascii,
|
|
8649
|
+
ShaderComponent$V as Beam,
|
|
8650
|
+
ShaderComponent$U as Blob,
|
|
8651
|
+
ShaderComponent$T as Blur,
|
|
8652
|
+
ShaderComponent$S as BrightnessContrast,
|
|
8653
|
+
ShaderComponent$R as Bulge,
|
|
8654
|
+
ShaderComponent$Q as CRTScreen,
|
|
8655
|
+
ShaderComponent$P as ChannelBlur,
|
|
8656
|
+
ShaderComponent$O as Checkerboard,
|
|
8657
|
+
ShaderComponent$N as ChromaFlow,
|
|
8658
|
+
ShaderComponent$M as ChromaticAberration,
|
|
8659
|
+
ShaderComponent$L as Circle,
|
|
8660
|
+
ShaderComponent$K as CursorTrail,
|
|
8661
|
+
ShaderComponent$J as DiffuseBlur,
|
|
8662
|
+
ShaderComponent$I as Dither,
|
|
8663
|
+
ShaderComponent$H as DotGrid,
|
|
8664
|
+
ShaderComponent$G as Duotone,
|
|
8665
|
+
ShaderComponent$F as FilmGrain,
|
|
8666
|
+
ShaderComponent$E as FloatingParticles,
|
|
8667
|
+
ShaderComponent$D as GlassTiles,
|
|
8668
|
+
ShaderComponent$C as Glow,
|
|
8669
|
+
ShaderComponent$B as Godrays,
|
|
8670
|
+
ShaderComponent$A as Grayscale,
|
|
8671
|
+
ShaderComponent$z as Grid,
|
|
8672
|
+
ShaderComponent$y as GridDistortion,
|
|
8673
|
+
ShaderComponent$x as Group,
|
|
8674
|
+
ShaderComponent$w as Halftone,
|
|
8675
|
+
ShaderComponent$v as HueShift,
|
|
8676
|
+
ShaderComponent$u as ImageTexture,
|
|
8677
|
+
ShaderComponent$t as Invert,
|
|
8678
|
+
ShaderComponent$s as LinearBlur,
|
|
8679
|
+
ShaderComponent$r as LinearGradient,
|
|
8680
|
+
ShaderComponent$q as Liquify,
|
|
8681
|
+
ShaderComponent$p as Perspective,
|
|
8682
|
+
ShaderComponent$o as Pixelate,
|
|
8683
|
+
ShaderComponent$n as PolarCoordinates,
|
|
8684
|
+
ShaderComponent$m as Posterize,
|
|
8685
|
+
ShaderComponent$l as ProgressiveBlur,
|
|
8686
|
+
ShaderComponent$k as RadialGradient,
|
|
8687
|
+
ShaderComponent$j as RectangularCoordinates,
|
|
8688
|
+
ShaderComponent$i as Ripples,
|
|
8689
|
+
ShaderComponent$h as Saturation,
|
|
8408
8690
|
Shader,
|
|
8409
|
-
ShaderComponent$
|
|
8410
|
-
ShaderComponent$
|
|
8411
|
-
ShaderComponent$
|
|
8412
|
-
ShaderComponent$
|
|
8413
|
-
ShaderComponent$
|
|
8414
|
-
ShaderComponent$
|
|
8415
|
-
ShaderComponent$
|
|
8416
|
-
ShaderComponent$
|
|
8417
|
-
ShaderComponent$
|
|
8418
|
-
ShaderComponent$
|
|
8691
|
+
ShaderComponent$g as Sharpness,
|
|
8692
|
+
ShaderComponent$f as SimplexNoise,
|
|
8693
|
+
ShaderComponent$e as SineWave,
|
|
8694
|
+
ShaderComponent$d as SolidColor,
|
|
8695
|
+
ShaderComponent$c as Spherize,
|
|
8696
|
+
ShaderComponent$b as Spiral,
|
|
8697
|
+
ShaderComponent$a as Strands,
|
|
8698
|
+
ShaderComponent$9 as Stretch,
|
|
8699
|
+
ShaderComponent$8 as Stripes,
|
|
8700
|
+
ShaderComponent$7 as Swirl,
|
|
8701
|
+
ShaderComponent$6 as TiltShift,
|
|
8702
|
+
ShaderComponent$5 as Tint,
|
|
8419
8703
|
ShaderComponent$4 as Tritone,
|
|
8420
8704
|
ShaderComponent$3 as Twirl,
|
|
8421
8705
|
ShaderComponent$2 as Vibrance,
|