1
0
Fork 0

chore(markdown): Add Svg.render() documentation

This commit is contained in:
Benjamin Fan 2024-01-24 20:20:10 -08:00
parent af9b27c8e3
commit 9593e8d078

View file

@ -2,4 +2,28 @@
title: Svg.render()
---
FIXME: Write docs
The `Svg.render()` method will render a drafted
[Pattern](/reference/core/pattern) as SVG.
## Signature
```js
string svg.render()
```
## Svg.render() example
```
import { Aaron } from "@freesewing/aaron"
// 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 = new Svg(pattern).render()
```