From 5006f5b862b702e2139a13e0f893c2ff3baf472f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1n=20D=C3=A9nes?= Date: Sun, 18 Dec 2022 12:38:08 +0100 Subject: [PATCH] Missing const for web deployment --- src/anchor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/anchor.js b/src/anchor.js index 0a06d96..e00c612 100644 --- a/src/anchor.js +++ b/src/anchor.js @@ -90,7 +90,7 @@ const anchor = exports.parse = (raw, name, points={}, start=new Point(), mirror= // Actual orient/shift/rotate/affect handling // - resist = a.sane(raw.resist || false, `${name}.resist`, 'boolean')() + const resist = a.sane(raw.resist || false, `${name}.resist`, 'boolean')() const rotator = (config, name, point) => { // simple case: number gets added to point rotation if (a.type(config)(units) == 'number') { @@ -107,7 +107,7 @@ const anchor = exports.parse = (raw, name, points={}, start=new Point(), mirror= rotator(raw.orient, `${name}.orient`, point) } if (raw.shift !== undefined) { - let xyval = a.wh(raw.shift, `${name}.shift`)(units) + const xyval = a.wh(raw.shift, `${name}.shift`)(units) point.shift(xyval, true, resist) } if (raw.rotate !== undefined) {