Docs
Introduction
Installation
Usage
App
Shapes
Tools
Persistence
Collaboration
User Interface
Community
Contributing
Translations
Embeds
API Reference
Close
tldraw
/
API
/
@tldraw/editor
snapToGrid
Public Function
Parameters
Name
Description
n
number
gridSize
number
Returns
number
Edit this page
Last edited on 6 June 2023
ShapeUtil
StateNode