element |
string
|
HTMLElement
|
|
|
The element that hosts the viewer. It can be either a valid CSS selector or an HTMLElement instance |
image |
string
|
|
|
The path or UID of the image to load |
keyboardPanFactor |
Number
|
<optional>
|
0.5
|
A factor to calculate pan delta when pressing a keyboard arrow. The actual pan in pixels is calculated as keyboardPanFactor * viewportWidth. |
keyboardZoomDelta |
Number
|
<optional>
|
1
|
The zoom level delta on each key press. |
theme |
PMA.UI.View.Themes
|
<optional>
|
"default"
|
The theme to use |
overview |
boolean
|
Object
|
<optional>
|
true
|
Whether or not to display an overview map
Properties
Name |
Type |
Attributes |
Description |
collapsed |
boolean
|
<optional>
|
Whether or not to start the overview in collapsed state |
|
dimensions |
boolean
|
Object
|
<optional>
|
true
|
Whether or not to display the dimensions selector for images that have more than one channel, z-stack or timeframe
Properties
Name |
Type |
Attributes |
Description |
collapsed |
boolean
|
<optional>
|
Whether or not to start the dimensions selector in collapsed state |
|
barcode |
boolean
|
Object
|
<optional>
|
false
|
Whether or not to display the image's barcode if it exists
Properties
Name |
Type |
Attributes |
Description |
collapsed |
boolean
|
<optional>
|
Whether or not to start the barcode in collapsed state |
rotation |
Number
|
<optional>
|
Rotation in steps of 90 degrees |
|
loadingBar |
boolean
|
Object
|
<optional>
|
true
|
Whether or not to display a loading bar while the image is loading |
position |
Viewport~position
|
<optional>
|
|
The initial position of the viewport within the image |
snapshot |
boolean
|
<optional>
|
false
|
Whether or not to display a button that generates a snapshot image |
annotations |
Viewport~annotationOptions
|
<optional>
|
|
Annotation options |
digitalZoomLevels |
Number
|
<optional>
|
0
|
The number of digital zoom levels to add |
animationDuration |
Number
|
<optional>
|
0
|
The duration of transition animations in ms (0 for no animations) |
mouseWheelZoomAnimations |
boolean
|
<optional>
|
false
|
Whether or not to apply animations to mouse wheel zoom |
panAnimations |
boolean
|
<optional>
|
false
|
Whether or not to apply animations to pan operations too |
scaleLine |
boolean
|
<optional>
|
true
|
Whether or not to display a scale line when resolution information is available |
colorAdjustments |
boolean
|
<optional>
|
false
|
Whether or not to add a control that allows color adjustments |
filename |
string
|
Viewport~filenameCallback
|
<optional>
|
|
A string to display as the file name or a callback function. If no value is supplied, no file name is displayed. |
attributions |
boolean
|
Viewport~attributionOptions
|
<optional>
|
|
Whether or not to display Pathomation attribution in the viewer |
customButtons |
Array.<Viewport~customButton>
|
<optional>
|
|
An array of one or more custom buttons to add to the viewer |