diff --git a/src/browser/modules/D3Visualization/components/Graph.tsx b/src/browser/modules/D3Visualization/components/Graph.tsx index 9545f05976f..53135b72baf 100644 --- a/src/browser/modules/D3Visualization/components/Graph.tsx +++ b/src/browser/modules/D3Visualization/components/Graph.tsx @@ -35,7 +35,7 @@ export class GraphComponent extends Component { graphView: any svgElement: any state = { - zoomInLimitReached: true, + zoomInLimitReached: false, zoomOutLimitReached: false } diff --git a/src/browser/modules/D3Visualization/lib/visualization/components/visualization.ts b/src/browser/modules/D3Visualization/lib/visualization/components/visualization.ts index 227c262fd21..45ea82ee0f8 100644 --- a/src/browser/modules/D3Visualization/lib/visualization/components/visualization.ts +++ b/src/browser/modules/D3Visualization/lib/visualization/components/visualization.ts @@ -95,7 +95,7 @@ const vizFn = function( const zoomBehavior = d3.behavior .zoom() - .scaleExtent([0.2, 1]) + .scaleExtent([0.1, 2]) .on('zoom', zoomed) const interpolateZoom = (translate: any, scale: any) => @@ -131,7 +131,7 @@ const vizFn = function( const limitsReached = { zoomInLimit: false, zoomOutLimit: false } if (isZoomingIn) { - zoomLevel = Number((zoomBehavior.scale() * (1 + 0.2 * 1)).toFixed(2)) + zoomLevel = Number((zoomBehavior.scale() * (1 + 0.3 * 1)).toFixed(2)) if (zoomLevel >= zoomBehavior.scaleExtent()[1]) { limitsReached.zoomInLimit = true interpolateZoom(zoomBehavior.translate(), zoomBehavior.scaleExtent()[1]) @@ -139,7 +139,7 @@ const vizFn = function( interpolateZoom(zoomBehavior.translate(), zoomLevel) } } else { - zoomLevel = Number((zoomBehavior.scale() * (1 + 0.2 * -1)).toFixed(2)) + zoomLevel = Number((zoomBehavior.scale() * (1 + 0.3 * -1)).toFixed(2)) if (zoomLevel <= zoomBehavior.scaleExtent()[0]) { limitsReached.zoomOutLimit = true interpolateZoom(zoomBehavior.translate(), zoomBehavior.scaleExtent()[0]) diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap index 6ec75efaaa5..3dadb5c4dfb 100644 --- a/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap +++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/VisualizationView.test.tsx.snap @@ -134,7 +134,7 @@ exports[`Visualization renders with result and escapes any HTML 1`] = ` class="sc-eHgmQL fBSINn" >