From 7d0f1ce8c9fffbc00de2d0b9fdffae9d8204f87c Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 18 Sep 2022 09:02:13 +0000 Subject: [PATCH] fixed IO collision --- static/diagram.js | 4 ++-- static/diagram.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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){