Skip to content

Commit

Permalink
Added logging for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Jaśpiński committed Aug 19, 2021
1 parent 148bb0f commit 0dc6eed
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
10 changes: 10 additions & 0 deletions dist/ReactFlow.esm.js

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

2 changes: 1 addition & 1 deletion dist/ReactFlow.esm.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/ReactFlow.js

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

2 changes: 1 addition & 1 deletion dist/ReactFlow.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/hooks/useZoomPanHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const useZoomPanHelper = (): ZoomPanHelperFunctions => {
},
fitView: (options: FitViewParams = { padding: DEFAULT_PADDING, includeHiddenNodes: false }) => {
const { nodes, width, height, minZoom, maxZoom } = store.getState();

console.log('fitView called with',{height, width})
if (!nodes.length) {
return;
}
Expand All @@ -58,6 +58,7 @@ const useZoomPanHelper = (): ZoomPanHelperFunctions => {
},
fitViewToDimensions: (options: FitViewToDimensionsParams = { height: 0, width: 0, padding: DEFAULT_PADDING, includeHiddenNodes: false }) => {
const { nodes, minZoom, maxZoom } = store.getState();
console.log('fitViewToDimensions called with',{height: options.height, width: options.width})

if (!nodes.length) {
return;
Expand Down

0 comments on commit 0dc6eed

Please sign in to comment.