Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOutsideInViewer

OutsideIn viewer instance interface

interface
description

This provides a special bootstrap method that can take in an OutsideIn View instance.

Hierarchy

Index

Properties

Optional cardActivated

cardActivated: function

Called after the card is activated in a dock.

Type declaration

Optional cardBuildTabOptions

cardBuildTabOptions: function

If provided, this function will be called to build custom viewer tab options for the viewer card.

If no function is provided, a default tab will be created based on the card title.

Type declaration

Optional cardBuildToolbarOptions

cardBuildToolbarOptions: function

If provided, this function will be called to build custom viewer toolbar options for the viewer card.

Type declaration

Optional cardCanDeactivate

cardCanDeactivate: function

Called before the card deactivates to check if it is safe to do so

Type declaration

Optional cardCreateUnsupportedOverlayCard

cardCreateUnsupportedOverlayCard: function

Called when the viewer collection needs a card to show when the viewer does not support the item. A default placeholder is shown if this method is not provided.

Type declaration

Optional cardDeactivated

cardDeactivated: function

Called after the card is deactivated in a dock.

Type declaration

Optional cardError

cardError: function

Called whenever an error occurs while managing the card

Type declaration

Optional cardLoadState

cardLoadState: function

Called to restore the state of the card

Type declaration

Optional cardLoaded

cardLoaded: function

Called after the card content has loaded

Type declaration

Optional cardMaximized

cardMaximized: function

Called when the card is maximized

Type declaration

Optional cardResized

cardResized: function

Called when the card is resized

Type declaration

Optional cardRestored

cardRestored: function

Called when the card is no longer maximized

Type declaration

Optional cardSaveState

cardSaveState: function

Called to save the state of the card

Type declaration

Optional cardUnloaded

cardUnloaded: function

Called before the card content is unloaded

Type declaration

contextualSearchView

contextualSearchView: BasicView

Contextual Search View

readonly
type

{BasicView}

currentPageIndex

currentPageIndex: number

Gets the current page index.

returns

currentPageName

currentPageName: string

Gets the current page name

returns

id

id: string

Unique viewer instance ID

loadError

loadError: Error

Populated with error when loadSuccessful is false. Otherwise, undefined.

readonly
returns

loadSuccessful

loadSuccessful: boolean

Returns true, if document was loaded into view without error.

readonly
returns

oiPagesLoadedCount

oiPagesLoadedCount: number

Gets the current number of loaded pages for the current document.

returns

thumbnailView

thumbnailView: BasicView

The Thumbnail viewer for the view

readonly
type

{BasicView}

timelineView

timelineView: BasicView

The Timeline viewer for the view

readonly
type

{BasicView}

transientHighlight

transientHighlight: ITransientHighlightManager

The Transient Highlight Manager for the view

readonly
type

{ITransientHighlightManager}

type

Viewer type - this should match the viewer type from the configuration object

Optional unsupportedTabTitle

unsupportedTabTitle: string

If provided, this defines the viewer's tab title when the viewer does not support the current queue item.

If not provided, the title will default to "No " in this scenario.

Methods

cardLoadItem

  • Called when the viewer card should load a new queue item

    Parameters

    Returns Promise<boolean>

    Promise that resolves to a boolean indicating whether or not the load was successful

checkHasFeature

  • checkHasFeature(feature: ViewFeature): boolean
  • Checks the OI Aqua API to see whether the viewer's current state can support the specified feature

    Parameters

    • feature: ViewFeature

      The ViewFeature (enum) being checked

    Returns boolean

    Whether or not the viewer can support the specified feature

createCellRange

  • createCellRange(sheet: number, c1: number, r1: number, c2?: number, r2?: number): CellRangeMemento
  • Creates a CellRangeMemento representing the cell or range of cells at the specified spreadsheet or database table, row(s), and column(s).

    Parameters

    • sheet: number

      The 0-based index of the page containing the range

    • c1: number

      The 0-based index of the leftmost column of the range

    • r1: number

      The 0-based index of the topmost row of the range

    • Optional c2: number
    • Optional r2: number

    Returns CellRangeMemento

    CellRangeMoment object built with the provided arguments

createRectRange

  • createRectRange(sheet: number, left: number, top: number, right?: number, bottom?: number, units?: string, hdpi?: number, vdpi?: number): RectRangeMemento
  • Creates a RectRangeMemento representing a rectangle on the specified page

    Parameters

    • sheet: number

      The 0-based index of the page containing the range

    • left: number

      The left edge of the rectangular range

    • top: number

      The top edge of the rectangular range

    • Optional right: number
    • Optional bottom: number
    • Optional units: string
    • Optional hdpi: number
    • Optional vdpi: number

    Returns RectRangeMemento

    RectRangeMoment object built with the provided arguments

createTextRange

  • Creates a TextRangeMemento corresponding to the specified ACC (actual character count) range

    Parameters

    • acc: number

      The first character of the ACC range (inclusive)

    • accend: number

      The last character of the ACC range (non-inclusive)

    Returns TextRangeMemento

