@@ -11,7 +11,118 @@ import OpenSeadragon, {
1111// @ts -expect-error
1212OpenSeadragon . setString ( "abc" , 123 ) ;
1313
14- const viewer = OpenSeadragon ( { id : "viewerid" } ) ;
14+ let viewer : OpenSeadragon . Viewer ;
15+ viewer = OpenSeadragon ( { } ) ;
16+ viewer = OpenSeadragon ( {
17+ id : "id" ,
18+ prefixUrl : "prefixUrl" ,
19+ navigatorId : "navigatorId" ,
20+ navigatorBackground : "navigatorBackground" ,
21+ navigatorBorderColor : "navigatorBorderColor" ,
22+ navigatorDisplayRegionColor : "navigatorDisplayRegionColor" ,
23+ referenceStripScroll : "referenceStripScroll" ,
24+ referenceStripPosition : "referenceStripPosition" ,
25+ tabIndex : 0 ,
26+ blendTime : 0 ,
27+ defaultZoomLevel : 0 ,
28+ opacity : 0 ,
29+ degrees : 0 ,
30+ minZoomLevel : 0 ,
31+ maxZoomLevel : 0 ,
32+ minZoomImageRatio : 0 ,
33+ maxZoomPixelRatio : 0 ,
34+ smoothTileEdgesMinZoom : 0 ,
35+ minScrollDeltaTime : 0 ,
36+ pixelsPerWheelLine : 0 ,
37+ pixelsPerArrowPress : 0 ,
38+ visibilityRatio : 0 ,
39+ imageLoaderLimit : 0 ,
40+ clickTimeThreshold : 0 ,
41+ clickDistThreshold : 0 ,
42+ dblClickTimeThreshold : 0 ,
43+ dblClickDistThreshold : 0 ,
44+ springStiffness : 0 ,
45+ animationTime : 0 ,
46+ zoomPerClick : 0 ,
47+ zoomPerScroll : 0 ,
48+ zoomPerSecond : 0 ,
49+ navigatorSizeRatio : 0 ,
50+ navigatorOpacity : 0 ,
51+ controlsFadeDelay : 0 ,
52+ controlsFadeLength : 0 ,
53+ maxImageCacheCount : 0 ,
54+ timeout : 0 ,
55+ minPixelRatio : 0 ,
56+ initialPage : 0 ,
57+ referenceStripHeight : 0 ,
58+ referenceStripWidth : 0 ,
59+ referenceStripSizeRatio : 0 ,
60+ collectionRows : 0 ,
61+ collectionColumns : 0 ,
62+ collectionTileSize : 0 ,
63+ collectionTileMargin : 0 ,
64+ rotationIncrement : 0 ,
65+ debugMode : true ,
66+ alwaysBlend : true ,
67+ autoHideControls : true ,
68+ immediateRender : true ,
69+ preload : true ,
70+ flipped : true ,
71+ homeFillsViewer : true ,
72+ panHorizontal : true ,
73+ panVertical : true ,
74+ constrainDuringPan : true ,
75+ wrapHorizontal : true ,
76+ wrapVertical : true ,
77+ iOSDevice : true ,
78+ autoResize : true ,
79+ preserveImageSizeOnResize : true ,
80+ showNavigator : true ,
81+ navigatorMaintainSizeRatio : true ,
82+ navigatorAutoResize : true ,
83+ navigatorAutoFade : true ,
84+ navigatorRotate : true ,
85+ useCanvas : true ,
86+ mouseNavEnabled : true ,
87+ showNavigationControl : true ,
88+ showZoomControl : true ,
89+ showHomeControl : true ,
90+ showFullPageControl : true ,
91+ showRotationControl : true ,
92+ showFlipControl : true ,
93+ showSequenceControl : true ,
94+ navPrevNextWrap : true ,
95+ sequenceMode : true ,
96+ preserveViewport : true ,
97+ preserveOverlays : true ,
98+ showReferenceStrip : true ,
99+ collectionMode : true ,
100+ ajaxWithCredentials : true ,
101+ loadTilesWithAjax : true ,
102+ imageSmoothingEnabled : true ,
103+ } ) ;
104+
105+ declare const buttonElement : Element ;
106+ viewer = OpenSeadragon ( {
107+ zoomInButton : "zoomInButton-id" ,
108+ zoomOutButton : "zoomOutButton-id" ,
109+ homeButton : "homeButton-id" ,
110+ fullPageButton : "fullPageButton-id" ,
111+ rotateLeftButton : "rotateLeftButton-id" ,
112+ rotateRightButton : "rotateRightButton-id" ,
113+ previousButton : "previousButton-id" ,
114+ nextButton : "nextButton-id" ,
115+ } ) ;
116+ viewer = OpenSeadragon ( {
117+ zoomInButton : buttonElement ,
118+ zoomOutButton : buttonElement ,
119+ homeButton : buttonElement ,
120+ fullPageButton : buttonElement ,
121+ rotateLeftButton : buttonElement ,
122+ rotateRightButton : buttonElement ,
123+ previousButton : buttonElement ,
124+ nextButton : buttonElement ,
125+ } ) ;
15126
16127// @ts -expect-error
17128viewer . addHandler ( "canvas-click" , ( { fullScreen } ) => {
0 commit comments