@mocanvas/editor · interface
interface TLIndicatorOverlayOne indicator, fully resolved: the paths to stroke, the page transform to stroke them under, and the paint to use.
Produced by ShapeIndicatorCompositor.getIndicators and consumed by
its render. Keeping the two apart is what makes the compositor testable
without a canvas: the interesting decisions (which shapes, which weight,
which colour) all land in this record.
Properties · 6
color: stringStroke colour, a CSS colour string from the live theme.
context: TLIndicatorContextWhy it is being drawn.
lineWidth: numberStroke width **in CSS pixels** — the compositor divides it by the zoom.
paths: TLIndicatorPathThe resolved paths, in shape-local coordinates.
shapeId: stringThe shape this outline belongs to.
transform: TLIndicatorTransformThe shape's page transform.
Mentioned here
mocanvas 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.