Skip to content
Snippets Groups Projects

get canvasIIIF

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
export const VideosReferences = {
export const VideosReferences = {
 
myAnnotationOverlayVideo:{},
 
canvasIIIF: {},
 
refs: {},
 
canvasSizeInformation : {},
/** */
/** */
get(windowId) {
get(windowId) {
return this.refs[windowId];
return this.refs[windowId];
},
},
refs: {},
getCanvaSizeInformation(){
 
return this.canvasSizeInformation
 
},
 
 
getCanvasIIIF(){
 
return this.canvasIIIF;
 
},
/** */
/** */
set(windowId, ref) {
set(windowId, ref) {
this.refs[windowId] = ref;
this.refs[windowId] = ref;
 
this.canvasIIIF = ref.props
 
this.myAnnotationOverlayVideo = ref;
 
},
 
 
setCanvasSizeInformation(windowId, ref){
 
this.canvasSizeInformation = ref.state.canvasSize;
},
},
};
};
Loading