getCanvasGrid
Gets the current canvas grid layout as a 2D array of nodes.
info
This API is only available in Figma Slides and Figma Buzz
Signature
getCanvasGrid(): Array<Array<SceneNode>>
Remarks
The canvas grid represents the organizational structure of assets in Slides and Buzz, where each position can contain a node (slide or asset).
To visualize the nodes in the canvas grid in a 2D array, you can call this function.
const grid = figma.getCanvasGrid()