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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user