Skip to content

Commit

Permalink
refactor: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Oct 28, 2024
1 parent 58e7646 commit 680da26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ const refLineComponent = {
slopeLine = { ...p, x1: undefined, y1: undefined, x2: undefined, y2: undefined };
const y1 = minX * p.slope + p.value;
const y2 = maxX * p.slope + p.value;
const x1 = minY / p.slope - p.value / p.slope;
const x2 = maxY / p.slope - p.value / p.slope;
const x1 = (minY - p.value) / p.slope;
const x2 = (maxY - p.value) / p.slope;
let intersections = [];
if (!isOob(y1, minY, maxY)) {
intersections[0] = { x: 0, y: getPosition(scaleY, y1) };
Expand Down

0 comments on commit 680da26

Please sign in to comment.