mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +01:00
JS Hint fixed errors
This commit is contained in:
parent
69e5534d0d
commit
624409aa30
37
build/d3d.js
vendored
37
build/d3d.js
vendored
@ -1,7 +1,7 @@
|
||||
/******************************************************
|
||||
*
|
||||
* Utils
|
||||
* requires jQuery, Three.js, Clipper.js
|
||||
* requires jQuery, Three.js
|
||||
*
|
||||
******************************************************/
|
||||
|
||||
@ -402,6 +402,22 @@ D3D.Box.prototype.getSystemVersions = function (callback) {
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getSketch = function (id, callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
getAPI(this.api + "sketch/status/?id=" + id, callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getSketchStatus = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
getAPI(this.api + "sketch/status", callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getUpdateStatus = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
@ -410,6 +426,22 @@ D3D.Box.prototype.getUpdateStatus = function (callback) {
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setSketch = function (data, callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
sendAPI(this.api + "sketch", data, callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setSketchClear = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
sendAPI(this.api + "sketch/clear", callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setUpdateDownload = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
@ -540,7 +572,6 @@ D3D.Slicer.prototype.createLines = function () {
|
||||
|
||||
var self = this;
|
||||
function addLine (a, b) {
|
||||
"use strict";
|
||||
|
||||
//think lookup can only be b_a, a_b is only possible when face is flipped
|
||||
var index = lineLookup[a + "_" + b] || lineLookup[b + "_" + a];
|
||||
@ -557,7 +588,7 @@ D3D.Slicer.prototype.createLines = function () {
|
||||
}
|
||||
|
||||
return index;
|
||||
};
|
||||
}
|
||||
|
||||
for (var i = 0; i < this.geometry.faces.length; i ++) {
|
||||
var face = this.geometry.faces[i];
|
||||
|
2
build/d3d.min.js
vendored
2
build/d3d.min.js
vendored
File diff suppressed because one or more lines are too long
32
src/box.js
32
src/box.js
@ -258,6 +258,22 @@ D3D.Box.prototype.getSystemVersions = function (callback) {
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getSketch = function (id, callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
getAPI(this.api + "sketch/status/?id=" + id, callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getSketchStatus = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
getAPI(this.api + "sketch/status", callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.getUpdateStatus = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
@ -266,6 +282,22 @@ D3D.Box.prototype.getUpdateStatus = function (callback) {
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setSketch = function (data, callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
sendAPI(this.api + "sketch", data, callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setSketchClear = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
||||
sendAPI(this.api + "sketch/clear", callback);
|
||||
|
||||
return this;
|
||||
};
|
||||
D3D.Box.prototype.setUpdateDownload = function (callback) {
|
||||
//not tested
|
||||
"use strict";
|
||||
|
@ -41,7 +41,6 @@ D3D.Slicer.prototype.createLines = function () {
|
||||
|
||||
var self = this;
|
||||
function addLine (a, b) {
|
||||
"use strict";
|
||||
|
||||
//think lookup can only be b_a, a_b is only possible when face is flipped
|
||||
var index = lineLookup[a + "_" + b] || lineLookup[b + "_" + a];
|
||||
@ -58,7 +57,7 @@ D3D.Slicer.prototype.createLines = function () {
|
||||
}
|
||||
|
||||
return index;
|
||||
};
|
||||
}
|
||||
|
||||
for (var i = 0; i < this.geometry.faces.length; i ++) {
|
||||
var face = this.geometry.faces[i];
|
||||
|
Loading…
Reference in New Issue
Block a user