1
0
Fork 0

feat(core): Added the postLayout lifecycle hook

This commit is contained in:
Joost De Cock 2022-02-20 18:45:44 +01:00
parent 2473e225ed
commit f4ee97a626
2 changed files with 3 additions and 0 deletions

View file

@ -698,6 +698,8 @@ Pattern.prototype.getRenderProps = function () {
svg.runHooks('preRender')
this.pack()
// Run post-layout hook
this.runHooks('postLayout')
let props = { svg }
props.width = this.width
props.height = this.height