1
0
Fork 0
freesewing/markdown/dev/reference/settings/scale/en.md

35 lines
763 B
Markdown
Raw Normal View History

2021-12-28 21:07:45 +01:00
---
title: scale
---
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.
## Signature
2021-12-28 21:07:45 +01:00
```js
const settings = {
Number scale=1
}
```
## Example
2021-12-28 21:07:45 +01:00
```js
import { Aaron } from "@freesewing/aaron"
2021-12-28 21:07:45 +01:00
const pattern = new Aaron({
2021-12-28 21:07:45 +01:00
scale: 0.5
})
```
## 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.