tweak highlight stroke width some more

This commit is contained in:
dwelle
2025-09-14 22:48:56 +02:00
parent 6c2f5dbd81
commit 073f47d253

View File

@@ -1,4 +1,5 @@
import { import {
clamp,
pointDistance, pointDistance,
pointFrom, pointFrom,
pointsEqual, pointsEqual,
@@ -244,10 +245,9 @@ const renderBindingHighlightForBindableElement = (
element.y + appState.scrollY - offset, element.y + appState.scrollY - offset,
); );
context.lineWidth = Math.max( context.lineWidth =
2 / appState.zoom.value, clamp(2.5, element.strokeWidth * 1.75, 4) /
element.strokeWidth * 0.5, Math.max(0.25, appState.zoom.value);
);
context.strokeStyle = context.strokeStyle =
appState.theme === THEME.DARK ? "#035da1" : "#6abdfc"; appState.theme === THEME.DARK ? "#035da1" : "#6abdfc";