@solostylist/image-editor 1.0.12 → 1.0.14

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 (659) hide show
  1. package/lib/actions/add-filter.d.ts +10 -0
  2. package/lib/actions/add-filter.d.ts.map +1 -0
  3. package/lib/actions/add-filter.js +2 -1
  4. package/lib/actions/change-pointer-icon.d.ts +6 -0
  5. package/lib/actions/change-pointer-icon.d.ts.map +1 -0
  6. package/lib/actions/change-rotation.d.ts +6 -0
  7. package/lib/actions/change-rotation.d.ts.map +1 -0
  8. package/lib/actions/clear-annotations-selections.d.ts +5 -0
  9. package/lib/actions/clear-annotations-selections.d.ts.map +1 -0
  10. package/lib/actions/duplicate-annotations.d.ts +9 -0
  11. package/lib/actions/duplicate-annotations.d.ts.map +1 -0
  12. package/lib/actions/enable-text-content-edit.d.ts +8 -0
  13. package/lib/actions/enable-text-content-edit.d.ts.map +1 -0
  14. package/lib/actions/enable-text-content-edit.js +2 -1
  15. package/lib/actions/hide-loader.d.ts +5 -0
  16. package/lib/actions/hide-loader.d.ts.map +1 -0
  17. package/lib/actions/index.d.ts +40 -0
  18. package/lib/actions/index.d.ts.map +1 -0
  19. package/lib/actions/redo.d.ts +5 -0
  20. package/lib/actions/redo.d.ts.map +1 -0
  21. package/lib/actions/remove-annotations.d.ts +9 -0
  22. package/lib/actions/remove-annotations.d.ts.map +1 -0
  23. package/lib/actions/reset.d.ts +8 -0
  24. package/lib/actions/reset.d.ts.map +1 -0
  25. package/lib/actions/select-annotation.d.ts +6 -0
  26. package/lib/actions/select-annotation.d.ts.map +1 -0
  27. package/lib/actions/select-tab.d.ts +6 -0
  28. package/lib/actions/select-tab.d.ts.map +1 -0
  29. package/lib/actions/select-tool.d.ts +9 -0
  30. package/lib/actions/select-tool.d.ts.map +1 -0
  31. package/lib/actions/set-annotation.d.ts +10 -0
  32. package/lib/actions/set-annotation.d.ts.map +1 -0
  33. package/lib/actions/set-canvas-size.d.ts +6 -0
  34. package/lib/actions/set-canvas-size.d.ts.map +1 -0
  35. package/lib/actions/set-crop.d.ts +9 -0
  36. package/lib/actions/set-crop.d.ts.map +1 -0
  37. package/lib/actions/set-crop.js +6 -1
  38. package/lib/actions/set-feedback.d.ts +6 -0
  39. package/lib/actions/set-feedback.d.ts.map +1 -0
  40. package/lib/actions/set-finetune.d.ts +11 -0
  41. package/lib/actions/set-finetune.d.ts.map +1 -0
  42. package/lib/actions/set-latest-color.d.ts +6 -0
  43. package/lib/actions/set-latest-color.d.ts.map +1 -0
  44. package/lib/actions/set-original-image.d.ts +6 -0
  45. package/lib/actions/set-original-image.d.ts.map +1 -0
  46. package/lib/actions/set-resize.d.ts +9 -0
  47. package/lib/actions/set-resize.d.ts.map +1 -0
  48. package/lib/actions/set-saved.d.ts +5 -0
  49. package/lib/actions/set-saved.d.ts.map +1 -0
  50. package/lib/actions/set-saving.d.ts +6 -0
  51. package/lib/actions/set-saving.d.ts.map +1 -0
  52. package/lib/actions/set-show-tabs-menu.d.ts +8 -0
  53. package/lib/actions/set-show-tabs-menu.d.ts.map +1 -0
  54. package/lib/actions/set-shown-image-dimensions.d.ts +13 -0
  55. package/lib/actions/set-shown-image-dimensions.d.ts.map +1 -0
  56. package/lib/actions/set-shown-image-dimensions.js +3 -2
  57. package/lib/actions/show-loader.d.ts +5 -0
  58. package/lib/actions/show-loader.d.ts.map +1 -0
  59. package/lib/actions/toggle-flip.d.ts +9 -0
  60. package/lib/actions/toggle-flip.d.ts.map +1 -0
  61. package/lib/actions/toggle-original-image-display.d.ts +8 -0
  62. package/lib/actions/toggle-original-image-display.d.ts.map +1 -0
  63. package/lib/actions/undo.d.ts +5 -0
  64. package/lib/actions/undo.d.ts.map +1 -0
  65. package/lib/actions/update-state.d.ts +7 -0
  66. package/lib/actions/update-state.d.ts.map +1 -0
  67. package/lib/actions/zoom-canvas.d.ts +10 -0
  68. package/lib/actions/zoom-canvas.d.ts.map +1 -0
  69. package/lib/components/app/index.d.ts +3 -0
  70. package/lib/components/app/index.d.ts.map +1 -0
  71. package/lib/components/app/index.js +147 -69
  72. package/lib/components/assembly-point/index.d.ts +8 -0
  73. package/lib/components/assembly-point/index.d.ts.map +1 -0
  74. package/lib/components/assembly-point/index.js +11 -10
  75. package/lib/components/common/annotation-options/annotation-options.constants.d.ts +9 -0
  76. package/lib/components/common/annotation-options/annotation-options.constants.d.ts.map +1 -0
  77. package/lib/components/common/annotation-options/index.d.ts +21 -0
  78. package/lib/components/common/annotation-options/index.d.ts.map +1 -0
  79. package/lib/components/common/annotation-options/index.js +61 -55
  80. package/lib/components/common/annotation-options/opacity-field.d.ts +10 -0
  81. package/lib/components/common/annotation-options/opacity-field.d.ts.map +1 -0
  82. package/lib/components/common/annotation-options/opacity-field.js +2 -1
  83. package/lib/components/common/annotation-options/position-fields.d.ts +8 -0
  84. package/lib/components/common/annotation-options/position-fields.d.ts.map +1 -0
  85. package/lib/components/common/annotation-options/position-fields.js +15 -13
  86. package/lib/components/common/annotation-options/shadow-fields.d.ts +9 -0
  87. package/lib/components/common/annotation-options/shadow-fields.d.ts.map +1 -0
  88. package/lib/components/common/annotation-options/shadow-fields.js +40 -37
  89. package/lib/components/common/annotation-options/stroke-fields.d.ts +9 -0
  90. package/lib/components/common/annotation-options/stroke-fields.d.ts.map +1 -0
  91. package/lib/components/common/annotation-options/stroke-fields.js +13 -10
  92. package/lib/components/common/button-with-menu/index.d.ts +16 -0
  93. package/lib/components/common/button-with-menu/index.d.ts.map +1 -0
  94. package/lib/components/common/button-with-menu/index.js +37 -27
  95. package/lib/components/common/color-input/index.d.ts +8 -0
  96. package/lib/components/common/color-input/index.d.ts.map +1 -0
  97. package/lib/components/common/color-input/index.js +21 -18
  98. package/lib/components/common/color-picker-modal/index.d.ts +10 -0
  99. package/lib/components/common/color-picker-modal/index.d.ts.map +1 -0
  100. package/lib/components/common/color-picker-modal/index.js +29 -22
  101. package/lib/components/common/hidden-upload-input/index.d.ts +3 -0
  102. package/lib/components/common/hidden-upload-input/index.d.ts.map +1 -0
  103. package/lib/components/common/hidden-upload-input/index.js +5 -2
  104. package/lib/components/common/icon-wrapper/index.d.ts +16 -0
  105. package/lib/components/common/icon-wrapper/index.d.ts.map +1 -0
  106. package/lib/components/common/icon-wrapper/index.js +9 -4
  107. package/lib/components/common/image-preview-tile/index.d.ts +14 -0
  108. package/lib/components/common/image-preview-tile/index.d.ts.map +1 -0
  109. package/lib/components/common/image-preview-tile/index.js +15 -13
  110. package/lib/components/common/slider/index.d.ts +12 -0
  111. package/lib/components/common/slider/index.d.ts.map +1 -0
  112. package/lib/components/common/slider/index.js +30 -23
  113. package/lib/components/feedback-popup/index.d.ts +8 -0
  114. package/lib/components/feedback-popup/index.d.ts.map +1 -0
  115. package/lib/components/feedback-popup/index.js +9 -6
  116. package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts +11 -0
  117. package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts.map +1 -0
  118. package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts +15 -0
  119. package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts.map +1 -0
  120. package/lib/components/layers/design-layer/annotation-nodes/arrow-node.js +6 -3
  121. package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts +14 -0
  122. package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts.map +1 -0
  123. package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.js +6 -3
  124. package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts +14 -0
  125. package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts.map +1 -0
  126. package/lib/components/layers/design-layer/annotation-nodes/image-node.js +6 -3
  127. package/lib/components/layers/design-layer/annotation-nodes/index.d.ts +3 -0
  128. package/lib/components/layers/design-layer/annotation-nodes/index.d.ts.map +1 -0
  129. package/lib/components/layers/design-layer/annotation-nodes/index.js +3 -3
  130. package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts +12 -0
  131. package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts.map +1 -0
  132. package/lib/components/layers/design-layer/annotation-nodes/line-node.js +6 -3
  133. package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts +11 -0
  134. package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts.map +1 -0
  135. package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.js +6 -4
  136. package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts +15 -0
  137. package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts.map +1 -0
  138. package/lib/components/layers/design-layer/annotation-nodes/polygon-node.js +6 -3
  139. package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts +16 -0
  140. package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts.map +1 -0
  141. package/lib/components/layers/design-layer/annotation-nodes/rect-node.js +6 -3
  142. package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts +21 -0
  143. package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts.map +1 -0
  144. package/lib/components/layers/design-layer/annotation-nodes/text-node.js +6 -3
  145. package/lib/components/layers/design-layer/index.d.ts +3 -0
  146. package/lib/components/layers/design-layer/index.d.ts.map +1 -0
  147. package/lib/components/layers/design-layer/index.js +43 -39
  148. package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts +45 -0
  149. package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts.map +1 -0
  150. package/lib/components/layers/design-layer/preview-group.d.ts +3 -0
  151. package/lib/components/layers/design-layer/preview-group.d.ts.map +1 -0
  152. package/lib/components/layers/design-layer/preview-group.js +5 -2
  153. package/lib/components/layers/index.d.ts +3 -0
  154. package/lib/components/layers/index.d.ts.map +1 -0
  155. package/lib/components/layers/transformers-layer/crop-transformer.d.ts +3 -0
  156. package/lib/components/layers/transformers-layer/crop-transformer.d.ts.map +1 -0
  157. package/lib/components/layers/transformers-layer/crop-transformer.js +65 -62
  158. package/lib/components/layers/transformers-layer/index.d.ts +3 -0
  159. package/lib/components/layers/transformers-layer/index.d.ts.map +1 -0
  160. package/lib/components/layers/transformers-layer/index.js +7 -4
  161. package/lib/components/layers/transformers-layer/nodes-transformer.d.ts +3 -0
  162. package/lib/components/layers/transformers-layer/nodes-transformer.d.ts.map +1 -0
  163. package/lib/components/layers/transformers-layer/nodes-transformer.js +2 -1
  164. package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts +42 -0
  165. package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts.map +1 -0
  166. package/lib/components/main-canvas/canvas-node.d.ts +6 -0
  167. package/lib/components/main-canvas/canvas-node.d.ts.map +1 -0
  168. package/lib/components/main-canvas/canvas-node.js +13 -9
  169. package/lib/components/main-canvas/index.d.ts +3 -0
  170. package/lib/components/main-canvas/index.d.ts.map +1 -0
  171. package/lib/components/main-canvas/index.js +136 -29
  172. package/lib/components/main-canvas/touch-zooming-events.d.ts +11 -0
  173. package/lib/components/main-canvas/touch-zooming-events.d.ts.map +1 -0
  174. package/lib/components/main-canvas/touch-zooming-events.js +3 -2
  175. package/lib/components/node-controls/index.d.ts +3 -0
  176. package/lib/components/node-controls/index.d.ts.map +1 -0
  177. package/lib/components/node-controls/index.js +16 -11
  178. package/lib/components/tabs/index.d.ts +6 -0
  179. package/lib/components/tabs/index.d.ts.map +1 -0
  180. package/lib/components/tabs/index.js +165 -22
  181. package/lib/components/tabs/tabs.constants.d.ts +9 -0
  182. package/lib/components/tabs/tabs.constants.d.ts.map +1 -0
  183. package/lib/components/tabs-drawer/index.d.ts +6 -0
  184. package/lib/components/tabs-drawer/index.d.ts.map +1 -0
  185. package/lib/components/tabs-drawer/index.js +75 -46
  186. package/lib/components/tools/arrow/arrow-button.d.ts +8 -0
  187. package/lib/components/tools/arrow/arrow-button.d.ts.map +1 -0
  188. package/lib/components/tools/arrow/arrow-button.js +2 -1
  189. package/lib/components/tools/arrow/arrow-options.d.ts +4 -0
  190. package/lib/components/tools/arrow/arrow-options.d.ts.map +1 -0
  191. package/lib/components/tools/arrow/arrow-options.js +2 -1
  192. package/lib/components/tools/arrow/index.d.ts +3 -0
  193. package/lib/components/tools/arrow/index.d.ts.map +1 -0
  194. package/lib/components/tools/blur/blur-options.d.ts +6 -0
  195. package/lib/components/tools/blur/blur-options.d.ts.map +1 -0
  196. package/lib/components/tools/blur/blur-options.js +11 -9
  197. package/lib/components/tools/blur/blur.d.ts +8 -0
  198. package/lib/components/tools/blur/blur.d.ts.map +1 -0
  199. package/lib/components/tools/blur/blur.js +2 -1
  200. package/lib/components/tools/blur/index.d.ts +3 -0
  201. package/lib/components/tools/blur/index.d.ts.map +1 -0
  202. package/lib/components/tools/brightness/brightness-options.d.ts +6 -0
  203. package/lib/components/tools/brightness/brightness-options.d.ts.map +1 -0
  204. package/lib/components/tools/brightness/brightness-options.js +12 -10
  205. package/lib/components/tools/brightness/brightness.d.ts +8 -0
  206. package/lib/components/tools/brightness/brightness.d.ts.map +1 -0
  207. package/lib/components/tools/brightness/brightness.js +2 -1
  208. package/lib/components/tools/brightness/index.d.ts +3 -0
  209. package/lib/components/tools/brightness/index.d.ts.map +1 -0
  210. package/lib/components/tools/contrast/contrast-options.d.ts +6 -0
  211. package/lib/components/tools/contrast/contrast-options.d.ts.map +1 -0
  212. package/lib/components/tools/contrast/contrast-options.js +11 -9
  213. package/lib/components/tools/contrast/contrast.d.ts +8 -0
  214. package/lib/components/tools/contrast/contrast.d.ts.map +1 -0
  215. package/lib/components/tools/contrast/contrast.js +2 -1
  216. package/lib/components/tools/contrast/index.d.ts +3 -0
  217. package/lib/components/tools/contrast/index.d.ts.map +1 -0
  218. package/lib/components/tools/crop/crop.constants.d.ts +15 -0
  219. package/lib/components/tools/crop/crop.constants.d.ts.map +1 -0
  220. package/lib/components/tools/crop/crop.d.ts +7 -0
  221. package/lib/components/tools/crop/crop.d.ts.map +1 -0
  222. package/lib/components/tools/crop/crop.js +25 -22
  223. package/lib/components/tools/crop/index.d.ts +2 -0
  224. package/lib/components/tools/crop/index.d.ts.map +1 -0
  225. package/lib/components/tools/ellipse/ellipse-button.d.ts +8 -0
  226. package/lib/components/tools/ellipse/ellipse-button.d.ts.map +1 -0
  227. package/lib/components/tools/ellipse/ellipse-button.js +2 -1
  228. package/lib/components/tools/ellipse/ellipse-options.d.ts +4 -0
  229. package/lib/components/tools/ellipse/ellipse-options.d.ts.map +1 -0
  230. package/lib/components/tools/ellipse/ellipse-options.js +2 -1
  231. package/lib/components/tools/ellipse/index.d.ts +3 -0
  232. package/lib/components/tools/ellipse/index.d.ts.map +1 -0
  233. package/lib/components/tools/filters/filter-item.d.ts +11 -0
  234. package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
  235. package/lib/components/tools/filters/filter-item.js +36 -28
  236. package/lib/components/tools/filters/filters.constants.d.ts +8 -0
  237. package/lib/components/tools/filters/filters.constants.d.ts.map +1 -0
  238. package/lib/components/tools/filters/filters.d.ts +6 -0
  239. package/lib/components/tools/filters/filters.d.ts.map +1 -0
  240. package/lib/components/tools/filters/filters.js +26 -18
  241. package/lib/components/tools/filters/index.d.ts +2 -0
  242. package/lib/components/tools/filters/index.d.ts.map +1 -0
  243. package/lib/components/tools/flip/flip-x.d.ts +8 -0
  244. package/lib/components/tools/flip/flip-x.d.ts.map +1 -0
  245. package/lib/components/tools/flip/flip-x.js +2 -1
  246. package/lib/components/tools/flip/flip-y.d.ts +8 -0
  247. package/lib/components/tools/flip/flip-y.d.ts.map +1 -0
  248. package/lib/components/tools/flip/flip-y.js +2 -1
  249. package/lib/components/tools/flip/index.d.ts +3 -0
  250. package/lib/components/tools/flip/index.d.ts.map +1 -0
  251. package/lib/components/tools/hsv/hsv.d.ts +8 -0
  252. package/lib/components/tools/hsv/hsv.d.ts.map +1 -0
  253. package/lib/components/tools/hsv/hsv.js +2 -1
  254. package/lib/components/tools/hsv/hsvoptions.d.ts +6 -0
  255. package/lib/components/tools/hsv/hsvoptions.d.ts.map +1 -0
  256. package/lib/components/tools/hsv/hsvoptions.js +32 -30
  257. package/lib/components/tools/hsv/index.d.ts +3 -0
  258. package/lib/components/tools/hsv/index.d.ts.map +1 -0
  259. package/lib/components/tools/image/image-button.d.ts +8 -0
  260. package/lib/components/tools/image/image-button.d.ts.map +1 -0
  261. package/lib/components/tools/image/image-button.js +2 -1
  262. package/lib/components/tools/image/image-controls.d.ts +13 -0
  263. package/lib/components/tools/image/image-controls.d.ts.map +1 -0
  264. package/lib/components/tools/image/image-controls.js +5 -3
  265. package/lib/components/tools/image/image-options.d.ts +3 -0
  266. package/lib/components/tools/image/image-options.d.ts.map +1 -0
  267. package/lib/components/tools/image/image-options.js +24 -21
  268. package/lib/components/tools/image/images-gallery.d.ts +14 -0
  269. package/lib/components/tools/image/images-gallery.d.ts.map +1 -0
  270. package/lib/components/tools/image/images-gallery.js +28 -26
  271. package/lib/components/tools/image/index.d.ts +3 -0
  272. package/lib/components/tools/image/index.d.ts.map +1 -0
  273. package/lib/components/tools/line/index.d.ts +3 -0
  274. package/lib/components/tools/line/index.d.ts.map +1 -0
  275. package/lib/components/tools/line/line-button.d.ts +8 -0
  276. package/lib/components/tools/line/line-button.d.ts.map +1 -0
  277. package/lib/components/tools/line/line-button.js +2 -1
  278. package/lib/components/tools/line/line-options.d.ts +4 -0
  279. package/lib/components/tools/line/line-options.d.ts.map +1 -0
  280. package/lib/components/tools/line/line-options.js +2 -1
  281. package/lib/components/tools/pen/index.d.ts +3 -0
  282. package/lib/components/tools/pen/index.d.ts.map +1 -0
  283. package/lib/components/tools/pen/pen-button.d.ts +8 -0
  284. package/lib/components/tools/pen/pen-button.d.ts.map +1 -0
  285. package/lib/components/tools/pen/pen-button.js +2 -1
  286. package/lib/components/tools/pen/pen-options.d.ts +3 -0
  287. package/lib/components/tools/pen/pen-options.d.ts.map +1 -0
  288. package/lib/components/tools/pen/pen-options.js +6 -4
  289. package/lib/components/tools/polygon/index.d.ts +3 -0
  290. package/lib/components/tools/polygon/index.d.ts.map +1 -0
  291. package/lib/components/tools/polygon/polygon-button.d.ts +8 -0
  292. package/lib/components/tools/polygon/polygon-button.d.ts.map +1 -0
  293. package/lib/components/tools/polygon/polygon-button.js +2 -1
  294. package/lib/components/tools/polygon/polygon-options.d.ts +4 -0
  295. package/lib/components/tools/polygon/polygon-options.d.ts.map +1 -0
  296. package/lib/components/tools/polygon/polygon-options.js +2 -1
  297. package/lib/components/tools/polygon/polygon-sides-field.d.ts +9 -0
  298. package/lib/components/tools/polygon/polygon-sides-field.d.ts.map +1 -0
  299. package/lib/components/tools/polygon/polygon-sides-field.js +2 -1
  300. package/lib/components/tools/polygon/polygon.constants.d.ts +12 -0
  301. package/lib/components/tools/polygon/polygon.constants.d.ts.map +1 -0
  302. package/lib/components/tools/rect/index.d.ts +3 -0
  303. package/lib/components/tools/rect/index.d.ts.map +1 -0
  304. package/lib/components/tools/rect/rect-button.d.ts +8 -0
  305. package/lib/components/tools/rect/rect-button.d.ts.map +1 -0
  306. package/lib/components/tools/rect/rect-button.js +2 -1
  307. package/lib/components/tools/rect/rect-corner-field.d.ts +9 -0
  308. package/lib/components/tools/rect/rect-corner-field.d.ts.map +1 -0
  309. package/lib/components/tools/rect/rect-corner-field.js +2 -1
  310. package/lib/components/tools/rect/rect-options.d.ts +4 -0
  311. package/lib/components/tools/rect/rect-options.d.ts.map +1 -0
  312. package/lib/components/tools/rect/rect-options.js +2 -1
  313. package/lib/components/tools/rect/rect.constants.d.ts +12 -0
  314. package/lib/components/tools/rect/rect.constants.d.ts.map +1 -0
  315. package/lib/components/tools/resize/index.d.ts +2 -0
  316. package/lib/components/tools/resize/index.d.ts.map +1 -0
  317. package/lib/components/tools/resize/resize.d.ts +13 -0
  318. package/lib/components/tools/resize/resize.d.ts.map +1 -0
  319. package/lib/components/tools/resize/resize.js +41 -34
  320. package/lib/components/tools/rotate/index.d.ts +3 -0
  321. package/lib/components/tools/rotate/index.d.ts.map +1 -0
  322. package/lib/components/tools/rotate/rotate-button.d.ts +8 -0
  323. package/lib/components/tools/rotate/rotate-button.d.ts.map +1 -0
  324. package/lib/components/tools/rotate/rotate-button.js +2 -1
  325. package/lib/components/tools/rotate/rotate-options.d.ts +3 -0
  326. package/lib/components/tools/rotate/rotate-options.d.ts.map +1 -0
  327. package/lib/components/tools/rotate/rotate-options.js +51 -45
  328. package/lib/components/tools/text/index.d.ts +3 -0
  329. package/lib/components/tools/text/index.d.ts.map +1 -0
  330. package/lib/components/tools/text/text-button.d.ts +8 -0
  331. package/lib/components/tools/text/text-button.d.ts.map +1 -0
  332. package/lib/components/tools/text/text-button.js +2 -1
  333. package/lib/components/tools/text/text-options/handle-text-change-area.d.ts +4 -0
  334. package/lib/components/tools/text/text-options/handle-text-change-area.d.ts.map +1 -0
  335. package/lib/components/tools/text/text-options/index.d.ts +4 -0
  336. package/lib/components/tools/text/text-options/index.d.ts.map +1 -0
  337. package/lib/components/tools/text/text-options/index.js +2 -1
  338. package/lib/components/tools/text/text-options/text-alignment-fields.d.ts +9 -0
  339. package/lib/components/tools/text/text-options/text-alignment-fields.d.ts.map +1 -0
  340. package/lib/components/tools/text/text-options/text-alignment-fields.js +26 -21
  341. package/lib/components/tools/text/text-options/text-controls.d.ts +12 -0
  342. package/lib/components/tools/text/text-options/text-controls.d.ts.map +1 -0
  343. package/lib/components/tools/text/text-options/text-controls.js +51 -44
  344. package/lib/components/tools/text/text-options/text-options.constants.d.ts +14 -0
  345. package/lib/components/tools/text/text-options/text-options.constants.d.ts.map +1 -0
  346. package/lib/components/tools/text/text-options/text-spacings-fields.d.ts +10 -0
  347. package/lib/components/tools/text/text-options/text-spacings-fields.d.ts.map +1 -0
  348. package/lib/components/tools/text/text-options/text-spacings-fields.js +20 -17
  349. package/lib/components/tools/tools.constants.d.ts +9 -0
  350. package/lib/components/tools/tools.constants.d.ts.map +1 -0
  351. package/lib/components/tools/warmth/index.d.ts +3 -0
  352. package/lib/components/tools/warmth/index.d.ts.map +1 -0
  353. package/lib/components/tools/warmth/warmth-options.d.ts +7 -0
  354. package/lib/components/tools/warmth/warmth-options.d.ts.map +1 -0
  355. package/lib/components/tools/warmth/warmth-options.js +11 -9
  356. package/lib/components/tools/warmth/warmth.d.ts +8 -0
  357. package/lib/components/tools/warmth/warmth.d.ts.map +1 -0
  358. package/lib/components/tools/warmth/warmth.js +2 -1
  359. package/lib/components/tools/watermark/index.d.ts +2 -0
  360. package/lib/components/tools/watermark/index.d.ts.map +1 -0
  361. package/lib/components/tools/watermark/watermark-padding.d.ts +8 -0
  362. package/lib/components/tools/watermark/watermark-padding.d.ts.map +1 -0
  363. package/lib/components/tools/watermark/watermark-padding.js +36 -30
  364. package/lib/components/tools/watermark/watermark.d.ts +3 -0
  365. package/lib/components/tools/watermark/watermark.d.ts.map +1 -0
  366. package/lib/components/tools/watermark/watermark.js +35 -28
  367. package/lib/components/tools/watermark/watermarks-gallery.d.ts +7 -0
  368. package/lib/components/tools/watermark/watermarks-gallery.d.ts.map +1 -0
  369. package/lib/components/tools/watermark/watermarks-gallery.js +22 -18
  370. package/lib/components/tools-bar/index.d.ts +3 -0
  371. package/lib/components/tools-bar/index.d.ts.map +1 -0
  372. package/lib/components/tools-bar/index.js +57 -29
  373. package/lib/components/tools-bar/tools-bar-item-button.d.ts +23 -0
  374. package/lib/components/tools-bar/tools-bar-item-button.d.ts.map +1 -0
  375. package/lib/components/tools-bar/tools-bar-item-button.js +17 -9
  376. package/lib/components/topbar/canvas-zooming.d.ts +3 -0
  377. package/lib/components/topbar/canvas-zooming.d.ts.map +1 -0
  378. package/lib/components/topbar/canvas-zooming.js +54 -46
  379. package/lib/components/topbar/confirmation-modal.d.ts +8 -0
  380. package/lib/components/topbar/confirmation-modal.d.ts.map +1 -0
  381. package/lib/components/topbar/confirmation-modal.js +26 -19
  382. package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts +3 -0
  383. package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts.map +1 -0
  384. package/lib/components/topbar/image-dimensions-and-display-toggle.js +20 -14
  385. package/lib/components/topbar/index.d.ts +7 -0
  386. package/lib/components/topbar/index.d.ts.map +1 -0
  387. package/lib/components/topbar/index.js +49 -35
  388. package/lib/components/topbar/redo-button.d.ts +3 -0
  389. package/lib/components/topbar/redo-button.d.ts.map +1 -0
  390. package/lib/components/topbar/redo-button.js +6 -4
  391. package/lib/components/topbar/reset-button.d.ts +3 -0
  392. package/lib/components/topbar/reset-button.d.ts.map +1 -0
  393. package/lib/components/topbar/reset-button.js +12 -9
  394. package/lib/components/topbar/save-button.d.ts +3 -0
  395. package/lib/components/topbar/save-button.d.ts.map +1 -0
  396. package/lib/components/topbar/save-button.js +69 -57
  397. package/lib/components/topbar/topbar-action-buttons.d.ts +3 -0
  398. package/lib/components/topbar/topbar-action-buttons.d.ts.map +1 -0
  399. package/lib/components/topbar/topbar-action-buttons.js +27 -0
  400. package/lib/components/topbar/topbar.constants.d.ts +8 -0
  401. package/lib/components/topbar/topbar.constants.d.ts.map +1 -0
  402. package/lib/components/topbar/undo-button.d.ts +3 -0
  403. package/lib/components/topbar/undo-button.d.ts.map +1 -0
  404. package/lib/components/topbar/undo-button.js +6 -4
  405. package/lib/context/app-context.d.ts +14 -0
  406. package/lib/context/app-context.d.ts.map +1 -0
  407. package/lib/context/app-provider-overriden-value.d.ts +11 -0
  408. package/lib/context/app-provider-overriden-value.d.ts.map +1 -0
  409. package/lib/context/app-provider-overriden-value.js +5 -3
  410. package/lib/context/app-provider.d.ts +10 -0
  411. package/lib/context/app-provider.d.ts.map +1 -0
  412. package/lib/context/app-provider.js +13 -9
  413. package/lib/context/app-reducer.d.ts +5 -0
  414. package/lib/context/app-reducer.d.ts.map +1 -0
  415. package/lib/context/app-reducer.js +2 -1
  416. package/lib/context/default-config.d.ts +4 -0
  417. package/lib/context/default-config.d.ts.map +1 -0
  418. package/lib/context/default-config.js +1 -1
  419. package/lib/context/default-translations.d.ts +4 -0
  420. package/lib/context/default-translations.d.ts.map +1 -0
  421. package/lib/context/default-translations.js +465 -113
  422. package/lib/context/get-initial-app-state.d.ts +5 -0
  423. package/lib/context/get-initial-app-state.d.ts.map +1 -0
  424. package/lib/context/get-initial-app-state.js +4 -4
  425. package/lib/context/index.d.ts +5 -0
  426. package/lib/context/index.d.ts.map +1 -0
  427. package/lib/custom/filters/aden.d.ts +14 -0
  428. package/lib/custom/filters/aden.d.ts.map +1 -0
  429. package/lib/custom/filters/amaro.d.ts +14 -0
  430. package/lib/custom/filters/amaro.d.ts.map +1 -0
  431. package/lib/custom/filters/ashby.d.ts +14 -0
  432. package/lib/custom/filters/ashby.d.ts.map +1 -0
  433. package/lib/custom/filters/base-filters.d.ts +14 -0
  434. package/lib/custom/filters/base-filters.d.ts.map +1 -0
  435. package/lib/custom/filters/black-and-white.d.ts +14 -0
  436. package/lib/custom/filters/black-and-white.d.ts.map +1 -0
  437. package/lib/custom/filters/brannan.d.ts +14 -0
  438. package/lib/custom/filters/brannan.d.ts.map +1 -0
  439. package/lib/custom/filters/brooklyn.d.ts +14 -0
  440. package/lib/custom/filters/brooklyn.d.ts.map +1 -0
  441. package/lib/custom/filters/charmes.d.ts +14 -0
  442. package/lib/custom/filters/charmes.d.ts.map +1 -0
  443. package/lib/custom/filters/clarendon.d.ts +14 -0
  444. package/lib/custom/filters/clarendon.d.ts.map +1 -0
  445. package/lib/custom/filters/crema.d.ts +14 -0
  446. package/lib/custom/filters/crema.d.ts.map +1 -0
  447. package/lib/custom/filters/dogpatch.d.ts +14 -0
  448. package/lib/custom/filters/dogpatch.d.ts.map +1 -0
  449. package/lib/custom/filters/earlybird.d.ts +14 -0
  450. package/lib/custom/filters/earlybird.d.ts.map +1 -0
  451. package/lib/custom/filters/gingham.d.ts +14 -0
  452. package/lib/custom/filters/gingham.d.ts.map +1 -0
  453. package/lib/custom/filters/ginza.d.ts +14 -0
  454. package/lib/custom/filters/ginza.d.ts.map +1 -0
  455. package/lib/custom/filters/hefe.d.ts +14 -0
  456. package/lib/custom/filters/hefe.d.ts.map +1 -0
  457. package/lib/custom/filters/helena.d.ts +14 -0
  458. package/lib/custom/filters/helena.d.ts.map +1 -0
  459. package/lib/custom/filters/hudson.d.ts +14 -0
  460. package/lib/custom/filters/hudson.d.ts.map +1 -0
  461. package/lib/custom/filters/index.d.ts +41 -0
  462. package/lib/custom/filters/index.d.ts.map +1 -0
  463. package/lib/custom/filters/juno.d.ts +14 -0
  464. package/lib/custom/filters/juno.d.ts.map +1 -0
  465. package/lib/custom/filters/kelvin.d.ts +14 -0
  466. package/lib/custom/filters/kelvin.d.ts.map +1 -0
  467. package/lib/custom/filters/lark.d.ts +14 -0
  468. package/lib/custom/filters/lark.d.ts.map +1 -0
  469. package/lib/custom/filters/lo-fi.d.ts +14 -0
  470. package/lib/custom/filters/lo-fi.d.ts.map +1 -0
  471. package/lib/custom/filters/ludwig.d.ts +14 -0
  472. package/lib/custom/filters/ludwig.d.ts.map +1 -0
  473. package/lib/custom/filters/maven.d.ts +14 -0
  474. package/lib/custom/filters/maven.d.ts.map +1 -0
  475. package/lib/custom/filters/mayfair.d.ts +14 -0
  476. package/lib/custom/filters/mayfair.d.ts.map +1 -0
  477. package/lib/custom/filters/moon.d.ts +14 -0
  478. package/lib/custom/filters/moon.d.ts.map +1 -0
  479. package/lib/custom/filters/nashville.d.ts +14 -0
  480. package/lib/custom/filters/nashville.d.ts.map +1 -0
  481. package/lib/custom/filters/ninteen-seventy-seven.d.ts +14 -0
  482. package/lib/custom/filters/ninteen-seventy-seven.d.ts.map +1 -0
  483. package/lib/custom/filters/perpetua.d.ts +14 -0
  484. package/lib/custom/filters/perpetua.d.ts.map +1 -0
  485. package/lib/custom/filters/reyes.d.ts +14 -0
  486. package/lib/custom/filters/reyes.d.ts.map +1 -0
  487. package/lib/custom/filters/rise.d.ts +14 -0
  488. package/lib/custom/filters/rise.d.ts.map +1 -0
  489. package/lib/custom/filters/sierra.d.ts +14 -0
  490. package/lib/custom/filters/sierra.d.ts.map +1 -0
  491. package/lib/custom/filters/skyline.d.ts +14 -0
  492. package/lib/custom/filters/skyline.d.ts.map +1 -0
  493. package/lib/custom/filters/slumber.d.ts +14 -0
  494. package/lib/custom/filters/slumber.d.ts.map +1 -0
  495. package/lib/custom/filters/stinson.d.ts +14 -0
  496. package/lib/custom/filters/stinson.d.ts.map +1 -0
  497. package/lib/custom/filters/sutro.d.ts +14 -0
  498. package/lib/custom/filters/sutro.d.ts.map +1 -0
  499. package/lib/custom/filters/toaster.d.ts +14 -0
  500. package/lib/custom/filters/toaster.d.ts.map +1 -0
  501. package/lib/custom/filters/valencia.d.ts +14 -0
  502. package/lib/custom/filters/valencia.d.ts.map +1 -0
  503. package/lib/custom/filters/vesper.d.ts +14 -0
  504. package/lib/custom/filters/vesper.d.ts.map +1 -0
  505. package/lib/custom/filters/walden.d.ts +14 -0
  506. package/lib/custom/filters/walden.d.ts.map +1 -0
  507. package/lib/custom/filters/willow.d.ts +14 -0
  508. package/lib/custom/filters/willow.d.ts.map +1 -0
  509. package/lib/custom/filters/xpro2.d.ts +14 -0
  510. package/lib/custom/filters/xpro2.d.ts.map +1 -0
  511. package/lib/custom/finetunes/custom-threshold.d.ts +15 -0
  512. package/lib/custom/finetunes/custom-threshold.d.ts.map +1 -0
  513. package/lib/custom/finetunes/index.d.ts +3 -0
  514. package/lib/custom/finetunes/index.d.ts.map +1 -0
  515. package/lib/custom/finetunes/warmth.d.ts +17 -0
  516. package/lib/custom/finetunes/warmth.d.ts.map +1 -0
  517. package/lib/demo/app.d.ts +6 -0
  518. package/lib/demo/app.d.ts.map +1 -0
  519. package/lib/demo/app.js +142 -86
  520. package/lib/demo/index.d.ts +2 -0
  521. package/lib/demo/index.d.ts.map +1 -0
  522. package/lib/hooks/index.d.ts +14 -0
  523. package/lib/hooks/index.d.ts.map +1 -0
  524. package/lib/hooks/index.js +2 -1
  525. package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts +19 -0
  526. package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts.map +1 -0
  527. package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts +25 -0
  528. package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts.map +1 -0
  529. package/lib/hooks/use-annotation/get-new-annotation-preview.js +2 -2
  530. package/lib/hooks/use-annotation/index.d.ts +74 -0
  531. package/lib/hooks/use-annotation/index.d.ts.map +1 -0
  532. package/lib/hooks/use-annotation/index.js +15 -2
  533. package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts +3 -0
  534. package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts.map +1 -0
  535. package/lib/hooks/use-annotation-events.d.ts +11 -0
  536. package/lib/hooks/use-annotation-events.d.ts.map +1 -0
  537. package/lib/hooks/use-app-reducer.d.ts +13 -0
  538. package/lib/hooks/use-app-reducer.d.ts.map +1 -0
  539. package/lib/hooks/use-app-reducer.js +2 -1
  540. package/lib/hooks/use-debounced-callback.d.ts +5 -0
  541. package/lib/hooks/use-debounced-callback.d.ts.map +1 -0
  542. package/lib/hooks/use-drag.d.ts +8 -0
  543. package/lib/hooks/use-drag.d.ts.map +1 -0
  544. package/lib/hooks/use-filter.d.ts +4 -0
  545. package/lib/hooks/use-filter.d.ts.map +1 -0
  546. package/lib/hooks/use-finetune.d.ts +5 -0
  547. package/lib/hooks/use-finetune.d.ts.map +1 -0
  548. package/lib/hooks/use-image-editor-actions.d.ts +16 -0
  549. package/lib/hooks/use-image-editor-actions.d.ts.map +1 -0
  550. package/lib/hooks/use-image-editor-actions.js +147 -0
  551. package/lib/hooks/use-phone-screen.d.ts +3 -0
  552. package/lib/hooks/use-phone-screen.d.ts.map +1 -0
  553. package/lib/hooks/use-popover.d.ts +11 -0
  554. package/lib/hooks/use-popover.d.ts.map +1 -0
  555. package/lib/hooks/use-resize-observer.d.ts +12 -0
  556. package/lib/hooks/use-resize-observer.d.ts.map +1 -0
  557. package/lib/hooks/use-resize-observer.js +2 -3
  558. package/lib/hooks/use-store.d.ts +5 -0
  559. package/lib/hooks/use-store.d.ts.map +1 -0
  560. package/lib/hooks/use-transformed-img-data.d.ts +20 -0
  561. package/lib/hooks/use-transformed-img-data.d.ts.map +1 -0
  562. package/lib/hooks/use-transformed-img-data.js +13 -9
  563. package/lib/hooks/use-update-effect.d.ts +5 -0
  564. package/lib/hooks/use-update-effect.d.ts.map +1 -0
  565. package/lib/index.d.ts +6 -0
  566. package/lib/index.d.ts.map +1 -0
  567. package/lib/types/actions.d.ts +197 -0
  568. package/lib/types/actions.d.ts.map +1 -0
  569. package/lib/types/annotations.d.ts +181 -0
  570. package/lib/types/annotations.d.ts.map +1 -0
  571. package/lib/types/common.d.ts +31 -0
  572. package/lib/types/common.d.ts.map +1 -0
  573. package/lib/types/config.d.ts +193 -0
  574. package/lib/types/config.d.ts.map +1 -0
  575. package/lib/types/index.d.ts +6 -0
  576. package/lib/types/index.d.ts.map +1 -0
  577. package/lib/types/state.d.ts +105 -0
  578. package/lib/types/state.d.ts.map +1 -0
  579. package/lib/utils/assign-finetune-names-to-konva.d.ts +3 -0
  580. package/lib/utils/assign-finetune-names-to-konva.d.ts.map +1 -0
  581. package/lib/utils/calculate-zoom-data.d.ts +9 -0
  582. package/lib/utils/calculate-zoom-data.d.ts.map +1 -0
  583. package/lib/utils/calculate-zoom-data.js +5 -4
  584. package/lib/utils/compare-ratios.d.ts +3 -0
  585. package/lib/utils/compare-ratios.d.ts.map +1 -0
  586. package/lib/utils/constants.d.ts +85 -0
  587. package/lib/utils/constants.d.ts.map +1 -0
  588. package/lib/utils/crop-image.d.ts +12 -0
  589. package/lib/utils/crop-image.d.ts.map +1 -0
  590. package/lib/utils/crop-image.js +10 -4
  591. package/lib/utils/debounce.d.ts +3 -0
  592. package/lib/utils/debounce.d.ts.map +1 -0
  593. package/lib/utils/deep-merge.d.ts +3 -0
  594. package/lib/utils/deep-merge.d.ts.map +1 -0
  595. package/lib/utils/extract-current-design-state.d.ts +11 -0
  596. package/lib/utils/extract-current-design-state.d.ts.map +1 -0
  597. package/lib/utils/extract-current-design-state.js +3 -2
  598. package/lib/utils/extract-name-from-url.d.ts +3 -0
  599. package/lib/utils/extract-name-from-url.d.ts.map +1 -0
  600. package/lib/utils/filter-str-to-class.d.ts +4 -0
  601. package/lib/utils/filter-str-to-class.d.ts.map +1 -0
  602. package/lib/utils/filter-str-to-class.js +2 -1
  603. package/lib/utils/finetunes-strs-to-classes.d.ts +4 -0
  604. package/lib/utils/finetunes-strs-to-classes.d.ts.map +1 -0
  605. package/lib/utils/finetunes-strs-to-classes.js +2 -1
  606. package/lib/utils/get-center-rotated-point.d.ts +8 -0
  607. package/lib/utils/get-center-rotated-point.d.ts.map +1 -0
  608. package/lib/utils/get-default-save-quality.d.ts +3 -0
  609. package/lib/utils/get-default-save-quality.d.ts.map +1 -0
  610. package/lib/utils/get-dimensions-minimal-ratio.d.ts +3 -0
  611. package/lib/utils/get-dimensions-minimal-ratio.d.ts.map +1 -0
  612. package/lib/utils/get-elem-document-coords.d.ts +9 -0
  613. package/lib/utils/get-elem-document-coords.d.ts.map +1 -0
  614. package/lib/utils/get-file-full-name.d.ts +8 -0
  615. package/lib/utils/get-file-full-name.d.ts.map +1 -0
  616. package/lib/utils/get-file-full-name.js +3 -3
  617. package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts +21 -0
  618. package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts.map +1 -0
  619. package/lib/utils/get-pointer-offset-position-bounded-to-object.js +2 -1
  620. package/lib/utils/get-proper-dimensions.d.ts +11 -0
  621. package/lib/utils/get-proper-dimensions.d.ts.map +1 -0
  622. package/lib/utils/get-proper-dimensions.js +3 -2
  623. package/lib/utils/get-proper-image-to-canvas-spacing.d.ts +3 -0
  624. package/lib/utils/get-proper-image-to-canvas-spacing.d.ts.map +1 -0
  625. package/lib/utils/get-scroll-offset.d.ts +7 -0
  626. package/lib/utils/get-scroll-offset.d.ts.map +1 -0
  627. package/lib/utils/get-size-after-rotation.d.ts +9 -0
  628. package/lib/utils/get-size-after-rotation.d.ts.map +1 -0
  629. package/lib/utils/get-zoom-fit-factor.d.ts +4 -0
  630. package/lib/utils/get-zoom-fit-factor.d.ts.map +1 -0
  631. package/lib/utils/image-to-base64.d.ts +3 -0
  632. package/lib/utils/image-to-base64.d.ts.map +1 -0
  633. package/lib/utils/is-default-zero-values-only.d.ts +3 -0
  634. package/lib/utils/is-default-zero-values-only.d.ts.map +1 -0
  635. package/lib/utils/is-same-image.d.ts +3 -0
  636. package/lib/utils/is-same-image.d.ts.map +1 -0
  637. package/lib/utils/load-image.d.ts +3 -0
  638. package/lib/utils/load-image.d.ts.map +1 -0
  639. package/lib/utils/load-image.js +1 -3
  640. package/lib/utils/map-crop-box.d.ts +16 -0
  641. package/lib/utils/map-crop-box.d.ts.map +1 -0
  642. package/lib/utils/map-number.d.ts +3 -0
  643. package/lib/utils/map-number.d.ts.map +1 -0
  644. package/lib/utils/map-position-string-to-point.d.ts +8 -0
  645. package/lib/utils/map-position-string-to-point.d.ts.map +1 -0
  646. package/lib/utils/random-id.d.ts +3 -0
  647. package/lib/utils/random-id.d.ts.map +1 -0
  648. package/lib/utils/restrict-number.d.ts +3 -0
  649. package/lib/utils/restrict-number.d.ts.map +1 -0
  650. package/lib/utils/restrict-number.js +2 -2
  651. package/lib/utils/serialize-design-state.d.ts +27 -0
  652. package/lib/utils/serialize-design-state.d.ts.map +1 -0
  653. package/lib/utils/serialize-design-state.js +5 -3
  654. package/lib/utils/to-precised-float.d.ts +3 -0
  655. package/lib/utils/to-precised-float.d.ts.map +1 -0
  656. package/lib/utils/translator.d.ts +6 -0
  657. package/lib/utils/translator.d.ts.map +1 -0
  658. package/lib/utils/translator.js +11 -2
  659. package/package.json +10 -3
