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

Snap.path.getPointAtLength(path, length)

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

Returns the coordinates of the point located at the given length along the given path

Parameters

  1. pathstringSVG path string
  2. lengthnumberlength, in pixels, from the start ofthe path, excluding non-renderingjumps

Returns: object representation of the point:

  1. {
    1. x: numberx coordinate,
    2. y: numbery coordinate,
    3. alpha: numberangle of derivative
  2. }