@mocanvas/editor · interface

TLGridProps

interface TLGridProps

What the Grid slot is rendered with.

x/y are the camera's page offset and z its zoom — the same numbers editor.getCamera() carries — so a screen-space position is (page + {x, y}) * z. size is the document's grid step, in page units.


Properties · 4

size: number
x: number
y: number
z: number

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.