Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Apr 15, 2024
1 parent 9571cf6 commit 84d4b63
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/modules/react/api-reference/viewport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Viewport

### initialViewState (Object, optional)

```js
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)

0 comments on commit 84d4b63

Please sign in to comment.