mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 12:53:52 +01:00
fix object recovery if it linked to auxiliary object
This commit is contained in:
parent
2e49847d32
commit
cba2f565e6
1 changed files with 2 additions and 4 deletions
|
|
@ -635,10 +635,8 @@ Segment.prototype.validate = function() {
|
|||
|
||||
Segment.prototype.recover = function() {
|
||||
var recoverLength = 100;
|
||||
this.a.x -= recoverLength;
|
||||
this.a.y -= recoverLength;
|
||||
this.b.x += recoverLength;
|
||||
this.b.y += recoverLength;
|
||||
this.a.translate(-recoverLength, -recoverLength);
|
||||
this.b.translate( recoverLength, recoverLength);
|
||||
};
|
||||
|
||||
Segment.prototype.collectParams = function(params) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue