Browse Source

made database shape box a rectangle

codeClimate
Alex de Mulder 9 years ago
parent
commit
d7eee2275c
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      lib/network/modules/components/nodes/shapes/Database.js

+ 1
- 6
lib/network/modules/components/nodes/shapes/Database.js View File

@ -67,12 +67,7 @@ class Database extends NodeBase {
}
distanceToBorder(ctx, angle) {
this.resize(ctx);
var a = this.width / 2;
var b = this.height / 2;
var w = (Math.sin(angle) * a);
var h = (Math.cos(angle) * b);
return a * b / Math.sqrt(w * w + h * h);
return this._distanceToBorder(ctx,angle);
}
}

Loading…
Cancel
Save