useGrid(): Object
Returns an object describing the composition’s base design grid. Learn more about grid units
in the Layout API docs.
Return type
| Property | Type | Description |
|---|---|---|
pixelsPerGridUnit | Number | This is the scale factor that lets you translate grid units to output pixels |