Skip to main content

Viewport

initialViewState (Object, optional)​

initialViewState={{
target: [0, 0],
zoom: 1,
}}
  • target ([x: Number, y: Number], optional): The target origin to the center of the view.
  • zoom (Number, optional): The zoom level of the view.

minZoom (Number, optional)​

A minimum scale factor for zoom level of the graph.

maxZoom (Number, optional)​

A maximum scale factor for zoom level of the graph.

viewportPadding (Number, optional)​

Padding for fitting entire graph in the screen. (pixel)