fixed IO collision

This commit is contained in:
BroodjeAap 2022-09-18 09:02:13 +00:00
parent 92049b4cd5
commit 7d0f1ce8c9
2 changed files with 4 additions and 4 deletions

View file

@ -42,10 +42,10 @@ var DiagramNode = /** @class */ (function () {
return true; return true;
}; };
DiagramNode.prototype.getInputCircleXY = function () { DiagramNode.prototype.getInputCircleXY = function () {
return [this.x, this.y + this.height / 3]; return [this.x, this.y + this.height / 2];
}; };
DiagramNode.prototype.getOutputCircleXY = function () { 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) { DiagramNode.prototype.pointInInputCircle = function (x, y) {
var _a = this.getInputCircleXY(), circleX = _a[0], circleY = _a[1]; var _a = this.getInputCircleXY(), circleX = _a[0], circleY = _a[1];

View file

@ -63,11 +63,11 @@ class DiagramNode {
} }
getInputCircleXY(){ getInputCircleXY(){
return [this.x, this.y + this.height / 3] return [this.x, this.y + this.height / 2]
} }
getOutputCircleXY(){ 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){ pointInInputCircle(x: number, y: number){