Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.2 · function

separateNodePresentation

Source

Split a structured-cloneable runtime node into independent storage values.

separateNodePresentation(node: Node): { node: TopologyNode; presentation?: { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } }

Parameters

Parameter Type Description Default
node Node No additional description. —

Returns

{ node: TopologyNode; presentation?: { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports?: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } | { nodeId: string; ports: [{ placement: { order?: number; side?: "top" | "bottom" | "left" | "right" }; portId: string }, rest]; position?: { x: number; y: number }; shape?: "rect" | "rounded" | "circle" | "diamond" | "hexagon" | "cylinder" | "stadium" | "trapezoid"; size?: { height: number; width: number }; style?: { fill?: string; fontSize?: number; fontWeight?: "normal" | "bold"; opacity?: number; stroke?: string; strokeDasharray?: string; strokeWidth?: number; textColor?: string } } }

libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-document.ts:237