Skip to content
Snippets Groups Projects

get canvasIIIF

2 files
+ 31
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -93,6 +93,12 @@ export class AnnotationsOverlayVideo extends Component {
this.state = {
showProgress: false,
canvasSize : {
canvasHeight:0,
canvasWidth:0,
containerHeight:0,
containerWidth:0,
}
};
}
@@ -494,9 +500,17 @@ export class AnnotationsOverlayVideo extends Component {
/** */
canvasUpdateCallback() {
return () => {
const { windowId } = this.props
this.canvasOverlay.clear();
this.canvasOverlay.resize();
this.canvasOverlay.canvasUpdate(this.renderAnnotations.bind(this));
this.setState({canvasSize: {
canvasHeight:this.canvasOverlay.canvasHeight,
canvasWidth:this.canvasOverlay.canvasWidth,
containerHeight:this.canvasOverlay.containerHeight,
containerWidth:this.canvasOverlay.containerWidth,
}})
VideosReferences.setCanvasSizeInformation(windowId,this);
};
}
Loading