mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +02:00
style fixes for eslint
This commit is contained in:
parent
c66badc53c
commit
6c15577653
1 changed files with 31 additions and 29 deletions
|
@ -73,7 +73,9 @@ Grid = function (opts) {
|
|||
updateGrid();
|
||||
};
|
||||
|
||||
that.getVisible = function () { return that.visible; };
|
||||
that.getVisible = function() {
|
||||
return that.visible;
|
||||
};
|
||||
that.setVisible = function(visible, noUpdate) {
|
||||
that.visible = visible;
|
||||
updateGrid();
|
||||
|
@ -125,7 +127,7 @@ Grid = function (opts) {
|
|||
position.z = Math.round(position.z / spacing) * spacing;
|
||||
|
||||
return Vec3.sum(Vec3.sum(position, Vec3.multiplyVbyV(registration, dimensions)), origin);
|
||||
}
|
||||
};
|
||||
|
||||
that.snapToSpacing = function(delta, majorOnly) {
|
||||
if (!snapToGrid) {
|
||||
|
@ -223,7 +225,7 @@ Grid = function (opts) {
|
|||
|
||||
that.addListener = function (callback) {
|
||||
that.onUpdate = callback;
|
||||
}
|
||||
};
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
updateGrid();
|
||||
|
@ -255,7 +257,7 @@ GridTool = function (opts) {
|
|||
try {
|
||||
data = JSON.parse(data);
|
||||
} catch (e) {
|
||||
print("gridTool.js: Error parsing JSON: " + e.name + " data " + data)
|
||||
print("gridTool.js: Error parsing JSON: " + e.name + " data " + data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -284,11 +286,11 @@ GridTool = function (opts) {
|
|||
|
||||
that.addListener = function(callback) {
|
||||
listeners.push(callback);
|
||||
}
|
||||
};
|
||||
|
||||
that.setVisible = function(visible) {
|
||||
webView.setVisible(visible);
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue