Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

separateNodePresentation

ソース

APIの説明は英語のcanonical 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 } } }

パラメーター

名前 型 説明 既定値
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 } } }

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