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

Element.getPointAtLength(length)

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

Returns coordinates of the point located at the given length on the given path (only works for path elements)

Parameters

  1. 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. }