mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
fix rectangle tool jittering
This commit is contained in:
parent
f0b2de74ed
commit
42c5ffa13a
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue