Skip to content

NgDiagramBaseEdgeComponent

since v0.8.0

Base edge component that handles edge rendering. It can be extended or used directly to render edges in the diagram.

readonly dangling: 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


readonly relinkHandleHitRadius: 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


readonly relinkSourceHandle: 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


readonly relinkSourceHandleVisible: 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


readonly relinkTargetHandle: 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


readonly relinkTargetHandleVisible: Signal<boolean>

Same as relinkSourceHandleVisible for the target end.

1.4.0


routing: InputSignal<undefined | string>

Edge routing mode


sourceArrowhead: InputSignal<undefined | string>

ID of a source element in the SVG document. Edge model data has precedence over this property.


stroke: InputSignal<undefined | string>

Stroke color of the edge. Edge model data has precedence over this property.


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: InputSignal<undefined | number>

Stroke opacity of the edge


strokeWidth: InputSignal<undefined | number>

Stroke width of the edge


targetArrowhead: InputSignal<undefined | string>

ID of a target element in the SVG document. Edge model data has precedence over this property.


readonly useInlineMarkers: boolean

Whether to use inline markers (Safari fallback). Safari doesn’t support context-stroke, so we render markers inline per edge.