2018-02-12 17:42:38 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-05-23 18:58:07 +00:00
|
|
|
import {
|
2018-02-06 09:40:16 +00:00
|
|
|
SET_FILMSTRIP_ENABLED,
|
2017-09-01 21:40:05 +00:00
|
|
|
SET_FILMSTRIP_HOVERED,
|
2018-02-05 21:52:41 +00:00
|
|
|
SET_FILMSTRIP_VISIBLE
|
2017-05-23 18:58:07 +00:00
|
|
|
} from './actionTypes';
|
|
|
|
|
2018-02-06 09:40:16 +00:00
|
|
|
/**
|
2018-02-12 17:42:38 +00:00
|
|
|
* Sets whether the filmstrip is enabled.
|
2018-02-06 09:40:16 +00:00
|
|
|
*
|
2018-02-12 17:42:38 +00:00
|
|
|
* @param {boolean} enabled - Whether the filmstrip is enabled.
|
2018-02-06 09:40:16 +00:00
|
|
|
* @returns {{
|
|
|
|
* type: SET_FILMSTRIP_ENABLED,
|
|
|
|
* enabled: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
2018-02-12 17:42:38 +00:00
|
|
|
export function setFilmstripEnabled(enabled: boolean) {
|
2018-02-06 09:40:16 +00:00
|
|
|
return {
|
|
|
|
type: SET_FILMSTRIP_ENABLED,
|
|
|
|
enabled
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-09-01 21:40:05 +00:00
|
|
|
/**
|
2018-02-12 17:42:38 +00:00
|
|
|
* Sets whether the filmstrip is being hovered (over).
|
2017-09-01 21:40:05 +00:00
|
|
|
*
|
2018-02-12 17:42:38 +00:00
|
|
|
* @param {boolean} hovered - Whether the filmstrip is being hovered (over).
|
2017-09-01 21:40:05 +00:00
|
|
|
* @returns {{
|
|
|
|
* type: SET_FILMSTRIP_HOVERED,
|
|
|
|
* hovered: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
2018-02-12 17:42:38 +00:00
|
|
|
export function setFilmstripHovered(hovered: boolean) {
|
2017-09-01 21:40:05 +00:00
|
|
|
return {
|
|
|
|
type: SET_FILMSTRIP_HOVERED,
|
|
|
|
hovered
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-05-23 18:58:07 +00:00
|
|
|
/**
|
2018-02-12 17:42:38 +00:00
|
|
|
* Sets whether the filmstrip is visible.
|
2017-05-23 18:58:07 +00:00
|
|
|
*
|
2018-02-12 17:42:38 +00:00
|
|
|
* @param {boolean} visible - Whether the filmstrip is visible.
|
2017-05-23 18:58:07 +00:00
|
|
|
* @returns {{
|
2018-02-05 21:52:41 +00:00
|
|
|
* type: SET_FILMSTRIP_VISIBLE,
|
2017-05-23 18:58:07 +00:00
|
|
|
* visible: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
2018-02-12 17:42:38 +00:00
|
|
|
export function setFilmstripVisible(visible: boolean) {
|
2017-05-23 18:58:07 +00:00
|
|
|
return {
|
2018-02-05 21:52:41 +00:00
|
|
|
type: SET_FILMSTRIP_VISIBLE,
|
2017-05-23 18:58:07 +00:00
|
|
|
visible
|
|
|
|
};
|
|
|
|
}
|