update add, data, geo to use gapp.register()

This commit is contained in:
Stewart Allen 2022-02-20 14:31:27 -05:00
commit 32e9ceca55
23 changed files with 504 additions and 489 deletions

View file

@ -3,9 +3,7 @@
"use strict";
// extend Array, String, Number, Math
(function() {
gapp.register('add.array');
gapp.register("add.array", [], (root, exports) => {
let AP = {};
@ -234,4 +232,4 @@ Number.prototype.round = function(digits) {
return Math.round(this.valueOf() * pow) / pow;
};
})();
});

View file

@ -2,11 +2,7 @@
"use strict";
(function() {
if (self.ArrayWriter) return;
gapp.register('add.class');
gapp.register("add.class", [], (root, exports) => {
self.ArrayWriter = class ArrayWriter {
constructor() {
@ -174,4 +170,4 @@ self.DataReader = class DataReader {
}
}
})();
});

View file

@ -2,12 +2,10 @@
"use strict";
(function() {
// dep: ext.three
// dep: ext.three-bgu
// dep: ext.three-svg
gapp.register('add.three');
gapp.register("add.three", [], (root, exports) => {
let MP = THREE.Mesh.prototype,
XP = THREE.Box3.prototype,
@ -129,4 +127,4 @@ THREE.Object3D.prototype.removeAll = function() {
this.children = [];
};
})();
});