@@ -0,0 +1,4 @@
1
+ /** External Dependencies */
2
+ declare const EllipseOptions: () => import("react/jsx-runtime").JSX.Element;
3
+ export default EllipseOptions;
4
+ //# sourceMappingURL=ellipse-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipse-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/ellipse/ellipse-options.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAQ5B,QAAA,MAAM,cAAc,+CAQnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { useAnnotation } from "../../../hooks";
3
3
  import { TOOLS_IDS } from "../../../utils/constants";
4
4
  import AnnotationOptions from "../../common/annotation-options";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
5
6
  var EllipseOptions = function EllipseOptions() {
6
7
  var _useAnnotation = useAnnotation({
7
8
  name: TOOLS_IDS.ELLIPSE
@@ -9,7 +10,7 @@ var EllipseOptions = function EllipseOptions() {
9
10
  _useAnnotation2 = _slicedToArray(_useAnnotation, 2),
10
11
  ellipse = _useAnnotation2[0],
11
12
  saveEllipse = _useAnnotation2[1];
12
- return React.createElement(AnnotationOptions, {
13
+ return _jsx(AnnotationOptions, {
13
14
  annotation: ellipse,
14
15
  updateAnnotation: saveEllipse
15
16
  });
@@ -0,0 +1,3 @@
1
+ export { default as EllipseButton } from './ellipse-button';
2
+ export { default as EllipseOptions } from './ellipse-options';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/ellipse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Filter } from 'konva/lib/Node';
2
+ interface FilterItemProps {
3
+ filterLabel: string;
4
+ filterFn?: Filter | null;
5
+ applyFilter: (filterFn: any) => void;
6
+ isActive: boolean;
7
+ image: HTMLImageElement | null;
8
+ }
9
+ declare const _default: import("react").MemoExoticComponent<({ filterLabel, filterFn, applyFilter, isActive, image, }: FilterItemProps) => import("react/jsx-runtime").JSX.Element | null>;
10
+ export default _default;
11
+ //# sourceMappingURL=filter-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-item.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filter-item.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AASxC,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAChC;uHAQE,eAAe;AAkFlB,wBAAgC"}
@@ -4,7 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { memo, useCallback, useEffect, useRef } from 'react';
5
5
  import { Layer, Image, Stage } from 'react-konva';
6
6
  import { Typography } from '@mui/material';
7
- import { SFlexBox } from '@solostylist/ui-kit/core';
7
+ import { SFlexBox } from '@solostylist/ui-kit';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
9
  var MAX_FILTER_PREVIEW_WIDTH = 80;
9
10
  var MAX_FILTER_PREVIEW_HEIGHT = 60;
10
11
  var FilterItem = function FilterItem(_ref) {
@@ -13,6 +14,9 @@ var FilterItem = function FilterItem(_ref) {
13
14
  applyFilter = _ref.applyFilter,
14
15
  isActive = _ref.isActive,
15
16
  image = _ref.image;
17
+ if (!image) {
18
+ return null;
19
+ }
16
20
  var imageNodeRef = useRef(null);
17
21
  var handleFilterApplying = useCallback(function () {
18
22
  applyFilter(filterFn);
@@ -38,7 +42,7 @@ var FilterItem = function FilterItem(_ref) {
38
42
  var isWiderThanStage = imgRatio > stageRatio;
39
43
  var filterImgPreviewWidth = isWiderThanStage ? MAX_FILTER_PREVIEW_HEIGHT * imgRatio : MAX_FILTER_PREVIEW_WIDTH;
40
44
  var filterImgPreviewHeight = isWiderThanStage ? MAX_FILTER_PREVIEW_HEIGHT : MAX_FILTER_PREVIEW_WIDTH / imgRatio;
41
- return React.createElement(SFlexBox, {
45
+ return _jsxs(SFlexBox, {
42
46
  onClick: handleFilterApplying,
43
47
  "aria-selected": isActive,
44
48
  sx: {
@@ -47,31 +51,35 @@ var FilterItem = function FilterItem(_ref) {
47
51
  justifyContent: 'center',
48
52
  gap: 0.5,
49
53
  cursor: 'pointer'
50
- }
51
- }, React.createElement(Stage, {
52
- width: MAX_FILTER_PREVIEW_WIDTH,
53
- height: MAX_FILTER_PREVIEW_HEIGHT,
54
- style: _objectSpread({
55
- padding: 1
56
- }, isActive && {
57
- borderRadius: 2,
58
- border: '1px solid',
59
- borderColor: 'divider'
60
- })
61
- }, React.createElement(Layer, {
62
- onTap: handleFilterApplying
63
- }, React.createElement(Image, {
64
- image: image,
65
- filters: filterFn ? [filterFn] : [],
66
- width: filterImgPreviewWidth,
67
- height: filterImgPreviewHeight,
68
- x: -(filterImgPreviewWidth - MAX_FILTER_PREVIEW_WIDTH) / 2,
69
- y: -(filterImgPreviewHeight - MAX_FILTER_PREVIEW_HEIGHT) / 2,
70
- ref: imageNodeRef
71
- }))), React.createElement(Typography, {
72
- whiteSpace: "nowrap",
73
- textAlign: "center",
74
- fontSize: "0.875rem"
75
- }, filterLabel));
54
+ },
55
+ children: [_jsx(Stage, {
56
+ width: MAX_FILTER_PREVIEW_WIDTH,
57
+ height: MAX_FILTER_PREVIEW_HEIGHT,
58
+ style: _objectSpread({
59
+ padding: 1
60
+ }, isActive && {
61
+ borderRadius: 2,
62
+ border: '1px solid',
63
+ borderColor: 'divider'
64
+ }),
65
+ children: _jsx(Layer, {
66
+ onTap: handleFilterApplying,
67
+ children: _jsx(Image, {
68
+ image: image,
69
+ filters: filterFn ? [filterFn] : [],
70
+ width: filterImgPreviewWidth,
71
+ height: filterImgPreviewHeight,
72
+ x: -(filterImgPreviewWidth - MAX_FILTER_PREVIEW_WIDTH) / 2,
73
+ y: -(filterImgPreviewHeight - MAX_FILTER_PREVIEW_HEIGHT) / 2,
74
+ ref: imageNodeRef
75
+ })
76
+ })
77
+ }), _jsx(Typography, {
78
+ whiteSpace: "nowrap",
79
+ textAlign: "center",
80
+ fontSize: "0.875rem",
81
+ children: filterLabel
82
+ })]
83
+ });
76
84
  };
77
85
  export default memo(FilterItem);
@@ -0,0 +1,8 @@
1
+ import { Filter } from 'konva/lib/Node';
2
+ interface FilterItem {
3
+ label: string;
4
+ filterFn: Filter | null;
5
+ }
6
+ export declare const AVAILABLE_FILTERS: FilterItem[];
7
+ export {};
8
+ //# sourceMappingURL=filters.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filters.constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAGD,eAAO,MAAM,iBAAiB,EAAE,UAAU,EAqLzC,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface FiltersProps {
2
+ maxWidth?: string | number;
3
+ }
4
+ declare const Filters: ({ maxWidth }: FiltersProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default Filters;
6
+ //# sourceMappingURL=filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filters.tsx"],"names":[],"mappings":"AAuCA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAuC1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -4,6 +4,7 @@ import { SCarousel } from '@solostylist/ui-kit/carousel';
4
4
  import { useFilter, useStore } from "../../../hooks";
5
5
  import FilterItem from "./filter-item";
6
6
  import { AVAILABLE_FILTERS } from "./filters.constants";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  var responsiveSettings = [{
8
9
  breakpoint: 1600,
9
10
  settings: {
@@ -41,34 +42,41 @@ var responsiveSettings = [{
41
42
  slidesToScroll: 2
42
43
  }
43
44
  }];
44
- var Filters = function Filters() {
45
+ var Filters = function Filters(_ref) {
46
+ var maxWidth = _ref.maxWidth;
45
47
  var _useStore = useStore(),
46
48
  originalImage = _useStore.originalImage;
47
49
  var _useFilter = useFilter(),
48
50
  _useFilter2 = _slicedToArray(_useFilter, 2),
49
51
  appliedFilter = _useFilter2[0],
50
52
  applyFilter = _useFilter2[1];
51
- return React.createElement(Box, {
53
+ return _jsx(Box, {
52
54
  sx: {
53
55
  width: '100%',
56
+ maxWidth: maxWidth !== null && maxWidth !== void 0 ? maxWidth : '80vw',
54
57
  flex: '1 1 100%',
55
58
  display: 'block',
56
59
  minWidth: 0,
57
- overflow: 'hidden'
58
- }
59
- }, React.createElement(SCarousel, {
60
- slidesToShow: 16,
61
- slidesToScroll: 8,
62
- responsive: responsiveSettings
63
- }, AVAILABLE_FILTERS.map(function (filter) {
64
- return React.createElement(FilterItem, {
65
- key: filter.label,
66
- filterLabel: filter.label,
67
- filterFn: filter.filterFn,
68
- applyFilter: applyFilter,
69
- isActive: appliedFilter === filter.filterFn,
70
- image: originalImage
71
- });
72
- })));
60
+ overflow: 'visible',
61
+ position: 'relative',
62
+ '& .slick-arrow': {
63
+ color: 'var(--s-palete-text-secondary)'
64
+ }
65
+ },
66
+ children: _jsx(SCarousel, {
67
+ slidesToShow: 16,
68
+ slidesToScroll: 8,
69
+ responsive: responsiveSettings,
70
+ children: AVAILABLE_FILTERS.map(function (filter) {
71
+ return _jsx(FilterItem, {
72
+ filterLabel: filter.label,
73
+ filterFn: filter.filterFn,
74
+ applyFilter: applyFilter,
75
+ isActive: appliedFilter === filter.filterFn,
76
+ image: originalImage !== null && originalImage !== void 0 ? originalImage : null
77
+ }, filter.label);
78
+ })
79
+ })
80
+ });
73
81
  };
74
82
  export default Filters;
@@ -0,0 +1,2 @@
1
+ export { default as Filters } from './filters';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface FlipXProps {
2
+ selectTool: (toolId: string) => void;
3
+ isSelected?: boolean;
4
+ t: (key: string) => string;
5
+ }
6
+ declare const FlipX: ({ selectTool, isSelected, t }: FlipXProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default FlipX;
8
+ //# sourceMappingURL=flip-x.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flip-x.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/flip-x.tsx"],"names":[],"mappings":"AAUA,UAAU,UAAU;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,KAAK,GAAI,+BAAuC,UAAU,4CAwC/D,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -4,6 +4,7 @@ import { TOGGLE_FLIP } from "../../../actions";
4
4
  import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
5
5
  import { useStore } from "../../../hooks";
6
6
  import { FLIP_DIRECTIONS, TOOLS_IDS } from "../../../utils/constants";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  var FlipX = function FlipX(_ref) {
8
9
  var selectTool = _ref.selectTool,
9
10
  _ref$isSelected = _ref.isSelected,
@@ -34,7 +35,7 @@ var FlipX = function FlipX(_ref) {
34
35
  if (flipXToolId) selectTool(flipXToolId);
35
36
  toggleFlipX();
36
37
  }, []);
37
- return React.createElement(ToolsBarItemButton, {
38
+ return _jsx(ToolsBarItemButton, {
38
39
  id: TOOLS_IDS.FLIP_X,
39
40
  label: label,
40
41
  Icon: FlipOutlined,
@@ -0,0 +1,8 @@
1
+ interface FlipYProps {
2
+ selectTool: (toolId: string) => void;
3
+ isSelected?: boolean;
4
+ t: (key: string) => string;
5
+ }
6
+ declare const FlipY: ({ selectTool, isSelected, t }: FlipYProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default FlipY;
8
+ //# sourceMappingURL=flip-y.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flip-y.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/flip-y.tsx"],"names":[],"mappings":"AAUA,UAAU,UAAU;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,KAAK,GAAI,+BAAuC,UAAU,4CA4C/D,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -4,6 +4,7 @@ import { TOGGLE_FLIP } from "../../../actions";
4
4
  import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
5
5
  import { useStore } from "../../../hooks";
6
6
  import { FLIP_DIRECTIONS, TOOLS_IDS } from "../../../utils/constants";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  var FlipY = function FlipY(_ref) {
8
9
  var selectTool = _ref.selectTool,
9
10
  _ref$isSelected = _ref.isSelected,
@@ -36,7 +37,7 @@ var FlipY = function FlipY(_ref) {
36
37
  if (flipYToolId) selectTool(flipYToolId);
37
38
  toggleFlipY();
38
39
  }, []);
39
- return React.createElement(ToolsBarItemButton, {
40
+ return _jsx(ToolsBarItemButton, {
40
41
  id: TOOLS_IDS.FLIP_Y,
41
42
  label: label,
42
43
  Icon: FlipOutlined,
@@ -0,0 +1,3 @@
1
+ export { default as FlipX } from './flip-x';
2
+ export { default as FlipY } from './flip-y';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface HSVProps {
2
+ selectTool: () => void;
3
+ isSelected?: boolean;
4
+ t: (key: string) => string;
5
+ }
6
+ declare const HSV: ({ selectTool, isSelected, t }: HSVProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default HSV;
8
+ //# sourceMappingURL=hsv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hsv.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/hsv.tsx"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,GAAG,GAAI,+BAAuC,QAAQ,4CAU3D,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { GradientOutlined as SaturationIcon } from '@mui/icons-material';
2
2
  import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
3
3
  import { TOOLS_IDS } from "../../../utils/constants";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  var HSV = function HSV(_ref) {
5
6
  var selectTool = _ref.selectTool,
6
7
  _ref$isSelected = _ref.isSelected,
7
8
  isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
8
9
  t = _ref.t;
9
- return React.createElement(ToolsBarItemButton, {
10
+ return _jsx(ToolsBarItemButton, {
10
11
  id: TOOLS_IDS.HSV,
11
12
  label: t('hsvTool'),
12
13
  Icon: SaturationIcon,
@@ -0,0 +1,6 @@
1
+ interface HSVOptionsProps {
2
+ t: (key: string) => string;
3
+ }
4
+ declare const HSVOptions: ({ t }: HSVOptionsProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default HSVOptions;
6
+ //# sourceMappingURL=hsvoptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hsvoptions.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/hsvoptions.tsx"],"names":[],"mappings":"AAoBA,UAAU,eAAe;IACvB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,GAAI,OAAO,eAAe,4CA0CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -4,6 +4,7 @@ import Konva from 'konva';
4
4
  import { Box } from '@mui/material';
5
5
  import Slider from "../../common/slider";
6
6
  import { useFinetune } from "../../../hooks";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
8
  var DEFAULT_VALUE = {
8
9
  hue: 0,
9
10
  saturation: 0,
@@ -24,37 +25,38 @@ var HSVOptions = function HSVOptions(_ref) {
24
25
  var changeValue = function changeValue(name, value) {
25
26
  setFinetuneProps(_defineProperty({}, name, value > MAX_VALUE[name] ? MAX_VALUE[name] : +value));
26
27
  };
27
- return React.createElement(Box, {
28
+ return _jsxs(Box, {
28
29
  display: "flex",
29
30
  justifyContent: "center",
30
- gap: 2
31
- }, React.createElement(Slider, {
32
- label: t('hue'),
33
- min: 0,
34
- step: 1,
35
- max: 259,
36
- value: (_finetuneProps$hue = finetuneProps.hue) !== null && _finetuneProps$hue !== void 0 ? _finetuneProps$hue : DEFAULT_VALUE.hue,
37
- onChange: function onChange(val) {
38
- return changeValue('hue', val);
39
- }
40
- }), React.createElement(Slider, {
41
- label: t('saturation'),
42
- min: -2,
43
- step: 0.5,
44
- max: 10,
45
- value: (_finetuneProps$satura = finetuneProps.saturation) !== null && _finetuneProps$satura !== void 0 ? _finetuneProps$satura : DEFAULT_VALUE.saturation,
46
- onChange: function onChange(val) {
47
- return changeValue('saturation', val);
48
- }
49
- }), React.createElement(Slider, {
50
- label: t('value'),
51
- min: -2,
52
- step: 0.1,
53
- max: 2,
54
- value: (_finetuneProps$value = finetuneProps.value) !== null && _finetuneProps$value !== void 0 ? _finetuneProps$value : DEFAULT_VALUE.value,
55
- onChange: function onChange(val) {
56
- return changeValue('value', val);
57
- }
58
- }));
31
+ gap: 2,
32
+ children: [_jsx(Slider, {
33
+ label: t('hue'),
34
+ min: 0,
35
+ step: 1,
36
+ max: 259,
37
+ value: (_finetuneProps$hue = finetuneProps.hue) !== null && _finetuneProps$hue !== void 0 ? _finetuneProps$hue : DEFAULT_VALUE.hue,
38
+ onChange: function onChange(val) {
39
+ return changeValue('hue', val);
40
+ }
41
+ }), _jsx(Slider, {
42
+ label: t('saturation'),
43
+ min: -2,
44
+ step: 0.5,
45
+ max: 10,
46
+ value: (_finetuneProps$satura = finetuneProps.saturation) !== null && _finetuneProps$satura !== void 0 ? _finetuneProps$satura : DEFAULT_VALUE.saturation,
47
+ onChange: function onChange(val) {
48
+ return changeValue('saturation', val);
49
+ }
50
+ }), _jsx(Slider, {
51
+ label: t('value'),
52
+ min: -2,
53
+ step: 0.1,
54
+ max: 2,
55
+ value: (_finetuneProps$value = finetuneProps.value) !== null && _finetuneProps$value !== void 0 ? _finetuneProps$value : DEFAULT_VALUE.value,
56
+ onChange: function onChange(val) {
57
+ return changeValue('value', val);
58
+ }
59
+ })]
60
+ });
59
61
  };
60
62
  export default HSVOptions;
@@ -0,0 +1,3 @@
1
+ export { default as HSV } from './hsv';
2
+ export { default as HSVOptions } from './hsvoptions';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface ImageButtonProps {
2
+ selectTool: () => void;
3
+ isSelected?: boolean;
4
+ t: (key: string) => string;
5
+ }
6
+ declare const ImageButton: ({ selectTool, isSelected, t, }: ImageButtonProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ImageButton;
8
+ //# sourceMappingURL=image-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/image/image-button.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,GAAI,gCAIlB,gBAAgB,4CAUlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { ImageOutlined as ImageIcon } from '@mui/icons-material';
2
2
  import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
3
3
  import { TOOLS_IDS } from "../../../utils/constants";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  var ImageButton = function ImageButton(_ref) {
5
6
  var selectTool = _ref.selectTool,
6
7
  _ref$isSelected = _ref.isSelected,
7
8
  isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
8
9
  t = _ref.t;
9
- return React.createElement(ToolsBarItemButton, {
10
+ return _jsx(ToolsBarItemButton, {
10
11
  id: TOOLS_IDS.IMAGE,
11
12
  label: t('imageTool'),
12
13
  Icon: ImageIcon,
@@ -0,0 +1,13 @@
1
+ /** External Dependencies */
2
+ import { Annotation, ImageAnnotation } from 'types/annotations';
3
+ interface ImageControlsProps {
4
+ image: ImageAnnotation | Partial<ImageAnnotation> | (ImageAnnotation & {
5
+ shouldSave?: boolean;
6
+ neverSave?: boolean;
7
+ });
8
+ saveImage: (updates: Partial<Annotation>) => void;
9
+ children?: React.ReactNode;
10
+ }
11
+ declare const ImageControls: ({ image, saveImage, children }: ImageControlsProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default ImageControls;
13
+ //# sourceMappingURL=image-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-controls.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/image/image-controls.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAI5B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEhE,UAAU,kBAAkB;IAE1B,KAAK,EACD,eAAe,GACf,OAAO,CAAC,eAAe,CAAC,GACxB,CAAC,eAAe,GAAG;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACtE,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,aAAa,GAAI,gCAAgC,kBAAkB,4CAUxE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import AnnotationOptions from "../../common/annotation-options";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
2
3
  var ImageControls = function ImageControls(_ref) {
3
4
  var image = _ref.image,
4
5
  saveImage = _ref.saveImage,
5
6
  children = _ref.children;
6
- return React.createElement(AnnotationOptions, {
7
+ return _jsx(AnnotationOptions, {
7
8
  annotation: image,
8
9
  updateAnnotation: saveImage,
9
- hideFillOption: true
10
- }, children);
10
+ hideFillOption: true,
11
+ children: children
12
+ });
11
13
  };
12
14
  export default ImageControls;
@@ -0,0 +1,3 @@
1
+ declare const ImageOptions: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ImageOptions;
3
+ //# sourceMappingURL=image-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/image/image-options.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,YAAY,+CAuLjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -8,6 +8,7 @@ import HiddenUploadInput from "../../common/hidden-upload-input";
8
8
  import ButtonWithMenu from "../../common/button-with-menu";
9
9
  import ImageControls from "./image-controls";
10
10
  import ImagesGallery from "./images-gallery";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var ADDED_IMG_SPACING_PERCENT = 0.15;
12
13
  var ImageOptions = function ImageOptions() {
13
14
  var _useState = useState(),
@@ -38,10 +39,11 @@ var ImageOptions = function ImageOptions() {
38
39
  addNewImage = _useAnnotation2[2];
39
40
  var requestedImgsCount = useRef(0);
40
41
  var addImgScaled = function addImgScaled(loadedImg) {
41
- var layerWidth = crop.width || shownImageDimensions.width;
42
- var layerHeight = crop.height || shownImageDimensions.height;
43
- var layerCropX = crop.x || 0;
44
- var layerCropY = crop.y || 0;
42
+ var _crop$width, _crop$height, _crop$x, _crop$y;
43
+ var layerWidth = (_crop$width = crop.width) !== null && _crop$width !== void 0 ? _crop$width : shownImageDimensions.width;
44
+ var layerHeight = (_crop$height = crop.height) !== null && _crop$height !== void 0 ? _crop$height : shownImageDimensions.height;
45
+ var layerCropX = (_crop$x = crop.x) !== null && _crop$x !== void 0 ? _crop$x : 0;
46
+ var layerCropY = (_crop$y = crop.y) !== null && _crop$y !== void 0 ? _crop$y : 0;
45
47
  var newImgRatio = Math.min(1, layerWidth / (loadedImg.width + loadedImg.width * ADDED_IMG_SPACING_PERCENT), layerHeight / (loadedImg.height + loadedImg.height * ADDED_IMG_SPACING_PERCENT));
46
48
  addNewImage({
47
49
  image: loadedImg,
@@ -140,23 +142,24 @@ var ImageOptions = function ImageOptions() {
140
142
  onClick: openGalleryPanel
141
143
  }];
142
144
  }, [imageConfig, isLoading, t]);
143
- return React.createElement(ImageControls, {
145
+ return _jsxs(ImageControls, {
144
146
  image: image,
145
- saveImage: saveImage
146
- }, React.createElement(ButtonWithMenu, {
147
- label: t('addImage'),
148
- menuItems: menuItems,
149
- buttonRef: menuItemsBtnRef
150
- }), isUploadEnabled && React.createElement(HiddenUploadInput, {
151
- ref: uploadImgsInput,
152
- onChange: isLoading ? undefined : importImages,
153
- disabled: isLoading,
154
- multiple: true
155
- }), isGalleryEnabled && React.createElement(ImagesGallery, {
156
- gallery: imageConfig.gallery,
157
- onSelect: importImgFromGallery,
158
- onClose: closeGalleryPanel,
159
- anchorEl: galleryPopover.anchorEl
160
- }));
147
+ saveImage: saveImage,
148
+ children: [_jsx(ButtonWithMenu, {
149
+ label: t('addImage'),
150
+ menuItems: menuItems,
151
+ buttonRef: menuItemsBtnRef
152
+ }), isUploadEnabled && _jsx(HiddenUploadInput, {
153
+ ref: uploadImgsInput,
154
+ onChange: isLoading ? undefined : importImages,
155
+ disabled: isLoading,
156
+ multiple: true
157
+ }), isGalleryEnabled && _jsx(ImagesGallery, {
158
+ gallery: imageConfig.gallery,
159
+ onSelect: importImgFromGallery,
160
+ onClose: closeGalleryPanel,
161
+ anchorEl: galleryPopover.anchorEl
162
+ })]
163
+ });
161
164
  };
162
165
  export default ImageOptions;
@@ -0,0 +1,14 @@
1
+ /** External Dependencies */
2
+ interface GalleryItem {
3
+ originalUrl: string;
4
+ previewUrl: string;
5
+ }
6
+ interface ImagesGalleryProps {
7
+ gallery?: GalleryItem[];
8
+ anchorEl?: HTMLElement | null;
9
+ onClose: () => void;
10
+ onSelect: (originalUrl: string) => void;
11
+ }
12
+ declare const ImagesGallery: ({ gallery, anchorEl, onClose, onSelect, }: ImagesGalleryProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default ImagesGallery;
14
+ //# sourceMappingURL=images-gallery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images-gallery.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/image/images-gallery.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAO5B,UAAU,WAAW;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,aAAa,GAAI,2CAKpB,kBAAkB,4CAwCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}