1
0
Fork 0

chore(simone): Port to v3 stage 2

This commit is contained in:
joostdecock 2022-09-11 16:55:55 +02:00
parent 9cdb29108f
commit 19cf0d46eb

View file

@ -1,22 +1,22 @@
import { front } from '@freesewing/simon' import { front } from '@freesewing/simon'
import { bustPlugin } from '@freesewing/plugin-bust' import { bustPlugin } from '@freesewing/plugin-bust'
function simoneFbaFront(part) { function simoneFbaFront({
const { measurements,
measurements, Point,
Point, points,
points, Path,
Path, paths,
paths, macro,
macro, options,
options, Snippet,
Snippet, snippets,
snippets, utils,
utils, sa,
sa, complete,
complete, log,
raise, part,
} = part.shorthand() }) {
/* /*
* Simone is Simon with an FBA (Full Bust Adjustment) * Simone is Simon with an FBA (Full Bust Adjustment)
* Which means that we draft simon with the high bust measurement instead * Which means that we draft simon with the high bust measurement instead
@ -41,7 +41,7 @@ function simoneFbaFront(part) {
* return the original part from simon * return the original part from simon
*/ */
if (FBA < 0) { if (FBA < 0) {
raise.info('No FBA required, using unaltered Simon front') log.info('No FBA required, using unaltered Simon front')
return part return part
} }