Skip to content
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

[feat] add tripLayerKeyframe for Kepler Trip Layer support #101

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented Jun 9, 2021

When a kepler json with an active trip layer is loaded, the setLayerAnimationTime can be animated with keyframes stored in redux using the following action. Applying the animation happens automatically within the worldview kepler hook.

Usage in user code:

dispatch(updateTripLayerKeyframes({
  timings: [0, 1000, 2000],
  keyframes: [
    {time: 1671000000000},
    {time: 1671001000000},
    {time: 1671002000000}
  ],
  easings: easing.linear
}));

@coveralls
Copy link

coveralls commented Jun 9, 2021

Pull Request Test Coverage Report for Build 920603728

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 920473214: 0.0%
Covered Lines: 2
Relevant Lines: 2

💛 - Coveralls

@chrisgervang chrisgervang changed the title [feat] Add tripLayerKeyframe for Kepler Trip Layer [feat] Worldview add tripLayerKeyframe for Kepler Trip Layer support Jun 9, 2021
@chrisgervang chrisgervang changed the title [feat] Worldview add tripLayerKeyframe for Kepler Trip Layer support [feat] add tripLayerKeyframe for Kepler Trip Layer support Jun 9, 2021
@chrisgervang chrisgervang merged commit e5a8c87 into visgl:master Jun 9, 2021
@chrisgervang chrisgervang deleted the chr/trip-layer branch June 9, 2021 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants