mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 01:44:19 +01:00
fix line ange constraint serialization and visualization
This commit is contained in:
parent
3f8f264851
commit
9efe277da0
1 changed files with 6 additions and 2 deletions
|
|
@ -1305,11 +1305,11 @@ TCAD.TWO.Constraints.Angle.prototype.getSolveData = function() {
|
|||
};
|
||||
|
||||
TCAD.TWO.Constraints.Angle.prototype.serialize = function() {
|
||||
return [this.NAME, [this.p1.id, this.p2.id, this.p3.id, this.p4.id, this.angle.get()]];
|
||||
return [this.NAME, [this.p1.id, this.p2.id, this.p3.id, this.p4.id, this.angle]];
|
||||
};
|
||||
|
||||
TCAD.TWO.Constraints.Factory[TCAD.TWO.Constraints.Angle.prototype.NAME] = function(refs, data) {
|
||||
return new TCAD.TWO.Constraints.Angle( refs(data[0]), refs(data[1]), data[2] );
|
||||
return new TCAD.TWO.Constraints.Angle( refs(data[0]), refs(data[1]), refs(data[2]), refs(data[3]), data[4] );
|
||||
};
|
||||
|
||||
TCAD.TWO.Constraints.Angle.prototype.getObjects = function() {
|
||||
|
|
@ -1328,6 +1328,10 @@ TCAD.TWO.Constraints.Angle.prototype.getObjects = function() {
|
|||
add(obj);
|
||||
}
|
||||
}
|
||||
check(this.p1);
|
||||
check(this.p2);
|
||||
check(this.p3);
|
||||
check(this.p4);
|
||||
return out;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue