@mocanvas/editor · interface

StrokeShapeIndicatorsOptions

interface StrokeShapeIndicatorsOptions

How the indicators should look.


Properties · 4

color?: string

Stroke colour. Defaults to the current theme's selection stroke.

lineDash?: readonly number[]

Dash pattern in CSS pixels. Omit for a continuous stroke.

strokeWidth?: number

Stroke width **in CSS pixels**, not page units.

An indicator is a piece of UI drawn over the canvas, not a mark on it: it has to stay the same weight at every zoom, or a selection becomes invisible when you zoom out and a slab when you zoom in.

zoom?: number

The camera zoom, so the CSS-pixel widths above can be converted. Defaults to the editor's.

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.