Browse Source

minor tweaks

v3_develop
Alex de Mulder 9 years ago
parent
commit
bb9334e6fd
3 changed files with 9778 additions and 9755 deletions
  1. +9772
    -9745
      dist/vis.js
  2. +1
    -6
      examples/network/34_circular_images.html
  3. +5
    -4
      lib/network/Node.js

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


+ 1
- 6
examples/network/34_circular_images.html View File

@ -76,15 +76,10 @@
};
var options = {
nodes: {
shape: 'circle',
borderWidth:4,
color: {
border: '#222222',
background: '#ffffff',
highlight: {
border: '#428eff',
background: '#ffffff'
}
background: '#666666'
},
fontColor:'#eeeeee'
},

+ 5
- 4
lib/network/Node.js View File

@ -628,15 +628,16 @@ Node.prototype._resizeCircularImage = function (ctx) {
this.growthIndicator = this.options.radius- 0.5*diameter;
this._swapToImageResizeWhenImageLoaded = true;
}
} else {
if (this._swapToImageResizeWhenImageLoaded){
}
else {
if (this._swapToImageResizeWhenImageLoaded) {
this.width = 0;
this.height = 0;
delete this._swapToImageResizeWhenImageLoaded
delete this._swapToImageResizeWhenImageLoaded;
}
this._resizeImage(ctx);
}
};
Node.prototype._drawCircularImage = function (ctx) {

Loading…
Cancel
Save