Skip to content
  1. API
  2. Types

ZoomInteractionOptions

Type: object

Properties

  • duration(optional) number[=150] Indicate the duration of a manual zoom.
  • easing(optional) EasingFunction[="cubicOut"] Easing function to use for the zoom.
  • enabled(optional) boolean[=true] Indicates if zoom on mouse wheel should be enabled.
  • hideEdgeTexts(optional) boolean[=false] Indicates if the edge texts should be hidden when zooming manually.
  • hideEdges(optional) boolean[=false] Indicates if the edges should be hidden when zooming manually.
  • hideNodeTexts(optional) boolean[=false] Indicates if the node texts should be hidden when zooming manually.
  • hideNodes(optional) boolean[=false] Indicates if the nodes should be hidden when zooming manually.
  • maxValue(optional) null|ZoomBoundaryFunction Function indicating the maximum possible zoom. By default, it's not possible to zoom so the smallest node takes more than 50% of the view. Set to null to remove the limit.
  • metaKey(optional) 'alt'|'shift'|'space'[='ctrl/cmd'] Modifier button to use for zooming with the mousewheel or trackpad when scrollToPan is enabled.
  • minValue(optional) null|ZoomBoundaryFunction Function indicating the minimum possible zoom. By default, it's not possible to zoom so the graph takes less than 20% of the view. Set to null to remove the limit.
  • modifier(optional) number[=1.8] Indicate the zoom multiplier on the manual zoom.
  • onDoubleClick(optional) boolean[=false] Indicates if zoom on double click should be enabled.
  • scrollToPan(optional) boolean[=false] Indicates if the view should be moved when scrolling with mousewheel or trackpad
  • zoom(optional) object