Controls

The control panel contains a zoom-in, zoom-out, fit-view and a lock/unlock button.

Usage

To use the controls simply pass the Controls component as a child to the VueFlow component.

<template>
  <VueFlow>
    <Controls />
  </VueFlow>
</template>

Props

NameDefinitionTypeOptionalDefault
showZoomShow zoom btnbooleantruetrue
showFitViewShow fit-view btnbooleantruetrue
showInteractiveShow lock interactive btnbooleantruetrue
showZoomShow zoom buttonbooleantruetrue
fitViewParamsParams to use on fit-viewFitViewParamsopen in new windowtrue-

Emits

NameDefinition
zoom-inZoom-in btn clicked
zoom-outZoom-out btn clicked
fit-viewFit-view btn clicked
interaction-changeInteraction locked/unlocked