1
0
Fork 0

fix(docs): (stacks) Updates from doc review

This commit is contained in:
Benjamin Fan 2023-05-26 18:42:20 -07:00
parent c29b2c57da
commit a1106226fe
6 changed files with 44 additions and 16 deletions

View file

@ -2,7 +2,8 @@
title: Stack.home()
---
The `Stack.home()` method calculates the stack's bounding box, sets it,
The `Stack.home()` method calculates the stack's bounding box,
setting the `width`, `height`, `topLeft`, and `bottomRight` properties,
and returns the original stack.
## Stack.home() signature
@ -15,3 +16,7 @@ Stack stack.home()
## Notes
The bounding box is calculated taking into consideration the `margin` setting.
`Stack.home()` caches its calculations by checking whether the stack's
`topLeft` property has been set.
If `topLeft` has a truthy value, it will not re-calculate.