2021-12-28 21:07:45 +01:00
|
|
|
---
|
|
|
|
title: scale
|
|
|
|
---
|
|
|
|
|
2022-12-14 21:02:30 -08:00
|
|
|
The `scale` setting is an overall scaling factor that will influence a variety of
|
2021-12-28 21:07:45 +01:00
|
|
|
factors to better support very large or very small patterns.
|
|
|
|
|
|
|
|
To be clear, `scale` does not change the size of the pattern itself.
|
2022-02-19 08:04:25 +01:00
|
|
|
It merely controls things like the various stroke width, the size of arrows
|
2021-12-28 21:07:45 +01:00
|
|
|
on dimensions, the size of the text on the pattern, and so on.
|
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
## Signature
|
2021-12-28 21:07:45 +01:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
```js
|
|
|
|
const settings = {
|
|
|
|
Number scale=1
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example
|
2021-12-28 21:07:45 +01:00
|
|
|
|
|
|
|
```js
|
2022-10-02 17:41:04 +02:00
|
|
|
import { Aaron } from "@freesewing/aaron"
|
2021-12-28 21:07:45 +01:00
|
|
|
|
2022-10-02 17:41:04 +02:00
|
|
|
const pattern = new Aaron({
|
2021-12-28 21:07:45 +01:00
|
|
|
scale: 0.5
|
|
|
|
})
|
|
|
|
```
|
2022-10-02 17:41:04 +02:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
This is a feature request by those users that our generating pattern
|
|
|
|
for dolls. At such small sizes, many snippets, text, or logos become
|
|
|
|
so large (in comparison to the pattern) that they are problematic.
|