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

Element.getSubpath(from, to)

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

Returns subpath of a given element from given start and end lengths (only works for path elements)

Parameters

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

Returns: string path string definition for the segment