Files
obsidian-excalidraw-plugin/docs/API/canvas_style.md
Zsolt Viczian e66b7aef7f 1.2.24 gridSize
2021-08-31 20:40:25 +02:00

655 B

◀ Excalidraw Automate How To

Canvas style settings

Sets the properties of the canvas.

theme, setTheme()

String. Valid values are "light" and "dark".

setTheme() accepts a number:

  • 0: "light"
  • any other number: "dark"

viewBackgroundColor

String. This is the fill color of an object. CSS Legal Color Values

Allowed values are HTML color names, hexadecimal RGB strings e.g. #FF0000 for red, or transparent.

gridSize

Number. The size of the grid. If set to zero, no grid is displayed.