Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateCamera: (vid, focalPoint, viewUp, position) =>
dispatch(Actions.view.updateCamera(vid, focalPoint, viewUp, position)),
updateActiveViewId: (vid) =>
dispatch(Actions.active.activate(vid, Actions.active.TYPE_VIEW)),
setTimeStep(index) {
dispatch(
Actions.time.applyTimeStep(index, state.visualizer.active.source)
);
},
playTime() {
dispatch(Actions.time.playTime());
},
stopTime() {
dispatch(Actions.time.stopTime());
},
index: selectors.time.getTimeStep(state),
playing: selectors.time.isAnimationPlaying(state),
values: selectors.time.getTimeValues(state),
};
})(Visualization);
updateActiveViewId: (vid) =>
dispatch(Actions.active.activate(vid, Actions.active.TYPE_VIEW)),
setTimeStep(index) {
dispatch(
Actions.time.applyTimeStep(index, state.visualizer.active.source)
);
},
playTime() {
dispatch(Actions.time.playTime());
},
stopTime() {
dispatch(Actions.time.stopTime());
},
index: selectors.time.getTimeStep(state),
playing: selectors.time.isAnimationPlaying(state),
values: selectors.time.getTimeValues(state),
};
})(Visualization);