mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Fix Ian's comments.
This commit is contained in:
parent
eda47e6fc0
commit
4c1d0f9a4c
@ -2,6 +2,8 @@ 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.
|
||||||
|
* DEPRECATION: let ImageRecord.getRenderedContext create the rendered context instead of using ImageRecord.setRenderedContext.
|
||||||
|
|
||||||
2.0.0:
|
2.0.0:
|
||||||
|
|
||||||
|
@ -76,6 +76,13 @@ ImageRecord.prototype = {
|
|||||||
return this._renderedContext;
|
return this._renderedContext;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setRenderedContext: function(renderedContext) {
|
||||||
|
$.console.error("ImageRecord.setRenderedContext is deprecated. " +
|
||||||
|
"The rendered context should be created by the ImageRecord " +
|
||||||
|
"itself when calling ImageRecord.getRenderedContext.");
|
||||||
|
this._renderedContext = renderedContext;
|
||||||
|
},
|
||||||
|
|
||||||
addTile: function(tile) {
|
addTile: function(tile) {
|
||||||
$.console.assert(tile, '[ImageRecord.addTile] tile is required');
|
$.console.assert(tile, '[ImageRecord.addTile] tile is required');
|
||||||
this._tiles.push(tile);
|
this._tiles.push(tile);
|
||||||
@ -132,6 +139,7 @@ $.TileCache.prototype = /** @lends OpenSeadragon.TileCache.prototype */{
|
|||||||
* may temporarily surpass that number, but should eventually come back down to the max specified.
|
* may temporarily surpass that number, but should eventually come back down to the max specified.
|
||||||
* @param {Object} options - Tile info.
|
* @param {Object} options - Tile info.
|
||||||
* @param {OpenSeadragon.Tile} options.tile - The tile to cache.
|
* @param {OpenSeadragon.Tile} options.tile - The tile to cache.
|
||||||
|
* @param {Image} options.image - The image of the tile to cache.
|
||||||
* @param {OpenSeadragon.TiledImage} options.tiledImage - The TiledImage that owns that tile.
|
* @param {OpenSeadragon.TiledImage} options.tiledImage - The TiledImage that owns that tile.
|
||||||
* @param {Number} [options.cutoff=0] - If adding this tile goes over the cache max count, this
|
* @param {Number} [options.cutoff=0] - If adding this tile goes over the cache max count, this
|
||||||
* function will release an old tile. The cutoff option specifies a tile level at or below which
|
* function will release an old tile. The cutoff option specifies a tile level at or below which
|
||||||
|
@ -860,7 +860,6 @@ function updateTile( tiledImage, drawLevel, haveDrawn, x, y, level, levelOpacity
|
|||||||
if (!tile.loaded) {
|
if (!tile.loaded) {
|
||||||
var imageRecord = tiledImage._tileCache.getImageRecord(tile.url);
|
var imageRecord = tiledImage._tileCache.getImageRecord(tile.url);
|
||||||
if (imageRecord) {
|
if (imageRecord) {
|
||||||
tile.loaded = true;
|
|
||||||
var image = imageRecord.getImage();
|
var image = imageRecord.getImage();
|
||||||
setTileLoaded(tiledImage, tile, image);
|
setTileLoaded(tiledImage, tile, image);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user