@mocanvas/editor · interface
interface TLGridPropsWhat 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: numberx: numbery: numberz: numbermocanvas 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.