- Howtos
- Common code challenges
- Accessing measurements
Accessing measurements
Measurements are available on the measurements
key of from the object passed
to your part’s draft method. You can destructure them for easy access.
mjs
design/src/part
function draftPart = ({
measurements,
part
}) {
const a = measurements.chest
const b = measurements['hips']
return part
}
NOTE
Keep in mind that FreeSewing uses millimeter for everything.