Search
zoomIntoView
zoomIntoView
Pans and zooms the viewport to center a single or group of nodes.
// Scroll and zoom the viewport to show a specific node. await framer.zoomIntoView("node-id") // Scroll and zoom to fit multiple nodes into the viewport. await framer.zoomIntoView(["node-id-1", "node-id-2"])
Parameters
nodeIds:NodeId | Iterable<NodeId>– Node ID or array of node IDs to zoom into.options:ZoomIntoViewOptions(optional) – Options likemaxZoomandskipIfVisible.
Returns
Promise<void>