Skip to content

Commit

Permalink
Merge branch 'master' into 332-atom-text-to-images
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanR712 authored May 10, 2024
2 parents cf48dac + 41c66ce commit 08f59a3
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 @@ -226,9 +226,9 @@ export function drawAtom(incomingAtom: AtomNode, color: string, currentAtom: boo
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 08f59a3

Please sign in to comment.