|
@ -169,7 +169,6 @@ class CanvasRenderer { |
|
|
this.body.emitter.emit("beforeDrawing", ctx); |
|
|
this.body.emitter.emit("beforeDrawing", ctx); |
|
|
ctx.closePath(); |
|
|
ctx.closePath(); |
|
|
|
|
|
|
|
|
console.log(arguments) |
|
|
|
|
|
if (hidden === false) { |
|
|
if (hidden === false) { |
|
|
if (this.dragging === false || (this.dragging === true && this.options.hideEdgesOnDrag === false)) { |
|
|
if (this.dragging === false || (this.dragging === true && this.options.hideEdgesOnDrag === false)) { |
|
|
this._drawEdges(ctx); |
|
|
this._drawEdges(ctx); |
|
@ -242,7 +241,6 @@ class CanvasRenderer { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
_drawNodes(ctx, alwaysShow = false) { |
|
|
_drawNodes(ctx, alwaysShow = false) { |
|
|
console.log("draw nodes") |
|
|
|
|
|
let nodes = this.body.nodes; |
|
|
let nodes = this.body.nodes; |
|
|
let nodeIndices = this.body.nodeIndices; |
|
|
let nodeIndices = this.body.nodeIndices; |
|
|
let node; |
|
|
let node; |
|
@ -291,7 +289,6 @@ class CanvasRenderer { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
_drawEdges(ctx) { |
|
|
_drawEdges(ctx) { |
|
|
console.log("draw edges") |
|
|
|
|
|
let edges = this.body.edges; |
|
|
let edges = this.body.edges; |
|
|
let edgeIndices = this.body.edgeIndices; |
|
|
let edgeIndices = this.body.edgeIndices; |
|
|
let edge; |
|
|
let edge; |
|
|