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

Snap.path.getSubpath(path, from, to)

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

Returns the subpath of a given path between given start and end lengths

Parameters

  1. pathstringSVG path string
  2. fromnumberlength, in pixels, from the start ofthe path to the start of the segment
  3. tonumberlength, in pixels, from the start ofthe path to the end of the segment

Returns: string path string definition for the segment