PMA.UI Documentation by Pathomation

View

PMA.UI. View

Source:
PMA.UI.View contains PMA.UI viewport helper utilities

Classes

Viewport

Namespaces

Controls
Events

Members

(static, readonly) ButtonLocations :string

Source:
Properties:
Name Type Description
N string North of the viewport
S string South of the viewport
E string East of the viewport
W string West of the viewport
NE string North-East corner of the viewport
NW string North-West corner of the viewport
SE string South-East corner of the viewport
SW string South-West corner of the viewport
Custom button predefined locations
Type:
  • string

(static, readonly) DefaultFillColor

Source:
Default fill color used

(static, readonly) ObjectiveResolutions :string

Source:
Properties:
Name Type Description
Min string Minimum resolution
1X string 1x
2X string 2x
5X string 5x
10X string 10x
20X string 20x
40X string 40x
1:1 string 1:1 Resolution
Max string Maximum resolution
Supported types of objective resolutions
Type:
  • string

(static, readonly) Themes :string

Source:
Properties:
Name Type Description
Default string OpenLayers default
Classic string Classic layout found in many desktop viewers
Modern string Modern layout compatible with web application UI
Viewer themes
Type:
  • string

Type Definitions

tileTransformer(pixels)

Source:
Receives pixel data and applies an image transformation to it
Parameters:
Name Type Description
pixels ImageData Represents the underlying pixel data of an area of a canvas element

SnapshotResult

Source:
Properties:
Name Type Description
url url The snapshot url
width number The width of the snapshot
height number The height of the snapshot
scale number The scale factor of the snapshot
An object containing the url, width and height of the final image
Type:
  • Object