rename path to paths for consistency with other helpers
This commit is contained in:
parent
36d3f6b0b6
commit
b8b7ce70d2
4 changed files with 5 additions and 5 deletions
2
app.js
2
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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue