Revert "chore: Linting for markdown and js"
This reverts commit 1c92e0f655
.
This commit is contained in:
parent
994874fa72
commit
cba1ab19c8
6627 changed files with 25791 additions and 24211 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,10 +33,12 @@ 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"
|
||||
|
@ -46,4 +48,5 @@ const pattern = new aaron({
|
|||
})
|
||||
|
||||
const svg = pattern.sampleOption("necklineDrop").render()
|
||||
```
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue