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

324 B

title
preDraft

The preDraft lifecycle hook runs just before your pattern is drafted.

Signature

null hook(Pattern pattern)

Example

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

Notes

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