1 KiB
1 KiB
title |
---|
Pattern.getCutList() |
This method will return the cut list, which means the cut
property of
all parts that were included in the most recent call to Pattern.draft()
.
This relies on the pattern designers properly setting the cut property in each part.
This method is chainable as it returns the Pattern object
Pattern.getCutList() signature
Object pattern.getCutList()
Pattern.getCutList() example
import Aaron from "@freesewing/aaron"
import models from "@freesewing/models"
const pattern = new Aaron({
settings: {
embed: true,
},
measurements: models.manSize38
})
const cutList = pattern.draft().getCutList()
Cut list format
The object returned by Pattern.getCutList()
is a plain object
with a property for each part that will be included in the pattern's output.
The value of these properties is the cut
property of the part in question.