Skip to content

Commit

Permalink
Missing const for web deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzealot committed Dec 18, 2022
1 parent da1417c commit 5006f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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) {
Expand Down

0 comments on commit 5006f5b

Please sign in to comment.