Browse Source

Updated dist folder

v3_develop
jos 10 years ago
parent
commit
2ab5ad108a
3 changed files with 27 additions and 23 deletions
  1. +24
    -19
      dist/vis.js
  2. +1
    -1
      dist/vis.map
  3. +2
    -3
      dist/vis.min.js

+ 24
- 19
dist/vis.js View File

@ -29704,6 +29704,7 @@ return /******/ (function(modules) { // webpackBootstrap
exports._handleConnect = function(pointer) { exports._handleConnect = function(pointer) {
if (this._getSelectedNodeCount() == 0) { if (this._getSelectedNodeCount() == 0) {
var node = this._getNodeAt(pointer); var node = this._getNodeAt(pointer);
var supportNodes, targetNode, targetViaNode, connectionEdge;
if (node != null) { if (node != null) {
if (node.clusterSize > 1) { if (node.clusterSize > 1) {
@ -29711,31 +29712,35 @@ return /******/ (function(modules) { // webpackBootstrap
} }
else { else {
this._selectObject(node,false); this._selectObject(node,false);
// create a node the temporary line can look at
this.sectors['support']['nodes']['targetNode'] = new Node({id:'targetNode'},{},{},this.constants);
this.sectors['support']['nodes']['targetNode'].x = node.x;
this.sectors['support']['nodes']['targetNode'].y = node.y;
this.sectors['support']['nodes']['targetViaNode'] = new Node({id:'targetViaNode'},{},{},this.constants);
this.sectors['support']['nodes']['targetViaNode'].x = node.x;
this.sectors['support']['nodes']['targetViaNode'].y = node.y;
this.sectors['support']['nodes']['targetViaNode'].parentEdgeId = "connectionEdge";
supportNodes = this.sectors['support']['nodes'];
// create a node the temporary line can look at
supportNodes['targetNode'] = targetNode = new Node({id:'targetNode'},{},{},this.constants);
targetNode.x = node.x;
targetNode.y = node.y;
supportNodes['targetViaNode'] = targetViaNode = new Node({id:'targetViaNode'},{},{},this.constants);
targetViaNode.x = node.x;
targetViaNode.y = node.y;
targetViaNode.parentEdgeId = "connectionEdge";
// create a temporary edge // create a temporary edge
this.edges['connectionEdge'] = new Edge({id:"connectionEdge",from:node.id,to:this.sectors['support']['nodes']['targetNode'].id}, this, this.constants);
this.edges['connectionEdge'].from = node;
this.edges['connectionEdge'].connected = true;
this.edges['connectionEdge'].smooth = true;
this.edges['connectionEdge'].selected = true;
this.edges['connectionEdge'].to = this.sectors['support']['nodes']['targetNode'];
this.edges['connectionEdge'].via = this.sectors['support']['nodes']['targetViaNode'];
this.edges['connectionEdge'] = connectionEdge = new Edge({id:"connectionEdge",from:node.id,to:targetNode.id}, this, this.constants);
connectionEdge.from = node;
connectionEdge.connected = true;
connectionEdge.smooth = true;
connectionEdge.selected = true;
connectionEdge.to = targetNode;
connectionEdge.via = targetViaNode;
this.cachedFunctions["_handleOnDrag"] = this._handleOnDrag; this.cachedFunctions["_handleOnDrag"] = this._handleOnDrag;
this._handleOnDrag = function(event) { this._handleOnDrag = function(event) {
var pointer = this._getPointer(event.gesture.center); var pointer = this._getPointer(event.gesture.center);
this.sectors['support']['nodes']['targetNode'].x = this._XconvertDOMtoCanvas(pointer.x);
this.sectors['support']['nodes']['targetNode'].y = this._YconvertDOMtoCanvas(pointer.y);
this.sectors['support']['nodes']['targetViaNode'].x = 0.5 * (this._XconvertDOMtoCanvas(pointer.x) + this.edges['connectionEdge'].from.x);
this.sectors['support']['nodes']['targetViaNode'].y = this._YconvertDOMtoCanvas(pointer.y);
var supportNodes = this.sectors['support']['nodes'];
supportNodes['targetNode'].x = this._XconvertDOMtoCanvas(pointer.x);
supportNodes['targetNode'].y = this._YconvertDOMtoCanvas(pointer.y);
supportNodes['targetViaNode'].x = 0.5 * (this._XconvertDOMtoCanvas(pointer.x) + this.edges['connectionEdge'].from.x);
supportNodes['targetViaNode'].y = this._YconvertDOMtoCanvas(pointer.y);
}; };
this.moving = true; this.moving = true;

+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 2
- 3
dist/vis.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save