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/three",
|
||||||
"add/class",
|
"add/class",
|
||||||
"geo/base",
|
"geo/base",
|
||||||
"geo/path",
|
|
||||||
"geo/wasm",
|
"geo/wasm",
|
||||||
|
"geo/paths",
|
||||||
"geo/point",
|
"geo/point",
|
||||||
"geo/points",
|
"geo/points",
|
||||||
"geo/slope",
|
"geo/slope",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
const base = self.base;
|
const base = self.base;
|
||||||
if (base.path) return;
|
if (base.paths) return;
|
||||||
|
|
||||||
const { util, config, newPoint } = base;
|
const { util, config, newPoint } = base;
|
||||||
const { sqr, numOrDefault } = util;
|
const { sqr, numOrDefault } = util;
|
||||||
|
|
@ -103,7 +103,7 @@ function poly2polyEmit(array, startPoint, emitter, opt = {}) {
|
||||||
return startPoint;
|
return startPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
base.path = {
|
base.paths = {
|
||||||
poly2polyEmit,
|
poly2polyEmit,
|
||||||
tip2tipEmit
|
tip2tipEmit
|
||||||
};
|
};
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
let KIRI = self.kiri,
|
let KIRI = self.kiri,
|
||||||
BASE = self.base,
|
BASE = self.base,
|
||||||
POLY = BASE.polygons,
|
POLY = BASE.polygons,
|
||||||
PATH = BASE.path,
|
PATH = BASE.paths,
|
||||||
CAM = KIRI.driver.CAM,
|
CAM = KIRI.driver.CAM,
|
||||||
{ newPoint } = BASE,
|
{ newPoint } = BASE,
|
||||||
{ tip2tipEmit, poly2polyEmit } = PATH;
|
{ tip2tipEmit, poly2polyEmit } = PATH;
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
const KIRI = self.kiri,
|
const KIRI = self.kiri,
|
||||||
BASE = self.base,
|
BASE = self.base,
|
||||||
PATH = BASE.path,
|
|
||||||
UTIL = BASE.util,
|
UTIL = BASE.util,
|
||||||
|
PATH = BASE.paths,
|
||||||
SQR = UTIL.sqr,
|
SQR = UTIL.sqr,
|
||||||
PI = Math.PI,
|
PI = Math.PI,
|
||||||
PRO = Print.prototype,
|
PRO = Print.prototype,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue