@get-set/gs-zoom 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +129 -1
  2. package/actions/general.ts +29 -0
  3. package/actions/getAdjustTransform.ts +46 -0
  4. package/actions/getCurrentParams.ts +42 -0
  5. package/actions/getTranslateCoordToPoint.ts +37 -0
  6. package/actions/init.ts +25 -0
  7. package/actions/initActionEvents.ts +102 -0
  8. package/actions/initAdditionals.ts +91 -0
  9. package/actions/initAdjust.ts +120 -0
  10. package/actions/initAdjustAdditionalActive.ts +31 -0
  11. package/actions/initArrows.ts +36 -0
  12. package/actions/initAutoplay.ts +91 -0
  13. package/actions/initChange.ts +139 -0
  14. package/actions/initClose.ts +29 -0
  15. package/actions/initDraggle.ts +258 -0
  16. package/actions/initDraw.ts +83 -0
  17. package/actions/initDrawItem.ts +77 -0
  18. package/actions/initFullScreen.ts +30 -0
  19. package/actions/initLightBox.ts +13 -0
  20. package/actions/initMagnifier.ts +53 -0
  21. package/actions/initNavigateWithKeys.ts +22 -0
  22. package/actions/initOpen.ts +29 -0
  23. package/actions/initWheel.ts +44 -0
  24. package/actions/setStyles.ts +28 -0
  25. package/components/GSZoom.tsx +178 -0
  26. package/{dist/components → components}/styles/GSZoom.scss +252 -254
  27. package/components/styles/GSZoomCSS.ts +237 -0
  28. package/constants/defaultParams.ts +20 -0
  29. package/constants/icons.ts +25 -0
  30. package/constants/magnifierDefaultProps.ts +9 -0
  31. package/constants/types.ts +6 -0
  32. package/dist/GSZoom.d.ts +2 -0
  33. package/dist/actions/general.d.ts +7 -0
  34. package/dist/actions/general.d.ts.map +1 -0
  35. package/dist/actions/general.js +26 -30
  36. package/dist/actions/general.js.map +1 -0
  37. package/dist/actions/getAdjustTransform.d.ts +3 -0
  38. package/dist/actions/getAdjustTransform.d.ts.map +1 -0
  39. package/dist/actions/getAdjustTransform.js +41 -43
  40. package/dist/actions/getAdjustTransform.js.map +1 -0
  41. package/dist/actions/getCurrentParams.d.ts +4 -0
  42. package/dist/actions/getCurrentParams.d.ts.map +1 -0
  43. package/dist/actions/getCurrentParams.js +35 -42
  44. package/dist/actions/getCurrentParams.js.map +1 -0
  45. package/dist/actions/getTranslateCoordToPoint.d.ts +3 -0
  46. package/dist/actions/getTranslateCoordToPoint.d.ts.map +1 -0
  47. package/dist/actions/getTranslateCoordToPoint.js +21 -41
  48. package/dist/actions/getTranslateCoordToPoint.js.map +1 -0
  49. package/dist/actions/init.d.ts +4 -0
  50. package/dist/actions/init.d.ts.map +1 -0
  51. package/dist/actions/init.js +21 -21
  52. package/dist/actions/init.js.map +1 -0
  53. package/dist/actions/initActionEvents.d.ts +4 -0
  54. package/dist/actions/initActionEvents.d.ts.map +1 -0
  55. package/dist/actions/initActionEvents.js +80 -127
  56. package/dist/actions/initActionEvents.js.map +1 -0
  57. package/dist/actions/initAdditionals.d.ts +4 -0
  58. package/dist/actions/initAdditionals.d.ts.map +1 -0
  59. package/dist/actions/initAdditionals.js +78 -117
  60. package/dist/actions/initAdditionals.js.map +1 -0
  61. package/dist/actions/initAdjust.d.ts +4 -0
  62. package/dist/actions/initAdjust.d.ts.map +1 -0
  63. package/dist/actions/initAdjust.js +96 -107
  64. package/dist/actions/initAdjust.js.map +1 -0
  65. package/dist/actions/initAdjustAdditionalActive.d.ts +4 -0
  66. package/dist/actions/initAdjustAdditionalActive.d.ts.map +1 -0
  67. package/dist/actions/initAdjustAdditionalActive.js +25 -33
  68. package/dist/actions/initAdjustAdditionalActive.js.map +1 -0
  69. package/dist/actions/initArrows.d.ts +4 -0
  70. package/dist/actions/initArrows.d.ts.map +1 -0
  71. package/dist/actions/initArrows.js +28 -44
  72. package/dist/actions/initArrows.js.map +1 -0
  73. package/dist/actions/initAutoplay.d.ts +6 -0
  74. package/dist/actions/initAutoplay.d.ts.map +1 -0
  75. package/dist/actions/initAutoplay.js +85 -81
  76. package/dist/actions/initAutoplay.js.map +1 -0
  77. package/dist/actions/initChange.d.ts +4 -0
  78. package/dist/actions/initChange.d.ts.map +1 -0
  79. package/dist/actions/initChange.js +116 -137
  80. package/dist/actions/initChange.js.map +1 -0
  81. package/dist/actions/initClose.d.ts +3 -0
  82. package/dist/actions/initClose.d.ts.map +1 -0
  83. package/dist/actions/initClose.js +24 -28
  84. package/dist/actions/initClose.js.map +1 -0
  85. package/dist/actions/initDraggle.d.ts +4 -0
  86. package/dist/actions/initDraggle.d.ts.map +1 -0
  87. package/dist/actions/initDraggle.js +227 -303
  88. package/dist/actions/initDraggle.js.map +1 -0
  89. package/dist/actions/initDraw.d.ts +4 -0
  90. package/dist/actions/initDraw.d.ts.map +1 -0
  91. package/dist/actions/initDraw.js +74 -90
  92. package/dist/actions/initDraw.js.map +1 -0
  93. package/dist/actions/initDrawItem.d.ts +4 -0
  94. package/dist/actions/initDrawItem.d.ts.map +1 -0
  95. package/dist/actions/initDrawItem.js +63 -79
  96. package/dist/actions/initDrawItem.js.map +1 -0
  97. package/dist/actions/initFullScreen.d.ts +4 -0
  98. package/dist/actions/initFullScreen.d.ts.map +1 -0
  99. package/dist/actions/initFullScreen.js +32 -32
  100. package/dist/actions/initFullScreen.js.map +1 -0
  101. package/dist/actions/initLightBox.d.ts +4 -0
  102. package/dist/actions/initLightBox.d.ts.map +1 -0
  103. package/dist/actions/initLightBox.js +11 -12
  104. package/dist/actions/initLightBox.js.map +1 -0
  105. package/dist/actions/initMagnifier.d.ts +4 -0
  106. package/dist/actions/initMagnifier.d.ts.map +1 -0
  107. package/dist/actions/initMagnifier.js +42 -54
  108. package/dist/actions/initMagnifier.js.map +1 -0
  109. package/dist/actions/initNavigateWithKeys.d.ts +4 -0
  110. package/dist/actions/initNavigateWithKeys.d.ts.map +1 -0
  111. package/dist/actions/initNavigateWithKeys.js +18 -27
  112. package/dist/actions/initNavigateWithKeys.js.map +1 -0
  113. package/dist/actions/initOpen.d.ts +4 -0
  114. package/dist/actions/initOpen.d.ts.map +1 -0
  115. package/dist/actions/initOpen.js +27 -28
  116. package/dist/actions/initOpen.js.map +1 -0
  117. package/dist/actions/initWheel.d.ts +4 -0
  118. package/dist/actions/initWheel.d.ts.map +1 -0
  119. package/dist/actions/initWheel.js +27 -49
  120. package/dist/actions/initWheel.js.map +1 -0
  121. package/dist/actions/setStyles.d.ts +4 -0
  122. package/dist/actions/setStyles.d.ts.map +1 -0
  123. package/dist/actions/setStyles.js +23 -24
  124. package/dist/actions/setStyles.js.map +1 -0
  125. package/dist/components/GSZoom.d.ts +23 -0
  126. package/dist/components/GSZoom.d.ts.map +1 -0
  127. package/dist/components/GSZoom.js +122 -177
  128. package/dist/components/GSZoom.js.map +1 -0
  129. package/dist/components/styles/GSZoomCSS.d.ts +3 -0
  130. package/dist/components/styles/GSZoomCSS.d.ts.map +1 -0
  131. package/dist/components/styles/GSZoomCSS.js +238 -0
  132. package/dist/components/styles/GSZoomCSS.js.map +1 -0
  133. package/dist/constants/defaultParams.d.ts +4 -0
  134. package/dist/constants/defaultParams.d.ts.map +1 -0
  135. package/dist/constants/defaultParams.js +18 -19
  136. package/dist/constants/defaultParams.js.map +1 -0
  137. package/dist/constants/icons.d.ts +13 -0
  138. package/dist/constants/icons.d.ts.map +1 -0
  139. package/dist/constants/icons.js +16 -25
  140. package/dist/constants/icons.js.map +1 -0
  141. package/dist/constants/magnifierDefaultProps.d.ts +4 -0
  142. package/dist/constants/magnifierDefaultProps.d.ts.map +1 -0
  143. package/dist/constants/magnifierDefaultProps.js +7 -7
  144. package/dist/constants/magnifierDefaultProps.js.map +1 -0
  145. package/dist/constants/types.d.ts +6 -0
  146. package/dist/constants/types.d.ts.map +1 -0
  147. package/dist/constants/types.js +6 -6
  148. package/dist/constants/types.js.map +1 -0
  149. package/dist/helpers/uihelpers.d.ts +2 -0
  150. package/dist/helpers/uihelpers.d.ts.map +1 -0
  151. package/dist/helpers/uihelpers.js +8 -9
  152. package/dist/helpers/uihelpers.js.map +1 -0
  153. package/dist/types/params.d.ts +35 -0
  154. package/dist/types/params.d.ts.map +1 -0
  155. package/dist/types/params.js +2 -0
  156. package/dist/types/params.js.map +1 -0
  157. package/dist/types/ref.d.ts +23 -0
  158. package/dist/types/ref.d.ts.map +1 -0
  159. package/dist/types/ref.js +2 -0
  160. package/dist/types/ref.js.map +1 -0
  161. package/dist-js/bundle.js +1689 -0
  162. package/helpers/uihelpers.ts +7 -0
  163. package/package.json +74 -43
  164. package/styles/GSZoom.scss +252 -0
  165. package/types/global.d.ts +33 -0
  166. package/types/params.ts +36 -0
  167. package/types/ref.ts +23 -0
  168. package/dist/components/styles/GSZoom.css.map +0 -1
  169. package/index.js +0 -3
  170. /package/{dist → components/styles}/GSZoom.css +0 -0
  171. /package/{dist/components/styles → styles}/GSZoom.css +0 -0
