chore: Port FreeSewing.dev to docusaurus
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
This commit is contained in:
parent
497633d1d3
commit
ab3204f9f1
692 changed files with 11037 additions and 20674 deletions
27
sites/dev/docs/reference/api/svg/asrenderprops/readme.mdx
Normal file
27
sites/dev/docs/reference/api/svg/asrenderprops/readme.mdx
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Svg.asRenderProps()
|
||||
---
|
||||
|
||||
The `Svg.asRenderProps()` method will return the data stored in the
|
||||
svg as a serializable JavaScript object. This method is typically
|
||||
not invoked directly but rather called under the hood as a result of
|
||||
calling [`Pattern.getRenderProps()`](/reference/api/pattern/getrenderprops).
|
||||
|
||||
## Signature
|
||||
|
||||
```js
|
||||
Object svg.asRenderProps()
|
||||
```
|
||||
|
||||
## Returned object properties
|
||||
|
||||
The returned JavaScript object has the following properties:
|
||||
|
||||
| Name | Description |
|
||||
| ----:| ----------- |
|
||||
| `attributes` | The result of [Path.attributes.asRenderProps()](/reference/api/attributes/asrenderprops) |
|
||||
| `layout` | A plain object describing the layout of the SVG |
|
||||
| `body` | A string holding the SVG body |
|
||||
| `style` | A string holding the SVG style |
|
||||
| `defs` | A string holding the SVG defs |
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue