From 3449ba19616f37499c5c5965046af049aab987f0 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 18 Nov 2014 17:12:15 -0800 Subject: [PATCH] tiledImage tests --- src/drawer.js | 6 ++++-- src/tiledimage.js | 19 ------------------- test/test.html | 1 + 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/drawer.js b/src/drawer.js index 969c0e06..6099dd06 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -129,8 +129,10 @@ $.Drawer = function( options ) { * @memberof OpenSeadragon.Viewer * @type {object} * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. - * @property {OpenSeadragon.Tile} tile - * @property {?Object} userData - 'context', 'tile' and 'rendered'. + * @property {OpenSeadragon.Tile} tile - The Tile being drawn. + * @property {OpenSeadragon.Tile} context - The HTML canvas context being drawn into. + * @property {OpenSeadragon.Tile} rendered - The HTML canvas context containing the tile imagery. + * @property {?Object} userData - Arbitrary subscriber-defined object. */ _this.viewer.raiseEvent('tile-drawing', args); } diff --git a/src/tiledimage.js b/src/tiledimage.js index 7e0ee5ee..dc4f6c29 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -868,25 +868,6 @@ function drawTiles( tiledImage, lastDrawn ){ position, tileSource; - // We need a callback to give image manipulation a chance to happen - var drawingHandler = function(args) { - if (tiledImage.viewer) { - /** - * This event is fired just before the tile is drawn giving the application a chance to alter the image. - * - * NOTE: This event is only fired when the tiledImage is using a . - * - * @event tile-drawing - * @memberof OpenSeadragon.Viewer - * @type {object} - * @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event. - * @property {OpenSeadragon.Tile} tile - * @property {?Object} userData - 'context', 'tile' and 'rendered'. - */ - tiledImage.viewer.raiseEvent('tile-drawing', args); - } - }; - for ( i = lastDrawn.length - 1; i >= 0; i-- ) { tile = lastDrawn[ i ]; tiledImage._drawer.drawTile( tile ); diff --git a/test/test.html b/test/test.html index acff4452..5e4c617d 100644 --- a/test/test.html +++ b/test/test.html @@ -33,6 +33,7 @@ +