refactor(core): add missing viewport helper functions to actions

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 7161e9ec90
commit 417a301b42
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -966,6 +966,8 @@ export function useActions(
setCenter: (x, y, opts) => viewportHelper.value.setCenter(x, y, opts),
fitBounds: (params, opts) => viewportHelper.value.fitBounds(params, opts),
project: (params) => viewportHelper.value.project(params),
screenToFlowCoordinate: (params) => viewportHelper.value.screenToFlowCoordinate(params),
flowToScreenCoordinate: (params) => viewportHelper.value.flowToScreenCoordinate(params),
toObject,
fromObject,
updateNodeInternals,