Class: ConsoleHook

OpenSeadragonImaging. ConsoleHook

Provides hooks into the OpenSeadragon console pipeline.
Members Methods

new ConsoleHook(options)

Creates a new OpenSeadragonImaging.ConsoleHook.
Parameters:
Name Type Description
options Object
Properties
Name Type Argument Description
log function <optional>
console.log function. Function can return true to prevent original function call.
debug function <optional>
console.debug function. Function can return true to prevent original function call.
info function <optional>
console.info function. Function can return true to prevent original function call.
warn function <optional>
console.warn function. Function can return true to prevent original function call.
error function <optional>
console.error function. Function can return true to prevent original function call.
Source:

Members

<static> version :Object

ConsoleHook 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.
Source:

Methods

destroy()

Remove hooks and OpenSeadragon.console references. Call before OpenSeadragon.Viewer.destroy().
Since:
  • 2.2.0
Source: