rename path to paths for consistency with other helpers

This commit is contained in:
Stewart Allen 2022-02-17 00:39:50 -05:00
commit b8b7ce70d2
4 changed files with 5 additions and 5 deletions

View file

@ -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
};

View file

@ -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;

View file

@ -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,