Skip to content

Commit

Permalink
Solved. Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanR712 committed May 9, 2024
1 parent 8d21575 commit a2b3bd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SharedToolUtils/DrawUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ export function drawAtom(thisAtom: AtomNode, color: string, currentAtom: Boolean
* @param color Incoming color string.
*/
export function drawGuidelines(original: Point, current: Point, color: string): void {
console.log("Drawing guidelines");
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 a2b3bd5

Please sign in to comment.