Members | Methods |
---|---|
Constructor
new WebGLDrawer(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options for this Drawer.
Properties
|
- Source:
Members
canvas :Element
The HTML element (canvas) that this drawer uses for drawing
Type:
- Element
- Source:
container :Element
The parent element of this Drawer instance, passed in when the Drawer was created.
The parent of
OpenSeadragon.WebGLDrawer#canvas
.
Type:
- Element
- Source:
Methods
(static) isSupported() → {Boolean}
- Source:
Returns:
true if canvas and webgl are supported
- Type
- Boolean
canRotate() → {Boolean}
- Source:
Returns:
true
- Type
- Boolean
destroy()
Clean up the renderer, removing all resources
- Source:
draw(tiledImages)
Parameters:
Name | Type | Description |
---|---|---|
tiledImages |
Array | Array of TiledImage objects to draw |
- Source:
drawDebuggingRect(rect)
Draw a rect onto the output canvas for debugging purposes
Parameters:
Name | Type | Description |
---|---|---|
rect |
OpenSeadragon.Rect |
- Source:
getType()
- Source:
Returns:
'webgl'
setImageSmoothingEnabled(enabled)
Required by DrawerBase, but has no effect on WebGLDrawer.
Parameters:
Name | Type | Description |
---|---|---|
enabled |
Boolean |
- Source: