NgDiagramBaseEdgeComponent
since v0.8.0Base edge component that handles edge rendering. It can be extended or used directly to render edges in the diagram.
Properties
Section titled “Properties”dangling
Section titled “dangling”
readonlydangling:Signal<boolean>
Whether the edge has at least one free (unconnected) endpoint. Temporary edges are excluded: a draw preview always has a free end, but it must not get the dangling styling.
1.4.0
edge:
InputSignal<Edge<object>>
Edge data model
relinkHandleHitRadius
Section titled “relinkHandleHitRadius”
readonlyrelinkHandleHitRadius:Signal<number>
Radius of the invisible hit circle around each handle, in flow units. On screen the radius is 12px. The radius is divided by the viewport scale, so the hit area keeps this size at any zoom level. Without this, at zoom 0.5 the visible handle would give only a 3px target.
1.4.0
relinkSourceHandle
Section titled “relinkSourceHandle”
readonlyrelinkSourceHandle:Signal<Point>
Position of the source end of the line (the first routed point). The default handle is moved a little past this point along the first segment of the line, so the line ends under its ring.
1.4.0
relinkSourceHandleVisible
Section titled “relinkSourceHandleVisible”
readonlyrelinkSourceHandleVisible:Signal<boolean>
Whether the source endpoint handle is rendered. The edge must have routed points. On a selected edge the handle is rendered when the source end can be relinked. On the preview of a relink it is rendered when the source end is the dragged end, or when the relinked edge allows relinking its source end. Other temporary edges (draw previews) have no handles.
1.4.0
relinkTargetHandle
Section titled “relinkTargetHandle”
readonlyrelinkTargetHandle:Signal<Point>
Position of the target end of the line (the last routed point). The default handle is moved a little past this point along the last segment of the line, so the line ends under its ring.
1.4.0
relinkTargetHandleVisible
Section titled “relinkTargetHandleVisible”
readonlyrelinkTargetHandleVisible:Signal<boolean>
Same as relinkSourceHandleVisible for the target end.
1.4.0
routing
Section titled “routing”routing:
InputSignal<undefined|string>
Edge routing mode
sourceArrowhead
Section titled “sourceArrowhead”sourceArrowhead:
InputSignal<undefined|string>
ID of a source
stroke
Section titled “stroke”stroke:
InputSignal<undefined|string>
Stroke color of the edge. Edge model data has precedence over this property.
strokeDasharray
Section titled “strokeDasharray”strokeDasharray:
InputSignal<undefined|string>
Stroke dash array of the edge (e.g., ‘5 5’ for dashed line, ‘10 5 2 5’ for dash-dot pattern).
strokeOpacity
Section titled “strokeOpacity”strokeOpacity:
InputSignal<undefined|number>
Stroke opacity of the edge
strokeWidth
Section titled “strokeWidth”strokeWidth:
InputSignal<undefined|number>
Stroke width of the edge
targetArrowhead
Section titled “targetArrowhead”targetArrowhead:
InputSignal<undefined|string>
ID of a target
useInlineMarkers
Section titled “useInlineMarkers”
readonlyuseInlineMarkers:boolean
Whether to use inline markers (Safari fallback). Safari doesn’t support context-stroke, so we render markers inline per edge.