@mocanvas/editor · interface
interface StrokeShapeIndicatorsOptionsHow the indicators should look.
Properties · 4
color?: stringStroke colour. Defaults to the current theme's selection stroke.
lineDash?: readonly number[]Dash pattern in CSS pixels. Omit for a continuous stroke.
strokeWidth?: numberStroke 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?: numberThe 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.