Browse Source

- Fixed bug where a box shape could not be drawn outside of the viewable area.

webworkersNetwork
Alex de Mulder 8 years ago
parent
commit
7a6246ecc2
4 changed files with 120 additions and 7585 deletions
  1. +1
    -0
      HISTORY.md
  2. +3
    -2
      dist/vis.js
  3. +3
    -2
      lib/network/modules/components/nodes/shapes/Box.js
  4. +113
    -7581
      test/networkTest.html

+ 1
- 0
HISTORY.md View File

@ -6,6 +6,7 @@ http://visjs.org
### Network
- Fixed bug where an edge that was not connected would crash the layout algorithms.
- Fixed bug where a box shape could not be drawn outside of the viewable area.
## 2015-09-14, version 4.8.2

+ 3
- 2
dist/vis.js View File

@ -29099,12 +29099,13 @@ return /******/ (function(modules) { // webpackBootstrap
this.disableBorderDashes(ctx);
ctx.restore();
this.updateBoundingBox(x, y);
this.updateBoundingBox(x, y, ctx, selected);
this.labelModule.draw(ctx, x, y, selected);
}
}, {
key: 'updateBoundingBox',
value: function updateBoundingBox(x, y) {
value: function updateBoundingBox(x, y, ctx, selected) {
this.resize(ctx, selected);
this.left = x - this.width * 0.5;
this.top = y - this.height * 0.5;

+ 3
- 2
lib/network/modules/components/nodes/shapes/Box.js View File

@ -51,11 +51,12 @@ class Box extends NodeBase {
this.disableBorderDashes(ctx);
ctx.restore();
this.updateBoundingBox(x,y);
this.updateBoundingBox(x,y,ctx,selected);
this.labelModule.draw(ctx, x, y, selected);
}
updateBoundingBox(x,y) {
updateBoundingBox(x,y, ctx, selected) {
this.resize(ctx, selected);
this.left = x - this.width * 0.5;
this.top = y - this.height * 0.5;

+ 113
- 7581
test/networkTest.html
File diff suppressed because it is too large
View File


Loading…
Cancel
Save