mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 22:40:54 +02:00
tweak highlight stroke width some more
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user