@mocanvas/editor · interface
interface TLShapeUtilCanvasSvgDefA <defs> entry a shape needs present in the canvas SVG — a gradient, a
filter, a marker, a pattern.
Definitions are collected across every registered util, de-duplicated by
key, and rendered once for the whole canvas: ten thousand arrows share one
arrowhead marker rather than carrying one each. key is therefore the
identity of the definition, not of the shape, and two utils that return the
same key must mean the same definition.
Properties · 2
component: ComponentTypekey: stringmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.