1
0
Fork 0
freesewing/markdown/dev/reference/hooks/postdraft/en.md
2022-09-30 15:34:59 +02:00

327 B

title
postDraft

The postDraft lifecycle hook runs just after your pattern is drafted.

Signature

null hook(Pattern pattern)

Example

pattern.on('postDraft', pattern => {
  // Mutate the pattern object here
}

Notes

The postDraft hook is rarely used, but it's there if you need it.