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,8 +1,7 @@
import { front } from '@freesewing/simon'
import { bustPlugin } from '@freesewing/plugin-bust'
function simoneFbaFront(part) {
const {
function simoneFbaFront({
measurements,
Point,
points,
@ -15,8 +14,9 @@ function simoneFbaFront(part) {
utils,
sa,
complete,
raise,
} = part.shorthand()
log,
part,
}) {
/*
* Simone is Simon with an FBA (Full Bust Adjustment)
* 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
*/
if (FBA < 0) {
raise.info('No FBA required, using unaltered Simon front')
log.info('No FBA required, using unaltered Simon front')
return part
}