2022-09-30 15:34:59 +02:00
|
|
|
---
|
|
|
|
title: Settings
|
|
|
|
---
|
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
FreeSewing is all about parametric design, and the settings are the parameters
|
2025-05-23 20:05:28 -07:00
|
|
|
we pass to a pattern when drafting it. Perhaps the most important of all
|
2024-02-02 06:52:36 -08:00
|
|
|
settings are the measurements, but there are other settings too.
|
2022-09-30 15:34:59 +02:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
## Signature
|
|
|
|
|
|
|
|
```js
|
|
|
|
Object settings = {
|
2022-12-14 21:02:30 -08:00
|
|
|
Object absoluteOptions,
|
2022-10-02 17:41:04 +02:00
|
|
|
Boolean complete=true,
|
|
|
|
Boolean embed=false,
|
2025-05-23 20:05:28 -07:00
|
|
|
Boolean expand=true,
|
2022-12-14 21:02:30 -08:00
|
|
|
String idPrefix='fs-',
|
|
|
|
Object|Boolean layout=true,
|
2022-10-02 17:41:04 +02:00
|
|
|
String locale='en',
|
|
|
|
Number margin=2,
|
2022-12-14 21:02:30 -08:00
|
|
|
Object measurements,
|
|
|
|
String|Array|Boolean only=false,
|
2022-10-02 17:41:04 +02:00
|
|
|
Object options,
|
2022-12-14 21:02:30 -08:00
|
|
|
Boolean paperless=false,
|
|
|
|
Number|Boolean sa=false,
|
|
|
|
Object sample,
|
|
|
|
Number scale=1,
|
|
|
|
String stackPrefix='',
|
|
|
|
String units='metric',
|
2022-10-02 17:41:04 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
Below is a complete list of all supported properties in a settings object:
|
2022-09-30 15:34:59 +02:00
|
|
|
|
2024-01-29 08:43:38 -08:00
|
|
|
<ReadMore />
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
2024-02-02 06:52:36 -08:00
|
|
|
You can pass a
|
|
|
|
[multiple set of settings](/reference/api/pattern#multisets-in-freesewing)
|
|
|
|
objects in an array to the pattern constructor:
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
new pattern([
|
2025-05-23 20:05:28 -07:00
|
|
|
{
|
2022-10-02 17:41:04 +02:00
|
|
|
// settings
|
|
|
|
},
|
2025-05-23 20:05:28 -07:00
|
|
|
{
|
2022-10-02 17:41:04 +02:00
|
|
|
// different settings
|
|
|
|
},
|
|
|
|
])
|
|
|
|
```
|