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,17 @@
"use strict";
(function() {
// dep: geo.base
// dep: geo.point
gapp.register("geo.points", [], (root, exports) => {
const base = self.base;
const { base } = root;
const { config } = base;
base.verticesToPoints = verticesToPoints;
base.pointsToVertices = pointsToVertices;
gapp.overlay(base, {
verticesToPoints,
pointsToVertices
});
/**
* converts a geometry point array into a kiri point array
@ -125,4 +129,4 @@ function pointsToVertices(points) {
return vertices;
}
})();
});