calculateSize

open fun calculateSize(): Vec2?

Use this function to calculate the size of this drawable. DO NOT include children in this calculation!

This function is only called if no size is supplied to this drawable at initialization. A return value of null indicates this drawable is not able to infer its own size, as it is for example, a Block with no reference. A drawable such as Text on the other hand, is able to infer its own size.