Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/network/modules/components/edges/util/EdgeBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ class EdgeBase {
}
}

if (position === 'middle' && scaleFactor < 0) lineWidth *= -1; // reversed middle arrow
let length = 15 * scaleFactor + 3 * lineWidth; // 3* lineWidth is the width of the edge.

var xi = arrowPoint.x - length * 0.9 * Math.cos(angle);
Expand Down