mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
documentation of opacity and preload relations
This commit is contained in:
parent
3fc1948a44
commit
0a44585457
@ -185,10 +185,11 @@
|
|||||||
* If 0, adjusts to fit viewer.
|
* If 0, adjusts to fit viewer.
|
||||||
*
|
*
|
||||||
* @property {Number} [opacity=1]
|
* @property {Number} [opacity=1]
|
||||||
* Default opacity of the tiled images (1=opaque, 0=transparent)
|
* Default proportional opacity of the tiled images (1=opaque, 0=hidden)
|
||||||
|
* Hidden images do not draw and only load when preloading is allowed.
|
||||||
*
|
*
|
||||||
* @property {Boolean} [preload=false]
|
* @property {Boolean} [preload=false]
|
||||||
* If true, tiles in image load without drawing. Defaults to false, so tiles are loaded and drawn.
|
* Default switch for loading hidden images (true loads, false blocks)
|
||||||
*
|
*
|
||||||
* @property {String} [compositeOperation=null]
|
* @property {String} [compositeOperation=null]
|
||||||
* Valid values are 'source-over', 'source-atop', 'source-in', 'source-out',
|
* Valid values are 'source-over', 'source-atop', 'source-in', 'source-out',
|
||||||
|
@ -70,8 +70,8 @@
|
|||||||
* @param {Number} [options.minPixelRatio] - See {@link OpenSeadragon.Options}.
|
* @param {Number} [options.minPixelRatio] - See {@link OpenSeadragon.Options}.
|
||||||
* @param {Number} [options.smoothTileEdgesMinZoom] - See {@link OpenSeadragon.Options}.
|
* @param {Number} [options.smoothTileEdgesMinZoom] - See {@link OpenSeadragon.Options}.
|
||||||
* @param {Boolean} [options.iOSDevice] - See {@link OpenSeadragon.Options}.
|
* @param {Boolean} [options.iOSDevice] - See {@link OpenSeadragon.Options}.
|
||||||
* @param {Number} [options.opacity=1] - Opacity the tiled image should be drawn at.
|
* @param {Number} [options.opacity=1] - Set to draw at proportional opacity. If zero, images will not draw.
|
||||||
* @param {Boolean} [options.preload=false] - If true, tiles in image load without drawing. Defaults to false, so tiles are loaded and drawn.
|
* @param {Boolean} [options.preload=false] - Set true to load even when the image is hidden by zero opacity.
|
||||||
* @param {String} [options.compositeOperation] - How the image is composited onto other images; see compositeOperation in {@link OpenSeadragon.Options} for possible values.
|
* @param {String} [options.compositeOperation] - How the image is composited onto other images; see compositeOperation in {@link OpenSeadragon.Options} for possible values.
|
||||||
* @param {Boolean} [options.debugMode] - See {@link OpenSeadragon.Options}.
|
* @param {Boolean} [options.debugMode] - See {@link OpenSeadragon.Options}.
|
||||||
* @param {String|CanvasGradient|CanvasPattern|Function} [options.placeholderFillStyle] - See {@link OpenSeadragon.Options}.
|
* @param {String|CanvasGradient|CanvasPattern|Function} [options.placeholderFillStyle] - See {@link OpenSeadragon.Options}.
|
||||||
@ -770,15 +770,15 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Boolean} whether the tiledImage is set to load tiles without drawing them.
|
* @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 without drawing. Set false for default loading and drawing.
|
* Set true to load even when hidden. Set false to block loading when hidden.
|
||||||
* @param {Boolean} whether to load tiles without drawing in this tiledImage.
|
* @param {Boolean} whether the tiledImage can load hidden tiles of zero opacity.
|
||||||
*/
|
*/
|
||||||
setPreload: function(preload) {
|
setPreload: function(preload) {
|
||||||
this.preload = !!preload;
|
this.preload = !!preload;
|
||||||
|
@ -1227,8 +1227,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
* @param {OpenSeadragon.Rect} [options.clip] - An area, in image pixels, to clip to
|
* @param {OpenSeadragon.Rect} [options.clip] - An area, in image pixels, to clip to
|
||||||
* (portions of the image outside of this area will not be visible). Only works on
|
* (portions of the image outside of this area will not be visible). Only works on
|
||||||
* browsers that support the HTML5 canvas.
|
* browsers that support the HTML5 canvas.
|
||||||
* @param {Number} [options.opacity=1] Opacity the tiled image should be drawn at by default.
|
* @param {Number} [options.opacity=1] Default proportional opacity of the tiled images (1=opaque, 0=hidden)
|
||||||
* @param {Boolean} [options.preload=false] If true, tiles in image load without drawing by default.
|
* @param {Boolean} [options.preload=false] Default switch for loading hidden images (true loads, false blocks)
|
||||||
* @param {Number} [options.degrees=0] Initial rotation of the tiled image around
|
* @param {Number} [options.degrees=0] Initial rotation of the tiled image around
|
||||||
* its top left corner in degrees.
|
* its top left corner in degrees.
|
||||||
* @param {String} [options.compositeOperation] How the image is composited onto other images.
|
* @param {String} [options.compositeOperation] How the image is composited onto other images.
|
||||||
|
Loading…
Reference in New Issue
Block a user