Skip to content
Open
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
15 changes: 2 additions & 13 deletions lib/network/modules/CanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ class CanvasRenderer {
(this.zooming === true && this.options.hideEdgesOnZoom === false))
) {
this._drawEdges(ctx);
// draw arrows first so they end up below nodes
this._drawArrows(ctx);
}
}

Expand All @@ -319,19 +321,6 @@ class CanvasRenderer {
drawLater.drawExternalLabels = drawExternalLabels;
}

// draw the arrows last so they will be at the top
if (hidden === false) {
if (
(this.dragging === false ||
(this.dragging === true &&
this.options.hideEdgesOnDrag === false)) &&
(this.zooming === false ||
(this.zooming === true && this.options.hideEdgesOnZoom === false))
) {
this._drawArrows(ctx);
}
}

if (drawLater.drawExternalLabels != null) {
drawLater.drawExternalLabels();
}
Expand Down