feat: Add suspensions to node, noderenderer and around zoom-pane

* bind zoompanhelper functions to zoom-pane slot

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-18 14:08:46 +01:00
parent 54dfd8498b
commit 14980e38b7
4 changed files with 118 additions and 98 deletions
+11 -1
View File
@@ -212,7 +212,17 @@ watchOnce(
<template>
<Suspense>
<div ref="zoomPane" class="vue-flow__renderer vue-flow__zoompane">
<slot v-bind="{ transform, dimensions: { width, height } }"></slot>
<slot
v-bind="{
transform,
dimensions: { width, height },
zoomIn,
zoomOut,
zoomTo,
setTransform,
fitView,
}"
></slot>
</div>
</Suspense>
</template>