Resource Base
Table of contents

EditViewerConfig

Syntax

interface EditViewerConfig {
    canvasStyle?: CanvasStyle;
    pageStyle?: BaseStyle;
    currentPageStyle?: BaseStyle;
    quadSelectionStyle?: QuadSelectionStyle;
    enableLoadSourceByDrag?: boolean;
    enableMagnifier?: boolean;
    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.

enableLoadSourceByDrag

Enables loading files by dragging them into the Viewer.

Default value: true

enableMagnifier

Specifies whether or not to display a corner magnifier on the canvas. This feature is primarily used to provide a zoomed-in preview of the selected area for more precise adjustments.

Default value: true

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.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: