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,11 +2,12 @@
"use strict";
(function() {
const base = self.base;
if (base.polygons) return;
// dep: geo.base
// dep: geo.point
// use: geo.polygon
gapp.register("base.polygons", [], (root, exports) => {
const { base } = root;
const { util, config, newPoint } = base;
const { sqr, numOrDefault } = util;
@ -954,4 +955,4 @@ function route(polys, start) {
return routed.map(r => r.poly);
}
})();
});