1
0
Fork 0

chore(octoplushie): Fixed linter warnings

This commit is contained in:
joostdecock 2022-07-31 15:55:54 +02:00
parent 10f07b7196
commit 779a29d29f
3 changed files with 0 additions and 6 deletions

View file

@ -11,7 +11,6 @@ export default function (partNumber, part) {
sa,
paperless,
macro,
utils,
store,
} = part.shorthand()

View file

@ -42,9 +42,6 @@ export default function (partNumber, part) {
legLength *= 1.2
}
}
let skirtWidth =
(options.type == 'octopus' ? 2 : options.type == 'octoplushy' ? 0.7 : 1) * sectionWidth
skirtWidth = skirtWidth < legAdjustedWidth ? legAdjustedWidth : skirtWidth
// console.log({ w: w })
// console.log({ sectionWidth: sectionWidth })

View file

@ -21,11 +21,9 @@ export default function (partNumber, part) {
const c = 0.55191502449351
const w = options.sizeConstant * options.size
const h = options.sizeConstant * options.size * 0.5
const sections = options.type == 'squid' ? 10 : 8
let sectionWidth = (w * 2) / sections
let neckWidth = sectionWidth * options.neckWidth
let legWidth = (w * options.legWidth * options.bottomTopLegRatio * 3.1415) / 2
let legAdjustedWidth = legWidth * options.bottomTopLegRatio
let legLength = ((w * 2) / 3.1415) * options.legLength