feat(core): Added the postLayout lifecycle hook
This commit is contained in:
parent
2473e225ed
commit
f4ee97a626
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue