Class: AnnoHost

OpenSeadragonImaging. AnnoHost

Provides a framework for annotating OpenSeadragon images.

new AnnoHost(options)

Creates a new AnnoHost attached to the viewer instance passed in the options parameter.
Parameters:
Name Type Description
options Object
Properties
Name Type Argument Description
viewer external:"OpenSeadragon.Viewer" Required! Reference to OpenSeadragon viewer to attach to.
onImageViewChanged external:OpenSeadragon.EventHandler <optional>
OpenSeadragonImaging.ImagingHelper.event:image-view-changed handler method.
Source:

Extends

  • OpenSeadragonImaging.ImagingHelper

Members

<static> version :Object

AnnoHost 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:

annotationGrappleWidth :Number

Gets the dimensions of annotation UI grapples in pixels.
Type:
  • Number
Source:

dataHeight :Number

Gets the image's native height in pixels.
Type:
  • Number
Source:

dataWidth :Number

Gets the image's native width in pixels.
Type:
  • Number
Source:

Methods

notifyAnnotationTrackingEditStarted(annotation)

Called by Annotation objects when editing starts.
Parameters:
Name Type Description
annotation OpenSeadragonImaging.Annotation
Source:

testMethod() → {number}

TEST.
Source:
Returns:
Type
number