mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Integrate Ian's comments.
This commit is contained in:
parent
2674104007
commit
d5c431b1cd
@ -2,8 +2,9 @@ OPENSEADRAGON CHANGELOG
|
|||||||
=======================
|
=======================
|
||||||
|
|
||||||
2.0.1: (in progress)
|
2.0.1: (in progress)
|
||||||
* BREAKING CHANGE: the tile does not hold a reference to its image anymore. Only the tile cache keep a reference to images.
|
* BREAKING CHANGE: the tile does not hold a reference to its image anymore. Only the tile cache keep a reference to images.
|
||||||
* DEPRECATION: let ImageRecord.getRenderedContext create the rendered context instead of using ImageRecord.setRenderedContext.
|
* DEPRECATION: let ImageRecord.getRenderedContext create the rendered context instead of using ImageRecord.setRenderedContext.
|
||||||
|
* Added "tile-loaded" event on the viewer allowing to modify a tile before it is marked ready to be drawn. (#659)
|
||||||
* Fix flickering tiles with useCanvas=false when no cache is used. (#661)
|
* Fix flickering tiles with useCanvas=false when no cache is used. (#661)
|
||||||
|
|
||||||
2.0.0:
|
2.0.0:
|
||||||
|
@ -971,8 +971,6 @@ function onTileLoad( tiledImage, tile, time, image ) {
|
|||||||
// Wait until after the update, in case caching unloads any tiles
|
// Wait until after the update, in case caching unloads any tiles
|
||||||
window.setTimeout( finish, 1);
|
window.setTimeout( finish, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
tiledImage._needsDraw = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setTileLoaded(tiledImage, tile, image, cutoff) {
|
function setTileLoaded(tiledImage, tile, image, cutoff) {
|
||||||
@ -994,13 +992,13 @@ function setTileLoaded(tiledImage, tile, image, cutoff) {
|
|||||||
cutoff: cutoff,
|
cutoff: cutoff,
|
||||||
tiledImage: tiledImage
|
tiledImage: tiledImage
|
||||||
});
|
});
|
||||||
|
tiledImage._needsDraw = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggered when a tile has just been loaded in memory. That means that the
|
* Triggered when a tile has just been loaded in memory. That means that the
|
||||||
* image has been downloaded and can be modified asynchronously before being
|
* image has been downloaded and can be modified before being drawn to the canvas.
|
||||||
* drawn to the canvas.
|
|
||||||
*
|
*
|
||||||
* @event tile-loaded
|
* @event tile-loaded
|
||||||
* @memberof OpenSeadragon.Viewer
|
* @memberof OpenSeadragon.Viewer
|
||||||
@ -1010,8 +1008,8 @@ function setTileLoaded(tiledImage, tile, image, cutoff) {
|
|||||||
* @property {OpenSeadragon.Tile} tile - The tile which has been loaded.
|
* @property {OpenSeadragon.Tile} tile - The tile which has been loaded.
|
||||||
* @property {function} getCompletionCallback - A function giving a callback to call
|
* @property {function} getCompletionCallback - A function giving a callback to call
|
||||||
* when the asynchronous processing of the image is done. The image will be
|
* when the asynchronous processing of the image is done. The image will be
|
||||||
* marked as entirely loaded once the callback has been called as many times as
|
* marked as .entirely loaded when the callback has been called once for each
|
||||||
* getCompletionCallback
|
* call to getCompletionCallback.
|
||||||
*/
|
*/
|
||||||
tiledImage.viewer.raiseEvent("tile-loaded", {
|
tiledImage.viewer.raiseEvent("tile-loaded", {
|
||||||
tile: tile,
|
tile: tile,
|
||||||
|
Loading…
Reference in New Issue
Block a user