From b87eaf3040747fbb57a75ef18c053be3aa50f661 Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 16 Jul 2024 14:17:29 -0400 Subject: [PATCH] mark image-unloaded and tile-ready events as private --- src/imagetilesource.js | 1 + src/tilecache.js | 1 + src/tiledimage.js | 1 + 3 files changed, 3 insertions(+) diff --git a/src/imagetilesource.js b/src/imagetilesource.js index 4ebc7591..ca5ef0e8 100644 --- a/src/imagetilesource.js +++ b/src/imagetilesource.js @@ -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 diff --git a/src/tilecache.js b/src/tilecache.js index f85cb643..103a02af 100644 --- a/src/tilecache.js +++ b/src/tilecache.js @@ -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, diff --git a/src/tiledimage.js b/src/tiledimage.js index c1562497..76a4f226 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -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,