chore(markdown): Changes to refer less to models
This commit is contained in:
parent
75eff4f5e4
commit
e35bda36f7
16 changed files with 86 additions and 55 deletions
|
@ -25,11 +25,15 @@ Pattern pattern.sampleMeasurement(string measurement)
|
|||
|
||||
```js
|
||||
import { Aaron } from "@freesewing/aaron"
|
||||
import { cisFemaleAdult34 } from "@freesewing/models"
|
||||
|
||||
const pattern = new Aaron({
|
||||
measurements: cisFemaleAdult34
|
||||
})
|
||||
// Load some public test measurements from the FreeSewing backend
|
||||
const measurements = (
|
||||
await (
|
||||
await fetch("https://backend3.freesewing.org/curated-sets/1.json")
|
||||
).json()
|
||||
).measurements
|
||||
|
||||
const pattern = new Aaron({ measurements })
|
||||
|
||||
const svg = pattern.draft().sampleMeasurement('chest')
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue