Utils

Atalasoft. Utils

Members

(static) Browser :Atalasoft.Utils.BrowserMetadata

The current browser metadata.

(static, readonly) FileUploadRejectReason :number

Represents a reason why a file has been rejected by WDV from upload.

Properties:
Name Type Description
None number

File is not rejected from upload

Size number

File is bigger than allowed by allowedmaxfilesize property.

Type number

File type or extensions is not allowed by allowedfiletypes property.

Name number

File with the same name has already added to the upload queue.

(static) Fitting :number

Specifies the fitting options.

Properties:
Name Type Description
None number

No fitting will be applied to the image

Best number

Finds the best option between width or height based fitting.

Width number

Fits the image to the available width.

Height number

Fits the image to the available height.

(static) MouseToolCursor :number

Specifies the cursor used with the mouse tool.

Properties:
Name Type Description
Auto number

Automatically determined by the browser.

Arrow number

An arrow pointer.

Crosshair number

A crosshair usually used in drawing a box.

Grab number

A grabbing cursor. Usually changes to gabbed while the mouse button is down.

Hand number

A hand with a finger pointing. Usually what the browser uses for clicking hyperlinks.

Move number

A crosshair pointer with arrowheads on the ends indicating movement.

ZoomIn number

A magnifying glass with a plus sign in it.

ZoomOut number

A magnifying glass with a minus sign in it.

Text number

A selection editing cursor.

VerticalText number

A vertical text editing cursor.

Wait number

A wait cursor.

Custom number

A custom CSS cursor string provided by the user.

(static) MouseToolType :number

Specifies the behavior of the mouse from within the WebDocumentViewer.

Properties:
Name Type Description
None number

Specify no mouse behavior at all.

Pan number

Clicking and dragging the mouse will scroll the image.

ZoomIn number

Clicking will zoom in.

ZoomOut number

Clicking will zoom out.

ContextMenu number

Shows a context menu for the clicked object (where applicable).

PassThrough number

Allows mouse events to pass through the DOM without any handling.

Selection number

Mouse will be set to crosshairs and can be used to drag and modify a selection rectangle on the image. This tool requires that the WebDocumentViewerConfig.showselecttools flag was set.

ZoomArea number

Zoom in on a specified area defined by dragging a rectangle onto the image. This tool requires that the WebDocumentViewerConfig.showselecttools flag was set.

Text number

Input actions are interpreted as text selection This tool requires that the WebDocumentViewerConfig.showselecttools flag was set.

(static) PageSelection :number

Specifies the page selection method.

Properties:
Name Type Description
TopLeft number

Selects the page under the top left corner of the viewer

MiddleLeft number

Selects the page under the middle left of the viewer

BottomLeft number

Selects the page under the bottom left corner of the viewer

Center number

Selects the page under the center location of viewer

(static) ScrollArea :number

Specifies the size of the viewport area that triggers document scroll when text selection enters it.

Properties:
Name Type Description
None number

Text selection scrolling is disabled

Normal number

Normal scroll area. Around 10% of the corresponding viewport dimension

Large number

Normal scroll area. Around 20% of the corresponding viewport dimension

(static) ScrollDirection :number

Specifies the direction of the scrolling.

Properties:
Name Type Description
Horizontal number

Scrolls horizontally.

Vertical number

Scrolls vertically.

(static, readonly) SelectedItemsOrder :number

Defines the order in which selected thumbnails are ordered

Properties:
Name Type Description
ItemIndexOrder number

Items are sorted in their index order.

SelectedOrder number

Items are sorted in the order they were selected.

(static, readonly) SelectionMode :number

Defines Web Document Thumbnailer selection mode.

Properties:
Name Type Description
SingleSelect number

Only one thumbnail can be selected

MultiSelect number

Multiple thumbnails can be selected

Type Definitions

BrowserMetadata

Represents the current browser metadata.

Properties:
Name Type Description
Explorer boolean

Indicates whether current browser is Internet Explorer.

Firefox boolean

Indicates whether current browser is Firefox.

Safari boolean

Indicates whether current browser is Safari.

Opera boolean

Indicates whether current browser is Opera.

Chrome boolean

Indicates whether current browser is Google Chrome.

Mobile Object

Represents mobile browser indicators.

Properties
Name Type Description
iOS boolean

Indicates that current device runs on iOS device.

Android boolean

Indicates that current device runs on Android device.

IEMobile boolean

Indicates that current device runs on mobile internet explorer.

Any function

Checks whether current platform is mobile device.