bigbluebutton-Github/labs/meteor-client/app/client/views/whiteboard/whiteboard.coffee

22 lines
606 B
CoffeeScript
Executable File

Template.whiteboard.rendered = ->
$(window).resize( ->
currentSlide = getCurrentSlideDoc()
pic = new Image()
pic.onload = ->
adjustedDimensions = scaleSlide(this.width, this.height)
wpm = whiteboardPaperModel
wpm.setAdjustedDimensions(adjustedDimensions.width, adjustedDimensions.height)
wpm.clearShapes()
wpm.clearCursor()
manuallyDisplayShapes()
#wpm._updateContainerDimensions()
wpm.scale(adjustedDimensions.width, adjustedDimensions.height)
wpm.createCursor()
pic.src = currentSlide?.slide?.png_uri
);