1
0
Fork 0
freesewing/sites/dev/docs/reference/hooks/postrender/readme.mdx

20 lines
377 B
Text
Raw Normal View History

---
title: postRender
---
2022-09-29 23:43:00 +02:00
The `postRender` lifecycle hook is triggered after the SVG is rendered.
It will only fire when `Pattern.render()` is called.
2022-09-29 23:43:00 +02:00
## Signature
2022-09-29 23:43:00 +02:00
```js
null hook(Svg svg)
```
2022-09-29 23:43:00 +02:00
## Notes
2022-09-29 23:43:00 +02:00
The `postRender` hook is rarely used, but it's there if you need it.
Like the `preRender` hook, it receives [the SVG object](/reference/api/svg) as its first
2022-09-29 23:43:00 +02:00
parameter.