mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 12:53:52 +01:00
fix compilation warnings
This commit is contained in:
parent
e47235d482
commit
e8054a509b
4 changed files with 7 additions and 6 deletions
|
|
@ -37,6 +37,7 @@ TCAD.constraints.Equal = function(params) {
|
|||
|
||||
};
|
||||
|
||||
/** @constructor */
|
||||
TCAD.constraints.ConstantWrapper = function(constr, mask) {
|
||||
|
||||
this.params = [];
|
||||
|
|
@ -65,6 +66,7 @@ TCAD.constraints.ConstantWrapper = function(constr, mask) {
|
|||
}
|
||||
};
|
||||
|
||||
/** @constructor */
|
||||
TCAD.constraints.Weighted = function(constr, weight) {
|
||||
|
||||
this.params = constr.params;
|
||||
|
|
|
|||
|
|
@ -224,8 +224,8 @@ TCAD.parametric.diagnose = function(sys) {
|
|||
|
||||
TCAD.parametric.prepare = function(constrs, locked, aux, alg) {
|
||||
|
||||
this.lock1(constrs, aux);
|
||||
var lockingConstrs = this.lock2Equals2(constrs, locked);
|
||||
TCAD.parametric.lock1(constrs, aux);
|
||||
var lockingConstrs = TCAD.parametric.lock2Equals2(constrs, locked);
|
||||
Array.prototype.push.apply( constrs, lockingConstrs );
|
||||
|
||||
var sys = new TCAD.parametric.System(constrs);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ TCAD.TWO.FilletTool = function(viewer) {
|
|||
|
||||
TCAD.TWO.FilletTool.prototype.makeFillet = function(point1, point2) {
|
||||
function shrink(point1) {
|
||||
point1.parent.a;
|
||||
if (point1.id === point1.parent.a.id) {
|
||||
var a = point1.parent.b;
|
||||
var b = point1.parent.a;
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ TCAD.io.BBox = function() {
|
|||
this.checkCircBounds(obj.c.x, obj.c.y, obj.r.get());
|
||||
} else if (obj._class === T.CIRCLE) {
|
||||
this.checkCircBounds(obj.c.x, obj.c.y, obj.r.get());
|
||||
} else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
// } else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -410,7 +410,7 @@ TCAD.IO.prototype.svgExport = function () {
|
|||
out.fline('<path d="M $ $ A $ $ 0 $ $ $ $" />', [obj.a.x, obj.a.y, r, r, dir, 1, obj.b.x, obj.b.y]);
|
||||
} else if (obj._class === T.CIRCLE) {
|
||||
out.fline('<circle cx="$" cy="$" r="$" />', [obj.c.x, obj.c.y, obj.r.get()]);
|
||||
} else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
// } else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
}
|
||||
}
|
||||
out.line('</g>');
|
||||
|
|
@ -555,7 +555,7 @@ TCAD.IO.prototype.dxfExport = function () {
|
|||
out.line("0");
|
||||
out.line("40");
|
||||
out.numberln(obj.r.get());
|
||||
} else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
// } else if (obj._class === T.DIM || obj._class === T.HDIM || obj._class === T.VDIM) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue