Skip to main content

Interface: ElementTemplate

Custom template to render a single diagram element.

Properties

PropertyModifierTypeDescription

renderElement

readonly

(props: TemplateProps) => ReactNode

Renders the element on the normal (non-SVG) canvas layer.

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

shape?

readonly

"ellipse" | "rect"

Assumed shape type for the rendered diagram element to correctly connect links and other geometry calculations.

Default

"rect"