@@ -0,0 +1,237 @@
1
+ export default `
2
+ html.gs-zoom-opened {
3
+ overflow: hidden !important;
4
+ touch-action: pan-x pan-y;
5
+ }
6
+ html.gs-zoom-opened body {
7
+ touch-action: pan-x pan-y;
8
+ }
9
+
10
+ .gs-zoom-magnifier-instance:hover {
11
+ cursor: none;
12
+ }
13
+
14
+ .gs-zoom-magnifier {
15
+ pointer-events: none;
16
+ position: fixed;
17
+ z-index: 9999;
18
+ border: 4px solid #fff;
19
+ aspect-ratio: 1;
20
+ overflow: hidden;
21
+ }
22
+ .gs-zoom-magnifier[data-type=circle] {
23
+ border-radius: 50%;
24
+ }
25
+ .gs-zoom-magnifier img {
26
+ position: absolute;
27
+ transform-origin: top left;
28
+ max-width: unset !important;
29
+ }
30
+
31
+ .gs-zoom-container {
32
+ position: fixed;
33
+ z-index: 9999999999;
34
+ width: 100vw;
35
+ height: 100dvh;
36
+ top: 0;
37
+ left: 0;
38
+ overflow: hidden;
39
+ -webkit-backdrop-filter: blur(50px);
40
+ backdrop-filter: blur(50px);
41
+ }
42
+ .gs-zoom-container .gs-zoom-autoplayline {
43
+ position: fixed;
44
+ height: 4px;
45
+ top: 0;
46
+ left: 0;
47
+ z-index: 999;
48
+ background-color: red;
49
+ }
50
+ .gs-zoom-container button {
51
+ cursor: pointer;
52
+ outline: none !important;
53
+ }
54
+ .gs-zoom-container * {
55
+ -webkit-user-drag: none;
56
+ -moz-user-select: none;
57
+ -webkit-user-select: none;
58
+ user-select: none;
59
+ }
60
+ .gs-zoom-container .gs-zoom-header {
61
+ position: fixed;
62
+ right: 10px;
63
+ top: 10px;
64
+ display: flex;
65
+ justify-content: flex-end;
66
+ align-items: center;
67
+ z-index: 99;
68
+ }
69
+ .gs-zoom-container .gs-zoom-header .gs-zoom-actions {
70
+ display: flex;
71
+ align-items: center;
72
+ }
73
+ .gs-zoom-container .gs-zoom-header .gs-zoom-actions .gs-zoom-action {
74
+ width: 40px;
75
+ height: 40px;
76
+ background-color: rgba(35, 35, 35, 0.65);
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ border: none;
81
+ }
82
+ .gs-zoom-container .gs-zoom-header .gs-zoom-actions .gs-zoom-action svg {
83
+ fill: #fff;
84
+ width: 18px;
85
+ }
86
+ .gs-zoom-container .gs-zoom-img-list {
87
+ position: relative;
88
+ z-index: 2;
89
+ display: flex;
90
+ width: -moz-max-content;
91
+ width: max-content;
92
+ }
93
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img {
94
+ width: 100vw;
95
+ height: 100dvh;
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ position: relative;
100
+ overflow: hidden;
101
+ }
102
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img .gs-zoom-img-touch {
103
+ position: absolute;
104
+ top: 0;
105
+ left: 0;
106
+ right: 0;
107
+ bottom: 0;
108
+ z-index: 2;
109
+ }
110
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img .gz-zoom-loading-container {
111
+ display: none;
112
+ position: absolute;
113
+ top: 50%;
114
+ left: 50%;
115
+ transform: translate(-50%, -50%);
116
+ }
117
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img .gs-zoom-img {
118
+ max-width: 100%;
119
+ max-height: 100%;
120
+ }
121
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img .gs-zoom-img.gs-zoom-is-adjusting {
122
+ transition: 0.4s ease-in-out !important;
123
+ }
124
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img.gz-zoom-is-loading .gz-zoom-loading-container {
125
+ display: block;
126
+ }
127
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img.gz-zoom-is-loading .gs-zoom-img {
128
+ visibility: hidden;
129
+ }
130
+ .gs-zoom-container .gs-zoom-img-list .gs-zoom-main-img .gs-zoom-info-data {
131
+ position: absolute;
132
+ left: 0;
133
+ bottom: 0;
134
+ right: 0;
135
+ padding: 20px 20px 90px;
136
+ display: flex;
137
+ flex-direction: column;
138
+ align-items: center;
139
+ color: #fff;
140
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
141
+ }
142
+ .gs-zoom-container .gs-zoom-additionals {
143
+ position: fixed;
144
+ bottom: 0;
145
+ left: 0;
146
+ width: 100%;
147
+ overflow-x: hidden;
148
+ padding: 5px 0;
149
+ display: flex;
150
+ justify-content: center;
151
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
152
+ transform-origin: bottom;
153
+ }
154
+ .gs-zoom-container .gs-zoom-additionals .gs-add-list-container {
155
+ overflow-x: hidden;
156
+ max-width: 100%;
157
+ }
158
+ .gs-zoom-container .gs-zoom-additionals .gs-add-list-container .gs-add-list {
159
+ display: flex;
160
+ gap: 5px;
161
+ width: -moz-max-content;
162
+ width: max-content;
163
+ justify-content: center;
164
+ flex-wrap: nowrap;
165
+ }
166
+ .gs-zoom-container .gs-zoom-additionals .gs-add-list-container .gs-add-list .gs-add-item {
167
+ width: 80px;
168
+ aspect-ratio: 1;
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: center;
172
+ border: 1px solid #000;
173
+ opacity: 0.5;
174
+ transition: 0.2s ease-out;
175
+ transform: scale(0.8);
176
+ cursor: pointer;
177
+ }
178
+ .gs-zoom-container .gs-zoom-additionals .gs-add-list-container .gs-add-list .gs-add-item:hover, .gs-zoom-container .gs-zoom-additionals .gs-add-list-container .gs-add-list .gs-add-item.active {
179
+ transform: scale(1);
180
+ opacity: 1;
181
+ }
182
+ .gs-zoom-container .gs-zoom-additionals .gs-add-list-container .gs-add-list .gs-add-item img {
183
+ max-width: 100%;
184
+ max-height: 100%;
185
+ }
186
+ .gs-zoom-container .gs-zoom-additionals.gs-zoom-hidden {
187
+ z-index: 1;
188
+ opacity: 0;
189
+ }
190
+ .gs-zoom-container .gs-zoom-additionals.gs-zoom-hidden .gs-add-list {
191
+ transform: scale(0.9);
192
+ }
193
+ .gs-zoom-container:not(.gs-additional-isdragging) .gs-zoom-additionals .gs-add-list-container .gs-add-list {
194
+ transition: 0.3s transform ease-in-out;
195
+ }
196
+ .gs-zoom-container .gs-zoom-navigations button {
197
+ border: none;
198
+ position: fixed;
199
+ top: 50%;
200
+ width: 50px;
201
+ background-color: rgba(35, 35, 35, 0.65);
202
+ aspect-ratio: 1;
203
+ display: inline-flex;
204
+ align-items: center;
205
+ justify-content: center;
206
+ font-size: 28px;
207
+ color: #fff;
208
+ transform: translateY(-50%);
209
+ }
210
+ .gs-zoom-container .gs-zoom-navigations button svg {
211
+ fill: #fff;
212
+ width: 18px;
213
+ }
214
+ .gs-zoom-container .gs-zoom-navigations .gs-zoom-next {
215
+ right: 10px;
216
+ }
217
+ .gs-zoom-container .gs-zoom-navigations .gs-zoom-prev {
218
+ left: 10px;
219
+ }
220
+ .gs-zoom-container .gs-zoom-hide-inzoomed {
221
+ z-index: 3;
222
+ opacity: 1;
223
+ transform: scale(1);
224
+ transition: 0.3s ease-in-out;
225
+ }
226
+ .gs-zoom-container.gs-zoom-is-zoomed .gs-zoom-hide-inzoomed {
227
+ z-index: 1;
228
+ opacity: 0;
229
+ transform: scale(0.9);
230
+ }
231
+ .gs-zoom-container.gs-zoom-is-zoomed .gs-zoom-hide-inzoomed.gs-zoom-additionals {
232
+ transform: scale(1);
233
+ }
234
+ .gs-zoom-container.gs-zoom-is-zoomed .gs-zoom-hide-inzoomed.gs-zoom-additionals .gs-add-list {
235
+ transform: scale(0.9);
236
+ }/*# sourceMappingURL=GSZoom.css.map */
237
+ `;
@@ -0,0 +1,20 @@
1
+ import types from './types';
2
+ import { Params } from '../types/params';
3
+
4
+ const defaultParams: Params = {
5
+ reference: '',
6
+ arrows: true,
7
+ navigateWithKeys: true,
8
+ showAdditionals: true,
9
+ zoomOnWheel: true,
10
+ maxZoom: 5,
11
+ type: types.lightbox,
12
+ mainImageQueryParameters: '',
13
+ additionalImageQueryParameters: '',
14
+ disableFullScreen: false,
15
+ imgLoading: '',
16
+ autoplaySpeed: 5000,
17
+ responsive: [],
18
+ };
19
+
20
+ export default Object.freeze(defaultParams);
@@ -0,0 +1,25 @@
1
+ const icons = {
2
+ // zoomIn: '<svg width="20px" height="20px" viewBox="0 -0.5 21 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Dribbble-Light-Preview" class="btn-icon btn-icon-plus" transform="translate(-379.000000, -240.000000)" fill="none"><g id="icons" transform="translate(56.000000, 160.000000)"><polygon id="plus-[#1512]" points="344 89 344 91 334.55 91 334.55 100 332.45 100 332.45 91 323 91 323 89 332.45 89 332.45 80 334.55 80 334.55 89"></polygon></g></g></g></svg>',
3
+ loading:
4
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 150"><path fill="none" stroke="#000000" stroke-width="15" stroke-linecap="round" stroke-dasharray="300 385" stroke-dashoffset="0" d="M275 75c0 31-27 50-50 50-58 0-92-100-150-100-28 0-50 22-50 50s23 50 50 50c58 0 92-100 150-100 24 0 50 19 50 50Z"><animate attributeName="stroke-dashoffset" calcMode="spline" dur="2" values="685;-685" keySplines="0 0 1 1" repeatCount="indefinite"></animate></path></svg>',
5
+ zoomIn:
6
+ '<svg width="20px" height="20px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 12.984375 7.9863281 A 1.0001 1.0001 0 0 0 12 9 L 12 12 L 9 12 A 1.0001 1.0001 0 1 0 9 14 L 12 14 L 12 17 A 1.0001 1.0001 0 1 0 14 17 L 14 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 14 12 L 14 9 A 1.0001 1.0001 0 0 0 12.984375 7.9863281 z"></path></svg>',
7
+ //zoomOut: '<svg width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="btn-icon btn-icon-minus" d="M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z" fill="none"></path></svg>',
8
+ zoomOut:
9
+ '<svg width="20px" height="20px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 9 12 A 1.0001 1.0001 0 1 0 9 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 9 12 z"></path></svg>',
10
+ //close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 -0.5 21 21" version="1.1"><g fill="none" fill-rule="evenodd"><g transform="translate(-419.000000, -240.000000)" class="btn-icon btn-icon-close"><g transform="translate(56.000000, 160.000000)"><polygon points="375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.554 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446"></polygon></g></g></g></svg>',
11
+ close:
12
+ '<svg width="20px" height="20px" viewBox="0 0 24 24"><path class="fslightbox-svg-path" d="M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z"></path></svg>',
13
+ autoplay:
14
+ '<svg width="16px" height="16px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 6 3 A 1 1 0 0 0 5 4 A 1 1 0 0 0 5 4.0039062 L 5 15 L 5 25.996094 A 1 1 0 0 0 5 26 A 1 1 0 0 0 6 27 A 1 1 0 0 0 6.5800781 26.8125 L 6.5820312 26.814453 L 26.416016 15.908203 A 1 1 0 0 0 27 15 A 1 1 0 0 0 26.388672 14.078125 L 6.5820312 3.1855469 L 6.5800781 3.1855469 A 1 1 0 0 0 6 3 z"></path></svg>',
15
+ autoplayPause:
16
+ '<svg width="14px" height="14px" viewBox="0 0 356.19 356.19"><path class="fslightbox-svg-path" d="M121,0c18,0,33,15,33,33v372c0,18-15,33-33,33s-32-15-32-33V33C89,15,103,0,121,0zM317,0c18,0,32,15,32,33v372c0,18-14,33-32,33s-33-15-33-33V33C284,15,299,0,317,0z"></path></svg>',
17
+ arrPrev:
18
+ '<svg width="20px" height="20px" viewBox="0 0 20 20"><path class="fslightbox-svg-path" d="M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"></path></svg>',
19
+ arrNext:
20
+ '<svg width="20px" height="20px" viewBox="0 0 20 20"><path class="fslightbox-svg-path" d="M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"></path></svg>',
21
+ toggleadditionals:
22
+ '<svg width="17px" height="17px" viewBox="0 0 22 22"><path class="fslightbox-svg-path" d="M 3 2 C 2.448 2 2 2.448 2 3 L 2 6 C 2 6.552 2.448 7 3 7 L 6 7 C 6.552 7 7 6.552 7 6 L 7 3 C 7 2.448 6.552 2 6 2 L 3 2 z M 10 2 C 9.448 2 9 2.448 9 3 L 9 6 C 9 6.552 9.448 7 10 7 L 13 7 C 13.552 7 14 6.552 14 6 L 14 3 C 14 2.448 13.552 2 13 2 L 10 2 z M 17 2 C 16.448 2 16 2.448 16 3 L 16 6 C 16 6.552 16.448 7 17 7 L 20 7 C 20.552 7 21 6.552 21 6 L 21 3 C 21 2.448 20.552 2 20 2 L 17 2 z M 3 9 C 2.448 9 2 9.448 2 10 L 2 13 C 2 13.552 2.448 14 3 14 L 6 14 C 6.552 14 7 13.552 7 13 L 7 10 C 7 9.448 6.552 9 6 9 L 3 9 z M 10 9 C 9.448 9 9 9.448 9 10 L 9 13 C 9 13.552 9.448 14 10 14 L 13 14 C 13.552 14 14 13.552 14 13 L 14 10 C 14 9.448 13.552 9 13 9 L 10 9 z M 17 9 C 16.448 9 16 9.448 16 10 L 16 13 C 16 13.552 16.448 14 17 14 L 20 14 C 20.552 14 21 13.552 21 13 L 21 10 C 21 9.448 20.552 9 20 9 L 17 9 z M 3 16 C 2.448 16 2 16.448 2 17 L 2 20 C 2 20.552 2.448 21 3 21 L 6 21 C 6.552 21 7 20.552 7 20 L 7 17 C 7 16.448 6.552 16 6 16 L 3 16 z M 10 16 C 9.448 16 9 16.448 9 17 L 9 20 C 9 20.552 9.448 21 10 21 L 13 21 C 13.552 21 14 20.552 14 20 L 14 17 C 14 16.448 13.552 16 13 16 L 10 16 z M 17 16 C 16.448 16 16 16.448 16 17 L 16 20 C 16 20.552 16.448 21 17 21 L 20 21 C 20.552 21 21 20.552 21 20 L 21 17 C 21 16.448 20.552 16 20 16 L 17 16 z"></path></svg>',
23
+ };
24
+
25
+ export default Object.freeze(icons);
@@ -0,0 +1,9 @@
1
+ import { MagnifierParams } from '../types/params';
2
+
3
+ const magnifierDefaultProps: MagnifierParams = {
4
+ zoom: 3,
5
+ form: 'circle',
6
+ size: 150,
7
+ };
8
+
9
+ export default Object.freeze(magnifierDefaultProps);
@@ -0,0 +1,6 @@
1
+ const types = {
2
+ lightbox: 'lightbox' as const,
3
+ magnifier: 'magnifier' as const,
4
+ };
5
+
6
+ export default Object.freeze(types);
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare const getScale: (element: HTMLElement) => number;
2
+ export declare const getTranslateCoord: (element: HTMLElement) => {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ export declare const fullscreenchange: () => void;
7
+ //# sourceMappingURL=general.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../actions/general.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,SAAS,WAAW,KAAG,MAW/C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAO9E,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,IAInC,CAAC"}
@@ -1,30 +1,26 @@
1
- import initClose from "./initClose";
2
-
3
- export const getScale = (element) => {
4
- // Get the computed style of the element
5
- const style = window.getComputedStyle(element);
6
- const transform = style.transform;
7
-
8
- if (transform !== "none") {
9
- const values = transform.match(/matrix.*\((.+)\)/)[1].split(", ");
10
- return parseFloat(values[0]);
11
- } else {
12
- return 1;
13
- }
14
- };
15
-
16
- export const getTranslateCoord = (element) => {
17
- const style = window.getComputedStyle(element);
18
- // eslint-disable-next-line no-undef
19
- const matrix = new WebKitCSSMatrix(style.transform);
20
- return {
21
- x: matrix.e,
22
- y: matrix.f,
23
- };
24
- };
25
-
26
- export const fullscreenchange = () => {
27
- if (!document.fullscreenElement) {
28
- initClose();
29
- }
30
- };
1
+ import initClose from './initClose';
2
+ export const getScale = (element) => {
3
+ const style = window.getComputedStyle(element);
4
+ const transform = style.transform;
5
+ if (transform !== 'none') {
6
+ const values = transform.match(/matrix.*\((.+)\)/)?.[1].split(', ');
7
+ if (values) {
8
+ return parseFloat(values[0]);
9
+ }
10
+ }
11
+ return 1;
12
+ };
13
+ export const getTranslateCoord = (element) => {
14
+ const style = window.getComputedStyle(element);
15
+ const matrix = new DOMMatrix(style.transform);
16
+ return {
17
+ x: matrix.e,
18
+ y: matrix.f,
19
+ };
20
+ };
21
+ export const fullscreenchange = () => {
22
+ if (!document.fullscreenElement) {
23
+ initClose();
24
+ }
25
+ };
26
+ //# sourceMappingURL=general.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.js","sourceRoot":"","sources":["../../actions/general.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAoB,EAAU,EAAE;IACvD,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IAElC,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpE,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAoB,EAA4B,EAAE;IAClF,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,OAAO;QACL,CAAC,EAAE,MAAM,CAAC,CAAC;QACX,CAAC,EAAE,MAAM,CAAC,CAAC;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAS,EAAE;IACzC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC;QAChC,SAAS,EAAE,CAAC;IACd,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const getAdjustTransform: (scale: number, translatex: number, translatey: number, $img: HTMLElement, $container: HTMLElement) => [number, number];
2
+ export default getAdjustTransform;
3
+ //# sourceMappingURL=getAdjustTransform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAdjustTransform.d.ts","sourceRoot":"","sources":["../../actions/getAdjustTransform.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,GACtB,OAAO,MAAM,EACb,YAAY,MAAM,EAClB,YAAY,MAAM,EAClB,MAAM,WAAW,EACjB,YAAY,WAAW,KACtB,CAAC,MAAM,EAAE,MAAM,CAqCjB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,43 +1,41 @@
1
- const getAdjustTransform = (
2
- scale,
3
- translatex,
4
- translatey,
5
- $img,
6
- $container
7
- ) => {
8
- const actualWidth = $img.clientWidth * scale;
9
- const actualHeight = $img.clientHeight * scale;
10
- const containerWidth = $container.clientWidth;
11
- const containerHeight = $container.clientHeight;
12
- const maxTranslateXValue = (actualWidth - containerWidth) / 2;
13
- const maxTranslateYValue = (actualHeight - containerHeight) / 2;
14
- const minTranslateXValue = (containerWidth - actualWidth) / 2;
15
- const minTranslateYValue = (containerHeight - actualHeight) / 2;
16
- let newTranslateXValue = translatex / scale;
17
- let newTranslateYValue = translatey / scale;
18
- if (actualWidth <= containerWidth) {
19
- if (translatex != 0) {
20
- newTranslateXValue = 0;
21
- }
22
- } else {
23
- if (translatex > maxTranslateXValue) {
24
- newTranslateXValue = maxTranslateXValue / scale;
25
- } else if (translatex < minTranslateXValue) {
26
- newTranslateXValue = minTranslateXValue / scale;
27
- }
28
- }
29
- if (actualHeight <= containerHeight) {
30
- if (translatex != 0) {
31
- newTranslateYValue = 0;
32
- }
33
- } else {
34
- if (translatey > maxTranslateYValue) {
35
- newTranslateYValue = maxTranslateYValue / scale;
36
- } else if (translatey < minTranslateYValue) {
37
- newTranslateYValue = minTranslateYValue / scale;
38
- }
39
- }
40
- return [newTranslateXValue, newTranslateYValue];
41
- };
42
-
43
- export default getAdjustTransform;
1
+ const getAdjustTransform = (scale, translatex, translatey, $img, $container) => {
2
+ const actualWidth = $img.clientWidth * scale;
3
+ const actualHeight = $img.clientHeight * scale;
4
+ const containerWidth = $container.clientWidth;
5
+ const containerHeight = $container.clientHeight;
6
+ const maxTranslateXValue = (actualWidth - containerWidth) / 2;
7
+ const maxTranslateYValue = (actualHeight - containerHeight) / 2;
8
+ const minTranslateXValue = (containerWidth - actualWidth) / 2;
9
+ const minTranslateYValue = (containerHeight - actualHeight) / 2;
10
+ let newTranslateXValue = translatex / scale;
11
+ let newTranslateYValue = translatey / scale;
12
+ if (actualWidth <= containerWidth) {
13
+ if (translatex !== 0) {
14
+ newTranslateXValue = 0;
15
+ }
16
+ }
17
+ else {
18
+ if (translatex > maxTranslateXValue) {
19
+ newTranslateXValue = maxTranslateXValue / scale;
20
+ }
21
+ else if (translatex < minTranslateXValue) {
22
+ newTranslateXValue = minTranslateXValue / scale;
23
+ }
24
+ }
25
+ if (actualHeight <= containerHeight) {
26
+ if (translatey !== 0) {
27
+ newTranslateYValue = 0;
28
+ }
29
+ }
30
+ else {
31
+ if (translatey > maxTranslateYValue) {
32
+ newTranslateYValue = maxTranslateYValue / scale;
33
+ }
34
+ else if (translatey < minTranslateYValue) {
35
+ newTranslateYValue = minTranslateYValue / scale;
36
+ }
37
+ }
38
+ return [newTranslateXValue, newTranslateYValue];
39
+ };
40
+ export default getAdjustTransform;
41
+ //# sourceMappingURL=getAdjustTransform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAdjustTransform.js","sourceRoot":"","sources":["../../actions/getAdjustTransform.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,CACzB,KAAa,EACb,UAAkB,EAClB,UAAkB,EAClB,IAAiB,EACjB,UAAuB,EACL,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC/C,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAC9C,MAAM,eAAe,GAAG,UAAU,CAAC,YAAY,CAAC;IAChD,MAAM,kBAAkB,GAAG,CAAC,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9D,MAAM,kBAAkB,GAAG,CAAC,YAAY,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAG,CAAC,cAAc,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC9D,MAAM,kBAAkB,GAAG,CAAC,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;IAChE,IAAI,kBAAkB,GAAG,UAAU,GAAG,KAAK,CAAC;IAC5C,IAAI,kBAAkB,GAAG,UAAU,GAAG,KAAK,CAAC;IAE5C,IAAI,WAAW,IAAI,cAAc,EAAE,CAAC;QAClC,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;YACrB,kBAAkB,GAAG,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;SAAM,CAAC;QACN,IAAI,UAAU,GAAG,kBAAkB,EAAE,CAAC;YACpC,kBAAkB,GAAG,kBAAkB,GAAG,KAAK,CAAC;QAClD,CAAC;aAAM,IAAI,UAAU,GAAG,kBAAkB,EAAE,CAAC;YAC3C,kBAAkB,GAAG,kBAAkB,GAAG,KAAK,CAAC;QAClD,CAAC;IACH,CAAC;IAED,IAAI,YAAY,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;YACrB,kBAAkB,GAAG,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;SAAM,CAAC;QACN,IAAI,UAAU,GAAG,kBAAkB,EAAE,CAAC;YACpC,kBAAkB,GAAG,kBAAkB,GAAG,KAAK,CAAC;QAClD,CAAC;aAAM,IAAI,UAAU,GAAG,kBAAkB,EAAE,CAAC;YAC3C,kBAAkB,GAAG,kBAAkB,GAAG,KAAK,CAAC;QAClD,CAAC;IACH,CAAC;IAED,OAAO,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Params } from '../types/params';
2
+ declare const getCurrentParams: (params: Params) => Params;
3
+ export default getCurrentParams;
4
+ //# sourceMappingURL=getCurrentParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentParams.d.ts","sourceRoot":"","sources":["../../actions/getCurrentParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,QAAA,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MAmC1C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,42 +1,35 @@
1
- import _defaultParams from '../constants/defaultParams';
2
- import magnifierDefaultProps from '../constants/magnifierDefaultProps';
3
-
4
- const getCurrentParams = (params) => {
5
- const defaultParams = { ..._defaultParams };
6
- let finalParams = {
7
- ...defaultParams,
8
- ...params,
9
- };
10
-
11
- if (finalParams.responsive.length > 0) {
12
- finalParams.responsive.sort((a, b) => b.windowSize - a.windowSize);
13
- }
14
-
15
- if (finalParams.responsive.length > 0) {
16
- const windowSize = window.innerWidth;
17
- const availableResponsives = finalParams.responsive.filter(
18
- (resp) => resp.windowSize >= windowSize
19
- );
20
-
21
- availableResponsives.map((resp) => {
22
- finalParams = {
23
- ...finalParams,
24
- ...resp.params,
25
- magnifier: {
26
- ...magnifierDefaultProps,
27
- ...resp.magnifier,
28
- },
29
- };
30
- return resp;
31
- });
32
- } else {
33
- finalParams.magnifier = {
34
- ...magnifierDefaultProps,
35
- ...finalParams.magnifier,
36
- };
37
- }
38
-
39
- return finalParams;
40
- };
41
-
42
- export default getCurrentParams;
1
+ import _defaultParams from '../constants/defaultParams';
2
+ import magnifierDefaultProps from '../constants/magnifierDefaultProps';
3
+ const getCurrentParams = (params) => {
4
+ const defaultParams = { ..._defaultParams };
5
+ let finalParams = {
6
+ ...defaultParams,
7
+ ...params,
8
+ };
9
+ if (finalParams.responsive && finalParams.responsive.length > 0) {
10
+ finalParams.responsive.sort((a, b) => b.windowSize - a.windowSize);
11
+ }
12
+ if (finalParams.responsive && finalParams.responsive.length > 0) {
13
+ const windowSize = window.innerWidth;
14
+ const availableResponsives = finalParams.responsive.filter((resp) => resp.windowSize >= windowSize);
15
+ availableResponsives.forEach((resp) => {
16
+ finalParams = {
17
+ ...finalParams,
18
+ ...resp.params,
19
+ magnifier: {
20
+ ...magnifierDefaultProps,
21
+ ...resp.magnifier,
22
+ },
23
+ };
24
+ });
25
+ }
26
+ else {
27
+ finalParams.magnifier = {
28
+ ...magnifierDefaultProps,
29
+ ...finalParams.magnifier,
30
+ };
31
+ }
32
+ return finalParams;
33
+ };
34
+ export default getCurrentParams;
35
+ //# sourceMappingURL=getCurrentParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentParams.js","sourceRoot":"","sources":["../../actions/getCurrentParams.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAAM,oCAAoC,CAAC;AAGvE,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAU,EAAE;IAClD,MAAM,aAAa,GAAW,EAAE,GAAG,cAAc,EAAE,CAAC;IACpD,IAAI,WAAW,GAAW;QACxB,GAAG,aAAa;QAChB,GAAG,MAAM;KACV,CAAC;IAEF,IAAI,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChE,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChE,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACrC,MAAM,oBAAoB,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CACxD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,IAAI,UAAU,CACxC,CAAC;QAEF,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACpC,WAAW,GAAG;gBACZ,GAAG,WAAW;gBACd,GAAG,IAAI,CAAC,MAAM;gBACd,SAAS,EAAE;oBACT,GAAG,qBAAqB;oBACxB,GAAG,IAAI,CAAC,SAAS;iBAClB;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,WAAW,CAAC,SAAS,GAAG;YACtB,GAAG,qBAAqB;YACxB,GAAG,WAAW,CAAC,SAAS;SACzB,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const getTranslateCoordToPoint: ($img: HTMLElement, $container: HTMLElement, scale: number, newScale: number, clientX: number, clientY: number) => [number, number];
2
+ export default getTranslateCoordToPoint;
3
+ //# sourceMappingURL=getTranslateCoordToPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTranslateCoordToPoint.d.ts","sourceRoot":"","sources":["../../actions/getTranslateCoordToPoint.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,wBAAwB,GAC5B,MAAM,WAAW,EACjB,YAAY,WAAW,EACvB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,SAAS,MAAM,EACf,SAAS,MAAM,KACd,CAAC,MAAM,EAAE,MAAM,CAyBjB,CAAC;AAEF,eAAe,wBAAwB,CAAC"}