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

25 lines
340 B
Text
Raw Normal View History

2022-09-29 23:43:00 +02:00
---
title: postLayout
---
The `postLayout` lifecycle hook runs just after the pattern layout is
calculated.
## Signature
```js
null hook(Pattern pattern)
```
## Example
```js
pattern.on('postLayout', pattern => {
// Mutate the pattern object here
}
```
## Notes
The `postLayout` hook is rarely used, but it's there if you need it.