Color
Use palette keys or any CSS color:black, grey, blue, orange, green, red, white, etc.
Size
Dash
draw (freehand), solid, dashed, dotted.
Fill
none, semi (translucent), solid, blank (hit-test only).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Colors, sizes, dashes, and fills
black, grey, blue, orange, green, red, white, etc.
editor.setDrawStyle({ color: '#ff00ff' })
| Key | Width |
|---|---|
s | 2px |
m | 3.5px |
l | 5px |
xl | 10px |
draw (freehand), solid, dashed, dotted.
none, semi (translucent), solid, blank (hit-test only).
editor.setDrawStyle({
color: 'blue',
size: 'l',
dash: 'solid',
})