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

@ -2,13 +2,12 @@
"use strict";
(function() {
// dep: geo.base
let base = self.base;
if (base.CSG) return;
gapp.register("geo.csg", [], (root, exports) => {
base.CSG = {
const { base } = root;
const CSG = {
union() {
return jscadModeling.booleans.union(...arguments);
@ -52,4 +51,8 @@ base.CSG = {
};
})();
gapp.overlay(base, {
CSG
});
});