diff --git a/static/diagram.js b/static/diagram.js index 9c75074..445daf9 100644 --- a/static/diagram.js +++ b/static/diagram.js @@ -42,10 +42,10 @@ var DiagramNode = /** @class */ (function () { return true; }; DiagramNode.prototype.getInputCircleXY = function () { - return [this.x, this.y + this.height / 3]; + return [this.x, this.y + this.height / 2]; }; DiagramNode.prototype.getOutputCircleXY = function () { - return [this.x + this.width, this.y + this.height / 3]; + return [this.x + this.width, this.y + this.height / 2]; }; DiagramNode.prototype.pointInInputCircle = function (x, y) { var _a = this.getInputCircleXY(), circleX = _a[0], circleY = _a[1]; diff --git a/static/diagram.ts b/static/diagram.ts index 35549a6..e31756f 100644 --- a/static/diagram.ts +++ b/static/diagram.ts @@ -63,11 +63,11 @@ class DiagramNode { } getInputCircleXY(){ - return [this.x, this.y + this.height / 3] + return [this.x, this.y + this.height / 2] } getOutputCircleXY(){ - return [this.x + this.width, this.y + this.height / 3] + return [this.x + this.width, this.y + this.height / 2] } pointInInputCircle(x: number, y: number){