盒子模型

基于本地坐标由内到外形成的边界。

可以通过 LeafLayoutopen in new window, LeafBoundsopen in new window了解具体实现过程。

内容边界: contentBounds

填充内容的区域, 不包含 padding。

基准边界: boxBounds

以此为基准向内、向外延伸边界, 包含 padding。

事件边界: eventBounds

基准边界 + 露出的外边框,可响应交互事件。

外部边界: marginBounds

事件边界 + margin。

渲染边界: renderBounds

事件边界 + 阴影等。