Browse Source

- Improved robustness against people molesting the Function.prototype.bind()

flowchartTest
Alex de Mulder 9 years ago
parent
commit
629e5965c2
2 changed files with 1481 additions and 1349 deletions
  1. +1481
    -1346
      dist/vis.js
  2. +0
    -3
      lib/network/modules/CanvasRenderer.js

+ 1481
- 1346
dist/vis.js
File diff suppressed because it is too large
View File


+ 0
- 3
lib/network/modules/CanvasRenderer.js View File

@ -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;

Loading…
Cancel
Save