fix compilation warnings

This commit is contained in:
Val Erastov 2015-07-19 21:16:58 -07:00
parent e47235d482
commit e8054a509b
4 changed files with 7 additions and 6 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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;

View file

@ -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) {
}
}
}