From e6efff040d33019d114b8c2c7a55e2b0c56fae39 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Thu, 26 Dec 2024 13:25:37 +1100 Subject: [PATCH] Resolve #395 - thick selection rectangle (#397) --- src/LGraphCanvas.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 0579fda11..3373b8fe7 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -2174,6 +2174,8 @@ export class LGraphCanvas { linkSegment.path && this.ctx.isPointInStroke(linkSegment.path, x * dpi, y * dpi) ) { + this.ctx.lineWidth = lineWidth + if (e.shiftKey && !e.altKey) { const slot = linkSegment.origin_slot const originNode = graph._nodes_by_id[linkSegment.origin_id] @@ -2197,6 +2199,8 @@ export class LGraphCanvas { return } } else if (isInRectangle(x, y, centre[0] - 4, centre[1] - 4, 8, 8)) { + this.ctx.lineWidth = lineWidth + pointer.onClick = () => this.showLinkMenu(linkSegment, e) pointer.onDragStart = () => this.dragging_canvas = true pointer.finally = () => this.dragging_canvas = false