Use Flow API
Call the imperative flow API through a captured reference (the equivalent of React Flow's useReactFlow hook): zoom, fit, add nodes/edges, delete the selection and snapshot the state.
Call the imperative flow API through a captured reference (the equivalent of React Flow's useReactFlow hook): zoom, fit, add nodes/edges, delete the selection and snapshot the state.