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 // Construct the neck opening
let tweak = 1; let tweak = 1;
let target = (measurements.headCircumference * options.neckRatio) / 4; let target = (measurements.headCircumference * options.neckRatio) / 4;
let delta = Infinity; let delta;
do { do {
points.right = new Point((tweak * measurements.headCircumference) / 10, 0); points.right = new Point((tweak * measurements.headCircumference) / 10, 0);
points.bottom = new Point(0, (tweak * measurements.headCircumference) / 12); points.bottom = new Point(0, (tweak * measurements.headCircumference) / 12);

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
export default function(part) { 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.rightCp2 = points.rightCp1.flipY();
points.bottomCp1 = points.bottomCp2.flipX(); points.bottomCp1 = points.bottomCp2.flipX();

View file

@ -1,9 +1,6 @@
export default function(part) { export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand(); 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.edgeLeft = new Point(points.topLeft.x, points.left.y);
points.edgeRight = new Point(points.topRight.x, points.right.y); points.edgeRight = new Point(points.topRight.x, points.right.y);
points.edgeTop = new Point(0, points.topLeft.y); points.edgeTop = new Point(0, points.topLeft.y);

View file

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

View file

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

View file

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