feat(paneview): add translateExtent option closes #479

This commit is contained in:
moklick
2020-09-10 18:39:40 +02:00
parent 29fa30c221
commit 5c2c1eecad
5 changed files with 34 additions and 1 deletions
+1
View File
@@ -78,6 +78,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
- `snapToGrid`: default: `false`
- `snapGrid`: [x, y] array - default: `[16, 16]`
- `onlyRenderVisibleNodes`: default: `true`
- `translateExtent`: [default `[[-∞, -∞], [+∞, +∞]]`](https://github.com/d3/d3-zoom#zoom_translateExtent)
#### Event Handlers
- `onElementClick(event: MouseEvent, element: Node | Edge)`: called when user clicks node or edge