diff --git a/app.js b/app.js index 7a23330c..5f77cbdf 100644 --- a/app.js +++ b/app.js @@ -383,8 +383,8 @@ const script = { "add/three", "add/class", "geo/base", - "geo/path", "geo/wasm", + "geo/paths", "geo/point", "geo/points", "geo/slope", diff --git a/src/geo/path.js b/src/geo/paths.js similarity index 98% rename from src/geo/path.js rename to src/geo/paths.js index da1adf19..f3de4378 100644 --- a/src/geo/path.js +++ b/src/geo/paths.js @@ -5,7 +5,7 @@ (function() { const base = self.base; -if (base.path) return; +if (base.paths) return; const { util, config, newPoint } = base; const { sqr, numOrDefault } = util; @@ -103,7 +103,7 @@ function poly2polyEmit(array, startPoint, emitter, opt = {}) { return startPoint; } -base.path = { +base.paths = { poly2polyEmit, tip2tipEmit }; diff --git a/src/kiri-mode/cam/prepare.js b/src/kiri-mode/cam/prepare.js index 6daf725b..8aae9439 100644 --- a/src/kiri-mode/cam/prepare.js +++ b/src/kiri-mode/cam/prepare.js @@ -7,7 +7,7 @@ let KIRI = self.kiri, BASE = self.base, POLY = BASE.polygons, - PATH = BASE.path, + PATH = BASE.paths, CAM = KIRI.driver.CAM, { newPoint } = BASE, { tip2tipEmit, poly2polyEmit } = PATH; diff --git a/src/kiri/print.js b/src/kiri/print.js index 9d15d2cc..65b15343 100644 --- a/src/kiri/print.js +++ b/src/kiri/print.js @@ -8,8 +8,8 @@ const KIRI = self.kiri, BASE = self.base, - PATH = BASE.path, UTIL = BASE.util, + PATH = BASE.paths, SQR = UTIL.sqr, PI = Math.PI, PRO = Print.prototype,