@shaderfrog/core 1.3.8 → 1.3.9

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.
@@ -18,13 +18,18 @@ export declare const numberNode: (id: string, name: string, position: NodePositi
18
18
  }) => NumberNode;
19
19
  export type NumberDataUniform = Pick<NumberNode, 'type' | 'value' | 'name' | 'range' | 'stepper'>;
20
20
  export declare const numberUniformData: (name: string, value: string, range?: [number, number], stepper?: number) => NumberDataUniform;
21
+ export type AssetVersionNodeData = {
22
+ assetId: number;
23
+ versionId: number;
24
+ };
25
+ export type TextureNodeData = string | number | AssetVersionNodeData;
21
26
  export interface TextureNode extends BaseNode {
22
27
  type: 'texture';
23
- value: string | number;
28
+ value: TextureNodeData;
24
29
  }
25
- export declare const textureNode: (id: string, name: string, position: NodePosition, value: string | number) => TextureNode;
30
+ export declare const textureNode: (id: string, name: string, position: NodePosition, value: TextureNodeData) => TextureNode;
26
31
  export type TextureDataUniform = Pick<TextureNode, 'type' | 'value' | 'name'>;
27
- export declare const textureUniformData: (name: string, value: string | number) => TextureDataUniform;
32
+ export declare const textureUniformData: (name: string, value: TextureNodeData) => TextureDataUniform;
28
33
  export interface SamplerCubeNode extends BaseNode {
29
34
  type: 'samplerCube';
30
35
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaderfrog/core",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Shaderfrog core",
5
5
  "type": "module",
6
6
  "files": [