Scroll bar container component, Controls the scrolling of a pdfviewer view
.
More...
Scroll bar container component, Controls the scrolling of a pdfviewer view
.
- Example:
function example () {
customs: {
constructor (viewerRender) {
super(viewerRender)
}
}
}
})
}
◆ getHeight()
ScrollWrap::getHeight |
( |
| ) |
|
|
inline |
Gets the height of the view.
- Returns
- number -
◆ getScrollHost()
ScrollWrap::getScrollHost |
( |
| ) |
|
|
inline |
Gets the host of the scroll bar that needs to be listened to for scroll events.
.
- Returns
- Window|Document|HTMLElement|Element -
◆ getScrollLeft()
ScrollWrap::getScrollLeft |
( |
| ) |
|
|
inline |
Viewer's scroll bar left value.
- Returns
- number -
◆ getScrollOffsetLeft()
ScrollWrap::getScrollOffsetLeft |
( |
| ) |
|
|
inline |
Viewer relative to the left of the scroll hosts.
- Returns
- number -
◆ getScrollOffsetTop()
ScrollWrap::getScrollOffsetTop |
( |
| ) |
|
|
inline |
Viewer relative to the top of the scroll hosts.
- Returns
- number -
◆ getScrollTop()
ScrollWrap::getScrollTop |
( |
| ) |
|
|
inline |
Viewer's scroll bar top value.
- Returns
- number -
◆ getScrollX()
ScrollWrap::getScrollX |
( |
| ) |
|
|
inline |
Gets the value of the horizontal scroll bar.
- Returns
- number -
◆ getScrollY()
ScrollWrap::getScrollY |
( |
| ) |
|
|
inline |
Gets the value of the vertical scroll bar.
- Returns
- number -
◆ getWidth()
Holds the width of the view.
- Returns
- number -
◆ scrollBy()
ScrollWrap::scrollBy |
( |
|
x, |
|
|
|
y |
|
) |
| |
|
inline |
Scroll to relative position.
- Parameters
-
◆ scrollTo()
ScrollWrap::scrollTo |
( |
|
x, |
|
|
|
y |
|
) |
| |
|
inline |
Scroll to position.
- Parameters
-