Skip to content

Commit

Permalink
Self-edge layouting
Browse files Browse the repository at this point in the history
Nicer visualization? @phschaad
  • Loading branch information
tbennun authored Sep 5, 2024
1 parent f3c39fa commit 6df1c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouter/state_machine/sm_layouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ export class SMLayouter {
if (edge[0] === edge[1]) {
// Self edge.
const nodeLeftX = src.x - (src.width / 2);
const edgeLeftX = nodeLeftX - BACKEDGE_SPACING;
const edgeLeftX = nodeLeftX - BACKEDGE_SPACING / 2;
const edgeBottomY = src.y + (src.height / 4);
const edgeTopY = src.y - (src.height / 4);
edgeData.points = [
Expand Down

0 comments on commit 6df1c9a

Please sign in to comment.