|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
SET_FILMSTRIP_ENABLED, |
|
|
|
|
SET_FILMSTRIP_HOVERED, |
|
|
|
@ -5,15 +7,15 @@ import { |
|
|
|
|
} from './actionTypes'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Sets if the filmstrip should be enabled. |
|
|
|
|
* Sets whether the filmstrip is enabled. |
|
|
|
|
* |
|
|
|
|
* @param {boolean} enabled - Whether the filmstrip should be enabled. |
|
|
|
|
* @param {boolean} enabled - Whether the filmstrip is enabled. |
|
|
|
|
* @returns {{ |
|
|
|
|
* type: SET_FILMSTRIP_ENABLED, |
|
|
|
|
* enabled: boolean |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function setFilmstripEnabled(enabled) { |
|
|
|
|
export function setFilmstripEnabled(enabled: boolean) { |
|
|
|
|
return { |
|
|
|
|
type: SET_FILMSTRIP_ENABLED, |
|
|
|
|
enabled |
|
|
|
@ -21,16 +23,15 @@ export function setFilmstripEnabled(enabled) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Sets if the filmstrip is currently being hovered over. |
|
|
|
|
* Sets whether the filmstrip is being hovered (over). |
|
|
|
|
* |
|
|
|
|
* @param {boolean} hovered - Whether or not the filmstrip is currently being |
|
|
|
|
* hovered over. |
|
|
|
|
* @param {boolean} hovered - Whether the filmstrip is being hovered (over). |
|
|
|
|
* @returns {{ |
|
|
|
|
* type: SET_FILMSTRIP_HOVERED, |
|
|
|
|
* hovered: boolean |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function setFilmstripHovered(hovered) { |
|
|
|
|
export function setFilmstripHovered(hovered: boolean) { |
|
|
|
|
return { |
|
|
|
|
type: SET_FILMSTRIP_HOVERED, |
|
|
|
|
hovered |
|
|
|
@ -38,15 +39,15 @@ export function setFilmstripHovered(hovered) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Sets if the filmstrip should be visible. |
|
|
|
|
* Sets whether the filmstrip is visible. |
|
|
|
|
* |
|
|
|
|
* @param {boolean} visible - Whether the filmstrip should be visible. |
|
|
|
|
* @param {boolean} visible - Whether the filmstrip is visible. |
|
|
|
|
* @returns {{ |
|
|
|
|
* type: SET_FILMSTRIP_VISIBLE, |
|
|
|
|
* visible: boolean |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function setFilmstripVisible(visible) { |
|
|
|
|
export function setFilmstripVisible(visible: boolean) { |
|
|
|
|
return { |
|
|
|
|
type: SET_FILMSTRIP_VISIBLE, |
|
|
|
|
visible |
|
|
|
|