Replace tabs by 4 spaces, and removes reduntant code identified by ESLint.
This commit is contained in:
parent
11bb820f07
commit
ed8caab208
13 changed files with 318 additions and 361 deletions
|
@ -15,7 +15,6 @@ function draftBack({
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
store,
|
store,
|
||||||
units,
|
|
||||||
utils,
|
utils,
|
||||||
scale,
|
scale,
|
||||||
}) {
|
}) {
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
import { bib } from './bib.mjs'
|
import { bib } from './bib.mjs'
|
||||||
|
|
||||||
function draftBibPlacket({
|
function draftBibPlacket({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
Point,
|
||||||
Path,
|
Path,
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
|
||||||
snippets,
|
|
||||||
sa,
|
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
store,
|
store,
|
||||||
|
|
|
@ -13,7 +13,6 @@ function draftFront({
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
store,
|
store,
|
||||||
units,
|
|
||||||
utils,
|
utils,
|
||||||
scale,
|
scale,
|
||||||
}) {
|
}) {
|
||||||
|
|
|
@ -1,20 +1,6 @@
|
||||||
import { back } from './back.mjs'
|
import { back } from './back.mjs'
|
||||||
|
|
||||||
function draftHammerLoop({
|
function draftHammerLoop({ options, Point, Path, points, paths, sa, macro, part, store, scale }) {
|
||||||
measurements,
|
|
||||||
options,
|
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
|
||||||
paths,
|
|
||||||
Snippet,
|
|
||||||
snippets,
|
|
||||||
sa,
|
|
||||||
macro,
|
|
||||||
part,
|
|
||||||
store,
|
|
||||||
scale,
|
|
||||||
}) {
|
|
||||||
if (!options.hammerLoop) return part.hide()
|
if (!options.hammerLoop) return part.hide()
|
||||||
|
|
||||||
const hammerLoopLength = store.get('hammerLoopLength') * options.hammerLoopLengthFactor
|
const hammerLoopLength = store.get('hammerLoopLength') * options.hammerLoopLengthFactor
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
import { back } from './back.mjs'
|
import { back } from './back.mjs'
|
||||||
|
|
||||||
function draftPocketBack({
|
function draftPocketBack({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
Snippet,
|
||||||
|
@ -13,7 +10,6 @@ function draftPocketBack({
|
||||||
sa,
|
sa,
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
store,
|
|
||||||
scale,
|
scale,
|
||||||
}) {
|
}) {
|
||||||
if (!options.pocketBack) return part.hide()
|
if (!options.pocketBack) return part.hide()
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
import { bib } from './bib.mjs'
|
import { bib } from './bib.mjs'
|
||||||
|
|
||||||
function draftPocketBib({
|
function draftPocketBib({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
Snippet,
|
||||||
|
@ -13,7 +10,6 @@ function draftPocketBib({
|
||||||
sa,
|
sa,
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
store,
|
|
||||||
scale,
|
scale,
|
||||||
}) {
|
}) {
|
||||||
if (!options.pocketBib) return part.hide()
|
if (!options.pocketBib) return part.hide()
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
import { back } from './back.mjs'
|
import { back } from './back.mjs'
|
||||||
|
|
||||||
function draftPocketCarpenter({
|
function draftPocketCarpenter({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
Snippet,
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
import { back } from './back.mjs'
|
import { back } from './back.mjs'
|
||||||
|
|
||||||
function draftPocketCarpenterExtra({
|
function draftPocketCarpenterExtra({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
|
||||||
snippets,
|
snippets,
|
||||||
sa,
|
sa,
|
||||||
macro,
|
macro,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { front } from './front.mjs'
|
import { front } from './front.mjs'
|
||||||
|
|
||||||
function draftPocketSlash({
|
function draftPocketSlash({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
Point,
|
Point,
|
||||||
Path,
|
Path,
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
import { pocketSlash } from './pocketslash.mjs'
|
import { pocketSlash } from './pocketslash.mjs'
|
||||||
|
|
||||||
function draftPocketSlashShield({
|
function draftPocketSlashShield({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
Point,
|
|
||||||
Path,
|
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
|
||||||
snippets,
|
snippets,
|
||||||
sa,
|
sa,
|
||||||
macro,
|
macro,
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
import { front } from './front.mjs'
|
import { front } from './front.mjs'
|
||||||
|
|
||||||
function draftWaistband({
|
function draftWaistband({
|
||||||
measurements,
|
|
||||||
options,
|
options,
|
||||||
absoluteOptions,
|
absoluteOptions,
|
||||||
Point,
|
Point,
|
||||||
Path,
|
Path,
|
||||||
points,
|
points,
|
||||||
paths,
|
paths,
|
||||||
Snippet,
|
|
||||||
snippets,
|
|
||||||
sa,
|
sa,
|
||||||
macro,
|
macro,
|
||||||
part,
|
part,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue