Layout of page view interface.
More...
Inherited by SinglePageViewMode.
|
| static | getName () |
| | The name of the view mode, also a unique identifier. More...
|
| |
Layout of page view interface.
◆ constructor()
| IViewMode::constructor |
( |
|
docRender | ) |
|
|
inline |
◆ getCurrentPageIndex()
| IViewMode::getCurrentPageIndex |
( |
| ) |
|
|
inline |
Obtains the current page index.
- Returns
- number
◆ getFitHeight()
| IViewMode::getFitHeight |
( |
|
index | ) |
|
|
inline |
Get the fit height.
- Parameters
-
- Returns
- number|Promise<number> -
◆ getFitWidth()
| IViewMode::getFitWidth |
( |
|
index | ) |
|
|
inline |
Get the fit width.
- Parameters
-
- Returns
- number|Promise<number> -
◆ getName()
| static IViewMode::getName |
( |
| ) |
|
|
inlinestatic |
The name of the view mode, also a unique identifier.
- Returns
- string -
◆ getNextPageIndex()
| IViewMode::getNextPageIndex |
( |
| ) |
|
|
inline |
Obtains the next page index.
- Returns
- number -
◆ getPrevPageIndex()
| IViewMode::getPrevPageIndex |
( |
| ) |
|
|
inline |
Obtains the previous page index.
- Returns
- number -
◆ getVisibleIndexes()
| IViewMode::getVisibleIndexes |
( |
| ) |
|
|
inline |
Gets the index of the visible page.
- Returns
- number[] - [1, 2]
◆ into()
| IViewMode::into |
( |
|
pageContainer, |
|
|
|
pageDOMs |
|
) |
| |
|
inline |
Switch to this layout.
- Parameters
-
| pageContainer | HTMLElement - |
| pageDOMs | Array<HTMLElement> - |
◆ jumpToPage()
| IViewMode::jumpToPage |
( |
|
index, |
|
|
|
{x=0, y=0} |
|
) |
| |
|
inline |
Control how to jump to the page in this view mode.
- Parameters
-
| index | number - page index |
| offset | object - The offset in the upper left corner |
| offset.x | number - The X-axis offset in the upper-left corner of the page |
| offset.y | number - The Y-axis offset in the upper-left corner of the page |
◆ renderViewMode()
| IViewMode::renderViewMode |
( |
|
pageRender, |
|
|
|
scale, |
|
|
|
rotate, |
|
|
|
width, |
|
|
|
height |
|
) |
| |
|
inline |
The method that fires before drawing the outer frame of a page.
- Parameters
-
| pageRender | PDFPageRender - |
| scale | number - page scale |
| rotate | number - page rotation |
| width | number - The display width of the page |
| height | number - The display height of the page |