Browse Source

removed log, rebuilt

flowchartTest
Alex de Mulder 9 years ago
parent
commit
9f74b3f1a0
2 changed files with 4348 additions and 4336 deletions
  1. +4347
    -4335
      dist/vis.js
  2. +1
    -1
      lib/network/modules/View.js

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


+ 1
- 1
lib/network/modules/View.js View File

@ -231,7 +231,7 @@ class View {
// but at least then we'll have the target transition
this.body.view.scale = this.targetScale;
var viewCenter = this.canvas.DOMtoCanvas({x: 0.5 * this.canvas.frame.canvas.clientWidth, y: 0.5 * this.canvas.frame.canvas.clientHeight});
console.log('viewCenter', viewCenter,this.body.view.translation, options.position)
var distanceFromCenter = { // offset from view, distance view has to change by these x and y to center the node
x: viewCenter.x - options.position.x,
y: viewCenter.y - options.position.y

Loading…
Cancel
Save