diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-07 18:16:54 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-07 18:17:09 +0200 |
| commit | f38815753af0b72c0407a2efe448a6c8a027ddca (patch) | |
| tree | 453afeba6417cdac169fc7db46a243ab219cd17e /animism-align/frontend/app/views/viewer/viewer.actions.js | |
| parent | 1f58406d9e0e4a7e2bbb4afa02d3c96b82bd0de1 (diff) | |
add intro gif
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index f03b16d..8c03a10 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -2,7 +2,9 @@ import * as types from 'app/types' import { store, history, dispatch } from 'app/store' import { MEDIA_ANNOTATION_TYPES, MEDIA_LABEL_TYPES, - TEXT_ANNOTATION_TYPES, UTILITY_ANNOTATION_TYPES, + TEXT_ANNOTATION_TYPES, + INLINE_UTILITY_ANNOTATION_TYPES, + FULLSCREEN_UTILITY_ANNOTATION_TYPES, CURTAIN_COLOR_LOOKUP, } from 'app/constants' import { buildParagraphs } from 'app/utils/transcript.utils' @@ -96,8 +98,13 @@ export const loadSections = () => dispatch => { } } + // build timeline of special inline items + if (INLINE_UTILITY_ANNOTATION_TYPES.has(annotation.type)) { + sectionTextAnnotationOrder.push(annotation.id) + } + // build timeline of fullscreen events - if (UTILITY_ANNOTATION_TYPES.has(annotation.type) || annotation.settings.fullscreen) { + if (FULLSCREEN_UTILITY_ANNOTATION_TYPES.has(annotation.type) || annotation.settings.fullscreen) { const event = makeFullscreenEvent(eventIndex++, annotation) fullscreenTimeline.push(event) } @@ -123,7 +130,7 @@ export const loadSections = () => dispatch => { } } - // console.log(sections) + console.log(sections) // console.log(fullscreenTimeline) dispatch({ type: types.viewer.load_sections, sections, fullscreenTimeline }) } |
