EditViewerConfig
Syntax
interface EditViewerConfig {
canvasStyle?: CanvasStyle;
pageStyle?: BaseStyle;
currentPageStyle?: BaseStyle;
quadSelectionStyle?: QuadSelectionStyle;
enableSlide?: boolean;
scrollToLatest?: boolean;
scrollDirection?: string;
minZoom?: number;
maxZoom?: number;
}
Attributes
canvasStyle
The style of canvas of the viewer. Please refer to CanvasStyle
.
pageStyle
The style of displayed page in the viewer. Please refer to BaseStyle
.
currentPageStyle
The style of current page in the viewer. Please refer to BaseStyle
.
quadSelectionStyle
The style of rectangular selection. Please refer to QuadSelectionStyle
.
enableSlide
Specify whether allow to slide the pages.
Default value: true
scrollToLatest
Specify whether to scroll to latest page automatically when importing new pages.
Default value: false
scrollDirection
Specify the scroll direction, supported values are vertical
, horizontal
.
Default value: vertical
minZoom
The mininum zoom ratio in the viewer. The value range is [0.01, 64].
Default value: 0.01
Please notice minZoom
cannot be larger than maxZoom
.
maxZoom
The maxinum zoom ratio in the viewer. The value range is [0.01, 64].
Default value: 64
Please notice maxZoom
cannot be smaller than minZoom
.