aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/InteractionUtils.tsx')
-rw-r--r--src/client/util/InteractionUtils.tsx8
1 files changed, 4 insertions, 4 deletions
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 (
<svg fill={color || 'transparent'} style={{ transition: 'inherit' }} onPointerDown={downHdlr}>
{' '}
@@ -148,7 +148,7 @@ export namespace InteractionUtils {
)}
{arrowStart !== 'dot' && arrowEnd !== 'dot' ? null : (
<marker id={`dot${defGuid}`} orient="auto" markerUnits="userSpaceOnUse" refX={0} refY="0" overflow="visible">
- <circle r={strokeWidth * arrowWidthFactor} fill="context-stroke" />
+ <circle r={(strokeWidth * arrowWidthFactor) / 2} fill="context-stroke" />
</marker>
)}
{arrowStart !== 'arrow' ? null : (