- Version:
- openseadragon 5.0.1
- Source:
Members
(static) Browser :Object
The current browser vendor, version, and related information regarding detected features.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
vendor |
OpenSeadragon.BROWSERS | One of the OpenSeadragon.BROWSERS enumeration values. |
version |
Number | |
alpha |
Boolean | Does the browser support image alpha transparency. |
- Source:
(static) BROWSERS :Object
An enumeration of Browser vendors.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
UNKNOWN |
Number | |
IE |
Number | |
FIREFOX |
Number | |
SAFARI |
Number | |
CHROME |
Number | |
OPERA |
Number | |
EDGE |
Number | |
CHROMEEDGE |
Number |
- Source:
(static) ButtonState :Object
An enumeration of button states
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
REST |
Number | |
GROUP |
Number | |
HOVER |
Number | |
DOWN |
Number |
- Source:
(static) ControlAnchor :Object
An enumeration of supported locations where controls can be anchored.
The anchoring is always relative to the container.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
NONE |
Number | |
TOP_LEFT |
Number | |
TOP_RIGHT |
Number | |
BOTTOM_LEFT |
Number | |
BOTTOM_RIGHT |
Number | |
ABSOLUTE |
Number |
- Source:
(static) DEFAULT_SETTINGS :Object
The default values for the optional settings documented at
OpenSeadragon.Options
.
Type:
- Object
- Source:
(static) fullScreenApi :object
Determine native full screen support we can get from the browser.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
supportsFullScreen |
Boolean | Return true if full screen API is supported. |
isFullScreen |
function | Return true if currently in full screen mode. |
getFullScreenElement |
function | Return the element currently in full screen mode. |
requestFullScreen |
function | Make a request to go in full screen mode. |
exitFullScreen |
function | Make a request to exit full screen mode. |
cancelFullScreen |
function | Deprecated, use exitFullScreen instead. |
fullScreenEventName |
String | Event fired when the full screen mode change. |
fullScreenErrorEventName |
String | Event fired when a request to go in full screen mode failed. |
- Source:
(static, readonly) OverlayPlacement :Object
An enumeration of positions that an overlay may be assigned relative to
the viewport.
It is identical to OpenSeadragon.Placement but is kept for backward
compatibility.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
CENTER |
Number | |
TOP_LEFT |
Number | |
TOP |
Number | |
TOP_RIGHT |
Number | |
RIGHT |
Number | |
BOTTOM_RIGHT |
Number | |
BOTTOM |
Number | |
BOTTOM_LEFT |
Number | |
LEFT |
Number |
- Source:
- See:
(static, readonly) OverlayRotationMode
An enumeration of possible ways to handle overlays rotation
Properties:
Name | Type | Description |
---|---|---|
NO_ROTATION |
Number | The overlay ignore the viewport rotation. |
EXACT |
Number | The overlay use CSS 3 transforms to rotate with the viewport. If the overlay contains text, it will get rotated as well. |
BOUNDING_BOX |
Number | The overlay adjusts for rotation by taking the size of the bounding box of the rotated bounds. Only valid for overlays with Rect location and scalable in both directions. |
- Source:
(static) pixelDensityRatio :Number
A ratio comparing the device screen's pixel density to the canvas's backing store pixel density,
clamped to a minimum of 1. Defaults to 1 if canvas isn't supported by the browser.
Type:
- Number
- Source:
(static, readonly) Placement
An enumeration of positions to anchor an element.
Properties:
Name | Type | Description |
---|---|---|
CENTER |
OpenSeadragon.Placement | |
TOP_LEFT |
OpenSeadragon.Placement | |
TOP |
OpenSeadragon.Placement | |
TOP_RIGHT |
OpenSeadragon.Placement | |
RIGHT |
OpenSeadragon.Placement | |
BOTTOM_RIGHT |
OpenSeadragon.Placement | |
BOTTOM |
OpenSeadragon.Placement | |
BOTTOM_LEFT |
OpenSeadragon.Placement | |
LEFT |
OpenSeadragon.Placement |
- Source:
(static) SUBPIXEL_ROUNDING_OCCURRENCES :Object
An enumeration of when subpixel rounding should occur.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
NEVER |
Number | Never apply subpixel rounding for transparency. |
ONLY_AT_REST |
Number | Do not apply subpixel rounding for transparency during animation (panning, zoom, rotation) and apply it once animation is over. |
ALWAYS |
Number | Apply subpixel rounding for transparency during animation and when animation is over. |
- Source:
(static) supportsAddEventListener :Boolean
True if the browser supports the EventTarget.addEventListener() method
Type:
- Boolean
- Source:
(static) supportsCanvas :Boolean
True if the browser supports the HTML5 canvas element
Type:
- Boolean
- Source:
(static) supportsEventListenerOptions :Boolean
True if the browser supports the newer EventTarget.addEventListener options argument
Type:
- Boolean
- Source:
(static) supportsRemoveEventListener :Boolean
True if the browser supports the EventTarget.removeEventListener() method
Type:
- Boolean
- Source:
(static) version :Object
The OpenSeadragon version.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
versionStr |
String | The version number as a string ('major.minor.revision'). |
major |
Number | The major version number. |
minor |
Number | The minor version number. |
revision |
Number | The revision number. |
- Since:
- 1.0.0
- Source:
Methods
(static) addClass(element, className)
Add the specified CSS class to the element if not present.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | |
className |
String |
- Source:
(static) addEvent(element, eventName, handler, optionsopt)
Adds an event listener for the given element, eventName and handler.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element |
Element | String | ||||||||||||||||||
eventName |
String | ||||||||||||||||||
handler |
function | ||||||||||||||||||
options |
Boolean | Object |
<optional> |
Boolean useCapture, or if supportsEventListenerOptions , can be an object
Properties
|
- Source:
(static) cancelEvent(eventopt)
Cancels the default browser behavior had the event propagated all
the way up the DOM to the window object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
Event |
<optional> |
- Source:
(static) capitalizeFirstLetter(string) → {String}
Capitalizes the first letter of a string
Parameters:
Name | Type | Description |
---|---|---|
string |
String |
- Source:
Returns:
The string with the first letter capitalized
- Type
- String
(static) createFromDZI()
Fully deprecated. Will throw an error.
- Deprecated:
- Source:
(static) delegate(object, method) → {function}
Returns a function which invokes the method as if it were a method belonging to the object.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object | |
method |
function |
- Source:
Returns:
- Type
- function
(static) eventIsCanceled(eventopt)
Returns true if
cancelEvent
has been called on
the event, otherwise returns false.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
Event |
<optional> |
- Source:
(static) extend()
Taken from jQuery 1.6.1
- Source:
- See:
(static) getCssPropertyWithVendorPrefix(property) → {String}
Returns the property with the correct vendor prefix appended.
Parameters:
Name | Type | Description |
---|---|---|
property |
String | the property name |
- Source:
Returns:
the property with the correct prefix or null if not
supported.
- Type
- String
(static) getCurrentPixelDensityRatio() → {Number}
A ratio comparing the device screen's pixel density to the canvas's backing store pixel density,
clamped to a minimum of 1. Defaults to 1 if canvas isn't supported by the browser.
- Source:
Returns:
- Type
- Number
(static) getElement(element) → {Element}
Returns a DOM Element for the given id or element.
Parameters:
Name | Type | Description |
---|---|---|
element |
String | Element | Accepts an id or element. |
- Source:
Returns:
The element with the given id, null, or the element itself.
- Type
- Element
(static) getElementOffset(element) → {OpenSeadragon.Point}
Determines the position of the upper-left corner of the element adjusted for current page and/or element scroll.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | the element we want the position for. |
- Source:
Returns:
- the position of the upper left corner of the element adjusted for current page and/or element scroll.
- Type
- OpenSeadragon.Point
(static) getElementPosition(element) → {OpenSeadragon.Point}
Determines the position of the upper-left corner of the element.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | the element we want the position for. |
- Source:
Returns:
- the position of the upper left corner of the element.
- Type
- OpenSeadragon.Point
(static) getElementSize(element) → {OpenSeadragon.Point}
Determines the height and width of the given element.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String |
- Source:
Returns:
- Type
- OpenSeadragon.Point
(static) getElementStyle(element) → {CSSStyle}
Returns the CSSStyle object for the given element.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String |
- Source:
Returns:
- Type
- CSSStyle
(static) getMousePosition(eventopt) → {OpenSeadragon.Point}
Gets the position of the mouse on the screen for a given event.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
Event |
<optional> |
- Source:
Returns:
- Type
- OpenSeadragon.Point
(static) getPageScroll() → {OpenSeadragon.Point}
Determines the page's current scroll position.
- Source:
Returns:
- Type
- OpenSeadragon.Point
(static) getString(property)
Parameters:
Name | Type | Description |
---|---|---|
property |
String |
- Source:
(static) getUrlParameter(key) → {String}
Retrieves the value of a url parameter from the window.location string.
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
The value of the url parameter or null if no param matches.
- Type
- String
(static) getViewer(element) → {Viewer}
Returns the
Viewer
attached to a given DOM element. If there is
no viewer attached to the provided element, undefined is returned.
Parameters:
Name | Type | Description |
---|---|---|
element |
String | Element | Accepts an id or element. |
- Source:
Returns:
The viewer attached to the given element, or undefined.
- Type
- Viewer
(static) getWindowSize() → {OpenSeadragon.Point}
Determines the size of the browsers window.
- Source:
Returns:
- Type
- OpenSeadragon.Point
(static) imageFormatSupported(extensionopt) → {Boolean}
Reports whether the image format is supported for tiling in this
version.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
extension |
String |
<optional> |
- Source:
Returns:
- Type
- Boolean
(static) indexOf(array, searchElement, fromIndexopt) → {Number}
Find the first index at which an element is found in an array or -1
if not present.
Code taken and adapted from
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Compatibility
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
array |
Array | The array from which to find the element | ||
searchElement |
Object | The element to find | ||
fromIndex |
Number |
<optional> |
0 | Index to start research. |
- Source:
Returns:
The index of the element in the array.
- Type
- Number
(static) isArray()
Taken from jQuery 1.6.1
- Source:
- See:
(static) isEmptyObject()
Taken from jQuery 1.6.1
- Source:
- See:
(static) isFunction()
Taken from jQuery 1.6.1
- Source:
- See:
(static) isPlainObject()
Taken from jQuery 1.6.1
- Source:
- See:
(static) isWindow()
A crude way of determining if an object is a window.
Taken from jQuery 1.6.1
- Source:
- See:
(static) jsonp(options)
Taken from jQuery 1.6.1
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
(static) makeAjaxRequest(options) → {XMLHttpRequest}
Makes an AJAX request.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
Throws:
Error
Returns:
- Type
- XMLHttpRequest
(static) makeCenteredNode(element) → {Element}
Wraps the given element in a nest of divs so that the element can
be easily centered using CSS tables
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String |
- Source:
Returns:
outermost wrapper element
- Type
- Element
(static) makeNeutralElement(tagName) → {Element}
Creates an easily positionable element of the given type that therefor
serves as an excellent container element.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
String |
- Source:
Returns:
- Type
- Element
(static) makeTransparentImage(src) → {Element}
Ensures an image is loaded correctly to support alpha transparency.
Parameters:
Name | Type | Description |
---|---|---|
src |
String |
- Source:
Returns:
- Type
- Element
(static) normalizeEventListenerOptions(optionsopt) → {String}
Convert passed addEventListener() options to boolean or options object,
depending on browser support.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Boolean | Object |
<optional> |
Boolean useCapture, or if supportsEventListenerOptions , can be an object
Properties
|
- Source:
Returns:
The protocol (http:, https:, file:, ftp: ...)
- Type
- String
(static) now()
Returns the current milliseconds, using Date.now() if available
- Source:
(static) parseJSON(string) → {Object}
Parses a JSON string into a Javascript object.
Parameters:
Name | Type | Description |
---|---|---|
string |
String |
- Source:
Returns:
- Type
- Object
(static) parseXml(string) → {Document}
Parses an XML string into a DOM Document.
Parameters:
Name | Type | Description |
---|---|---|
string |
String |
- Source:
Returns:
- Type
- Document
(static) pointInElement(element, point) → {Boolean}
Determines if a point is within the bounding rectangle of the given element (hit-test).
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | |
point |
OpenSeadragon.Point |
- Source:
Returns:
- Type
- Boolean
(static) positiveModulo(number, modulo) → {Number}
Compute the modulo of a number but makes sure to always return
a positive value (also known as Euclidean modulo).
Parameters:
Name | Type | Description |
---|---|---|
number |
Number | the number to compute the modulo of |
modulo |
Number | the modulo |
- Source:
Returns:
the result of the modulo of number
- Type
- Number
(static) removeClass(element, className)
Remove the specified CSS class from the element.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | |
className |
String |
- Source:
(static) removeEvent(element, eventName, handler, optionsopt)
Remove a given event listener for the given element, event type and
handler.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
element |
Element | String | ||||||||||
eventName |
String | ||||||||||
handler |
function | ||||||||||
options |
Boolean | Object |
<optional> |
Boolean useCapture, or if supportsEventListenerOptions , can be an object
Properties
|
- Source:
(static) setElementOpacity(element, opacity, usesAlphaopt)
Sets the opacity of the specified element.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
Element | String | ||
opacity |
Number | ||
usesAlpha |
Boolean |
<optional> |
- Source:
(static) setElementPointerEvents(element, value)
Sets the specified element's pointer-events style attribute to the passed value.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String | |
value |
String |
- Source:
(static) setElementPointerEventsNone(element)
Sets the specified element's pointer-events style attribute to 'none'.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String |
- Source:
(static) setElementTouchActionNone(element)
Sets the specified element's touch-action style attribute to 'none'.
Parameters:
Name | Type | Description |
---|---|---|
element |
Element | String |
- Source:
(static) setImageFormatsSupported(formats)
Updates supported image formats with user-specified values.
Preexisting formats that are not being updated are left unchanged.
By default, the defined formats are
{
avif: true,
bmp: false,
jpeg: true,
jpg: true,
png: true,
tif: false,
wdp: false,
webp: true
}
Parameters:
Name | Type | Description |
---|---|---|
formats |
Object | An object containing format extensions as keys and booleans as values. |
- Source:
Example
// sets bmp as supported and png as unsupported
setImageFormatsSupported({bmp: true, png: false});
(static) setPageScroll() → {OpenSeadragon.Point}
Set the page scroll position.
- Source:
Returns:
- Type
- OpenSeadragon.Point
(static) setString(property, value)
Parameters:
Name | Type | Description |
---|---|---|
property |
String | |
value |
* |
- Source:
(static) stopEvent(eventopt)
Stops the propagation of the event through the DOM in the capturing and bubbling phases.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
Event |
<optional> |
- Source:
(static) type()
Taken from jQuery 1.6.1
- Source:
- See:
Type Definitions
DrawerOptions
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
webgl |
Object | options if the WebGLDrawer is used. No options are currently supported. |
canvas |
Object | options if the CanvasDrawer is used. No options are currently supported. |
html |
Object | options if the HTMLDrawer is used. No options are currently supported. |
custom |
Object | options if a custom drawer is used. No options are currently supported. |
- Source:
EventHandler(event)
Event handler method signature used by all OpenSeadragon events.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | See individual events for event-specific properties. |
- Source:
GestureSettings
Settings for gestures generated by a pointer device.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
dragToPan |
Boolean | Set to false to disable panning on drag gestures. |
scrollToZoom |
Boolean | Set to false to disable zooming on scroll gestures. |
clickToZoom |
Boolean | Set to false to disable zooming on click gestures. |
dblClickToZoom |
Boolean | Set to false to disable zooming on double-click gestures. Note: If set to true then clickToZoom should be set to false to prevent multiple zooms. |
pinchToZoom |
Boolean | Set to false to disable zooming on pinch gestures. |
flickEnabled |
Boolean | Set to false to disable the kinetic panning effect (flick) at the end of a drag gesture. |
flickMinSpeed |
Number | If flickEnabled is true, the minimum speed (in pixels-per-second) required to cause the kinetic panning effect (flick) at the end of a drag gesture. |
flickMomentum |
Number | If flickEnabled is true, a constant multiplied by the velocity to determine the distance of the kinetic panning effect (flick) at the end of a drag gesture. A larger value will make the flick feel "lighter", while a smaller value will make the flick feel "heavier". Note: springStiffness and animationTime also affect the "spring" used to stop the flick animation. |
- Source:
NavImages
The names for the image resources used for the image navigation buttons.
Type:
- Object
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zoomIn |
Object | Images for the zoom-in button.
Properties
|
|||||||||||||||
zoomOut |
Object | Images for the zoom-out button.
Properties
|
|||||||||||||||
home |
Object | Images for the home button.
Properties
|
|||||||||||||||
fullpage |
Object | Images for the full-page button.
Properties
|
|||||||||||||||
rotateleft |
Object | Images for the rotate left button.
Properties
|
|||||||||||||||
rotateright |
Object | Images for the rotate right button.
Properties
|
|||||||||||||||
flip |
Object | Images for the flip button.
Properties
|
|||||||||||||||
previous |
Object | Images for the previous button.
Properties
|
|||||||||||||||
next |
Object | Images for the next button.
Properties
|
- Source:
Options
All required and optional settings for instantiating a new instance of an OpenSeadragon image viewer.
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
String | Id of the element to append the viewer's container element to. If not provided, the 'element' property must be provided. If both the element and id properties are specified, the viewer is appended to the element provided in the element property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
element |
Element | The element to append the viewer's container element to. If not provided, the 'id' property must be provided. If both the element and id properties are specified, the viewer is appended to the element provided in the element property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tileSources |
Array | String | function | Object |
<optional> |
null | Tile source(s) to open initially. This is a complex parameter; see
OpenSeadragon.Viewer#open for details. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tabIndex |
Number |
<optional> |
0 | Tabbing order index to assign to the viewer element. Positive values are selected in increasing order. When tabIndex is 0 source order is used. A negative value omits the viewer from the tabbing order. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
overlays |
Array | Array of objects defining permanent overlays of
the viewer. The overlays added via this option and later removed with
OpenSeadragon.Viewer#removeOverlay will be added back when a new
image is opened.
To add overlays which can be definitively removed, one must use
OpenSeadragon.Viewer#addOverlay
If displaying a sequence of images, the overlays can be associated
with a specific page by passing the overlays array to the page's
tile source configuration.
Expected properties:
* x, y, (or px, py for pixel coordinates) to define the location.
* width, height in point if using x,y or in pixels if using px,py. If width
and height are specified, the overlay size is adjusted when zooming,
otherwise the size stays the size of the content (or the size defined by CSS).
* className to associate a class to the overlay
* id to set the overlay element. If an element with this id already exists,
it is reused, otherwise it is created. If not specified, a new element is
created.
* placement a string to define the relative position to the viewport.
Only used if no width and height are specified. Default: 'TOP_LEFT'.
See OpenSeadragon.Placement for possible values. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
xmlPath |
String |
<optional> |
null | DEPRECATED. A relative path to load a DZI file from the server. Prefer the newer Options.tileSources. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
prefixUrl |
String |
<optional> |
'/images/' | Prepends the prefixUrl to navImages paths, which is very useful since the default paths are rarely useful for production environments. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navImages |
OpenSeadragon.NavImages |
<optional> |
An object with a property for each button or other built-in navigation control, eg the current 'zoomIn', 'zoomOut', 'home', and 'fullpage'. Each of those in turn provides an image path for each state of the button or navigation control, eg 'REST', 'GROUP', 'HOVER', 'PRESS'. Finally the image paths, by default assume there is a folder on the servers root path called '/images', eg '/images/zoomin_rest.png'. If you need to adjust these paths, prefer setting the option.prefixUrl rather than overriding every image path directly through this setting. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
debugMode |
Boolean |
<optional> |
false | TODO: provide an in-screen panel providing event detail feedback. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
debugGridColor |
String |
<optional> |
['#437AB2', '#1B9E77', '#D95F02', '#7570B3', '#E7298A', '#66A61E', '#E6AB02', '#A6761D', '#666666'] | The colors of grids in debug mode. Each tiled image's grid uses a consecutive color. If there are more tiled images than provided colors, the color vector is recycled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
silenceMultiImageWarnings |
Boolean |
<optional> |
false | Silences warnings when calling viewport coordinate functions with multi-image. Useful when you're overlaying multiple images on top of one another. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blendTime |
Number |
<optional> |
0 | Specifies the duration of animation as higher or lower level tiles are replacing the existing tile. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
alwaysBlend |
Boolean |
<optional> |
false | Forces the tile to always blend. By default the tiles skip blending when the blendTime is surpassed and the current animation frame would not complete the blend. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
autoHideControls |
Boolean |
<optional> |
true | If the user stops interacting with the viewport, fade the navigation controls. Useful for presentation since the controls are by default floated on top of the image the user is viewing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
immediateRender |
Boolean |
<optional> |
false | Render the best closest level first, ignoring the lowering levels which provide the effect of very blurry to sharp. It is recommended to change setting to true for mobile devices. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
defaultZoomLevel |
Number |
<optional> |
0 | Zoom level to use when image is first opened or the home button is clicked. If 0, adjusts to fit viewer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
drawer |
String | DrawerImplementation | Array |
<optional> |
['webgl', 'canvas', 'html'] | Which drawer to use. Valid strings are 'webgl', 'canvas', and 'html'. Valid drawer implementations are constructors of classes that extend OpenSeadragon.DrawerBase. An array of strings and/or constructors can be used to indicate the priority of different implementations, which will be tried in order based on browser support. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
drawerOptions |
Object | Options to pass to the selected drawer implementation. For details
please see OpenSeadragon.DrawerOptions . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opacity |
Number |
<optional> |
1 | Default proportional opacity of the tiled images (1=opaque, 0=hidden) Hidden images do not draw and only load when preloading is allowed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
preload |
Boolean |
<optional> |
false | Default switch for loading hidden images (true loads, false blocks) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
compositeOperation |
String |
<optional> |
null | Valid values are 'source-over', 'source-atop', 'source-in', 'source-out', 'destination-over', 'destination-atop', 'destination-in', 'destination-out', 'lighter', 'difference', 'copy', 'xor', etc. For complete list of modes, please @see globalCompositeOperation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imageSmoothingEnabled |
Boolean |
<optional> |
true | Image smoothing for rendering (only if the canvas or webgl drawer is used). Note: Ignored
by some (especially older) browsers which do not support this canvas property.
This property can be changed in Viewer.DrawerBase.setImageSmoothingEnabled . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
placeholderFillStyle |
String | CanvasGradient | CanvasPattern | function |
<optional> |
null | Draws a colored rectangle behind the tile if it is not loaded yet. You can pass a CSS color value like "#FF8800". When passing a function the tiledImage and canvas context are available as argument which is useful when you draw a gradient or pattern. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subPixelRoundingForTransparency |
Object |
<optional> |
null | Determines when subpixel rounding should be applied for tiles when rendering images that support transparency.
This property is a subpixel rounding enum values dictionary [BROWSERS ] --> SUBPIXEL_ROUNDING_OCCURRENCES .
The key is a BROWSERS value, and the value is one of SUBPIXEL_ROUNDING_OCCURRENCES ,
indicating, for a given browser, when to apply subpixel rounding.
Key '*' is the fallback value for any browser not specified in the dictionary.
This property has a simple mode, and one can set it directly to
SUBPIXEL_ROUNDING_OCCURRENCES.NEVER , SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST or SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS
in order to apply this rule for all browser. The values SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS would be equivalent to { '*', SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS }.
The default is SUBPIXEL_ROUNDING_OCCURRENCES.NEVER for all browsers, for backward compatibility reason. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
degrees |
Number |
<optional> |
0 | Initial rotation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flipped |
Boolean |
<optional> |
false | Initial flip state. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
overlayPreserveContentDirection |
Boolean |
<optional> |
true | When the viewport is flipped (by pressing 'f'), the overlay is flipped using ScaleX. Normally, this setting (default true) keeps the overlay's content readable by flipping it back. To make the content flip with the overlay, set overlayPreserveContentDirection to false. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minZoomLevel |
Number |
<optional> |
null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxZoomLevel |
Number |
<optional> |
null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
homeFillsViewer |
Boolean |
<optional> |
false | Make the 'home' button fill the viewer and clip the image, instead of fitting the image to the viewer and letterboxing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
panHorizontal |
Boolean |
<optional> |
true | Allow horizontal pan. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
panVertical |
Boolean |
<optional> |
true | Allow vertical pan. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constrainDuringPan |
Boolean |
<optional> |
false | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wrapHorizontal |
Boolean |
<optional> |
false | Set to true to force the image to wrap horizontally within the viewport. Useful for maps or images representing the surface of a sphere or cylinder. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wrapVertical |
Boolean |
<optional> |
false | Set to true to force the image to wrap vertically within the viewport. Useful for maps or images representing the surface of a sphere or cylinder. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minZoomImageRatio |
Number |
<optional> |
0.9 | The minimum percentage ( expressed as a number between 0 and 1 ) of the viewport height or width at which the zoom out will be constrained. Setting it to 0, for example will allow you to zoom out infinity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxZoomPixelRatio |
Number |
<optional> |
1.1 | The maximum ratio to allow a zoom-in to affect the highest level pixel ratio. This can be set to Infinity to allow 'infinite' zooming into the image though it is less effective visually if the HTML5 Canvas is not available on the viewing device. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
smoothTileEdgesMinZoom |
Number |
<optional> |
1.1 | A zoom percentage ( where 1 is 100% ) of the highest resolution level. When zoomed in beyond this value alternative compositing will be used to smooth out the edges between tiles. This will have a performance impact. Can be set to Infinity to turn it off. Note: This setting is ignored on iOS devices due to a known bug (See https://github.com/openseadragon/openseadragon/issues/952) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
iOSDevice |
Boolean |
<optional> |
? | True if running on an iOS device, false otherwise. Used to disable certain features that behave differently on iOS devices. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
autoResize |
Boolean |
<optional> |
true | Set to false to prevent polling for viewer size changes. Useful for providing custom resize behavior. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
preserveImageSizeOnResize |
Boolean |
<optional> |
false | Set to true to have the image size preserved when the viewer is resized. This requires autoResize=true (default). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minScrollDeltaTime |
Number |
<optional> |
50 | Number of milliseconds between canvas-scroll events. This value helps normalize the rate of canvas-scroll events between different devices, causing the faster devices to slow down enough to make the zoom control more manageable. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rotationIncrement |
Number |
<optional> |
90 | The number of degrees to rotate right or left when the rotate buttons or keyboard shortcuts are activated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxTilesPerFrame |
Number |
<optional> |
1 | The number of tiles loaded per frame. As the frame rate of the client's machine is usually high (e.g., 50 fps), one tile per frame should be a good choice. However, for large screens or lower frame rates, the number of loaded tiles per frame can be adjusted here. Reasonable values might be 2 or 3 tiles per frame. (Note that the actual frame rate is given by the client's browser and machine). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pixelsPerWheelLine |
Number |
<optional> |
40 | For pixel-resolution scrolling devices, the number of pixels equal to one scroll line. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pixelsPerArrowPress |
Number |
<optional> |
40 | The number of pixels viewport moves when an arrow key is pressed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
visibilityRatio |
Number |
<optional> |
0.5 | The percentage ( as a number from 0 to 1 ) of the source image which must be kept within the viewport. If the image is dragged beyond that limit, it will 'bounce' back until the minimum visibility ratio is achieved. Setting this to 0 and wrapHorizontal ( or wrapVertical ) to true will provide the effect of an infinitely scrolling viewport. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
viewportMargins |
Object |
<optional> |
{} | Pushes the "home" region in from the sides by the specified amounts. Possible subproperties (Numbers, in screen coordinates): left, top, right, bottom. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imageLoaderLimit |
Number |
<optional> |
0 | The maximum number of image requests to make concurrently. By default it is set to 0 allowing the browser to make the maximum number of image requests in parallel as allowed by the browsers policy. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clickTimeThreshold |
Number |
<optional> |
300 | The number of milliseconds within which a pointer down-up event combination will be treated as a click gesture. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clickDistThreshold |
Number |
<optional> |
5 | The maximum distance allowed between a pointer down event and a pointer up event to be treated as a click gesture. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dblClickTimeThreshold |
Number |
<optional> |
300 | The number of milliseconds within which two pointer down-up event combinations will be treated as a double-click gesture. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dblClickDistThreshold |
Number |
<optional> |
20 | The maximum distance allowed between two pointer click events to be treated as a double-click gesture. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
springStiffness |
Number |
<optional> |
6.5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
animationTime |
Number |
<optional> |
1.2 | Specifies the animation duration per each OpenSeadragon.Spring
which occur when the image is dragged, zoomed or rotated. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
gestureSettingsMouse |
OpenSeadragon.GestureSettings |
<optional> |
Settings for gestures generated by a mouse pointer device. (See OpenSeadragon.GestureSettings )
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
gestureSettingsTouch |
OpenSeadragon.GestureSettings |
<optional> |
Settings for gestures generated by a touch pointer device. (See OpenSeadragon.GestureSettings )
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
gestureSettingsPen |
OpenSeadragon.GestureSettings |
<optional> |
Settings for gestures generated by a pen pointer device. (See OpenSeadragon.GestureSettings )
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
gestureSettingsUnknown |
OpenSeadragon.GestureSettings |
<optional> |
Settings for gestures generated by unknown pointer devices. (See OpenSeadragon.GestureSettings )
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomPerClick |
Number |
<optional> |
2.0 | The "zoom distance" per mouse click or touch tap. Note: Setting this to 1.0 effectively disables the click-to-zoom feature (also see gestureSettings[Mouse|Touch|Pen].clickToZoom/dblClickToZoom). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomPerScroll |
Number |
<optional> |
1.2 | The "zoom distance" per mouse scroll or touch pinch. Note: Setting this to 1.0 effectively disables the mouse-wheel zoom feature (also see gestureSettings[Mouse|Touch|Pen].scrollToZoom}). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomPerDblClickDrag |
Number |
<optional> |
1.2 | The "zoom distance" per double-click mouse drag. Note: Setting this to 1.0 effectively disables the double-click-drag-to-Zoom feature (also see gestureSettings[Mouse|Touch|Pen].dblClickDragToZoom). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomPerSecond |
Number |
<optional> |
1.0 | Sets the zoom amount per second when zoomIn/zoomOut buttons are pressed and held. The value is a factor of the current zoom, so 1.0 (the default) disables zooming when the zoomIn/zoomOut buttons are held. Higher values will increase the rate of zoom when the zoomIn/zoomOut buttons are held. Note that values < 1.0 will reverse the operation of the zoomIn/zoomOut buttons (zoomIn button will decrease the zoom, zoomOut will increase the zoom). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showNavigator |
Boolean |
<optional> |
false | Set to true to make the navigator minimap appear. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorElement |
Element |
<optional> |
null | The element to hold the navigator minimap. If an element is specified, the Id option (see navigatorId) is ignored. If no element nor ID is specified, a div element will be generated accordingly. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorId |
String |
<optional> |
navigator-GENERATED DATE | The ID of a div to hold the navigator minimap. If an ID is specified, the navigatorPosition, navigatorSizeRatio, navigatorMaintainSizeRatio, navigator[Top|Left|Height|Width] and navigatorAutoFade options will be ignored. If an ID is not specified, a div element will be generated and placed on top of the main image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorPosition |
String |
<optional> |
'TOP_RIGHT' | Valid values are 'TOP_LEFT', 'TOP_RIGHT', 'BOTTOM_LEFT', 'BOTTOM_RIGHT', or 'ABSOLUTE'. If 'ABSOLUTE' is specified, then navigator[Top|Left|Height|Width] determines the size and position of the navigator minimap in the viewer, and navigatorSizeRatio and navigatorMaintainSizeRatio are ignored. For 'TOP_LEFT', 'TOP_RIGHT', 'BOTTOM_LEFT', and 'BOTTOM_RIGHT', the navigatorSizeRatio or navigator[Height|Width] values determine the size of the navigator minimap. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorSizeRatio |
Number |
<optional> |
0.2 | Ratio of navigator size to viewer size. Ignored if navigator[Height|Width] are specified. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorMaintainSizeRatio |
Boolean |
<optional> |
false | If true, the navigator minimap is resized (using navigatorSizeRatio) when the viewer size changes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorTop |
Number | String |
<optional> |
null | Specifies the location of the navigator minimap (see navigatorPosition). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorLeft |
Number | String |
<optional> |
null | Specifies the location of the navigator minimap (see navigatorPosition). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorHeight |
Number | String |
<optional> |
null | Specifies the size of the navigator minimap (see navigatorPosition). If specified, navigatorSizeRatio and navigatorMaintainSizeRatio are ignored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorWidth |
Number | String |
<optional> |
null | Specifies the size of the navigator minimap (see navigatorPosition). If specified, navigatorSizeRatio and navigatorMaintainSizeRatio are ignored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorAutoResize |
Boolean |
<optional> |
true | Set to false to prevent polling for navigator size changes. Useful for providing custom resize behavior. Setting to false can also improve performance when the navigator is configured to a fixed size. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorAutoFade |
Boolean |
<optional> |
true | If the user stops interacting with the viewport, fade the navigator minimap. Setting to false will make the navigator minimap always visible. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorRotate |
Boolean |
<optional> |
true | If true, the navigator will be rotated together with the viewer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorBackground |
String |
<optional> |
'#000' | Specifies the background color of the navigator minimap | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorOpacity |
Number |
<optional> |
0.8 | Specifies the opacity of the navigator minimap. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorBorderColor |
String |
<optional> |
'#555' | Specifies the border color of the navigator minimap | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigatorDisplayRegionColor |
String |
<optional> |
'#900' | Specifies the border color of the display region rectangle of the navigator minimap | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
controlsFadeDelay |
Number |
<optional> |
2000 | The number of milliseconds to wait once the user has stopped interacting with the interface before beginning to fade the controls. Assumes showNavigationControl and autoHideControls are both true. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
controlsFadeLength |
Number |
<optional> |
1500 | The number of milliseconds to animate the controls fading out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxImageCacheCount |
Number |
<optional> |
200 | The max number of images we should keep in memory (per drawer). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timeout |
Number |
<optional> |
30000 | The max number of milliseconds that an image job may take to complete. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tileRetryMax |
Number |
<optional> |
0 | The max number of retries when a tile download fails. By default it's 0, so retries are disabled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tileRetryDelay |
Number |
<optional> |
2500 | Milliseconds to wait after each tile retry if tileRetryMax is set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useCanvas |
Boolean |
<optional> |
true | Deprecated. Use the `drawer` option to specify preferred renderer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minPixelRatio |
Number |
<optional> |
0.5 | The higher the minPixelRatio, the lower the quality of the image that is considered sufficient to stop rendering a given zoom level. For example, if you are targeting mobile devices with less bandwidth you may try setting this to 1.5 or higher. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mouseNavEnabled |
Boolean |
<optional> |
true | Is the user able to interact with the image via mouse or touch. Default interactions include draging the image in a plane, and zooming in toward and away from the image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showNavigationControl |
Boolean |
<optional> |
true | Set to false to prevent the appearance of the default navigation controls. Note that if set to false, the customs buttons set by the options zoomInButton, zoomOutButton etc, are rendered inactive. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navigationControlAnchor |
OpenSeadragon.ControlAnchor |
<optional> |
TOP_LEFT | Placement of the default navigation controls. To set the placement of the sequence controls, see the sequenceControlAnchor option. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showZoomControl |
Boolean |
<optional> |
true | If true then + and - buttons to zoom in and out are displayed. Note: OpenSeadragon.Options.showNavigationControl is overriding
this setting when set to false. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showHomeControl |
Boolean |
<optional> |
true | If true then the 'Go home' button is displayed to go back to the original
zoom and pan. Note: OpenSeadragon.Options.showNavigationControl is overriding
this setting when set to false. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showFullPageControl |
Boolean |
<optional> |
true | If true then the 'Toggle full page' button is displayed to switch
between full page and normal mode. Note: OpenSeadragon.Options.showNavigationControl is overriding
this setting when set to false. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showRotationControl |
Boolean |
<optional> |
false | If true then the rotate left/right controls will be displayed as part of the
standard controls. This is also subject to the browser support for rotate
(e.g. viewer.drawer.canRotate()). Note: OpenSeadragon.Options.showNavigationControl is overriding
this setting when set to false. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showFlipControl |
Boolean |
<optional> |
false | If true then the flip controls will be displayed as part of the standard controls. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showSequenceControl |
Boolean |
<optional> |
true | If sequenceMode is true, then provide buttons for navigating forward and backward through the images. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sequenceControlAnchor |
OpenSeadragon.ControlAnchor |
<optional> |
TOP_LEFT | Placement of the default sequence controls. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
navPrevNextWrap |
Boolean |
<optional> |
false | If true then the 'previous' button will wrap to the last image when viewing the first image and the 'next' button will wrap to the first image when viewing the last image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomInButton |
String | Element | Set the id or element of the custom 'Zoom in' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zoomOutButton |
String | Element | Set the id or element of the custom 'Zoom out' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
homeButton |
String | Element | Set the id or element of the custom 'Go home' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullPageButton |
String | Element | Set the id or element of the custom 'Toggle full page' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rotateLeftButton |
String | Element | Set the id or element of the custom 'Rotate left' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rotateRightButton |
String | Element | Set the id or element of the custom 'Rotate right' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previousButton |
String | Element | Set the id or element of the custom 'Previous page' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextButton |
String | Element | Set the id or element of the custom 'Next page' button to use.
This is useful to have a custom button anywhere in the web page. To only change the button images, consider using OpenSeadragon.Options.navImages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sequenceMode |
Boolean |
<optional> |
false | Set to true to have the viewer treat your tilesources as a sequence of images to be opened one at a time rather than all at once. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
initialPage |
Number |
<optional> |
0 | If sequenceMode is true, display this page initially. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
preserveViewport |
Boolean |
<optional> |
false | If sequenceMode is true, then normally navigating through each image resets the viewport to 'home' position. If preserveViewport is set to true, then the viewport position is preserved when navigating between images in the sequence. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
preserveOverlays |
Boolean |
<optional> |
false | If sequenceMode is true, then normally navigating through each image
resets the overlays.
If preserveOverlays is set to true, then the overlays added with OpenSeadragon.Viewer#addOverlay
are preserved when navigating between images in the sequence.
Note: setting preserveOverlays overrides any overlays specified in the global
"overlays" option for the Viewer. It's also not compatible with specifying
per-tileSource overlays via the options, as those overlays will persist
even after the tileSource is closed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showReferenceStrip |
Boolean |
<optional> |
false | If sequenceMode is true, then display a scrolling strip of image thumbnails for navigating through the images. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripScroll |
String |
<optional> |
'horizontal' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripElement |
Element |
<optional> |
null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripHeight |
Number |
<optional> |
null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripWidth |
Number |
<optional> |
null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripPosition |
String |
<optional> |
'BOTTOM_LEFT' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
referenceStripSizeRatio |
Number |
<optional> |
0.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionMode |
Boolean |
<optional> |
false | Set to true to have the viewer arrange your TiledImages in a grid or line. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionRows |
Number |
<optional> |
3 | If collectionMode is true, specifies how many rows the grid should have. Use 1 to make a line. If collectionLayout is 'vertical', specifies how many columns instead. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionColumns |
Number |
<optional> |
0 | If collectionMode is true, specifies how many columns the grid should have. Use 1 to make a line. If collectionLayout is 'vertical', specifies how many rows instead. Ignored if collectionRows is not set to a falsy value. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionLayout |
String |
<optional> |
'horizontal' | If collectionMode is true, specifies whether to arrange vertically or horizontally. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionTileSize |
Number |
<optional> |
800 | If collectionMode is true, specifies the size, in viewport coordinates, for each TiledImage to fit into. The TiledImage will be centered within a square of the specified size. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collectionTileMargin |
Number |
<optional> |
80 | If collectionMode is true, specifies the margin, in viewport coordinates, between each TiledImage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
crossOriginPolicy |
String | Boolean |
<optional> |
false | Valid values are 'Anonymous', 'use-credentials', and false. If false, canvas requests will not use CORS, and the canvas will be tainted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ajaxWithCredentials |
Boolean |
<optional> |
false | Whether to set the withCredentials XHR flag for AJAX requests.
Note that this can be overridden at the OpenSeadragon.TileSource level. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
loadTilesWithAjax |
Boolean |
<optional> |
false | Whether to load tile data using AJAX requests.
Note that this can be overridden at the OpenSeadragon.TileSource level. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ajaxHeaders |
Object |
<optional> |
{} | A set of headers to include when making AJAX requests for tile sources or tiles. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
splitHashDataForPost |
Boolean |
<optional> |
false | Allows to treat _first_ hash ('#') symbol as a separator for POST data:
URL to be opened by a OpenSeadragon.TileSource can thus look like: http://some.url#postdata=here.
The whole URL is used to fetch image info metadata and it is then split to 'http://some.url' and
'postdata=here'; post data is given to the OpenSeadragon.TileSource of the choice and can be further
used within tile requests (see TileSource methods).
NOTE: OpenSeadragon.TileSource.prototype.configure return value should contain the post data
if you want to use it later - so that it is given to your constructor later.
NOTE: usually, post data is expected to be ampersand-separated (just like GET parameters), and is NOT USED
to fetch tile image data unless explicitly programmed, or if loadTilesWithAjax=false 4
(but it is still used for the initial image info request).
NOTE: passing POST data from URL by this feature only supports string values, however,
TileSource can send any data using POST as long as the header is correct
(@see OpenSeadragon.TileSource.prototype.getTilePostData) |
- Source: