54 lines
1 KiB
Text
54 lines
1 KiB
Text
---
|
|
title: 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
|
|
|
|
```js
|
|
Object settings = {
|
|
Object absoluteOptions,
|
|
Boolean complete=true,
|
|
Boolean embed=false,
|
|
Boolean expand=true,
|
|
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:
|
|
|
|
<ReadMore />
|
|
|
|
## Notes
|
|
|
|
You can pass a
|
|
[multiple set of settings](/reference/api/pattern#multisets-in-freesewing)
|
|
objects in an array to the pattern constructor:
|
|
|
|
```js
|
|
new pattern([
|
|
{
|
|
// settings
|
|
},
|
|
{
|
|
// different settings
|
|
},
|
|
])
|
|
```
|