From b3aa4a5b0bbbb87d041b9515bddedbcbf8ae9fc5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 8 Aug 2025 12:54:45 -0400 Subject: fixed sizing of arrows and dashes to relate to stroke width. Made link's use fill to set color and default to backgorundColor --- src/client/util/InteractionUtils.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/util/InteractionUtils.tsx') diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx index ca1cb8014..f469f2ef8 100644 --- a/src/client/util/InteractionUtils.tsx +++ b/src/client/util/InteractionUtils.tsx @@ -132,9 +132,9 @@ export namespace InteractionUtils { const Tag = (bezier ? 'path' : 'polyline') as keyof JSX.IntrinsicElements; const markerStrokeWidth = strokeWidth / 2; - const arrowWidthFactor = 3 * (markerScale || 0.5); // used to be 1.5 - const arrowLengthFactor = 5 * (markerScale || 0.5); - const arrowNotchFactor = 2 * (markerScale || 0.5); + const arrowWidthFactor = markerScale || 0.5; // used to be 1.5 + const arrowLengthFactor = (5 / 3) * (markerScale || 0.5); + const arrowNotchFactor = (2 / 3) * (markerScale || 0.5); return ( {' '} @@ -148,7 +148,7 @@ export namespace InteractionUtils { )} {arrowStart !== 'dot' && arrowEnd !== 'dot' ? null : ( - + )} {arrowStart !== 'arrow' ? null : ( -- cgit v1.2.3-70-g09d2