From 42c5ffa13a31d9a01ceec2ec59594683f3de5dec Mon Sep 17 00:00:00 2001 From: "Val Erastov (xibyte)" Date: Thu, 14 May 2020 23:38:28 -0700 Subject: [PATCH] fix rectangle tool jittering --- web/app/sketcher/tools/rectangle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/sketcher/tools/rectangle.js b/web/app/sketcher/tools/rectangle.js index e8dd4d1e..dd3083f0 100644 --- a/web/app/sketcher/tools/rectangle.js +++ b/web/app/sketcher/tools/rectangle.js @@ -99,8 +99,8 @@ export class RectangleTool extends Tool { const constraints = [ new AlgNumConstraint(ConstraintDefinitions.Horizontal, [this.rectangle[0]], {angle: 0}), new AlgNumConstraint(ConstraintDefinitions.Horizontal, [this.rectangle[2]], {angle: 180}), - new AlgNumConstraint(ConstraintDefinitions.Vertical, [this.rectangle[3]], {angle: 270}), - new AlgNumConstraint(ConstraintDefinitions.Vertical, [this.rectangle[1]], {angle: 90}), + new AlgNumConstraint(ConstraintDefinitions.Vertical, [this.rectangle[3]], {angle: 90}), + new AlgNumConstraint(ConstraintDefinitions.Vertical, [this.rectangle[1]], {angle: 270}), ]; // constraints.forEach(c => c.initConstants()); this.rectangle.forEach(s => s.stabilize(this.viewer));