Skip to main content

Interface: LinkTemplate

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

Custom template to render links with the same link type.

Properties​

PropertyModifierTypeDescription

markerSource?

public

LinkMarkerStyle

SVG path marker style at the source of the link.

markerTarget?

public

LinkMarkerStyle

SVG path marker style at the target of the link.

renderLink

readonly

(props) => ReactNode

Renders the link component on SVG canvas layer.

Note: this should be a pure function, not a React component by itself.

spline?

public

"straight" | "smooth"

SVG path spline type between source and target elements:

  • straight: a spline with straight line segments,
  • smooth: a spline with cubic-bezier curve segments.

Default

"smooth"