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

TimeLine animation range #3291

Merged

Conversation

baloola
Copy link
Contributor

@baloola baloola commented Oct 26, 2018

Description

  • Animations ( in the mockup ) were played without setting a range ( uses the data range ), this PR sets a the the playback within the animation range. The initial value of the range is aligned to the data range.
  • play / range options are disabled when no layer is selected.
  • fix a minor bug ( once layer is loaded, the histogram won't change until currentTime/ selectedLayer / playbackRange values are changed. Meaning zoom in/out won't reload the histogram unless one of the mentioned props is changed )

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
see the description

What is the new behavior?
see the description

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@ghost ghost assigned baloola Oct 26, 2018
@baloola baloola changed the title Animation video TimeLine_video_range Oct 26, 2018
@baloola baloola requested a review from offtherailz October 26, 2018 10:01
@baloola baloola modified the milestones: 2018.02.02, 2018.03.00 Oct 26, 2018
@coveralls
Copy link

coveralls commented Oct 26, 2018

Coverage Status

Coverage decreased (-0.04%) to 80.905% when pulling ef99460 on baloola:animation_video into c42db8a on geosolutions-it:c127_geonode_integration.

@offtherailz offtherailz changed the title TimeLine_video_range TimeLine animation range Oct 29, 2018
module.exports = {
retrieveFramesForPlayback: (action$, { getState = () => { } } = {}) =>
action$.ofType(PLAY).exhaustMap( () =>
getDomainValues(...domainArgs(getState))
getDomainValues(...domainArgs(getState, {
time: domainRangeIdentify(playbackRangeSelector(getState()).startPlaybackTime, playbackRangeSelector(getState()).endPlaybackTime)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this transformation inside domainArgs, it is needed also at line 58 (next windows of values requests)

@@ -39,10 +39,14 @@ const domainArgs = (getState, paginationOptions = {}) => {
...paginationOptions
}];
};
const domainRangeIdentify = (start, end) => `${start}/${end}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said in another comment, you have to move this transformation inside domainArgs function.
Anyway if you want to keep a function to identify this operation, you must find a better name.
Checking this probably a good name is something like toAbsoluteInterval

@offtherailz offtherailz merged commit ac60a9a into geosolutions-it:c127_geonode_integration Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants