thorvg/src
Hermet Park 2264d0ca79 lottie/expressions: spec coverage++
support pointOnPath() and layer/group child exploration

{pathProperty}.pointOnPath(percentage = 0.5, t = time)

get the x,y coordinates of an arbitrary point along a path.
the point is expressed as a percentage of the arc-length of the path.
0% is the first point and 100% is the last point.

when the path is closed, 0% and 100% will return the same coordinates.
percentage of arc-length is used to ensure uniform speed along the path.
other than 0% and 100%, percentages do not necessarily correlate with
the Bezier points on the path - For a path with three points,
the second point will not necessarily be at 50%.

this also means that for an open path and closed path with identical points,
the percentage along the open path will not return the same coordinates
as the closed path due to the additional length of the closed path.

optionally specify the time at which to sample the path.

issue: https://github.com/thorvg/thorvg/issues/2233
2025-05-23 11:21:14 +09:00
..
bindings wasm: enable software only it's valid 2025-05-22 15:34:58 +09:00
common gl_engine: revert some wrong change 2025-05-16 02:08:25 +09:00
loaders lottie/expressions: spec coverage++ 2025-05-23 11:21:14 +09:00
renderer renderer/path: added point on path 2025-05-23 11:21:14 +09:00
savers renderer: ++wasm build portability 2025-03-12 13:14:13 +09:00
meson.build infra: added double-precison promotion warning 2025-02-12 19:12:06 +09:00