OptionalhtmlThe html to be used inside the node as an SVGForeignObject element
Trusted HTML only. Whatever this returns is inserted as-is, so build it with
textContent (or escape it) rather than interpolating node data into a markup string.
OptionaliconOptionaliconOptionalimageHow an imagePath picture sits on the node's shape. Resolvable per node so
different nodes can mix modes (e.g. screenshots 'cover', other attachments 'icon').
OptionalimageURL of a picture to draw on the node. Restricted to the http:, https:, data: and
blob: schemes; anything else is ignored. Rendering it fetches the URL.
The shape of the node, either a standard shape or a custom SVG path
OptionalstyleCallback to dynamically override style properties based on the node.
OptionalsvgInline SVG markup drawn inside the node. Sanitized before it reaches the DOM (scripting
and event handlers are stripped), but a remote <image href> inside it is still fetched
when the node renders — see the security guide.
OptionaltextThe text to be used inside the node as an SVGText element
The horizontal shift applied to the node's label position. A value of 0 means it is centered to the node, a value of 1 is east of the node, -1 is west of the node. Other values are also accepted, e.g., 0.5 would be halfway between the center and the east of the node.
Rotation degree applied to the node's label. Positive values rotate clockwise, negative values rotate counter-clockwise.
The vertical shift applied to the node's label position. A value of 0 means it is centered to the node, a value of 1 is north of the node, -1 is south of the node. Other values are also accepted, e.g., 0.5 would be halfway between the center and the north of the node.
The main color of the node