type ZoomToBlockAction = (blockId, options?) => Promise<void>;Action function for zooming to a specific block
Parameters#
| Parameter | Type | Description |
|---|---|---|
blockId | number | - |
options? | { padding?: | number |
options.padding? | number | |
options.animate? | boolean | |
options.autoFit? | boolean | Whether to enable auto-fit mode after zooming (default: false) |
Returns#
Promise<void>