chore: Linting for markdown and js
This commit is contained in:
parent
eca8199ed8
commit
1c92e0f655
6677 changed files with 24391 additions and 25987 deletions
|
@ -1,15 +1,15 @@
|
|||
---
|
||||
title: Pattern.sampleOption()
|
||||
---
|
||||
***
|
||||
|
||||
## title: Pattern.sampleOption()
|
||||
|
||||
A pattern's `sampleOption()` method will *sample* a given option,
|
||||
which means to draft it in different iterations while adjusting the input value
|
||||
of the given option.
|
||||
The practical implementation varies based on [the type of option](/config/options/):
|
||||
|
||||
- For options that are an object with a **min** and **max** property, 10 steps will be sampled, between min and max
|
||||
- For options that are a numeric value (**constants**), 10 steps will be sampled between 90% and 110% of the value
|
||||
- For options with a **list** of options, each option in the list will be sampled
|
||||
* For options that are an object with a **min** and **max** property, 10 steps will be sampled, between min and max
|
||||
* For options that are a numeric value (**constants**), 10 steps will be sampled between 90% and 110% of the value
|
||||
* For options with a **list** of options, each option in the list will be sampled
|
||||
|
||||
<Tip>
|
||||
The goal of option sampling is to verify the impact of an option on the pattern, and verify that
|
||||
|
@ -33,12 +33,10 @@ In other words, for each sample, the anchor point will be kept in the same locat
|
|||
|
||||
```js
|
||||
Pattern pattern.sampleOption(string option)
|
||||
```
|
||||
```
|
||||
|
||||
## Pattern.sampleOption() example
|
||||
|
||||
|
||||
|
||||
```js
|
||||
import Aaron from "@freesewing/aaron"
|
||||
import models from "@freesewing/models"
|
||||
|
@ -48,5 +46,4 @@ const pattern = new aaron({
|
|||
})
|
||||
|
||||
const svg = pattern.sampleOption("necklineDrop").render()
|
||||
```
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue