export class FlowManager { stateManager: any vueFlow: any constructor(options) { this.stateManager = options.stateManager; this.vueFlow = options.vueFlow } setZoom(zoom: number) { this.stateManager.zoom.value = zoom this.vueFlow.value.zoomTo(zoom) } handleNodeDragStop(e: any) { const { node } = e const { id, position } = node this.stateManager.nodes.value.forEach((item) => { if (item.id === id) { item.position.x = position.x item.position.y = position.y } }) } }