diff --git a/src/canvasdrawer.js b/src/canvasdrawer.js index e91a0459..b63c2ed0 100644 --- a/src/canvasdrawer.js +++ b/src/canvasdrawer.js @@ -101,6 +101,24 @@ class CanvasDrawer extends $.DrawerBase{ this._drawTiles(tiledImage); } } + + // // Fire the frame-drawn event. + // if( this.viewer ){ + // /** + // * Raised when a tiled image is drawn to the canvas. Only valid + // * for webgl and canvas drawers. + // * + // * @event tiled-image-drawn + // * @memberof OpenSeadragon.Viewer + // * @type {object} + // * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. + // * @property {HTMLElement} canvas - The canvas which has been drawn onto + // * @property {?Object} userData - Arbitrary subscriber-defined object. + // */ + // this.viewer.raiseEvent( 'frame-drawn', { + // canvas: this.canvas + // }); + // } } /** diff --git a/src/webgldrawer.js b/src/webgldrawer.js index c0bff511..90e802d4 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -380,6 +380,24 @@ this._outputContext.drawImage(this._renderingCanvas, 0, 0); } + // // Fire the frame-drawn event. + // if( this.viewer ){ + // /** + // * Raised when a tiled image is drawn to the canvas. Only valid + // * for webgl and canvas drawers. + // * + // * @event tiled-image-drawn + // * @memberof OpenSeadragon.Viewer + // * @type {object} + // * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. + // * @property {HTMLElement} canvas - The canvas which has been drawn onto + // * @property {?Object} userData - Arbitrary subscriber-defined object. + // */ + // this.viewer.raiseEvent( 'frame-drawn', { + // canvas: this.canvas + // }); + // } + } // Public API required by all Drawer implementations diff --git a/test/demo/basic.html b/test/demo/basic.html index 5f4262ab..5f956673 100644 --- a/test/demo/basic.html +++ b/test/demo/basic.html @@ -20,16 +20,6 @@