目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Snap.path.getBBox(path)

优质
小牛编辑
131浏览
2023-12-01

Utility method Returns the bounding box of a given path

Parameters

  1. pathstringpath string

Returns: object bounding box

  1. {
    1. x: numberx coordinate of the left top point of the box,
    2. y: numbery coordinate of the left top point of the box,
    3. x2: numberx coordinate of the right bottom point of the box,
    4. y2: numbery coordinate of the right bottom point of the box,
    5. width: numberwidth of the box,
    6. height: numberheight of the box
  2. }