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) {
|
2020-12-24 00:10:25 +00:00
|
|
|
return Boolean(Object.getOwnPropertyNames(viewTypes).find((viewType) => viewType === validate));
|
2017-10-07 04:25:17 +00:00
|
|
|
}
|