2017-10-07 04:25:17 +00:00
|
|
|
export const viewTypes = {
|
|
|
|
TWO_UP: 'TWO_UP',
|
|
|
|
SWIPE: 'SWIPE',
|
|
|
|
ONION_SKIN: 'ONION_SKIN',
|
|
|
|
};
|
|
|
|
|
|
|
|
export function isValidViewType(validate) {
|
2019-06-03 22:51:02 +00:00
|
|
|
return Boolean(Object.getOwnPropertyNames(viewTypes).find(viewType => viewType === validate));
|
2017-10-07 04:25:17 +00:00
|
|
|
}
|