Skip to main content

Interface: LinkTemplate

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: LinkTemplateProps) => ReactNode

Renders the link component on SVG canvas layer.

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

spline?

public

"smooth" | "straight"

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"