@shumoku/core · 0.4.2 · function
combineNodePresentation
Compose an independent runtime node without changing stored payloads.
combineNodePresentation(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 Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
node | TopologyNode | No additional description. | — |
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 } } | No additional description. | — |
Returns
Node libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-document.ts:276