Skip to content

Commit

Permalink
Merge pull request #396 from RAIRLab/395-incorrect-ellipse-guidelines
Browse files Browse the repository at this point in the history
Correct Ellipse Guidelines
  • Loading branch information
RyanR712 committed May 10, 2024
2 parents 8d21575 + 337ddd2 commit 41c66ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SharedToolUtils/DrawUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export function drawAtom(thisAtom: AtomNode, color: string, currentAtom: Boolean
export function drawGuidelines(original: Point, current: Point, color: string): void {
ctx.beginPath();
ctx.strokeStyle = color;
const dx: number = original.x - current.x + offset.x;
const dy: number = original.y - current.y + offset.y;
ctx.rect(original.x, original.y, -dx, -dy);
const dx: number = original.x - current.x;
const dy: number = original.y - current.y;
ctx.rect(original.x + offset.x, original.y + offset.y, -dx, -dy);
ctx.stroke();
}

Expand Down

0 comments on commit 41c66ce

Please sign in to comment.