getHiddenContentStatus

  • Returns Outside In Show/Hide hidden Items status

    Returns HiddenContentType

    The status of hidden content shown in the viewer (On or Off)

getPageHeight

  • getPageHeight(index?: number): number
  • The height of the page, in pixels, at 100% zoom and 0 degrees rotation

    Parameters

    • Optional index: number

      Optional - if provided, will get height of page at designated index, otherwise will get height of current page

    Returns number

getPageWidth

  • getPageWidth(index?: number): number
  • The width of the page, in pixels, at 100% zoom and 0 degrees rotation

    Parameters

    • Optional index: number

      Optional - if provided, will get width of page at designated index, otherwise will get width of current page

    Returns number

getSelectionMode

  • getSelectionMode(): string
  • Get the current selection mode

    Returns string

hasPaging

  • hasPaging(): boolean
  • Checks if the current document supports page navigation

    Returns boolean

moveToNextPage

  • moveToNextPage(): void
  • Moves to the next page on the OI Doc

    description

    Rendering is asynchronous while the call to move to page is synchronous

    Returns void

moveToPage

  • moveToPage(pageIndex: number): void
  • Moves to pageIndex if exists in the OI document.

    description

    Rendering is asynchronous while the call to move to page is synchronous

    Parameters

    • pageIndex: number

      Index of target page. This index is 0-based.

    Returns void

moveToPreviousPage

  • moveToPreviousPage(): void
  • Moves to the previous page on the OI Doc

    description

    Rendering is asynchronous while the call to move to page is synchronous

    Returns void

openAboutModal

  • openAboutModal(): Promise<DialogCancellableOpenResult>
  • Opens the About Viewer Modal

    Returns Promise<DialogCancellableOpenResult>

openConfirmDeleteImagesModal

  • openConfirmDeleteImagesModal(): Promise<void>
  • Opens the Confirm Delete Images modal

    • @returns {Promise}

    Returns Promise<void>

openSaveAsPdfModal

  • openSaveAsPdfModal(): Promise<DialogCancellableOpenResult>
  • Opens the Save as PDF Modal

    Returns Promise<DialogCancellableOpenResult>

openSingleFileUploadModal

  • openSingleFileUploadModal(isImage: boolean, imagesExist?: boolean, imagingProfileId?: number): Promise<void>
  • Opens the Single File Upload modal

    Parameters

    • isImage: boolean
    • Optional imagesExist: boolean
    • Optional imagingProfileId: number

    Returns Promise<void>

selectCellRange

  • Makes the specified cell range the active selection

    Parameters

    Returns boolean

    true if the selection changed, false if it did not change

selectRectRange

  • Makes the specified rect range the active selection

    Parameters

    Returns boolean

    true if the selection changed, false if it did not change

selectTextRange

  • Makes the specified text range the active selection

    Parameters

    Returns boolean

    true if the selection changed, false if it did not change

selectionRange

setPageLayoutMode

  • setPageLayoutMode(scrollMode: ViewerScrollMode): void
  • Sets the page layout mode for the current OI View using the passed in value

    Parameters

    • scrollMode: ViewerScrollMode

      scroll mode setting

    Returns void

setSelectionMode

  • setSelectionMode(mode: string): void
  • Set a new selection mode

    Parameters

    • mode: string

      Mode to set: rect, text, cell, or none

    Returns void

showHiddenContent

  • showHiddenContent(showHiddenContent: boolean): void
  • Show or hide hidden content in the document

    Parameters

    • showHiddenContent: boolean

    Returns void

toggleFilterDrawer

  • toggleFilterDrawer(opened: boolean): void
  • Toggles the filter viewer drawer

    Parameters

    • opened: boolean

      Whether the drawer should be opened or not

    Returns void

toggleThumbnails

  • toggleThumbnails(showThumbnails: boolean): void
  • DO NOT DELETE -- Called by embedded Shows or hides the OI Thumbnail view

    Parameters

    • showThumbnails: boolean

      Show or Hide the thumbnail view.

    Returns void

totalPageCount

  • totalPageCount(): number
  • returns the total number of pages on the current document

    description

    this will return the total page count for the active viewer's document

    Returns number

zoomIn

  • zoomIn(): number
  • Increases the zoom factor of the current view.

    Returns number

    The zoom factor after zooming.

zoomOut

  • zoomOut(): number
  • Decreases the zoom factor of the current view.

    Returns number

    The zoom factor after zooming.

zoomToFit

  • Zooms the current view based on the ViewerZoomMode enum value provided.

    Parameters

    Returns number

    The zoom factor after zooming.

zoomToIndex

  • zoomToIndex(zoomIndex: number): number
  • Zooms the current view to the factor provided, rounded to the nearest integer. If the zoomIndex provided is greater than the maximum valid zoom factor, the document is zoomed to the maximum valid zoom factor. If the zoomIndex provided is less than the minimum valid zoom factor, the document is zoomed to the minimum valid zoom factor.

    Parameters

    • zoomIndex: number

      The new zoom factor for the view.

    Returns number

    The zoom factor after zooming.