Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRotatableViewer

Rotation API for IViewerInstances

Hierarchy

Index

Methods

getPageRotation

  • getPageRotation(index: number): number
  • Gets the page rotations in degrees for a particular page

    Parameters

    • index: number

    Returns number

    Page rotation value

rotateAllPagesClockwise

  • rotateAllPagesClockwise(): Promise<boolean>
  • Rotates the all pages clockwise 90 degrees based on the current page (The topmost image) orientation and updates the database

    Returns Promise<boolean>

    Promise that resolves to a boolean indicating whether it succeeded or not

rotateCurrentPageClockwise

  • rotateCurrentPageClockwise(): Promise<boolean>
  • Rotates the current page (The topmost image) clockwise 90 degrees and updates the database

    Returns Promise<boolean>

    Promise that resolves to a boolean indicating whether it succeeded or not

setPageRotation

  • setPageRotation(rotation: number, index: number): Promise<boolean>
  • Sets the page rotation for a particular page and updates the database

    Only accepts intervals of 90 degrees

    Parameters

    • rotation: number
    • index: number

    Returns Promise<boolean>

    Promise that resolves to a boolean indicating whether it succeeded or not

setPageRotationAllImages

  • setPageRotationAllImages(rotation: number): Promise<boolean>
  • Sets all page rotations for a document and updates the database

    Only accepts intervals of 90 degrees

    Parameters

    • rotation: number

    Returns Promise<boolean>

    Promise that resolves to a boolean indicating whether it succeeded or not