Skip to content

Commit

Permalink
fix: large negative spectra peak scale
Browse files Browse the repository at this point in the history
close #1657
  • Loading branch information
hamed-musallam committed Dec 13, 2023
1 parent c35089f commit 32cd140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/reducer/helper/Zoom1DManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function setZoom(
]);
const [min, max] = shareYDomain ? yDomain : yDomains[id];
const maxPoint = Math.max(Math.abs(max), Math.abs(min));
const scalePoint = maxPoint === Math.max(max) ? 0 : min;
const scalePoint = maxPoint === Math.abs(max) ? 0 : min;

Check warning on line 64 in src/component/reducer/helper/Zoom1DManager.ts

View check run for this annotation

Codecov / codecov/patch

src/component/reducer/helper/Zoom1DManager.ts#L64

Added line #L64 was not covered by tests
const t = zoomIdentity
.translate(
0,
Expand Down

0 comments on commit 32cd140

Please sign in to comment.