Skip to main content

Interface: BasicLinkProps

Defined in: src/templates/basicLink.tsx:47

Props for BasicLink component.

See

BasicLink

Extends

Properties

PropertyModifierTypeDescriptionInherited from

children?

public

ReactNode

Additional children for the component.

className?

public

string

Additional CSS class for the component.

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.

LinkTemplateProps.getPathPosition

link

readonly

Link

Target link to render.

LinkTemplateProps.link

markerSource

readonly

string

SVG path marker for the link source.

LinkTemplateProps.markerSource

markerTarget

readonly

string

SVG path marker for the link target.

LinkTemplateProps.markerTarget

onlySelected

readonly

boolean

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

See

DiagramModel.selection

LinkTemplateProps.onlySelected

path

readonly

string

SVG path for the link geometry.

LinkTemplateProps.path

pathProps?

public

SVGAttributes<SVGPathElement>

Additional attributes for SVG path rendering of the link geometry.

route?

readonly

RoutedLink

Route data (geometry) for the link.

LinkTemplateProps.route