Skip to content

Commit

Permalink
Remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed May 22, 2024
1 parent 9861f0d commit 02b71c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/util/tubemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1360,12 +1360,6 @@ function alignSVG() {
svg.attr("height", maxYCoordinate - minYCoordinate + RAIL_SPACE * 2);
svg.attr("width", parentElement.clientWidth);

/*
const minZoom = Math.min(
1,
parentElement.clientWidth / (maxXCoordinate + 10)
);*/

// We need to set an extent here because auto-determination of the region
// to zoom breaks on the React testing jsdom
zoom
Expand Down Expand Up @@ -1418,12 +1412,6 @@ export function zoomBy(zoomFactor) {
// And find its parent holding element.
let parentElement = svgElement.parentNode;

/*
const minZoom = Math.min(
1,
parentElement.clientWidth / (maxXCoordinate + 10),
parentElement.clientHeight / (maxYCoordinate + 10)
)*/
const maxZoom = 8;
const width = parentElement.clientWidth;

Expand Down

0 comments on commit 02b71c3

Please sign in to comment.