Class BaseViewer
Constructors
(constructor)(_zone)
Constructs a new instance of the BaseViewer class
Declaration
constructor(_zone?: any);
Parameters
| Type |
Name |
Description |
| any |
_zone |
|
Properties
_baseRulersOffset
Declaration
protected _baseRulersOffset: PointF;
Property Value
_canvas
Declaration
protected _canvas: Canvas;
Property Value
_contentAngle
Declaration
protected _contentAngle: number;
Property Value
_contentCtx
Declaration
protected _contentCtx: HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
_contentElements
Declaration
protected _contentElements: any[];
Property Value
_documentClickEvent
Declaration
protected _documentClickEvent: EventWithSenderArg<BaseViewer, Object>;
Property Value
_holderElement
Declaration
protected _holderElement: HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
_ignoreDocumentClickOnce
Declaration
protected _ignoreDocumentClickOnce: boolean;
Property Value
_intervalCheckLoop
Declaration
protected _intervalCheckLoop: {
start({ checkFunction, onChange, delayMs }: {
checkFunction: () => boolean;
onChange: Function;
delayMs?: number;
}): any;
stop(checkId: any): void;
};
Property Value
| Type |
Description |
| {
start({ checkFunction, onChange, delayMs }: {
checkFunction: () => boolean;
onChange: Function;
delayMs?: number;
}): any;
stop(checkId: any): void;
} |
|
_needToRefresh
Declaration
protected _needToRefresh: boolean;
Property Value
_onDocumentClick
Declaration
_onDocumentClick: (e: MouseEvent) => void;
Property Value
| Type |
Description |
| (e: MouseEvent) => void |
|
Declaration
protected _onScroll: (e: any) => void;
Property Value
| Type |
Description |
| (e: any) => void |
|
_pointerEvents
Declaration
protected get _pointerEvents(): {
start: string;
move: string;
up: string;
cancel: string;
};
Property Value
| Type |
Description |
| {
start: string;
move: string;
up: string;
cancel: string;
} |
|
_refreshTimer
Declaration
protected _refreshTimer: any;
Property Value
_rulerBorderWidth
Declaration
protected _rulerBorderWidth: number;
Property Value
_rulersOnHover
Declaration
protected _rulersOnHover: (e: IPointerParams) => void;
Property Value
| Type |
Description |
| (e: IPointerParams) => void |
|
_screenXDpi
Declaration
protected _screenXDpi: number;
Property Value
_screenYDpi
Declaration
protected _screenYDpi: number;
Property Value
_viewerElement
Declaration
protected _viewerElement: HTMLDivElement;
Property Value
| Type |
Description |
| HTMLDivElement |
|
_workspaceDoubleClickEvent
Declaration
protected _workspaceDoubleClickEvent: EventWithSenderArg<BaseViewer, Object>;
Property Value
_workspaceMouseDownEvent
Declaration
protected _workspaceMouseDownEvent: EventWithSenderArg<BaseViewer, Object>;
Property Value
_workspaceMouseMoveEvent
Declaration
protected _workspaceMouseMoveEvent: EventWithSenderArg<BaseViewer, Object>;
Property Value
_workspaceMouseUpEvent
Declaration
protected _workspaceMouseUpEvent: EventWithSenderArg<BaseViewer, Object>;
Property Value
_zone
Declaration
Property Value
actualRulerWidth
Declaration
get actualRulerWidth(): number;
Property Value
actualSizeHorizontalScale
Declaration
get actualSizeHorizontalScale(): number;
Property Value
bestFitWhiteSpacePc
Declaration
get bestFitWhiteSpacePc(): number;
set bestFitWhiteSpacePc(v: number);
Property Value
clientSideOptions
Declaration
get clientSideOptions(): ViewerClientSideOptions;
Property Value
contentAngle
Declaration
get contentAngle(): number;
set contentAngle(value: number);
Property Value
contentCtx
Declaration
get contentCtx(): HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
contentHeight
Declaration
get contentHeight(): any;
Property Value
contentWidth
Declaration
Property Value
delayedRefreshTimeout
Declaration
get delayedRefreshTimeout(): number;
set delayedRefreshTimeout(v: number);
Property Value
element
Declaration
get element(): HTMLDivElement;
Property Value
| Type |
Description |
| HTMLDivElement |
|
exceptionDescription
Declaration
get exceptionDescription(): string;
Property Value
height
Declaration
Property Value
holderBounds
Declaration
get holderBounds(): {
width: any;
height: any;
offsetWidth: any;
offsetHeight: any;
offsetTop: any;
offsetLeft: any;
};
Property Value
| Type |
Description |
| {
width: any;
height: any;
offsetWidth: any;
offsetHeight: any;
offsetTop: any;
offsetLeft: any;
} |
|
id
Declaration
Property Value
minZoom
Gets the minimum allowed zoom value
Declaration
get minZoom(): number;
set minZoom(value: number);
Property Value
| Type |
Description |
| number |
Gets the minimum allowed zoom value
|
pinchZoomEnabled
Declaration
get pinchZoomEnabled(): boolean;
set pinchZoomEnabled(v: boolean);
Property Value
returnValue
Declaration
get returnValue(): string;
Property Value
rulerDivision
Declaration
get rulerDivision(): number;
set rulerDivision(v: number);
Property Value
rulerEnabled
Declaration
get rulerEnabled(): boolean;
set rulerEnabled(v: boolean);
Property Value
rulerOffsetX
Declaration
get rulerOffsetX(): number;
set rulerOffsetX(v: number);
Property Value
rulerOffsetY
Declaration
get rulerOffsetY(): number;
set rulerOffsetY(v: number);
Property Value
rulerScale
Declaration
get rulerScale(): number;
set rulerScale(v: number);
Property Value
rulerWidth
Declaration
get rulerWidth(): number;
set rulerWidth(v: number);
Property Value
screenXDpi
Declaration
set screenXDpi(v: number);
Property Value
screenYDpi
Declaration
set screenYDpi(v: number);
Property Value
Declaration
get scrollBarsStyle(): ScrollBarsStyle;
set scrollBarsStyle(value: ScrollBarsStyle);
Property Value
Declaration
get scrollBarWidth(): number;
Property Value
Gets/sets the position of the scroll bars
Declaration
get scrollingPosition(): PointF;
set scrollingPosition(value: PointF);
Property Value
| Type |
Description |
| PointF |
Gets/sets the position of the scroll bars
|
Gets a scroll bar length (in other words, the right-bottom point of the image fragment which is out of the visible area).
Declaration
get scrollingSize(): PointF;
Property Value
| Type |
Description |
| PointF |
Gets a scroll bar length (in other words, the right-bottom point of the image fragment which is out of the visible area).
|
status
Declaration
get status(): UpdateStatus;
Property Value
| Type |
Description |
| UpdateStatus |
|
viewportAlignment
Gets/sets a value that specifies content alignment in the control.
Declaration
get viewportAlignment(): ViewportAlignment;
set viewportAlignment(v: ViewportAlignment);
Property Value
| Type |
Description |
| ViewportAlignment |
Gets/sets a value that specifies content alignment in the control.
|
width
Declaration
Property Value
workspaceHeight
Declaration
get workspaceHeight(): number;
Property Value
workspaceWidth
Declaration
get workspaceWidth(): number;
Property Value
zoom
Declaration
Property Value
zoomConfig
Declaration
get zoomConfig(): IRangeParams;
Property Value
zoomMode
Declaration
get zoomMode(): ZoomMode;
set zoomMode(v: ZoomMode);
Property Value
zoomQuality
Declaration
get zoomQuality(): ZoomQuality;
Property Value
Methods
_getElementBounds(element)
Declaration
protected _getElementBounds(element: any): {
width: any;
height: any;
offsetWidth: any;
offsetHeight: any;
offsetTop: any;
offsetLeft: any;
};
Parameters
| Type |
Name |
Description |
| any |
element |
|
Returns
| Type |
Description |
| {
width: any;
height: any;
offsetWidth: any;
offsetHeight: any;
offsetTop: any;
offsetLeft: any;
} |
|
_getElementForCursor()
Declaration
protected _getElementForCursor(): HTMLElement;
Returns
| Type |
Description |
| HTMLElement |
|
_makeInactive(domElement)
Declaration
protected _makeInactive(domElement: any): void;
Parameters
| Type |
Name |
Description |
| any |
domElement |
|
Returns
_onResize(sender, updateButtonGroup)
Declaration
protected _onResize(sender: any, updateButtonGroup: any): void;
Parameters
| Type |
Name |
Description |
| any |
sender |
|
| any |
updateButtonGroup |
|
Returns
_refresh()
Declaration
protected _refresh(): void;
Returns
_renderContent(sb)
Declaration
protected _renderContent(sb: string): string;
Parameters
| Type |
Name |
Description |
| string |
sb |
|
Returns
_resizeContentElements()
Declaration
protected _resizeContentElements(): void;
Returns
_setRulersConfig(config)
Declaration
protected _setRulersConfig(config: IRulersConfig): void;
Parameters
Returns
_setZoom(value, ignoreZoomConfigRestrictions)
Declaration
protected _setZoom(value: number, ignoreZoomConfigRestrictions?: boolean): void;
Parameters
| Type |
Name |
Description |
| number |
value |
|
| boolean |
ignoreZoomConfigRestrictions |
|
Returns
_setZoomMode(v)
Declaration
protected _setZoomMode(v: ZoomMode): void;
Parameters
Returns
_updateViewport(ignoreZoomConfigRestrictions)
Declaration
protected _updateViewport(ignoreZoomConfigRestrictions?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
ignoreZoomConfigRestrictions |
|
Returns
abort()
Declaration
Returns
add_onResize(h)
Declaration
add_onResize(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
Declaration
add_scrolled(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
add_statusChanged(h)
Declaration
add_statusChanged(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
add_zoomed(h)
Declaration
add_zoomed(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
calculateZoomByZoomMode(zoomMode, size, bestFitWhiteSpacePcArg)
Declaration
calculateZoomByZoomMode(zoomMode: ZoomMode, size?: SizeF, bestFitWhiteSpacePcArg?: number): number;
Parameters
| Type |
Name |
Description |
| ZoomMode |
zoomMode |
|
| SizeF |
size |
|
| number |
bestFitWhiteSpacePcArg |
|
Returns
clearRenderCtx(ctx)
Declaration
clearRenderCtx(ctx: HTMLElement): void;
Parameters
| Type |
Name |
Description |
| HTMLElement |
ctx |
|
Returns
delayedRefresh()
Indicates that the control needs to be refreshed. The actual refreshing is applied when the user does not update the control state (such as scroll position, zoom value) in one second.
Declaration
Returns
dispose()
Declaration
Returns
Declaration
getActualScrollPosition(): PointF;
Returns
getMaxZoom()
Gets the maximum allowed zoom value.
Declaration
Returns
Declaration
getScrollBars(): {
vertical: number;
horizontal: number;
};
Returns
| Type |
Description |
| {
vertical: number;
horizontal: number;
} |
|
getViewportLocation()
Declaration
getViewportLocation(): PointF;
Returns
ignoreDocumentClickOnce()
Declaration
ignoreDocumentClickOnce(): void;
Returns
initialize(intervalCheckLoop)
Declaration
initialize(intervalCheckLoop?: any): void;
Parameters
| Type |
Name |
Description |
| any |
intervalCheckLoop |
|
Returns
refresh()
Refreshes the control immediately.
Declaration
Returns
remove_onResize(h)
Declaration
remove_onResize(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
Declaration
remove_scrolled(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
remove_statusChanged(h)
Declaration
remove_statusChanged(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
remove_zoomed(h)
Declaration
remove_zoomed(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
setCursor(cursor, onBody)
Declaration
setCursor(cursor: Cursor, onBody?: boolean): void;
Parameters
| Type |
Name |
Description |
| Cursor |
cursor |
|
| boolean |
onBody |
|
Returns
setIntervalCheckLoop(intervalCheckLoop)
Declaration
setIntervalCheckLoop(intervalCheckLoop: any): void;
Parameters
| Type |
Name |
Description |
| any |
intervalCheckLoop |
|
Returns
setMaxZoom(value)
Declaration
setMaxZoom(value: number): void;
Parameters
| Type |
Name |
Description |
| number |
value |
|
Returns
setZoom(zoom, params, ignoreZoomConfigRestrictions, withoutUpdate)
Declaration
setZoom(zoom: number, params: ZoomParams, ignoreZoomConfigRestrictions?: boolean, withoutUpdate?: boolean): number;
Parameters
| Type |
Name |
Description |
| number |
zoom |
|
| ZoomParams |
params |
|
| boolean |
ignoreZoomConfigRestrictions |
|
| boolean |
withoutUpdate |
|
Returns
zoomToItems(items)
Declaration
zoomToItems(items?: BaseItem[]): void;
Parameters
Returns
zoomToSelection()
Declaration
Returns