Skip to content

Commit

Permalink
fix: Use changePointListByZoom instead of changePointByZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
lihqi committed Feb 6, 2023
1 parent c0c2116 commit 03ed572
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions packages/lb-annotation/src/core/toolOperation/pointOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,26 +932,10 @@ class PointOperation extends BasicToolOperation {

auxiliaryLinesCoord.forEach((item) => {
const { start: startCoord, end: endCoord } = item;
DrawUtils.drawLine(
this.canvas,
AxisUtils.changePointByZoom(
{
...startCoord,
},
this.zoom,
this.currentPos,
),
AxisUtils.changePointByZoom(
{
...endCoord,
},
this.zoom,
this.currentPos,
),
{
color: '#C5C5C5',
},
);
const pointListCoord = AxisUtils.changePointListByZoom([startCoord, endCoord], this.zoom, this.currentPos);
DrawUtils.drawLine(this.canvas, pointListCoord[0], pointListCoord[1], {
color: '#C5C5C5',
});
});
}

Expand Down

0 comments on commit 03ed572

Please sign in to comment.