Settings
FreeSewing is all about parametric design, and the settings are the parameters we pass to a pattern when drafting it. Perhaps the most important of all settings are the measurements, but there are other settings too.
Signature
Object settings = {
Object absoluteOptions,
Boolean complete=true,
Boolean embed=false,
String idPrefix='fs-',
Object|Boolean layout=true,
String locale='en',
Number margin=2,
Object measurements,
String|Array|Boolean only=false,
Object options,
Boolean paperless=false,
Number|Boolean sa=false,
Object sample,
Number scale=1,
String stackPrefix='',
String units='metric',
}
Properties
Below is a complete list of all supported properties in a settings object:
- absoluteOptions
- complete
- embed
- idPrefix
- layout
- locale
- margin
- measurements
- only
- options
- paperless
- sa
- sample
- scale
- stackPrefix
- units
Notes
You can pass a multiple set of settings objects in an array to the pattern constructor:
new pattern([
{
// settings
},
{
// different settings
},
])