Select Git revision
VideoViewersReferences.js
Loïs Poujade authored
OSDReferences is a list of ref to OpenSeadragon instances, used in Mirador as an image viewer. This commit exposes a VideoViewerReferences, to allows the annotations plugins to get video canvas dimensions and DOM element + removed build warning + disable "prepare" script to speed up build
VideoViewersReferences.js 187 B
export const VideoViewersReferences = {
/** */
get(windowId) {
return this.refs[windowId];
},
refs: {},
/** */
set(windowId, ref) {
this.refs[windowId] = ref;
},
};