diff --git a/designs/florent/src/brimbottom.mjs b/designs/florent/src/brimbottom.mjs index 9ed0a54c103..39fbd86c32e 100644 --- a/designs/florent/src/brimbottom.mjs +++ b/designs/florent/src/brimbottom.mjs @@ -1,9 +1,19 @@ import { pluginBundle } from '@freesewing/plugin-bundle' -function draftFlorentBrimBottom (part) { - let { paperless, sa, store, complete, points, options, macro, Point, paths, Path, measurements } = - part.shorthand() - +function draftFlorentBrimBottom({ + paperless, + sa, + store, + complete, + points, + options, + macro, + Point, + paths, + Path, + measurements, + part, +}) { let scale = 1 let base = scale * measurements.head * (1 + options.headEase) @@ -85,14 +95,14 @@ function draftFlorentBrimBottom (part) { export const brimBottom = { name: 'florent.brimBottom', - measurements: [ 'head' ], - options : { + measurements: ['head'], + options: { // Constants topSide: 0.8, brim: 0, // Percentages headEase: { pct: 2, min: 0, max: 5, menu: 'fit' }, }, - plugins: [ pluginBundle ], + plugins: [pluginBundle], draft: draftFlorentBrimBottom, } diff --git a/designs/florent/src/briminterfacing.mjs b/designs/florent/src/briminterfacing.mjs index 8216b8038f4..e23d78cbfde 100644 --- a/designs/florent/src/briminterfacing.mjs +++ b/designs/florent/src/briminterfacing.mjs @@ -1,8 +1,15 @@ import { brimBottom } from './brimbottom.mjs' -function draftFlorentBrimInterfacing (part) { - let { paperless, sa, complete, points, macro, paths, Path } = part.shorthand() - +function draftFlorentBrimInterfacing({ + paperless, + sa, + complete, + points, + macro, + paths, + Path, + part, +}) { paths.hint = paths.seam.clone().attr('class', 'dashed stroke-sm') paths.outset = new Path() diff --git a/designs/florent/src/brimtop.mjs b/designs/florent/src/brimtop.mjs index 8f0e54fab94..cd62883dfa3 100644 --- a/designs/florent/src/brimtop.mjs +++ b/designs/florent/src/brimtop.mjs @@ -1,8 +1,6 @@ import { brimBottom } from './brimbottom.mjs' -function draftFlorentBrimTop (part) { - let { paperless, sa, complete, points, macro, paths, Path } = part.shorthand() - +function draftFlorentBrimTop({ paperless, sa, complete, points, macro, paths, Path, part }) { paths.hint = new Path() .move(points.tipLeft) .curve(points.tipLeftCp2, points.outerMidCp1, points.outerMid) diff --git a/designs/florent/src/index.mjs b/designs/florent/src/index.mjs index 4b108345a57..bdd0024a331 100644 --- a/designs/florent/src/index.mjs +++ b/designs/florent/src/index.mjs @@ -10,13 +10,8 @@ import { brimInterfacing } from './briminterfacing.mjs' // Create new design const Florent = new Design({ data, - parts: [ - top, side, brimBottom, brimTop, brimInterfacing, - ] + parts: [top, side, brimBottom, brimTop, brimInterfacing], }) // Named exports -export { - top, side, brimBottom, brimTop, brimInterfacing, - Florent, -} +export { top, side, brimBottom, brimTop, brimInterfacing, Florent } diff --git a/designs/florent/src/side.mjs b/designs/florent/src/side.mjs index e6421978cae..1f9825aeb2b 100644 --- a/designs/florent/src/side.mjs +++ b/designs/florent/src/side.mjs @@ -1,9 +1,18 @@ import { top } from './top.mjs' -function draftFlorentSide (part) { - let { store, paperless, sa, complete, points, macro, paths, Path, snippets, Snippet } = - part.shorthand() - +function draftFlorentSide({ + store, + paperless, + sa, + complete, + points, + macro, + paths, + Path, + snippets, + Snippet, + part, +}) { // Clean up for (let i of Object.keys(paths)) { if (i !== 'side') delete paths[i] diff --git a/designs/florent/src/top.mjs b/designs/florent/src/top.mjs index 33ce6e84d8e..b24934d37e9 100644 --- a/designs/florent/src/top.mjs +++ b/designs/florent/src/top.mjs @@ -1,9 +1,19 @@ import { pluginBundle } from '@freesewing/plugin-bundle' -function draftFlorentTop (part) { - let { paperless, sa, points, macro, Point, Path, paths, snippets, Snippet, complete, store } = - part.shorthand() - +function draftFlorentTop({ + paperless, + sa, + points, + macro, + Point, + Path, + paths, + snippets, + Snippet, + complete, + store, + part, +}) { const fitCap = (part, scale) => { let { points, options, Point, Path, measurements } = part.shorthand() @@ -214,14 +224,14 @@ function draftFlorentTop (part) { export const top = { name: 'florent.top', - measurements: [ 'head' ], - options : { + measurements: ['head'], + options: { // Constants topSide: 0.8, brim: 0, // Percentages headEase: { pct: 2, min: 0, max: 5, menu: 'fit' }, }, - plugins: [ pluginBundle ], + plugins: [pluginBundle], draft: draftFlorentTop, }