+
Skip to content

lottie: expressions++ #3402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

lottie: expressions++ #3402

wants to merge 2 commits into from

Conversation

hermet
Copy link
Member

@hermet hermet commented Apr 14, 2025

No description provided.

@hermet hermet added the enhancement Improve features label Apr 14, 2025
@hermet hermet self-assigned this Apr 14, 2025
@hermet hermet requested a review from mgrudzinska as a code owner April 14, 2025 07:09
@hermet hermet removed the request for review from mgrudzinska April 14, 2025 07:09
@hermet hermet marked this pull request as draft April 14, 2025 07:09
@github-actions github-actions bot added lottie Lottie animation renderer Core rendering labels Apr 14, 2025
@hermet hermet changed the title expressions++ lottie: expressions++ Apr 15, 2025
@hermet hermet force-pushed the hermet/expressions branch from 871cd26 to 2264d0c Compare May 23, 2025 02:21
@hermet hermet force-pushed the main branch 2 times, most recently from fcbdcc9 to e20562c Compare June 19, 2025 07:11
@hermet hermet force-pushed the hermet/expressions branch from 2264d0c to 0800c7c Compare June 22, 2025 11:29
@hermet hermet force-pushed the main branch 8 times, most recently from 7ceb794 to 43923a5 Compare June 25, 2025 15:59
hermet added 2 commits July 10, 2025 20:38
return a point at the given position.
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: #2233
@hermet hermet force-pushed the hermet/expressions branch from 0800c7c to 6fb9a86 Compare July 10, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve features lottie Lottie animation renderer Core rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载