feat/debug-node #41
@@ -209,7 +209,6 @@
|
|||||||
<NodeEl
|
<NodeEl
|
||||||
{node}
|
{node}
|
||||||
inView={graphState.isNodeInView(node)}
|
inView={graphState.isNodeInView(node)}
|
||||||
z={graphState.cameraPosition[2]}
|
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function getSocketPosition(
|
|||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
let height = 5;
|
let height = 5;
|
||||||
let nodeType = node.state.type!;
|
const nodeType = node.state.type!;
|
||||||
const inputs = nodeType.inputs || {};
|
const inputs = nodeType.inputs || {};
|
||||||
for (const inputKey in inputs) {
|
for (const inputKey in inputs) {
|
||||||
const h = getParameterHeight(nodeType, inputKey) / 10;
|
const h = getParameterHeight(nodeType, inputKey) / 10;
|
||||||
|
|||||||
@@ -91,7 +91,8 @@ export const NodeInputPathSchema = z.object({
|
|||||||
|
|
||||||
export const NodeInputAnySchema = z.object({
|
export const NodeInputAnySchema = z.object({
|
||||||
...DefaultOptionsSchema.shape,
|
...DefaultOptionsSchema.shape,
|
||||||
type: z.literal('*')
|
type: z.literal('*'),
|
||||||
|
value: z.any().optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
export const NodeInputSchema = z.union([
|
export const NodeInputSchema = z.union([
|
||||||
|
|||||||
Reference in New Issue
Block a user