mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Merge pull request #2507 from frameflare/master
chore: fix some comments
This commit is contained in:
commit
6ea7779318
@ -569,13 +569,13 @@ $.TileSource.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Responsible determining if a the particular TileSource supports the
|
* Responsible for determining if the particular TileSource supports the
|
||||||
* data format ( and allowed to apply logic against the url the data was
|
* data format ( and allowed to apply logic against the url the data was
|
||||||
* loaded from, if any ). Overriding implementations are expected to do
|
* loaded from, if any ). Overriding implementations are expected to do
|
||||||
* something smart with data and / or url to determine support. Also
|
* something smart with data and / or url to determine support. Also
|
||||||
* understand that iteration order of TileSources is not guarunteed so
|
* understand that iteration order of TileSources is not guaranteed so
|
||||||
* please make sure your data or url is expressive enough to ensure a simple
|
* please make sure your data or url is expressive enough to ensure a simple
|
||||||
* and sufficient mechanisim for clear determination.
|
* and sufficient mechanism for clear determination.
|
||||||
* @function
|
* @function
|
||||||
* @param {String|Object|Array|Document} data
|
* @param {String|Object|Array|Document} data
|
||||||
* @param {String} url - the url the data was loaded
|
* @param {String} url - the url the data was loaded
|
||||||
@ -776,7 +776,7 @@ $.TileSource.prototype = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Load the tile with an AJAX request if the loadWithAjax option is
|
// Load the tile with an AJAX request if the loadWithAjax option is
|
||||||
// set. Otherwise load the image by setting the source proprety of the image object.
|
// set. Otherwise load the image by setting the source property of the image object.
|
||||||
if (context.loadWithAjax) {
|
if (context.loadWithAjax) {
|
||||||
dataStore.request = $.makeAjaxRequest({
|
dataStore.request = $.makeAjaxRequest({
|
||||||
url: context.src,
|
url: context.src,
|
||||||
|
@ -2198,7 +2198,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
* viewport which the location coordinates will be treated as relative
|
* viewport which the location coordinates will be treated as relative
|
||||||
* to.
|
* to.
|
||||||
* @param {function} [onDraw] - If supplied the callback is called when the overlay
|
* @param {function} [onDraw] - If supplied the callback is called when the overlay
|
||||||
* needs to be drawn. It it the responsibility of the callback to do any drawing/positioning.
|
* needs to be drawn. It is the responsibility of the callback to do any drawing/positioning.
|
||||||
* It is passed position, size and element.
|
* It is passed position, size and element.
|
||||||
* @returns {OpenSeadragon.Viewer} Chainable.
|
* @returns {OpenSeadragon.Viewer} Chainable.
|
||||||
* @fires OpenSeadragon.Viewer.event:add-overlay
|
* @fires OpenSeadragon.Viewer.event:add-overlay
|
||||||
|
@ -351,7 +351,7 @@
|
|||||||
// This can apparently happen on some systems if too many WebGL contexts have been created
|
// This can apparently happen on some systems if too many WebGL contexts have been created
|
||||||
// in which case maxTextures can be null, leading to out of bounds errors with the array.
|
// in which case maxTextures can be null, leading to out of bounds errors with the array.
|
||||||
// For example, when viewers were created and not destroyed in the test suite, this error
|
// For example, when viewers were created and not destroyed in the test suite, this error
|
||||||
// occured in the TravisCI tests, though it did not happen when testing locally either in
|
// occurred in the TravisCI tests, though it did not happen when testing locally either in
|
||||||
// a browser or on the command line via grunt test.
|
// a browser or on the command line via grunt test.
|
||||||
|
|
||||||
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
||||||
|
@ -243,7 +243,7 @@
|
|||||||
/*
|
/*
|
||||||
* FIXME: following https://iiif.io/api/image/3.0/#47-canonical-uri-syntax and
|
* FIXME: following https://iiif.io/api/image/3.0/#47-canonical-uri-syntax and
|
||||||
* https://iiif.io/api/image/2.1/#canonical-uri-syntax, I'd expect 'max' to be required to
|
* https://iiif.io/api/image/2.1/#canonical-uri-syntax, I'd expect 'max' to be required to
|
||||||
* be served by a level 0 compliant service instead of 'w,h', 'full' instead of 'w,' respectivley.
|
* be served by a level 0 compliant service instead of 'w,h', 'full' instead of 'w,' respectively.
|
||||||
*/
|
*/
|
||||||
//assert.equal(levelsVersion3[1].url, 'http://example.com/identifier/full/max/0/default.jpg');
|
//assert.equal(levelsVersion3[1].url, 'http://example.com/identifier/full/max/0/default.jpg');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user