Skip to main content

Interface: LinkTemplateProps

Defined in: src/diagram/customization.ts:202

Props for custom link template rendering.

See

LinkTemplate.renderLink

Extended by

Properties

PropertyModifierTypeDescription

getPathPosition

readonly

(offset) => Vector

Provides paper position along the link at the specified offset.

Offset of 0.0 corresponds to the source and 1.0 corresponds to the target of the link.

link

readonly

Link

Target link to render.

markerSource

readonly

string

SVG path marker for the link source.

markerTarget

readonly

string

SVG path marker for the link target.

onlySelected

readonly

boolean

Whether the link is the only selected cell on the canvas.

See

DiagramModel.selection

path

readonly

string

SVG path for the link geometry.

route?

readonly

RoutedLink

Route data (geometry) for the link.