Skip to content

Commit

Permalink
Bump @types/react-d3-graph to 2.6.0 (#14)
Browse files Browse the repository at this point in the history
This brings along types for the zoom functionality
  • Loading branch information
Nate Moore authored Jun 23, 2021
1 parent e4d6b45 commit 58bdf4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion loom-editor/src/components/NodeGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ const NodeGraph: FunctionComponent = () => {
onDoubleClickNode={onNodeDoubleClicked}
onNodePositionChange={onNodePositionChange}
onClickGraph={() => dispatch(setFocusedNode(undefined))}
// @ts-expect-error until react-d3-graph is updated and https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46632 is merged
onZoomChange={(previousZoom, newZoom) =>
dispatch(setCurrentZoom(newZoom))
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/jest": "^26.0.23",
"@types/node": "^15.6.0",
"@types/react": "^16.9.13",
"@types/react-d3-graph": "^2.3.5",
"@types/react-d3-graph": "^2.6.0",
"@types/react-dom": "^16.9.13",
"@types/rimraf": "^3.0.0",
"@types/vscode": "^1.56.0",
Expand Down

0 comments on commit 58bdf4c

Please sign in to comment.