@mocanvas/editor · interface

TLIndicatorOverlay

interface TLIndicatorOverlay

One 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: string

Stroke colour, a CSS colour string from the live theme.

context: TLIndicatorContext

Why it is being drawn.

lineWidth: number

Stroke width **in CSS pixels** — the compositor divides it by the zoom.

paths: TLIndicatorPath

The resolved paths, in shape-local coordinates.

shapeId: string

The shape this outline belongs to.

transform: TLIndicatorTransform

The shape's page transform.

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.