Skip to content

Commit

Permalink
StyleConfigurator.ts: TMP update edge arcSize to try to reproduce the…
Browse files Browse the repository at this point in the history
… mxGraph rendering
  • Loading branch information
tbouffard committed Aug 11, 2024
1 parent 132b70e commit 8942a9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component/mxgraph/config/StyleConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ export class StyleConfigurator {
style.strokeWidth = 1.5;
style.rounded = true;
// TODO [email protected]: 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 [email protected], in [email protected] 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 [email protected] we used 5
style.verticalAlign = 'bottom';
// The end arrow must be redefined in specific style
delete style.endArrow;
Expand Down

0 comments on commit 8942a9b

Please sign in to comment.