1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
| export default {
| /**
| * Enable a modal backdrop, specify `static` for a backdrop
| * which doesn't close the modal on click.
| * @type {boolean}
| */
| backdrop: true,
|
| /**
| * Show the button on the top-right of the viewer.
| * @type {boolean}
| */
| button: true,
|
| /**
| * Show the navbar.
| * @type {boolean | number}
| */
| navbar: true,
|
| /**
| * Specify the visibility and the content of the title.
| * @type {boolean | number | Function | Array}
| */
| title: true,
|
| /**
| * Show the toolbar.
| * @type {boolean | number | Object}
| */
| toolbar: true,
|
| /**
| * Custom class name(s) to add to the viewer's root element.
| * @type {string}
| */
| className: '',
|
| /**
| * Define where to put the viewer in modal mode.
| * @type {string | Element}
| */
| container: 'body',
|
| /**
| * Filter the images for viewing. Return true if the image is viewable.
| * @type {Function}
| */
| filter: null,
|
| /**
| * Enable to request fullscreen when play.
| * @type {boolean}
| */
| fullscreen: true,
|
| /**
| * Define the extra attributes to inherit from the original image.
| * @type {Array}
| */
| inheritedAttributes: [
| 'crossOrigin',
| 'decoding',
| 'isMap',
| 'loading',
| 'referrerPolicy',
| 'sizes',
| 'srcset',
| 'useMap',
| ],
|
| /**
| * Define the initial index of image for viewing.
| * @type {number}
| */
| initialViewIndex: 0,
|
| /**
| * Enable inline mode.
| * @type {boolean}
| */
| inline: false,
|
| /**
| * The amount of time to delay between automatically cycling an image when playing.
| * @type {number}
| */
| interval: 5000,
|
| /**
| * Enable keyboard support.
| * @type {boolean}
| */
| keyboard: true,
|
| /**
| * Focus the viewer when initialized.
| * @type {boolean}
| */
| focus: true,
|
| /**
| * Indicate if show a loading spinner when load image or not.
| * @type {boolean}
| */
| loading: true,
|
| /**
| * Indicate if enable loop viewing or not.
| * @type {boolean}
| */
| loop: true,
|
| /**
| * Min width of the viewer in inline mode.
| * @type {number}
| */
| minWidth: 200,
|
| /**
| * Min height of the viewer in inline mode.
| * @type {number}
| */
| minHeight: 100,
|
| /**
| * Enable to move the image.
| * @type {boolean}
| */
| movable: true,
|
| /**
| * Enable to rotate the image.
| * @type {boolean}
| */
| rotatable: true,
|
| /**
| * Enable to scale the image.
| * @type {boolean}
| */
| scalable: true,
|
| /**
| * Enable to zoom the image.
| * @type {boolean}
| */
| zoomable: true,
|
| /**
| * Enable to zoom the current image by dragging on the touch screen.
| * @type {boolean}
| */
| zoomOnTouch: true,
|
| /**
| * Enable to zoom the image by wheeling mouse.
| * @type {boolean}
| */
| zoomOnWheel: true,
|
| /**
| * Enable to slide to the next or previous image by swiping on the touch screen.
| * @type {boolean}
| */
| slideOnTouch: true,
|
| /**
| * Indicate if toggle the image size between its natural size
| * and initial size when double click on the image or not.
| * @type {boolean}
| */
| toggleOnDblclick: true,
|
| /**
| * Show the tooltip with image ratio (percentage) when zoom in or zoom out.
| * @type {boolean}
| */
| tooltip: true,
|
| /**
| * Enable CSS3 Transition for some special elements.
| * @type {boolean}
| */
| transition: true,
|
| /**
| * Define the CSS `z-index` value of viewer in modal mode.
| * @type {number}
| */
| zIndex: 2015,
|
| /**
| * Define the CSS `z-index` value of viewer in inline mode.
| * @type {number}
| */
| zIndexInline: 0,
|
| /**
| * Define the ratio when zoom the image by wheeling mouse.
| * @type {number}
| */
| zoomRatio: 0.1,
|
| /**
| * Define the min ratio of the image when zoom out.
| * @type {number}
| */
| minZoomRatio: 0.01,
|
| /**
| * Define the max ratio of the image when zoom in.
| * @type {number}
| */
| maxZoomRatio: 100,
|
| /**
| * Define where to get the original image URL for viewing.
| * @type {string | Function}
| */
| url: 'src',
|
| /**
| * Event shortcuts.
| * @type {Function}
| */
| ready: null,
| show: null,
| shown: null,
| hide: null,
| hidden: null,
| view: null,
| viewed: null,
| move: null,
| moved: null,
| rotate: null,
| rotated: null,
| scale: null,
| scaled: null,
| zoom: null,
| zoomed: null,
| play: null,
| stop: null,
| };
|
|