mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 06:58:48 -05:00
feat: removes color from node schema
This commit is contained in:
@@ -28,7 +28,6 @@ export interface Node {
|
||||
id: string;
|
||||
type: SceneItemTypeEnum.NODE;
|
||||
iconId: string;
|
||||
color: string;
|
||||
label: string;
|
||||
labelHeight: number;
|
||||
position: Coords;
|
||||
|
||||
@@ -42,7 +42,6 @@ export const nodeInputToNode = (nodeInput: NodeInput): Node => {
|
||||
id: nodeInput.id,
|
||||
label: nodeInput.label ?? NODE_DEFAULTS.label,
|
||||
labelHeight: nodeInput.labelHeight ?? NODE_DEFAULTS.labelHeight,
|
||||
color: nodeInput.color ?? NODE_DEFAULTS.color,
|
||||
iconId: nodeInput.iconId,
|
||||
position: nodeInput.position,
|
||||
isSelected: false
|
||||
@@ -172,7 +171,6 @@ export const nodeToNodeInput = (node: Node): NodeInput => {
|
||||
position: node.position,
|
||||
label: node.label,
|
||||
labelHeight: node.labelHeight,
|
||||
color: node.color,
|
||||
iconId: node.iconId
|
||||
};
|
||||
};
|
||||
|
||||
@@ -18,7 +18,6 @@ export const nodeInput = z.object({
|
||||
id: z.string(),
|
||||
label: z.string().optional(),
|
||||
labelHeight: z.number().optional(),
|
||||
color: z.string().optional(),
|
||||
iconId: z.string(),
|
||||
position: coords
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user