1
0
Fork 0

🚨 Removed linter warnings

This commit is contained in:
Joost De Cock 2019-06-01 16:17:45 +02:00
parent d05181cf7a
commit 24aa6401fb
9 changed files with 7 additions and 45 deletions

View file

@ -16,7 +16,7 @@ export default function(part) {
// Construct the neck opening
let tweak = 1;
let target = (measurements.headCircumference * options.neckRatio) / 4;
let delta = Infinity;
let delta;
do {
points.right = new Point((tweak * measurements.headCircumference) / 10, 0);
points.bottom = new Point(0, (tweak * measurements.headCircumference) / 12);

View file

@ -1,13 +1,5 @@
export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro
} = part.shorthand();
let { points, Path, paths, macro } = part.shorthand();
macro("round", {
from: points.topLeft,

View file

@ -2,10 +2,7 @@ export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro,
complete,
snippets,

View file

@ -3,7 +3,7 @@ export default function(part) {
let tweak = 1;
let target = (measurements.headCircumference * options.neckRatio) / 4;
let delta = Infinity;
let delta;
do {
points.right = new Point((tweak * measurements.headCircumference) / 10, 0);
points.bottom = new Point(0, (tweak * measurements.headCircumference) / 12);

View file

@ -1,5 +1,5 @@
export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand();
let { points, Path, paths } = part.shorthand();
points.rightCp2 = points.rightCp1.flipY();
points.bottomCp1 = points.bottomCp2.flipX();

View file

@ -1,9 +1,6 @@
export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand();
let width = measurements.headCircumference * options.widthRatio;
let length = measurements.headCircumference * options.lengthRatio;
points.edgeLeft = new Point(points.topLeft.x, points.left.y);
points.edgeRight = new Point(points.topRight.x, points.right.y);
points.edgeTop = new Point(0, points.topLeft.y);

View file

@ -1,13 +1,5 @@
export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro
} = part.shorthand();
let { Point, points, macro } = part.shorthand();
let strap = points.edgeTop.dy(points.top);

View file

@ -1,13 +1,5 @@
export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro
} = part.shorthand();
let { points, Path, paths, macro } = part.shorthand();
let rotateThese = [
"edgeTopLeftCp",

View file

@ -1,13 +1,5 @@
export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro
} = part.shorthand();
let { points, Path, paths } = part.shorthand();
points.edgeTopRightCp = points.edgeTopLeftCp.flipX();
points.topCp1 = points.topCp2.flipX();