mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
Update documentation and minor cleanup.
This commit is contained in:
parent
e3af370832
commit
2033814227
@ -48,6 +48,6 @@
|
||||
"test": "grunt test",
|
||||
"prepare": "grunt build",
|
||||
"build": "grunt build",
|
||||
"dev": "grunt connect watch"
|
||||
"dev": "grunt dev"
|
||||
}
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ $.DataTypeConvertor = class {
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the data item given.
|
||||
* Copy the data item given.
|
||||
* @param {OpenSeadragon.Tile} tile
|
||||
* @param {any} data data item to convert
|
||||
* @param {string} type data type
|
||||
|
@ -436,10 +436,11 @@ $.TileSource.prototype = {
|
||||
* Responsible for retrieving, and caching the
|
||||
* image metadata pertinent to this TileSources implementation.
|
||||
* There are three scenarios of opening a tile source:
|
||||
* 1) if it is a string parseable as XML or JSON, the string is converted to an object
|
||||
* 2) if it is a string, then
|
||||
* internally, this method
|
||||
* else
|
||||
* This method is only called by OSD if the TileSource configuration is a non-parseable string (~url).
|
||||
*
|
||||
* The string can contain a hash `#` symbol, followed by
|
||||
* key=value arguments. If this is the case, this method sends this
|
||||
* data as a POST body.
|
||||
*
|
||||
* @function
|
||||
* @param {String} url
|
||||
|
@ -1584,7 +1584,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
* A set of headers to include when making tile AJAX requests.
|
||||
* Note that these headers will be merged over any headers specified in {@link OpenSeadragon.Options}.
|
||||
* Specifying a falsy value for a header will clear its existing value set at the Viewer level (if any).
|
||||
* @param {Function} [options.success] A function tadhat gets called when the image is
|
||||
* @param {Function} [options.success] A function that gets called when the image is
|
||||
* successfully added. It's passed the event object which contains a single property:
|
||||
* "item", which is the resulting instance of TiledImage.
|
||||
* @param {Function} [options.error] A function that gets called if the image is
|
||||
|
@ -17,12 +17,6 @@
|
||||
if (!$) {
|
||||
throw new Error('OpenSeadragon is missing.');
|
||||
}
|
||||
// Requires OpenSeadragon >=2.1
|
||||
if (!$.version || $.version.major < 2 ||
|
||||
$.version.major === 2 && $.version.minor < 1) {
|
||||
throw new Error(
|
||||
'Filtering plugin requires OpenSeadragon version >= 2.1');
|
||||
}
|
||||
|
||||
$.Viewer.prototype.setFilterOptions = function(options) {
|
||||
if (!this.filterPluginInstance) {
|
||||
@ -81,7 +75,6 @@
|
||||
await processors[i](contextCopy);
|
||||
}
|
||||
|
||||
tile._filterIncrement = self.filterIncrement;
|
||||
await tile.setData(contextCopy, 'context2d');
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user