mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
underscores to preload
This commit is contained in:
parent
0a44585457
commit
c402a7bfdd
@ -163,7 +163,7 @@ $.TiledImage = function( options ) {
|
|||||||
crossOriginPolicy: $.DEFAULT_SETTINGS.crossOriginPolicy,
|
crossOriginPolicy: $.DEFAULT_SETTINGS.crossOriginPolicy,
|
||||||
placeholderFillStyle: $.DEFAULT_SETTINGS.placeholderFillStyle,
|
placeholderFillStyle: $.DEFAULT_SETTINGS.placeholderFillStyle,
|
||||||
opacity: $.DEFAULT_SETTINGS.opacity,
|
opacity: $.DEFAULT_SETTINGS.opacity,
|
||||||
preload: $.DEFAULT_SETTINGS.preload,
|
_preload: $.DEFAULT_SETTINGS.preload,
|
||||||
compositeOperation: $.DEFAULT_SETTINGS.compositeOperation
|
compositeOperation: $.DEFAULT_SETTINGS.compositeOperation
|
||||||
}, options );
|
}, options );
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
* Draws the TiledImage to its Drawer.
|
* Draws the TiledImage to its Drawer.
|
||||||
*/
|
*/
|
||||||
draw: function() {
|
draw: function() {
|
||||||
if (this.opacity !== 0 && !this.preload) {
|
if (this.opacity !== 0 && !this._preload) {
|
||||||
this._midDraw = true;
|
this._midDraw = true;
|
||||||
this._updateViewport();
|
this._updateViewport();
|
||||||
this._midDraw = false;
|
this._midDraw = false;
|
||||||
@ -773,15 +773,14 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
* @returns {Boolean} whether the tiledImage can load hidden tiles of zero opacity.
|
* @returns {Boolean} whether the tiledImage can load hidden tiles of zero opacity.
|
||||||
*/
|
*/
|
||||||
getPreload: function() {
|
getPreload: function() {
|
||||||
return this.preload;
|
return this._preload;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set true to load even when hidden. Set false to block loading when hidden.
|
* Set true to load even when hidden. Set false to block loading when hidden.
|
||||||
* @param {Boolean} whether the tiledImage can load hidden tiles of zero opacity.
|
|
||||||
*/
|
*/
|
||||||
setPreload: function(preload) {
|
setPreload: function(preload) {
|
||||||
this.preload = !!preload;
|
this._preload = !!preload;
|
||||||
this._needsDraw = true;
|
this._needsDraw = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user