Browse Source

- Fixed click to use

flowchartTest
Alex de Mulder 9 years ago
parent
commit
e2945947fd
4 changed files with 12912 additions and 12912 deletions
  1. +12909
    -12907
      dist/vis.js
  2. +2
    -2
      lib/network/Network.js
  3. +0
    -3
      lib/network/modules/components/NavigationHandler.js
  4. +1
    -0
      lib/network/modules/components/nodes/util/CircleImageBase.js

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


+ 2
- 2
lib/network/Network.js View File

@ -204,8 +204,8 @@ Network.prototype.setOptions = function (options) {
if (options.clickToUse !== undefined) { if (options.clickToUse !== undefined) {
if (options.clickToUse === true) { if (options.clickToUse === true) {
if (this.activator === undefined) { if (this.activator === undefined) {
this.activator = new Activator(this.frame);
this.activator.on('change', this._createKeyBinds.bind(this));
this.activator = new Activator(this.canvas.frame);
this.activator.on('change', () => {this.body.emitter.emit("activate")});
} }
} }
else { else {

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

@ -52,8 +52,6 @@ class NavigationHandler {
this.navigationHammers = []; this.navigationHammers = [];
} }
this._navigationReleaseOverload = function() {};
// clean up previous navigation items // clean up previous navigation items
if (this.navigationDOM && this.navigationDOM['wrapper'] && this.navigationDOM['wrapper'].parentNode) { if (this.navigationDOM && this.navigationDOM['wrapper'] && this.navigationDOM['wrapper'].parentNode) {
this.navigationDOM['wrapper'].parentNode.removeChild(this.navigationDOM['wrapper']); this.navigationDOM['wrapper'].parentNode.removeChild(this.navigationDOM['wrapper']);
@ -160,7 +158,6 @@ class NavigationHandler {
} }
if (this.options.keyboard.enabled === true) { if (this.options.keyboard.enabled === true) {
if (this.options.keyboard.bindToWindow === true) { if (this.options.keyboard.bindToWindow === true) {
this.keycharm = keycharm({container: window, preventDefault: true}); this.keycharm = keycharm({container: window, preventDefault: true});
} }

+ 1
- 0
lib/network/modules/components/nodes/util/CircleImageBase.js View File

@ -75,6 +75,7 @@ class CircleImageBase extends NodeBase {
} }
_drawImageAtPosition(ctx) { _drawImageAtPosition(ctx) {
console.log(this.options.label, this.imageObj.width)
if (this.imageObj.width != 0) { if (this.imageObj.width != 0) {
// draw the image // draw the image
ctx.globalAlpha = 1.0; ctx.globalAlpha = 1.0;

Loading…
Cancel
Save