@mocanvas/mocanvas · interface

StylePanelSections

interface StylePanelSections

The style rows the panel renders, in order, grouped as the panel groups them.

With a selection this is exactly what the selected shapes declare, so a line (colour, dash, size) never offers Font or Align; with nothing selected it is what the active drawing tool is about to create. Exported so the rule can be tested without a DOM.


Properties · 10

align: boolean
color: boolean

Colour swatch grids.

dash: boolean
fill: boolean

Stroke and fill.

font: boolean

Text.

labelColor: boolean
opacity: boolean

Shape-level, not a style: only with a selection.

shape: boolean

The geo picker.

size: boolean
verticalAlign: boolean

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.