mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
openseadragon.js: fix imageFormatSupported refs
This commit is contained in:
parent
169244ed1a
commit
51bb8ca46e
@ -1829,8 +1829,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function processDZI( imageNode, tilesUrl ) {
|
function processDZI( imageNode, tilesUrl ) {
|
||||||
/* global imageFormatSupported:true */
|
|
||||||
|
|
||||||
var fileFormat = imageNode.getAttribute( "Format" ),
|
var fileFormat = imageNode.getAttribute( "Format" ),
|
||||||
sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ],
|
sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ],
|
||||||
dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ),
|
dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ),
|
||||||
@ -1843,7 +1841,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
rectNode,
|
rectNode,
|
||||||
i;
|
i;
|
||||||
|
|
||||||
if ( !imageFormatSupported( fileFormat ) ) {
|
if ( !$.imageFormatSupported( fileFormat ) ) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
|
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
|
||||||
);
|
);
|
||||||
@ -1882,8 +1880,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function processDZIJSON( imageData, tilesUrl ) {
|
function processDZIJSON( imageData, tilesUrl ) {
|
||||||
/* global imageFormatSupported:true */
|
|
||||||
|
|
||||||
var fileFormat = imageData.Format,
|
var fileFormat = imageData.Format,
|
||||||
sizeData = imageData.Size,
|
sizeData = imageData.Size,
|
||||||
dispRectData = imageData.DisplayRect || [],
|
dispRectData = imageData.DisplayRect || [],
|
||||||
@ -1895,7 +1891,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
rectData,
|
rectData,
|
||||||
i;
|
i;
|
||||||
|
|
||||||
if ( !imageFormatSupported( fileFormat ) ) {
|
if ( !$.imageFormatSupported( fileFormat ) ) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
|
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user