mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-03 13:53:31 +03:00
tiledImage tests
This commit is contained in:
parent
613e03d413
commit
3449ba1961
3 changed files with 5 additions and 21 deletions
|
@ -129,8 +129,10 @@ $.Drawer = function( options ) {
|
||||||
* @memberof OpenSeadragon.Viewer
|
* @memberof OpenSeadragon.Viewer
|
||||||
* @type {object}
|
* @type {object}
|
||||||
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
* @property {OpenSeadragon.Viewer} eventSource - A reference to the Viewer which raised the event.
|
||||||
* @property {OpenSeadragon.Tile} tile
|
* @property {OpenSeadragon.Tile} tile - The Tile being drawn.
|
||||||
* @property {?Object} userData - 'context', 'tile' and 'rendered'.
|
* @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);
|
_this.viewer.raiseEvent('tile-drawing', args);
|
||||||
}
|
}
|
||||||
|
|
|
@ -868,25 +868,6 @@ function drawTiles( tiledImage, lastDrawn ){
|
||||||
position,
|
position,
|
||||||
tileSource;
|
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 <canvas>.
|
|
||||||
*
|
|
||||||
* @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-- ) {
|
for ( i = lastDrawn.length - 1; i >= 0; i-- ) {
|
||||||
tile = lastDrawn[ i ];
|
tile = lastDrawn[ i ];
|
||||||
tiledImage._drawer.drawTile( tile );
|
tiledImage._drawer.drawTile( tile );
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
<script src="/test/viewport.js"></script>
|
<script src="/test/viewport.js"></script>
|
||||||
<script src="/test/modules/world.js"></script>
|
<script src="/test/modules/world.js"></script>
|
||||||
<script src="/test/modules/drawer.js"></script>
|
<script src="/test/modules/drawer.js"></script>
|
||||||
|
<script src="/test/modules/tiledimage.js"></script>
|
||||||
<!-- The navigator tests are the slowest (for now; hopefully they can be sped up)
|
<!-- The navigator tests are the slowest (for now; hopefully they can be sped up)
|
||||||
so we put them last. -->
|
so we put them last. -->
|
||||||
<script src="/test/navigator.js"></script>
|
<script src="/test/navigator.js"></script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue