From 8942a9bdda87fef32a54a0eabe8dcdecf57ffac6 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:22:06 +0200 Subject: [PATCH] StyleConfigurator.ts: TMP update edge arcSize to try to reproduce the mxGraph rendering --- src/component/mxgraph/config/StyleConfigurator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/mxgraph/config/StyleConfigurator.ts b/src/component/mxgraph/config/StyleConfigurator.ts index 845241b538..0dab3f6603 100644 --- a/src/component/mxgraph/config/StyleConfigurator.ts +++ b/src/component/mxgraph/config/StyleConfigurator.ts @@ -244,7 +244,8 @@ export class StyleConfigurator { style.strokeWidth = 1.5; style.rounded = true; // TODO maxgraph@0.10.2: possible maxGraph regression - the rendered edge arcSize seems larger than with mxGraph (also seen with maxgraph 0.1.0) - style.arcSize = 2; // put 2 in maxgraph@0.10.1, in mxGraph@4.2.2 we used 5 + // a better value may be 2.5, this may be due to an extra division by 2 in maxGraph + style.arcSize = 2; // in mxGraph@4.2.2 we used 5 style.verticalAlign = 'bottom'; // The end arrow must be redefined in specific style delete style.endArrow;