normalize copyright header
fix var tab
This commit is contained in:
parent
bd51ac38f0
commit
9dbb790985
28 changed files with 112 additions and 96 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
@ -27,6 +29,8 @@
|
||||||
return this.mirror(2);
|
return this.mirror(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// fast mirror of vertices given axis array offset
|
||||||
|
// array elements are repeating [x,y,z,x,y,z,...]
|
||||||
MP.mirror = function(start) {
|
MP.mirror = function(start) {
|
||||||
var i,
|
var i,
|
||||||
geo = this.geometry,
|
geo = this.geometry,
|
||||||
|
|
@ -41,6 +45,7 @@
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// center geometry on x,y,z coordinates (defaults to 0,0,0)
|
||||||
GP.center = function(x,y,z) {
|
GP.center = function(x,y,z) {
|
||||||
var box = this.getBoundingBox(),
|
var box = this.getBoundingBox(),
|
||||||
mid = box.dim.clone().multiplyScalar(0.5),
|
mid = box.dim.clone().multiplyScalar(0.5),
|
||||||
|
|
@ -63,13 +68,14 @@
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// return cached or refreshed (when update = true) bounding box
|
||||||
GP.getBoundingBox = function(update) {
|
GP.getBoundingBox = function(update) {
|
||||||
//if (update) this.boundingBox = null;
|
|
||||||
if (update || !this.boundingBox) this.computeBoundingBox();
|
if (update || !this.boundingBox) this.computeBoundingBox();
|
||||||
this.boundingBox.dim = this.boundingBox.max.clone().sub(this.boundingBox.min);
|
this.boundingBox.dim = this.boundingBox.max.clone().sub(this.boundingBox.min);
|
||||||
return this.boundingBox;
|
return this.boundingBox;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// uniformly scale any mesh to a max x/y/z dim of 'unit' (defaults to 1)
|
||||||
GP.unitScale = function(unit) {
|
GP.unitScale = function(unit) {
|
||||||
var bbox = this.getBoundingBox(),
|
var bbox = this.getBoundingBox(),
|
||||||
scale = unit || 1;
|
scale = unit || 1;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_bounds = {
|
var gs_base_bounds = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_debug = {
|
var gs_base_debug = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_line = {
|
var gs_base_line = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_point = {
|
var gs_base_point = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_polygon = {
|
var gs_base_polygon = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_polygons = {
|
var gs_base_polygons = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_render = {
|
var gs_base_render = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base_slope = {
|
var gs_base_slope = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_base = {
|
var gs_base = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_kiri_codec = {
|
var gs_kiri_codec = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var gs_kiri_db = exports;
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
if (!self.kiri) self.kiri = { };
|
if (!self.kiri) self.kiri = { };
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_kiri_layer = {
|
var gs_kiri_layer = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_kiri_pack = {
|
var gs_kiri_pack = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* adapted from
|
* adapted from
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var gs_kiri_serial = exports;
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
if (!self.kiri) return;
|
if (!self.kiri) return;
|
||||||
if (self.kiri.serial) return;
|
if (self.kiri.serial) return;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_kiri_widget = {
|
var gs_kiri_widget = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
if (self.window) {
|
if (self.window) {
|
||||||
|
|
||||||
if (!self.kiri) self.kiri = {};
|
if (!self.kiri) self.kiri = {};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/**
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
* Copyright 2014-2017 Stewart Allen -- All Rights Reserved
|
|
||||||
*/
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
self.kiri = (self.kiri || {});
|
self.kiri = (self.kiri || {});
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,7 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_meta = {
|
var gs_meta = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved",
|
|
||||||
sendTo:"http://grid.space"
|
|
||||||
};
|
|
||||||
|
|
||||||
THREE.Material.prototype.motoSetup = function() {
|
THREE.Material.prototype.motoSetup = function() {
|
||||||
this.fog = false;
|
this.fog = false;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_ajax = {
|
var gs_moto_ajax = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
if (!self.moto) self.moto = {};
|
if (!self.moto) self.moto = {};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_ctrl = {
|
var gs_moto_ctrl = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapted from OrbitControls
|
* Adapted from OrbitControls
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_db = {
|
var gs_moto_db = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_kv = {
|
var gs_moto_kv = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_space = {
|
var gs_moto_space = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
/** Copyright 2014-2017 Stewart Allen -- All Rights Reserved */
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var gs_moto_ui = {
|
var gs_moto_ui = exports;
|
||||||
copyright:"stewart allen <stewart@neuron.com> -- all rights reserved"
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue