Merge pull request #2558 from pearcetm/webgl-update

Mark image-unloaded and tile-ready events as private
This commit is contained in:
Ian Gilman 2024-07-17 09:17:54 -07:00 committed by GitHub
commit 980deca107
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -283,6 +283,7 @@
* @memberof OpenSeadragon.Viewer
* @type {object}
* @property {CanvasRenderingContext2D} context2D - The context that is being unloaded
* @private
*/
viewer.raiseEvent("image-unloaded", {
context2D: this.levels[i].context2D

View File

@ -270,6 +270,7 @@ $.TileCache.prototype = {
* @memberof OpenSeadragon.Viewer
* @type {object}
* @property {CanvasRenderingContext2D} context2D - The context that is being unloaded
* @private
*/
tiledImage.viewer.raiseEvent("image-unloaded", {
context2D: context2D,

View File

@ -2076,6 +2076,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
* @property {OpenSeadragon.Tile} tile - The tile which has been loaded.
* @property {OpenSeadragon.TiledImage} tiledImage - The tiled image of the loaded tile.
* @property {XMLHttpRequest} tileRequest - The AJAX request that loaded this tile (if applicable).
* @private
*/
_this.viewer.raiseEvent("tile-ready", {
tile: tile,