@@ -20,8 +20,8 @@ permalink: /info/api/WebTwain_Viewer.html
2020| [ ` createThumbnailViewer() ` ] ( #createthumbnailviewer ) | [ ` first() ` ] ( #first ) | [ ` fitWindow() ` ] ( #fitwindow ) | [ ` gotoPage() ` ] ( #gotopage ) |
2121| [ ` hide() ` ] ( #hide ) | [ ` last() ` ] ( #last ) | [ ` next() ` ] ( #next ) | [ ` off() ` ] ( #off ) |
2222| [ ` on() ` ] ( #on ) | [ ` previous() ` ] ( #previous ) | [ ` render() ` ] ( #render ) | [ ` setButtonClass() ` ] ( #setbuttonclass ) |
23- | [ ` setSelectedAreas() ` ] ( #setselectedareas ) | [ ` setViewMode() ` ] ( #setviewmode ) | [ ` show() ` ] ( #show ) | [ ` unbind() ` ] ( #unbind ) |
24- | [ ` createTemplate() ` ] ( #createtemplate ) | [ ` createDocumentEditor() ` ] ( #createdocumenteditor ) | [ ` updateCheckboxStyle() ` ] ( #updatecheckboxstyle ) | [ ` updatePageNumberStyle() ` ] ( #updatepagenumberstyle ) |
23+ | [ ` setSelectedAreas() ` ] ( #setselectedareas ) | [ ` setViewMode() ` ] ( #setviewmode ) | [ ` show() ` ] ( #show ) | [ ` unbind() ` ] ( #unbind ) |
24+ | [ ` updateCheckboxStyle() ` ] ( #updatecheckboxstyle ) | [ ` updatePageNumberStyle() ` ] ( #updatepagenumberstyle ) |
2525
2626** Properties**
2727
@@ -172,12 +172,12 @@ DWObject.Viewer.clearSelectedAreas();
172172 * Generate an independent CustomElement object.
173173 * @param element Specify the HTMLDivElement.
174174 * @param location Define where to place the custom element. The allowed values are "left" and "right", and the default value is "right".
175- * @param bCover The default value is `false`, that is, the created CustomElement is displayed according to the set area. If set to true, the main viewer will be covered by the CustomElement.
175+ * @param ifFull The default value is `false`, that is, the created CustomElement is displayed according to the set area. If set to true, the main viewer will be covered by the CustomElement.
176176 */
177177createCustomElement (
178178 element : HTMLDivElement ,
179179 location ?: string ,
180- bCover ?: boolean
180+ ifFull ?: boolean
181181): CustomElement ;
182182
183183interface CustomElement {
@@ -193,6 +193,10 @@ interface CustomElement {
193193 * Remove the custom element.
194194 */
195195 dispose(): boolean ;
196+ /**
197+ * Return the created element.
198+ */
199+ element? : any ;
196200};
197201```
198202
@@ -573,7 +577,7 @@ interface ThumbnailViewerSettings {
573577 */
574578 autoChangeIndex? : boolean ;
575579 checkbox? : {
576- visibility? : string ; // "visible":hidden", default: "hidden"
580+ visibility? : string ; // "visible":hidden", default: "hidden"
577581 width? : number | string ; // default: "24px",number unit: px, string value: "24px"/"10%", relative to parent container
578582 height? : number | string ; // default: "24px",number unit: px, string value: "24px"/"10%", relative to parent container
579583 background? : string ; // default: "#ffffff"
@@ -591,7 +595,7 @@ interface ThumbnailViewerSettings {
591595 translateY? : number | string // default: "", number unit: px, string value: "10px"/"10%", relative to itself
592596 };
593597 pageNumber? : {
594- visibility? : string ; // "visible": hidden", default: "hidden"
598+ visibility? : string ; // "visible": hidden", default: "hidden"
595599 width? : number | string ; // default: "24px", number unit: px, string value: "24px"/"10%", relative to parent container
596600 height? : number | string ; // default: "24px", number unit: px, string value: "24px"/"10%", relative to parent container
597601 background? : string ; // default: "#ffffff"
@@ -622,16 +626,16 @@ interface ViewMode {
622626 /**
623627 * Specify the number of images per row.
624628 */
625- columns: number ;
629+ columns? : number ;
626630 /**
627631 * Specify the number of images per column.
628632 */
629- rows: number ;
633+ rows? : number ;
630634 /**
631635 * Set or return whether the pages are arranged vertically or horizontally.
632636 * Default: "vertical". Allowed values are "vertical" and "horizontal".
633637 */
634- scrollDirection: string ;
638+ scrollDirection? : string ;
635639}
636640```
637641``` typescript
0 commit comments