Because of the nature of these elements and their lack of a CSS box model, the SVG specification compensates for the lack of a box model by introducing the concept of a bounding box:


bounding box:
  • 就是图形的外切矩形。包含元素的最小矩形

Three kinds of bounding boxes can be computed for an element:

  1. The object bounding box is the bounding box that contains only an element’s geometric shape.

  2. The stroke bounding box is the bounding box that contains an element’s geometric shape and its stroke shape.

  3. The decorated bounding box is the bounding box that contains an element’s geometric shape, its stroke shape and its markers.

读取bbox

text

bounding box

2019-02-16 21:54:55 0 170
这里是评论

相关推荐