shaders 2.5.133 → 2.5.134
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/index.js +2 -2
- package/dist/core/utilities/uniforms.d.ts.map +1 -1
- package/dist/js/bundle.js +2 -2
- package/dist/js/createShader.js +2 -2
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +2 -2
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -639,7 +639,7 @@ function createUniformsMap(component, reactiveProps, instanceId) {
|
|
|
639
639
|
});
|
|
640
640
|
uniformValue = 0;
|
|
641
641
|
}
|
|
642
|
-
const uniformNode = uniform(uniformValue).setName(`${propName}_${instanceId}
|
|
642
|
+
const uniformNode = uniform(uniformValue).setName(`${propName}_${instanceId}`.replace(/[^a-zA-Z0-9_]/g, "_"));
|
|
643
643
|
if (typeof uniformValue === "string" && uniformNode.value === null) uniformNode.value = uniformValue;
|
|
644
644
|
uniformsMap[propName] = {
|
|
645
645
|
uniform: uniformNode,
|
|
@@ -2583,7 +2583,7 @@ function createRendererFromJSON(preset, options) {
|
|
|
2583
2583
|
console.warn(`[createRendererFromJSON] Unknown component type: ${component.type}`);
|
|
2584
2584
|
return;
|
|
2585
2585
|
}
|
|
2586
|
-
const nodeId = component.id || `${component.type}_${Date.now()}_${Math.random()}`;
|
|
2586
|
+
const nodeId = component.id || `${component.type}_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
2587
2587
|
nodeIdMap.set(nodeId, component.type);
|
|
2588
2588
|
const uniforms = createUniformsMap(componentDef, Object.fromEntries(Object.entries(componentDef.props).map(([key, propConfig]) => [key, component.props?.[key] !== void 0 ? component.props[key] : propConfig.default])), nodeId);
|
|
2589
2589
|
const metadata = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAUhE,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,UAAU,EAAE,MAAM,GACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../src/utilities/uniforms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAUhE,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,UAAU,EAAE,MAAM,GACnB,WAAW,CAyDb;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,QAAQ,EAAE,GAAG,GACd,IAAI,CA6BN"}
|