@solostylist/image-editor 1.0.0 → 1.0.2

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 (605) 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/change-pointer-icon.d.ts +6 -0
  4. package/lib/actions/change-pointer-icon.d.ts.map +1 -0
  5. package/lib/actions/change-rotation.d.ts +6 -0
  6. package/lib/actions/change-rotation.d.ts.map +1 -0
  7. package/lib/actions/clear-annotations-selections.d.ts +5 -0
  8. package/lib/actions/clear-annotations-selections.d.ts.map +1 -0
  9. package/lib/actions/duplicate-annotations.d.ts +9 -0
  10. package/lib/actions/duplicate-annotations.d.ts.map +1 -0
  11. package/lib/actions/enable-text-content-edit.d.ts +8 -0
  12. package/lib/actions/enable-text-content-edit.d.ts.map +1 -0
  13. package/lib/actions/hide-loader.d.ts +5 -0
  14. package/lib/actions/hide-loader.d.ts.map +1 -0
  15. package/lib/actions/index.d.ts +40 -0
  16. package/lib/actions/index.d.ts.map +1 -0
  17. package/lib/actions/redo.d.ts +5 -0
  18. package/lib/actions/redo.d.ts.map +1 -0
  19. package/lib/actions/remove-annotations.d.ts +9 -0
  20. package/lib/actions/remove-annotations.d.ts.map +1 -0
  21. package/lib/actions/reset.d.ts +8 -0
  22. package/lib/actions/reset.d.ts.map +1 -0
  23. package/lib/actions/select-annotation.d.ts +6 -0
  24. package/lib/actions/select-annotation.d.ts.map +1 -0
  25. package/lib/actions/select-tab.d.ts +6 -0
  26. package/lib/actions/select-tab.d.ts.map +1 -0
  27. package/lib/actions/select-tool.d.ts +9 -0
  28. package/lib/actions/select-tool.d.ts.map +1 -0
  29. package/lib/actions/set-annotation.d.ts +10 -0
  30. package/lib/actions/set-annotation.d.ts.map +1 -0
  31. package/lib/actions/set-canvas-size.d.ts +6 -0
  32. package/lib/actions/set-canvas-size.d.ts.map +1 -0
  33. package/lib/actions/set-crop.d.ts +9 -0
  34. package/lib/actions/set-crop.d.ts.map +1 -0
  35. package/lib/actions/set-feedback.d.ts +6 -0
  36. package/lib/actions/set-feedback.d.ts.map +1 -0
  37. package/lib/actions/set-finetune.d.ts +11 -0
  38. package/lib/actions/set-finetune.d.ts.map +1 -0
  39. package/lib/actions/set-latest-color.d.ts +6 -0
  40. package/lib/actions/set-latest-color.d.ts.map +1 -0
  41. package/lib/actions/set-original-image.d.ts +6 -0
  42. package/lib/actions/set-original-image.d.ts.map +1 -0
  43. package/lib/actions/set-resize.d.ts +9 -0
  44. package/lib/actions/set-resize.d.ts.map +1 -0
  45. package/lib/actions/set-saved.d.ts +5 -0
  46. package/lib/actions/set-saved.d.ts.map +1 -0
  47. package/lib/actions/set-saving.d.ts +6 -0
  48. package/lib/actions/set-saving.d.ts.map +1 -0
  49. package/lib/actions/set-show-tabs-menu.d.ts +8 -0
  50. package/lib/actions/set-show-tabs-menu.d.ts.map +1 -0
  51. package/lib/actions/set-shown-image-dimensions.d.ts +13 -0
  52. package/lib/actions/set-shown-image-dimensions.d.ts.map +1 -0
  53. package/lib/actions/show-loader.d.ts +5 -0
  54. package/lib/actions/show-loader.d.ts.map +1 -0
  55. package/lib/actions/toggle-flip.d.ts +9 -0
  56. package/lib/actions/toggle-flip.d.ts.map +1 -0
  57. package/lib/actions/toggle-flip.js +1 -1
  58. package/lib/actions/toggle-original-image-display.d.ts +8 -0
  59. package/lib/actions/toggle-original-image-display.d.ts.map +1 -0
  60. package/lib/actions/undo.d.ts +5 -0
  61. package/lib/actions/undo.d.ts.map +1 -0
  62. package/lib/actions/update-state.d.ts +7 -0
  63. package/lib/actions/update-state.d.ts.map +1 -0
  64. package/lib/actions/zoom-canvas.d.ts +10 -0
  65. package/lib/actions/zoom-canvas.d.ts.map +1 -0
  66. package/lib/components/app/index.d.ts +3 -0
  67. package/lib/components/app/index.d.ts.map +1 -0
  68. package/lib/components/app/index.js +1 -1
  69. package/lib/components/assembly-point/index.d.ts +9 -0
  70. package/lib/components/assembly-point/index.d.ts.map +1 -0
  71. package/lib/components/assembly-point/index.js +1 -1
  72. package/lib/components/common/annotation-options/annotation-options.constants.d.ts +9 -0
  73. package/lib/components/common/annotation-options/annotation-options.constants.d.ts.map +1 -0
  74. package/lib/components/common/annotation-options/index.d.ts +21 -0
  75. package/lib/components/common/annotation-options/index.d.ts.map +1 -0
  76. package/lib/components/common/annotation-options/index.js +1 -1
  77. package/lib/components/common/annotation-options/opacity-field.d.ts +10 -0
  78. package/lib/components/common/annotation-options/opacity-field.d.ts.map +1 -0
  79. package/lib/components/common/annotation-options/opacity-field.js +1 -1
  80. package/lib/components/common/annotation-options/position-fields.d.ts +8 -0
  81. package/lib/components/common/annotation-options/position-fields.d.ts.map +1 -0
  82. package/lib/components/common/annotation-options/shadow-fields.d.ts +9 -0
  83. package/lib/components/common/annotation-options/shadow-fields.d.ts.map +1 -0
  84. package/lib/components/common/annotation-options/shadow-fields.js +1 -1
  85. package/lib/components/common/annotation-options/stroke-fields.d.ts +9 -0
  86. package/lib/components/common/annotation-options/stroke-fields.d.ts.map +1 -0
  87. package/lib/components/common/button-with-menu/index.d.ts +16 -0
  88. package/lib/components/common/button-with-menu/index.d.ts.map +1 -0
  89. package/lib/components/common/color-input/index.d.ts +8 -0
  90. package/lib/components/common/color-input/index.d.ts.map +1 -0
  91. package/lib/components/common/color-input/index.js +1 -1
  92. package/lib/components/common/color-picker-modal/index.d.ts +10 -0
  93. package/lib/components/common/color-picker-modal/index.d.ts.map +1 -0
  94. package/lib/components/common/hidden-upload-input/index.d.ts +3 -0
  95. package/lib/components/common/hidden-upload-input/index.d.ts.map +1 -0
  96. package/lib/components/common/icon-wrapper/index.d.ts +16 -0
  97. package/lib/components/common/icon-wrapper/index.d.ts.map +1 -0
  98. package/lib/components/common/image-preview-tile/index.d.ts +14 -0
  99. package/lib/components/common/image-preview-tile/index.d.ts.map +1 -0
  100. package/lib/components/common/slider/index.d.ts +12 -0
  101. package/lib/components/common/slider/index.d.ts.map +1 -0
  102. package/lib/components/feedback-popup/index.d.ts +8 -0
  103. package/lib/components/feedback-popup/index.d.ts.map +1 -0
  104. package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts +11 -0
  105. package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts.map +1 -0
  106. package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts +15 -0
  107. package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts.map +1 -0
  108. package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts +14 -0
  109. package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts.map +1 -0
  110. package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts +14 -0
  111. package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts.map +1 -0
  112. package/lib/components/layers/design-layer/annotation-nodes/index.d.ts +3 -0
  113. package/lib/components/layers/design-layer/annotation-nodes/index.d.ts.map +1 -0
  114. package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts +12 -0
  115. package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts.map +1 -0
  116. package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts +11 -0
  117. package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts.map +1 -0
  118. package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts +15 -0
  119. package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts.map +1 -0
  120. package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts +16 -0
  121. package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts.map +1 -0
  122. package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts +21 -0
  123. package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts.map +1 -0
  124. package/lib/components/layers/design-layer/index.d.ts +3 -0
  125. package/lib/components/layers/design-layer/index.d.ts.map +1 -0
  126. package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts +45 -0
  127. package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts.map +1 -0
  128. package/lib/components/layers/design-layer/preview-group.d.ts +3 -0
  129. package/lib/components/layers/design-layer/preview-group.d.ts.map +1 -0
  130. package/lib/components/layers/index.d.ts +3 -0
  131. package/lib/components/layers/index.d.ts.map +1 -0
  132. package/lib/components/layers/transformers-layer/crop-transformer.d.ts +3 -0
  133. package/lib/components/layers/transformers-layer/crop-transformer.d.ts.map +1 -0
  134. package/lib/components/layers/transformers-layer/crop-transformer.js +1 -1
  135. package/lib/components/layers/transformers-layer/index.d.ts +3 -0
  136. package/lib/components/layers/transformers-layer/index.d.ts.map +1 -0
  137. package/lib/components/layers/transformers-layer/nodes-transformer.d.ts +3 -0
  138. package/lib/components/layers/transformers-layer/nodes-transformer.d.ts.map +1 -0
  139. package/lib/components/layers/transformers-layer/nodes-transformer.js +1 -1
  140. package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts +42 -0
  141. package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts.map +1 -0
  142. package/lib/components/main-canvas/canvas-node.d.ts +6 -0
  143. package/lib/components/main-canvas/canvas-node.d.ts.map +1 -0
  144. package/lib/components/main-canvas/canvas-node.js +1 -1
  145. package/lib/components/main-canvas/index.d.ts +3 -0
  146. package/lib/components/main-canvas/index.d.ts.map +1 -0
  147. package/lib/components/main-canvas/index.js +1 -1
  148. package/lib/components/main-canvas/touch-zooming-events.d.ts +11 -0
  149. package/lib/components/main-canvas/touch-zooming-events.d.ts.map +1 -0
  150. package/lib/components/node-controls/index.d.ts +3 -0
  151. package/lib/components/node-controls/index.d.ts.map +1 -0
  152. package/lib/components/node-controls/index.js +1 -1
  153. package/lib/components/tabs/index.d.ts +6 -0
  154. package/lib/components/tabs/index.d.ts.map +1 -0
  155. package/lib/components/tabs/index.js +1 -1
  156. package/lib/components/tabs/tabs.constants.d.ts +9 -0
  157. package/lib/components/tabs/tabs.constants.d.ts.map +1 -0
  158. package/lib/components/tabs/tabs.constants.js +1 -1
  159. package/lib/components/tabs-drawer/index.d.ts +6 -0
  160. package/lib/components/tabs-drawer/index.d.ts.map +1 -0
  161. package/lib/components/tabs-drawer/index.js +1 -1
  162. package/lib/components/tools/arrow/arrow-button.d.ts +8 -0
  163. package/lib/components/tools/arrow/arrow-button.d.ts.map +1 -0
  164. package/lib/components/tools/arrow/arrow-options.d.ts +4 -0
  165. package/lib/components/tools/arrow/arrow-options.d.ts.map +1 -0
  166. package/lib/components/tools/arrow/arrow-options.js +1 -1
  167. package/lib/components/tools/arrow/index.d.ts +3 -0
  168. package/lib/components/tools/arrow/index.d.ts.map +1 -0
  169. package/lib/components/tools/blur/blur-options.d.ts +6 -0
  170. package/lib/components/tools/blur/blur-options.d.ts.map +1 -0
  171. package/lib/components/tools/blur/blur-options.js +1 -1
  172. package/lib/components/tools/blur/blur.d.ts +8 -0
  173. package/lib/components/tools/blur/blur.d.ts.map +1 -0
  174. package/lib/components/tools/blur/blur.js +1 -1
  175. package/lib/components/tools/blur/index.d.ts +3 -0
  176. package/lib/components/tools/blur/index.d.ts.map +1 -0
  177. package/lib/components/tools/brightness/brightness-options.d.ts +6 -0
  178. package/lib/components/tools/brightness/brightness-options.d.ts.map +1 -0
  179. package/lib/components/tools/brightness/brightness.d.ts +8 -0
  180. package/lib/components/tools/brightness/brightness.d.ts.map +1 -0
  181. package/lib/components/tools/brightness/brightness.js +1 -1
  182. package/lib/components/tools/brightness/index.d.ts +3 -0
  183. package/lib/components/tools/brightness/index.d.ts.map +1 -0
  184. package/lib/components/tools/contrast/contrast-options.d.ts +6 -0
  185. package/lib/components/tools/contrast/contrast-options.d.ts.map +1 -0
  186. package/lib/components/tools/contrast/contrast.d.ts +8 -0
  187. package/lib/components/tools/contrast/contrast.d.ts.map +1 -0
  188. package/lib/components/tools/contrast/contrast.js +1 -1
  189. package/lib/components/tools/contrast/index.d.ts +3 -0
  190. package/lib/components/tools/contrast/index.d.ts.map +1 -0
  191. package/lib/components/tools/crop/crop.constants.d.ts +15 -0
  192. package/lib/components/tools/crop/crop.constants.d.ts.map +1 -0
  193. package/lib/components/tools/crop/crop.constants.js +1 -1
  194. package/lib/components/tools/crop/crop.d.ts +7 -0
  195. package/lib/components/tools/crop/crop.d.ts.map +1 -0
  196. package/lib/components/tools/crop/crop.js +1 -1
  197. package/lib/components/tools/crop/index.d.ts +2 -0
  198. package/lib/components/tools/crop/index.d.ts.map +1 -0
  199. package/lib/components/tools/ellipse/ellipse-button.d.ts +8 -0
  200. package/lib/components/tools/ellipse/ellipse-button.d.ts.map +1 -0
  201. package/lib/components/tools/ellipse/ellipse-options.d.ts +4 -0
  202. package/lib/components/tools/ellipse/ellipse-options.d.ts.map +1 -0
  203. package/lib/components/tools/ellipse/ellipse-options.js +1 -1
  204. package/lib/components/tools/ellipse/index.d.ts +3 -0
  205. package/lib/components/tools/ellipse/index.d.ts.map +1 -0
  206. package/lib/components/tools/filters/filter-item.d.ts +10 -0
  207. package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
  208. package/lib/components/tools/filters/filters.constants.d.ts +8 -0
  209. package/lib/components/tools/filters/filters.constants.d.ts.map +1 -0
  210. package/lib/components/tools/filters/filters.d.ts +3 -0
  211. package/lib/components/tools/filters/filters.d.ts.map +1 -0
  212. package/lib/components/tools/filters/index.d.ts +2 -0
  213. package/lib/components/tools/filters/index.d.ts.map +1 -0
  214. package/lib/components/tools/flip/flip-x.d.ts +8 -0
  215. package/lib/components/tools/flip/flip-x.d.ts.map +1 -0
  216. package/lib/components/tools/flip/flip-x.js +1 -1
  217. package/lib/components/tools/flip/flip-y.d.ts +8 -0
  218. package/lib/components/tools/flip/flip-y.d.ts.map +1 -0
  219. package/lib/components/tools/flip/flip-y.js +1 -1
  220. package/lib/components/tools/flip/index.d.ts +3 -0
  221. package/lib/components/tools/flip/index.d.ts.map +1 -0
  222. package/lib/components/tools/hsv/hsv.d.ts +8 -0
  223. package/lib/components/tools/hsv/hsv.d.ts.map +1 -0
  224. package/lib/components/tools/hsv/hsvoptions.d.ts +6 -0
  225. package/lib/components/tools/hsv/hsvoptions.d.ts.map +1 -0
  226. package/lib/components/tools/hsv/index.d.ts +3 -0
  227. package/lib/components/tools/hsv/index.d.ts.map +1 -0
  228. package/lib/components/tools/image/image-button.d.ts +8 -0
  229. package/lib/components/tools/image/image-button.d.ts.map +1 -0
  230. package/lib/components/tools/image/image-controls.d.ts +13 -0
  231. package/lib/components/tools/image/image-controls.d.ts.map +1 -0
  232. package/lib/components/tools/image/image-controls.js +1 -1
  233. package/lib/components/tools/image/image-options.d.ts +3 -0
  234. package/lib/components/tools/image/image-options.d.ts.map +1 -0
  235. package/lib/components/tools/image/image-options.js +1 -1
  236. package/lib/components/tools/image/images-gallery.d.ts +14 -0
  237. package/lib/components/tools/image/images-gallery.d.ts.map +1 -0
  238. package/lib/components/tools/image/index.d.ts +3 -0
  239. package/lib/components/tools/image/index.d.ts.map +1 -0
  240. package/lib/components/tools/line/index.d.ts +3 -0
  241. package/lib/components/tools/line/index.d.ts.map +1 -0
  242. package/lib/components/tools/line/line-button.d.ts +8 -0
  243. package/lib/components/tools/line/line-button.d.ts.map +1 -0
  244. package/lib/components/tools/line/line-options.d.ts +4 -0
  245. package/lib/components/tools/line/line-options.d.ts.map +1 -0
  246. package/lib/components/tools/line/line-options.js +1 -1
  247. package/lib/components/tools/pen/index.d.ts +3 -0
  248. package/lib/components/tools/pen/index.d.ts.map +1 -0
  249. package/lib/components/tools/pen/pen-button.d.ts +8 -0
  250. package/lib/components/tools/pen/pen-button.d.ts.map +1 -0
  251. package/lib/components/tools/pen/pen-options.d.ts +3 -0
  252. package/lib/components/tools/pen/pen-options.d.ts.map +1 -0
  253. package/lib/components/tools/pen/pen-options.js +1 -1
  254. package/lib/components/tools/polygon/index.d.ts +3 -0
  255. package/lib/components/tools/polygon/index.d.ts.map +1 -0
  256. package/lib/components/tools/polygon/polygon-button.d.ts +8 -0
  257. package/lib/components/tools/polygon/polygon-button.d.ts.map +1 -0
  258. package/lib/components/tools/polygon/polygon-options.d.ts +4 -0
  259. package/lib/components/tools/polygon/polygon-options.d.ts.map +1 -0
  260. package/lib/components/tools/polygon/polygon-options.js +1 -1
  261. package/lib/components/tools/polygon/polygon-sides-field.d.ts +9 -0
  262. package/lib/components/tools/polygon/polygon-sides-field.d.ts.map +1 -0
  263. package/lib/components/tools/polygon/polygon.constants.d.ts +12 -0
  264. package/lib/components/tools/polygon/polygon.constants.d.ts.map +1 -0
  265. package/lib/components/tools/rect/index.d.ts +3 -0
  266. package/lib/components/tools/rect/index.d.ts.map +1 -0
  267. package/lib/components/tools/rect/rect-button.d.ts +8 -0
  268. package/lib/components/tools/rect/rect-button.d.ts.map +1 -0
  269. package/lib/components/tools/rect/rect-button.js +1 -1
  270. package/lib/components/tools/rect/rect-corner-field.d.ts +9 -0
  271. package/lib/components/tools/rect/rect-corner-field.d.ts.map +1 -0
  272. package/lib/components/tools/rect/rect-options.d.ts +4 -0
  273. package/lib/components/tools/rect/rect-options.d.ts.map +1 -0
  274. package/lib/components/tools/rect/rect-options.js +1 -1
  275. package/lib/components/tools/rect/rect.constants.d.ts +12 -0
  276. package/lib/components/tools/rect/rect.constants.d.ts.map +1 -0
  277. package/lib/components/tools/resize/index.d.ts +2 -0
  278. package/lib/components/tools/resize/index.d.ts.map +1 -0
  279. package/lib/components/tools/resize/resize.d.ts +13 -0
  280. package/lib/components/tools/resize/resize.d.ts.map +1 -0
  281. package/lib/components/tools/rotate/index.d.ts +3 -0
  282. package/lib/components/tools/rotate/index.d.ts.map +1 -0
  283. package/lib/components/tools/rotate/rotate-button.d.ts +8 -0
  284. package/lib/components/tools/rotate/rotate-button.d.ts.map +1 -0
  285. package/lib/components/tools/rotate/rotate-options.d.ts +3 -0
  286. package/lib/components/tools/rotate/rotate-options.d.ts.map +1 -0
  287. package/lib/components/tools/rotate/rotate-options.js +1 -1
  288. package/lib/components/tools/text/index.d.ts +3 -0
  289. package/lib/components/tools/text/index.d.ts.map +1 -0
  290. package/lib/components/tools/text/text-button.d.ts +8 -0
  291. package/lib/components/tools/text/text-button.d.ts.map +1 -0
  292. package/lib/components/tools/text/text-options/handle-text-change-area.d.ts +4 -0
  293. package/lib/components/tools/text/text-options/handle-text-change-area.d.ts.map +1 -0
  294. package/lib/components/tools/text/text-options/index.d.ts +4 -0
  295. package/lib/components/tools/text/text-options/index.d.ts.map +1 -0
  296. package/lib/components/tools/text/text-options/text-alignment-fields.d.ts +9 -0
  297. package/lib/components/tools/text/text-options/text-alignment-fields.d.ts.map +1 -0
  298. package/lib/components/tools/text/text-options/text-alignment-fields.js +1 -1
  299. package/lib/components/tools/text/text-options/text-controls.d.ts +12 -0
  300. package/lib/components/tools/text/text-options/text-controls.d.ts.map +1 -0
  301. package/lib/components/tools/text/text-options/text-controls.js +1 -1
  302. package/lib/components/tools/text/text-options/text-options.constants.d.ts +14 -0
  303. package/lib/components/tools/text/text-options/text-options.constants.d.ts.map +1 -0
  304. package/lib/components/tools/text/text-options/text-spacings-fields.d.ts +10 -0
  305. package/lib/components/tools/text/text-options/text-spacings-fields.d.ts.map +1 -0
  306. package/lib/components/tools/tools.constants.d.ts +9 -0
  307. package/lib/components/tools/tools.constants.d.ts.map +1 -0
  308. package/lib/components/tools/tools.constants.js +1 -1
  309. package/lib/components/tools/warmth/index.d.ts +3 -0
  310. package/lib/components/tools/warmth/index.d.ts.map +1 -0
  311. package/lib/components/tools/warmth/warmth-options.d.ts +7 -0
  312. package/lib/components/tools/warmth/warmth-options.d.ts.map +1 -0
  313. package/lib/components/tools/warmth/warmth.d.ts +8 -0
  314. package/lib/components/tools/warmth/warmth.d.ts.map +1 -0
  315. package/lib/components/tools/watermark/index.d.ts +2 -0
  316. package/lib/components/tools/watermark/index.d.ts.map +1 -0
  317. package/lib/components/tools/watermark/watermark-padding.d.ts +8 -0
  318. package/lib/components/tools/watermark/watermark-padding.d.ts.map +1 -0
  319. package/lib/components/tools/watermark/watermark.d.ts +3 -0
  320. package/lib/components/tools/watermark/watermark.d.ts.map +1 -0
  321. package/lib/components/tools/watermark/watermark.js +1 -1
  322. package/lib/components/tools/watermark/watermarks-gallery.d.ts +7 -0
  323. package/lib/components/tools/watermark/watermarks-gallery.d.ts.map +1 -0
  324. package/lib/components/tools/watermark/watermarks-gallery.js +1 -1
  325. package/lib/components/tools-bar/index.d.ts +3 -0
  326. package/lib/components/tools-bar/index.d.ts.map +1 -0
  327. package/lib/components/tools-bar/index.js +1 -1
  328. package/lib/components/tools-bar/tools-bar-item-button.d.ts +23 -0
  329. package/lib/components/tools-bar/tools-bar-item-button.d.ts.map +1 -0
  330. package/lib/components/tools-bar/tools-bar-item-button.js +1 -1
  331. package/lib/components/topbar/canvas-zooming.d.ts +3 -0
  332. package/lib/components/topbar/canvas-zooming.d.ts.map +1 -0
  333. package/lib/components/topbar/confirmation-modal.d.ts +8 -0
  334. package/lib/components/topbar/confirmation-modal.d.ts.map +1 -0
  335. package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts +3 -0
  336. package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts.map +1 -0
  337. package/lib/components/topbar/index.d.ts +7 -0
  338. package/lib/components/topbar/index.d.ts.map +1 -0
  339. package/lib/components/topbar/index.js +1 -1
  340. package/lib/components/topbar/redo-button.d.ts +3 -0
  341. package/lib/components/topbar/redo-button.d.ts.map +1 -0
  342. package/lib/components/topbar/reset-button.d.ts +3 -0
  343. package/lib/components/topbar/reset-button.d.ts.map +1 -0
  344. package/lib/components/topbar/save-button.d.ts +3 -0
  345. package/lib/components/topbar/save-button.d.ts.map +1 -0
  346. package/lib/components/topbar/save-button.js +1 -1
  347. package/lib/components/topbar/topbar.constants.d.ts +8 -0
  348. package/lib/components/topbar/topbar.constants.d.ts.map +1 -0
  349. package/lib/components/topbar/undo-button.d.ts +3 -0
  350. package/lib/components/topbar/undo-button.d.ts.map +1 -0
  351. package/lib/context/app-context.d.ts +14 -0
  352. package/lib/context/app-context.d.ts.map +1 -0
  353. package/lib/context/app-provider-overriden-value.d.ts +11 -0
  354. package/lib/context/app-provider-overriden-value.d.ts.map +1 -0
  355. package/lib/context/app-provider.d.ts +10 -0
  356. package/lib/context/app-provider.d.ts.map +1 -0
  357. package/lib/context/app-provider.js +1 -1
  358. package/lib/context/app-reducer.d.ts +5 -0
  359. package/lib/context/app-reducer.d.ts.map +1 -0
  360. package/lib/context/default-config.d.ts +4 -0
  361. package/lib/context/default-config.d.ts.map +1 -0
  362. package/lib/context/default-config.js +1 -1
  363. package/lib/context/default-translations.d.ts +3 -0
  364. package/lib/context/default-translations.d.ts.map +1 -0
  365. package/lib/context/default-translations.js +1 -1
  366. package/lib/context/get-initial-app-state.d.ts +5 -0
  367. package/lib/context/get-initial-app-state.d.ts.map +1 -0
  368. package/lib/context/get-initial-app-state.js +1 -1
  369. package/lib/context/index.d.ts +5 -0
  370. package/lib/context/index.d.ts.map +1 -0
  371. package/lib/custom/filters/aden.d.ts +14 -0
  372. package/lib/custom/filters/aden.d.ts.map +1 -0
  373. package/lib/custom/filters/amaro.d.ts +14 -0
  374. package/lib/custom/filters/amaro.d.ts.map +1 -0
  375. package/lib/custom/filters/ashby.d.ts +14 -0
  376. package/lib/custom/filters/ashby.d.ts.map +1 -0
  377. package/lib/custom/filters/base-filters.d.ts +14 -0
  378. package/lib/custom/filters/base-filters.d.ts.map +1 -0
  379. package/lib/custom/filters/black-and-white.d.ts +14 -0
  380. package/lib/custom/filters/black-and-white.d.ts.map +1 -0
  381. package/lib/custom/filters/brannan.d.ts +14 -0
  382. package/lib/custom/filters/brannan.d.ts.map +1 -0
  383. package/lib/custom/filters/brooklyn.d.ts +14 -0
  384. package/lib/custom/filters/brooklyn.d.ts.map +1 -0
  385. package/lib/custom/filters/charmes.d.ts +14 -0
  386. package/lib/custom/filters/charmes.d.ts.map +1 -0
  387. package/lib/custom/filters/clarendon.d.ts +14 -0
  388. package/lib/custom/filters/clarendon.d.ts.map +1 -0
  389. package/lib/custom/filters/crema.d.ts +14 -0
  390. package/lib/custom/filters/crema.d.ts.map +1 -0
  391. package/lib/custom/filters/dogpatch.d.ts +14 -0
  392. package/lib/custom/filters/dogpatch.d.ts.map +1 -0
  393. package/lib/custom/filters/earlybird.d.ts +14 -0
  394. package/lib/custom/filters/earlybird.d.ts.map +1 -0
  395. package/lib/custom/filters/gingham.d.ts +14 -0
  396. package/lib/custom/filters/gingham.d.ts.map +1 -0
  397. package/lib/custom/filters/ginza.d.ts +14 -0
  398. package/lib/custom/filters/ginza.d.ts.map +1 -0
  399. package/lib/custom/filters/hefe.d.ts +14 -0
  400. package/lib/custom/filters/hefe.d.ts.map +1 -0
  401. package/lib/custom/filters/helena.d.ts +14 -0
  402. package/lib/custom/filters/helena.d.ts.map +1 -0
  403. package/lib/custom/filters/hudson.d.ts +14 -0
  404. package/lib/custom/filters/hudson.d.ts.map +1 -0
  405. package/lib/custom/filters/index.d.ts +41 -0
  406. package/lib/custom/filters/index.d.ts.map +1 -0
  407. package/lib/custom/filters/juno.d.ts +14 -0
  408. package/lib/custom/filters/juno.d.ts.map +1 -0
  409. package/lib/custom/filters/kelvin.d.ts +14 -0
  410. package/lib/custom/filters/kelvin.d.ts.map +1 -0
  411. package/lib/custom/filters/lark.d.ts +14 -0
  412. package/lib/custom/filters/lark.d.ts.map +1 -0
  413. package/lib/custom/filters/lo-fi.d.ts +14 -0
  414. package/lib/custom/filters/lo-fi.d.ts.map +1 -0
  415. package/lib/custom/filters/ludwig.d.ts +14 -0
  416. package/lib/custom/filters/ludwig.d.ts.map +1 -0
  417. package/lib/custom/filters/maven.d.ts +14 -0
  418. package/lib/custom/filters/maven.d.ts.map +1 -0
  419. package/lib/custom/filters/mayfair.d.ts +14 -0
  420. package/lib/custom/filters/mayfair.d.ts.map +1 -0
  421. package/lib/custom/filters/moon.d.ts +14 -0
  422. package/lib/custom/filters/moon.d.ts.map +1 -0
  423. package/lib/custom/filters/nashville.d.ts +14 -0
  424. package/lib/custom/filters/nashville.d.ts.map +1 -0
  425. package/lib/custom/filters/ninteen-seventy-seven.d.ts +14 -0
  426. package/lib/custom/filters/ninteen-seventy-seven.d.ts.map +1 -0
  427. package/lib/custom/filters/perpetua.d.ts +14 -0
  428. package/lib/custom/filters/perpetua.d.ts.map +1 -0
  429. package/lib/custom/filters/reyes.d.ts +14 -0
  430. package/lib/custom/filters/reyes.d.ts.map +1 -0
  431. package/lib/custom/filters/rise.d.ts +14 -0
  432. package/lib/custom/filters/rise.d.ts.map +1 -0
  433. package/lib/custom/filters/sierra.d.ts +14 -0
  434. package/lib/custom/filters/sierra.d.ts.map +1 -0
  435. package/lib/custom/filters/skyline.d.ts +14 -0
  436. package/lib/custom/filters/skyline.d.ts.map +1 -0
  437. package/lib/custom/filters/slumber.d.ts +14 -0
  438. package/lib/custom/filters/slumber.d.ts.map +1 -0
  439. package/lib/custom/filters/stinson.d.ts +14 -0
  440. package/lib/custom/filters/stinson.d.ts.map +1 -0
  441. package/lib/custom/filters/sutro.d.ts +14 -0
  442. package/lib/custom/filters/sutro.d.ts.map +1 -0
  443. package/lib/custom/filters/toaster.d.ts +14 -0
  444. package/lib/custom/filters/toaster.d.ts.map +1 -0
  445. package/lib/custom/filters/valencia.d.ts +14 -0
  446. package/lib/custom/filters/valencia.d.ts.map +1 -0
  447. package/lib/custom/filters/vesper.d.ts +14 -0
  448. package/lib/custom/filters/vesper.d.ts.map +1 -0
  449. package/lib/custom/filters/walden.d.ts +14 -0
  450. package/lib/custom/filters/walden.d.ts.map +1 -0
  451. package/lib/custom/filters/willow.d.ts +14 -0
  452. package/lib/custom/filters/willow.d.ts.map +1 -0
  453. package/lib/custom/filters/xpro2.d.ts +14 -0
  454. package/lib/custom/filters/xpro2.d.ts.map +1 -0
  455. package/lib/custom/finetunes/custom-threshold.d.ts +15 -0
  456. package/lib/custom/finetunes/custom-threshold.d.ts.map +1 -0
  457. package/lib/custom/finetunes/index.d.ts +3 -0
  458. package/lib/custom/finetunes/index.d.ts.map +1 -0
  459. package/lib/custom/finetunes/warmth.d.ts +17 -0
  460. package/lib/custom/finetunes/warmth.d.ts.map +1 -0
  461. package/lib/demo/app.d.ts +6 -0
  462. package/lib/demo/app.d.ts.map +1 -0
  463. package/lib/demo/app.js +1 -0
  464. package/lib/demo/index.d.ts +2 -0
  465. package/lib/demo/index.d.ts.map +1 -0
  466. package/lib/demo/index.js +1 -0
  467. package/lib/hooks/index.d.ts +13 -0
  468. package/lib/hooks/index.d.ts.map +1 -0
  469. package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts +19 -0
  470. package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts.map +1 -0
  471. package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts +25 -0
  472. package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts.map +1 -0
  473. package/lib/hooks/use-annotation/index.d.ts +74 -0
  474. package/lib/hooks/use-annotation/index.d.ts.map +1 -0
  475. package/lib/hooks/use-annotation/index.js +1 -1
  476. package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts +3 -0
  477. package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts.map +1 -0
  478. package/lib/hooks/use-annotation-events.d.ts +11 -0
  479. package/lib/hooks/use-annotation-events.d.ts.map +1 -0
  480. package/lib/hooks/use-annotation-events.js +1 -1
  481. package/lib/hooks/use-app-reducer.d.ts +13 -0
  482. package/lib/hooks/use-app-reducer.d.ts.map +1 -0
  483. package/lib/hooks/use-debounced-callback.d.ts +5 -0
  484. package/lib/hooks/use-debounced-callback.d.ts.map +1 -0
  485. package/lib/hooks/use-drag.d.ts +8 -0
  486. package/lib/hooks/use-drag.d.ts.map +1 -0
  487. package/lib/hooks/use-filter.d.ts +4 -0
  488. package/lib/hooks/use-filter.d.ts.map +1 -0
  489. package/lib/hooks/use-finetune.d.ts +5 -0
  490. package/lib/hooks/use-finetune.d.ts.map +1 -0
  491. package/lib/hooks/use-phone-screen.d.ts +3 -0
  492. package/lib/hooks/use-phone-screen.d.ts.map +1 -0
  493. package/lib/hooks/use-popover.d.ts +11 -0
  494. package/lib/hooks/use-popover.d.ts.map +1 -0
  495. package/lib/hooks/use-resize-observer.d.ts +12 -0
  496. package/lib/hooks/use-resize-observer.d.ts.map +1 -0
  497. package/lib/hooks/use-store.d.ts +5 -0
  498. package/lib/hooks/use-store.d.ts.map +1 -0
  499. package/lib/hooks/use-store.js +1 -1
  500. package/lib/hooks/use-transformed-img-data.d.ts +20 -0
  501. package/lib/hooks/use-transformed-img-data.d.ts.map +1 -0
  502. package/lib/hooks/use-transformed-img-data.js +1 -1
  503. package/lib/hooks/use-update-effect.d.ts +5 -0
  504. package/lib/hooks/use-update-effect.d.ts.map +1 -0
  505. package/lib/index.d.ts +6 -345
  506. package/lib/index.d.ts.map +1 -0
  507. package/lib/index.js +1 -1
  508. package/lib/types/actions.d.ts +204 -0
  509. package/lib/types/actions.d.ts.map +1 -0
  510. package/lib/types/annotations.d.ts +181 -0
  511. package/lib/types/annotations.d.ts.map +1 -0
  512. package/lib/types/annotations.js +1 -1
  513. package/lib/types/common.d.ts +31 -0
  514. package/lib/types/common.d.ts.map +1 -0
  515. package/lib/types/config.d.ts +144 -0
  516. package/lib/types/config.d.ts.map +1 -0
  517. package/lib/types/index.d.ts +6 -0
  518. package/lib/types/index.d.ts.map +1 -0
  519. package/lib/types/state.d.ts +105 -0
  520. package/lib/types/state.d.ts.map +1 -0
  521. package/lib/utils/assign-finetune-names-to-konva.d.ts +3 -0
  522. package/lib/utils/assign-finetune-names-to-konva.d.ts.map +1 -0
  523. package/lib/utils/calculate-zoom-data.d.ts +9 -0
  524. package/lib/utils/calculate-zoom-data.d.ts.map +1 -0
  525. package/lib/utils/compare-ratios.d.ts +3 -0
  526. package/lib/utils/compare-ratios.d.ts.map +1 -0
  527. package/lib/utils/constants.d.ts +85 -0
  528. package/lib/utils/constants.d.ts.map +1 -0
  529. package/lib/utils/constants.js +1 -1
  530. package/lib/utils/crop-image.d.ts +10 -0
  531. package/lib/utils/crop-image.d.ts.map +1 -0
  532. package/lib/utils/debounce.d.ts +3 -0
  533. package/lib/utils/debounce.d.ts.map +1 -0
  534. package/lib/utils/deep-merge.d.ts +3 -0
  535. package/lib/utils/deep-merge.d.ts.map +1 -0
  536. package/lib/utils/deep-merge.js +1 -1
  537. package/lib/utils/extract-current-design-state.d.ts +11 -0
  538. package/lib/utils/extract-current-design-state.d.ts.map +1 -0
  539. package/lib/utils/extract-name-from-url.d.ts +3 -0
  540. package/lib/utils/extract-name-from-url.d.ts.map +1 -0
  541. package/lib/utils/filter-str-to-class.d.ts +4 -0
  542. package/lib/utils/filter-str-to-class.d.ts.map +1 -0
  543. package/lib/utils/finetunes-strs-to-classes.d.ts +4 -0
  544. package/lib/utils/finetunes-strs-to-classes.d.ts.map +1 -0
  545. package/lib/utils/finetunes-strs-to-classes.js +1 -1
  546. package/lib/utils/get-center-rotated-point.d.ts +8 -0
  547. package/lib/utils/get-center-rotated-point.d.ts.map +1 -0
  548. package/lib/utils/get-default-save-quality.d.ts +3 -0
  549. package/lib/utils/get-default-save-quality.d.ts.map +1 -0
  550. package/lib/utils/get-dimensions-minimal-ratio.d.ts +3 -0
  551. package/lib/utils/get-dimensions-minimal-ratio.d.ts.map +1 -0
  552. package/lib/utils/get-elem-document-coords.d.ts +9 -0
  553. package/lib/utils/get-elem-document-coords.d.ts.map +1 -0
  554. package/lib/utils/get-file-full-name.d.ts +8 -0
  555. package/lib/utils/get-file-full-name.d.ts.map +1 -0
  556. package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts +21 -0
  557. package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts.map +1 -0
  558. package/lib/utils/get-pointer-offset-position-bounded-to-object.js +1 -1
  559. package/lib/utils/get-proper-dimensions.d.ts +11 -0
  560. package/lib/utils/get-proper-dimensions.d.ts.map +1 -0
  561. package/lib/utils/get-proper-image-to-canvas-spacing.d.ts +3 -0
  562. package/lib/utils/get-proper-image-to-canvas-spacing.d.ts.map +1 -0
  563. package/lib/utils/get-scroll-offset.d.ts +7 -0
  564. package/lib/utils/get-scroll-offset.d.ts.map +1 -0
  565. package/lib/utils/get-size-after-rotation.d.ts +9 -0
  566. package/lib/utils/get-size-after-rotation.d.ts.map +1 -0
  567. package/lib/utils/get-zoom-fit-factor.d.ts +4 -0
  568. package/lib/utils/get-zoom-fit-factor.d.ts.map +1 -0
  569. package/lib/utils/image-to-base64.d.ts +3 -0
  570. package/lib/utils/image-to-base64.d.ts.map +1 -0
  571. package/lib/utils/is-default-zero-values-only.d.ts +3 -0
  572. package/lib/utils/is-default-zero-values-only.d.ts.map +1 -0
  573. package/lib/utils/is-same-image.d.ts +3 -0
  574. package/lib/utils/is-same-image.d.ts.map +1 -0
  575. package/lib/utils/is-same-image.js +1 -1
  576. package/lib/utils/load-image.d.ts +3 -0
  577. package/lib/utils/load-image.d.ts.map +1 -0
  578. package/lib/utils/map-crop-box.d.ts +16 -0
  579. package/lib/utils/map-crop-box.d.ts.map +1 -0
  580. package/lib/utils/map-number.d.ts +3 -0
  581. package/lib/utils/map-number.d.ts.map +1 -0
  582. package/lib/utils/map-position-string-to-point.d.ts +8 -0
  583. package/lib/utils/map-position-string-to-point.d.ts.map +1 -0
  584. package/lib/utils/map-position-string-to-point.js +1 -1
  585. package/lib/utils/random-id.d.ts +3 -0
  586. package/lib/utils/random-id.d.ts.map +1 -0
  587. package/lib/utils/restrict-number.d.ts +3 -0
  588. package/lib/utils/restrict-number.d.ts.map +1 -0
  589. package/lib/utils/serialize-design-state.d.ts +27 -0
  590. package/lib/utils/serialize-design-state.d.ts.map +1 -0
  591. package/lib/utils/serialize-design-state.js +1 -0
  592. package/lib/utils/to-precised-float.d.ts +3 -0
  593. package/lib/utils/to-precised-float.d.ts.map +1 -0
  594. package/lib/utils/translator.d.ts +3 -0
  595. package/lib/utils/translator.d.ts.map +1 -0
  596. package/lib/utils/translator.js +1 -1
  597. package/package.json +63 -61
  598. package/lib/components/tools/crop/crop-preset-item.js +0 -1
  599. package/lib/components/tools/crop/crop-presets-option.js +0 -1
  600. package/lib/components/tools-bar/tools-bar-item-options-wrapper.js +0 -1
  601. package/lib/utils/cloudimage-query-to-design-state.js +0 -1
  602. package/lib/utils/get-image-sealing-params.js +0 -1
  603. package/lib/utils/operations-to-cloudimage-url.js +0 -1
  604. package/lib/utils/rgba-to-hexa.js +0 -1
  605. package/lib/utils/sha1.js +0 -1
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Sierra Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Sierra]);
8
+ */
9
+ declare function Sierra(imageData: ImageData): void;
10
+ declare namespace Sierra {
11
+ var filterName: string;
12
+ }
13
+ export default Sierra;
14
+ //# sourceMappingURL=sierra.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sierra.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/sierra.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM1C;kBANQ,MAAM;;;AAUf,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Skyline Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Skyline]);
8
+ */
9
+ declare function Skyline(imageData: ImageData): void;
10
+ declare namespace Skyline {
11
+ var filterName: string;
12
+ }
13
+ export default Skyline;
14
+ //# sourceMappingURL=skyline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skyline.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/skyline.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM3C;kBANQ,OAAO;;;AAUhB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Slumber Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Slumber]);
8
+ */
9
+ declare function Slumber(imageData: ImageData): void;
10
+ declare namespace Slumber {
11
+ var filterName: string;
12
+ }
13
+ export default Slumber;
14
+ //# sourceMappingURL=slumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slumber.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/slumber.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM3C;kBANQ,OAAO;;;AAUhB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Stinson Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Stinson]);
8
+ */
9
+ declare function Stinson(imageData: ImageData): void;
10
+ declare namespace Stinson {
11
+ var filterName: string;
12
+ }
13
+ export default Stinson;
14
+ //# sourceMappingURL=stinson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stinson.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/stinson.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM3C;kBANQ,OAAO;;;AAUhB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Sutro Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Sutro]);
8
+ */
9
+ declare function Sutro(imageData: ImageData): void;
10
+ declare namespace Sutro {
11
+ var filterName: string;
12
+ }
13
+ export default Sutro;
14
+ //# sourceMappingURL=sutro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sutro.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/sutro.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAMzC;kBANQ,KAAK;;;AAUd,eAAe,KAAK,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Toaster Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Toaster]);
8
+ */
9
+ declare function Toaster(imageData: ImageData): void;
10
+ declare namespace Toaster {
11
+ var filterName: string;
12
+ }
13
+ export default Toaster;
14
+ //# sourceMappingURL=toaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/toaster.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM3C;kBANQ,OAAO;;;AAUhB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Valencia Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Valencia]);
8
+ */
9
+ declare function Valencia(imageData: ImageData): void;
10
+ declare namespace Valencia {
11
+ var filterName: string;
12
+ }
13
+ export default Valencia;
14
+ //# sourceMappingURL=valencia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valencia.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/valencia.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAO5C;kBAPQ,QAAQ;;;AAWjB,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Vesper Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Vesper]);
8
+ */
9
+ declare function Vesper(imageData: ImageData): void;
10
+ declare namespace Vesper {
11
+ var filterName: string;
12
+ }
13
+ export default Vesper;
14
+ //# sourceMappingURL=vesper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vesper.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/vesper.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,iBAAS,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAO1C;kBAPQ,MAAM;;;AAWf,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Walden Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Walden]);
8
+ */
9
+ declare function Walden(imageData: ImageData): void;
10
+ declare namespace Walden {
11
+ var filterName: string;
12
+ }
13
+ export default Walden;
14
+ //# sourceMappingURL=walden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walden.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/walden.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,iBAAS,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAM1C;kBANQ,MAAM;;;AAUf,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Willow Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Willow]);
8
+ */
9
+ declare function Willow(imageData: ImageData): void;
10
+ declare namespace Willow {
11
+ var filterName: string;
12
+ }
13
+ export default Willow;
14
+ //# sourceMappingURL=willow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"willow.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/willow.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,iBAAS,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAO1C;kBAPQ,MAAM;;;AAWf,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * XPro2 Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([XPro2]);
8
+ */
9
+ declare function XPro2(imageData: ImageData): void;
10
+ declare namespace XPro2 {
11
+ var filterName: string;
12
+ }
13
+ export default XPro2;
14
+ //# sourceMappingURL=xpro2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xpro2.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/xpro2.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,iBAAS,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAOzC;kBAPQ,KAAK;;;AAWd,eAAe,KAAK,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * CustomThreshold Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([CustomThreshold]);
8
+ * node.threshold(100);
9
+ */
10
+ declare function CustomThreshold(this: any, imageData: ImageData): void;
11
+ declare namespace CustomThreshold {
12
+ var finetuneName: string;
13
+ }
14
+ export default CustomThreshold;
15
+ //# sourceMappingURL=custom-threshold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-threshold.d.ts","sourceRoot":"","sources":["../../../src/custom/finetunes/custom-threshold.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAa9D;kBAbQ,eAAe;;;AAiBxB,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as Warmth } from './warmth';
2
+ export { default as CustomThreshold } from './custom-threshold';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom/finetunes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Warmth Filter.
3
+ * @function
4
+ * @param {Object} imageData
5
+ * @example
6
+ * node.cache();
7
+ * node.filters([Warmth]);
8
+ * node.warmth(100);
9
+ * Red (r) > Blue (b) means warmer effect
10
+ * Red (r) < Blue (b) means cooler effect
11
+ */
12
+ declare function Warmth(this: any, imageData: ImageData): void;
13
+ declare namespace Warmth {
14
+ var finetuneName: string;
15
+ }
16
+ export default Warmth;
17
+ //# sourceMappingURL=warmth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warmth.d.ts","sourceRoot":"","sources":["../../../src/custom/finetunes/warmth.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,iBAAS,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAWrD;kBAXQ,MAAM;;;AAef,eAAe,MAAM,CAAC"}
@@ -0,0 +1,6 @@
1
+ import '@fontsource/outfit/400.css';
2
+ import '@fontsource/outfit/500.css';
3
+ import '@fontsource/outfit/600.css';
4
+ declare const DemoApp: () => import("react/jsx-runtime").JSX.Element;
5
+ export default DemoApp;
6
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/demo/app.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AA+CpC,QAAA,MAAM,OAAO,+CA8IZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"@fontsource/outfit/400.css";import"@fontsource/outfit/500.css";import"@fontsource/outfit/600.css";import AddPhotoAlternateIcon from"@mui/icons-material/AddPhotoAlternate";import{Box,Typography}from"@mui/material";import{SButton,SCheckbox,SFlexBox,SThemeProvider}from"@solostylist/ui-kit/core";import{useCallback,useRef,useState}from"react";import ImageEditorComponent,{TABS}from"..";import SLazyImage from"@solostylist/ui-kit/s-lazy-image/s-lazy-image";var DEFAULT_IMAGES=["_(1).png","_(2).png","_(3).png","_(4).png"],ALL_TABS=[TABS.ADJUST,TABS.FINETUNE,TABS.FILTERS,TABS.WATERMARK,TABS.ANNOTATE,TABS.RESIZE],TAB_OPTIONS=[{id:"adjust",label:"Adjust",tab:TABS.ADJUST},{id:"finetune",label:"Finetune",tab:TABS.FINETUNE},{id:"filters",label:"Filters",tab:TABS.FILTERS},{id:"watermark",label:"Watermark",tab:TABS.WATERMARK},{id:"annotate",label:"Draw",tab:TABS.ANNOTATE},{id:"resize",label:"Resize",tab:TABS.RESIZE}],DemoApp=function(){var a=useState([].concat(ALL_TABS)),b=_slicedToArray(a,2),c=b[0],d=b[1],e=useState([].concat(DEFAULT_IMAGES)),f=_slicedToArray(e,2),g=f[0],h=f[1],i=useState(DEFAULT_IMAGES[0]),j=_slicedToArray(i,2),k=j[0],l=j[1],m=useRef(null),n=useCallback(function(a){return function(b){d(function(c){return b.target.checked?c.includes(a)?c:[].concat(_toConsumableArray(c),[a]):1===c.length?c:c.filter(function(b){return b!==a})})}},[]),o=useCallback(function(a){l(a)},[]),p=useCallback(function(){var a;null===(a=m.current)||void 0===a||a.click()},[]),q=useCallback(function(a){var b=a.target.files;if(b&&0!==b.length){var c=URL.createObjectURL(b[0]);h(function(a){return[].concat(_toConsumableArray(a),[c])}),l(c),a.target.value=""}},[]),r=useCallback(function(a){var b,c=a.imageBase64,d=null!==(b=a.fullName)&&void 0!==b?b:"image",e=document.createElement("a");e.href=null!==c&&void 0!==c?c:"",e.download=d,e.style.cssText="position:absolute;z-index:-111;visibility:none;",document.body.appendChild(e),e.click(),document.body.removeChild(e)},[]),s=TAB_OPTIONS.slice(0,3),t=TAB_OPTIONS.slice(3);return React.createElement(SThemeProvider,{defaultMode:"dark"},React.createElement(SFlexBox,{width:"100%",gap:3},React.createElement(Box,null,React.createElement(Typography,{variant:"subtitle1"},"Images"),React.createElement(Box,{display:"flex",flexWrap:"wrap",gap:1,mb:2},g.map(function(a){return React.createElement(Box,{key:a,sx:{width:56,height:56,cursor:"pointer",border:"2px solid",borderRadius:1,borderColor:a===k?"primary.main":"divider",transition:"border-color 0.2s","&:hover":{borderColor:"primary.main"}}},React.createElement(SLazyImage,{onClick:function(){return o(a)},src:a}))})),React.createElement("input",{ref:m,type:"file",accept:"image/*",onChange:q,style:{display:"none"}}),React.createElement(SButton,{variant:"outlined",startIcon:React.createElement(AddPhotoAlternateIcon,null),onClick:p,fullWidth:!0,sx:{mb:3}},"Add Image"),React.createElement(Typography,{variant:"subtitle1"},"Tabs"),React.createElement(SFlexBox,{sx:{gap:2}},React.createElement(Box,null,s.map(function(a){return React.createElement(SCheckbox,{key:a.id,checked:c.includes(a.tab),onChange:n(a.tab),content:a.label})})),React.createElement(Box,null,t.map(function(a){return React.createElement(SCheckbox,{key:a.id,checked:c.includes(a.tab),onChange:n(a.tab),content:a.label})})))),React.createElement(ImageEditorComponent,{source:k,tabsIds:c,defaultTabId:TABS.ADJUST,observePluginContainerSize:!0,onSave:r,resetOnImageSourceChange:!0})))};export default DemoApp;
@@ -0,0 +1,2 @@
1
+ export { default } from './app';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ export{default}from"./app";
@@ -0,0 +1,13 @@
1
+ export { default as useFinetune } from './use-finetune';
2
+ export { default as useFilter } from './use-filter';
3
+ export { default as useAnnotation } from './use-annotation';
4
+ export { default as useAppReducer } from './use-app-reducer';
5
+ export { default as useAnnotationEvents } from './use-annotation-events';
6
+ export { default as useResizeObserver } from './use-resize-observer';
7
+ export { default as useDebouncedCallback } from './use-debounced-callback';
8
+ export { default as useStore } from './use-store';
9
+ export { default as useDrag } from './use-drag';
10
+ export { default as usePhoneScreen } from './use-phone-screen';
11
+ export { default as useTransformedImgData } from './use-transformed-img-data';
12
+ export { default as usePopover } from './use-popover';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,19 @@
1
+ interface PointerOffsets {
2
+ offsetX?: number;
3
+ offsetY?: number;
4
+ }
5
+ interface PointerDown {
6
+ startedX?: number;
7
+ startedY?: number;
8
+ }
9
+ interface BoundingRect {
10
+ x: number;
11
+ y: number;
12
+ width: number;
13
+ height: number;
14
+ startedX: number;
15
+ startedY: number;
16
+ }
17
+ declare const getBoundingRectUnScaled: (pointerOffsetsProp: PointerOffsets | null, pointerDownProp: PointerDown | null, previewGroup: any) => BoundingRect;
18
+ export default getBoundingRectUnScaled;
19
+ //# sourceMappingURL=get-bounding-rect-un-scaled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bounding-rect-un-scaled.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-annotation/get-bounding-rect-un-scaled.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,YAAY;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,uBAAuB,GAC3B,oBAAoB,cAAc,GAAG,IAAI,EACzC,iBAAiB,WAAW,GAAG,IAAI,EACnC,cAAc,GAAG,KAChB,YAiBF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,25 @@
1
+ interface AnnotationDimens {
2
+ x?: number;
3
+ y?: number;
4
+ width?: number;
5
+ height?: number;
6
+ radiusX?: number;
7
+ radiusY?: number;
8
+ radius?: number;
9
+ offsetX?: number;
10
+ offsetY?: number;
11
+ points?: number[];
12
+ startedX?: number;
13
+ startedY?: number;
14
+ [key: string]: any;
15
+ }
16
+ export declare const NO_WIDTH_HEIGHT_ANNOTATIONS: readonly string[];
17
+ declare const getNewAnnotationPreview: (annotation: Record<string, any>) => any;
18
+ export declare const dimensToProperAnnotationDimens: (currentDimensions: AnnotationDimens & {
19
+ width: number;
20
+ height: number;
21
+ startedX: number;
22
+ startedY: number;
23
+ }, annotationName: string, isShiftKeyPressed: boolean) => AnnotationDimens;
24
+ export default getNewAnnotationPreview;
25
+ //# sourceMappingURL=get-new-annotation-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-new-annotation-preview.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-annotation/get-new-annotation-preview.ts"],"names":[],"mappings":"AAMA,UAAU,gBAAgB;IACxB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAiBD,eAAO,MAAM,2BAA2B,EAAE,SAAS,MAAM,EAIxD,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,GAW/D,CAAC;AAGL,eAAO,MAAM,8BAA8B,GACzC,mBAAmB,gBAAgB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,EACD,gBAAgB,MAAM,EACtB,mBAAmB,OAAO,KACzB,gBA8EF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { Annotation } from 'types/annotations';
2
+ /**
3
+ * Working version of an Annotation with all properties optional + control flags
4
+ * This allows flexible manipulation before saving to state
5
+ */
6
+ interface WorkingAnnotationBase {
7
+ id?: string;
8
+ name?: string;
9
+ x?: number;
10
+ y?: number;
11
+ scaleX?: number;
12
+ scaleY?: number;
13
+ rotation?: number;
14
+ opacity?: number;
15
+ fill?: string;
16
+ stroke?: string;
17
+ strokeWidth?: number;
18
+ shadowOffsetX?: number;
19
+ shadowOffsetY?: number;
20
+ shadowBlur?: number;
21
+ shadowColor?: string;
22
+ shadowOpacity?: number;
23
+ padding?: number;
24
+ width?: number;
25
+ height?: number;
26
+ text?: string;
27
+ fontFamily?: string;
28
+ fontSize?: number;
29
+ letterSpacing?: number;
30
+ lineHeight?: number;
31
+ align?: string;
32
+ fontStyle?: string;
33
+ image?: string | HTMLImageElement;
34
+ disableUpload?: boolean;
35
+ gallery?: Array<{
36
+ originalUrl: string;
37
+ previewUrl: string;
38
+ }>;
39
+ cornerRadius?: number;
40
+ radius?: number;
41
+ sides?: number;
42
+ radiusX?: number;
43
+ radiusY?: number;
44
+ points?: number[];
45
+ tension?: number;
46
+ lineCap?: string;
47
+ selectAnnotationAfterDrawing?: boolean;
48
+ pointerLength?: number;
49
+ pointerWidth?: number;
50
+ shouldSave?: boolean;
51
+ neverSave?: boolean;
52
+ fonts?: (string | {
53
+ label: string;
54
+ value: string;
55
+ })[];
56
+ onFontChange?: (newFontFamily: string, reRenderCanvasFn: () => void) => void;
57
+ }
58
+ type UpdateFnOrObj = Partial<WorkingAnnotationBase> | ((latest: WorkingAnnotationBase) => Partial<WorkingAnnotationBase>);
59
+ /**
60
+ * Generic hook for managing annotations with preview and state updates
61
+ *
62
+ * @template T - The specific annotation type (TextAnnotation, ImageAnnotation, etc.)
63
+ * @param annotation - Initial annotation data
64
+ * @param enablePreview - Whether to show preview on canvas
65
+ * @returns [workingAnnotation, updateFunction, saveFunction]
66
+ *
67
+ * @example
68
+ * const [text, updateText, saveText] = useAnnotation<TextAnnotation>({ name: 'Text' });
69
+ * // text is typed as TextAnnotation & { shouldSave?, neverSave? }
70
+ * // Full autocomplete for text-specific properties!
71
+ */
72
+ declare const useAnnotation: <T extends Annotation = Annotation>(annotation?: Partial<WorkingAnnotationBase>, enablePreview?: boolean) => [T & Pick<WorkingAnnotationBase, "shouldSave" | "neverSave">, (updatesObjOrFn: UpdateFnOrObj) => void, (newAnnotationData: Partial<WorkingAnnotationBase>) => void];
73
+ export default useAnnotation;
74
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-annotation/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C;;;GAGG;AACH,UAAU,qBAAqB;IAE7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACtD,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CAC9E;AAED,KAAK,aAAa,GACd,OAAO,CAAC,qBAAqB,CAAC,GAC9B,CAAC,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAExE;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,GAAG,UAAU,EACtD,aAAY,OAAO,CAAC,qBAAqB,CAAM,EAC/C,gBAAe,OAAc,KAC5B,CACD,CAAC,GAAG,IAAI,CAAC,qBAAqB,EAAE,YAAY,GAAG,WAAW,CAAC,EAC3D,CAAC,cAAc,EAAE,aAAa,KAAK,IAAI,EACvC,CAAC,iBAAiB,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAqM5D,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _excluded=["fonts","onFontChange"],_excluded2=["x","y","width","height","radius","radiusX","radiusY","points","image","text","scaleX","scaleY","rotation"],_excluded3=["shouldSave","neverSave"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{useCallback,useEffect,useMemo,useRef,useState}from"react";import{SELECT_ANNOTATION,SET_ANNOTATION}from"actions";import randomId from"utils/random-id";import debounce from"utils/debounce";import{TOOLS_IDS}from"utils/constants";import{useStore}from"hooks";import previewThenCallAnnotationAdding from"./preview-then-call-annotation-adding";import useDebouncedCallback from"../use-debounced-callback";var useAnnotation=function(){var a,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],d=useStore(),e=d.dispatch,f=d.previewGroup,g=d.annotations,h=d.selectionsIds,i=void 0===h?[]:h,j=d.config,k=_objectSpread(_objectSpread({},j.annotationsCommon),j[(null===(a=g[i[0]])||void 0===a?void 0:a.name)||b.name]),l=useState(function(){return _objectSpread(_objectSpread(_objectSpread({},k),b),g[i[0]])}),m=_slicedToArray(l,2),n=m[0],o=m[1],p=useRef(null),q=null===f||void 0===f?void 0:f.getStage(),r=useCallback(function(a){var c=a.fonts,d=a.onFontChange,f=_objectWithoutProperties(a,_excluded);e({type:SET_ANNOTATION,payload:f}),f.id&&b.name!==TOOLS_IDS.PEN&&debounce(function(){e({type:SELECT_ANNOTATION,payload:{annotationId:f.id}})},30)()},[]),s=useDebouncedCallback(function(a){o(function(b){return _objectSpread(_objectSpread({},b),{},{shouldSave:!1,neverSave:!1},"function"==typeof a?a(b):a)})},15),t=useCallback(function(a,c){if(a.name===c){var d=a.x,e=a.y,f=a.width,g=a.height,h=a.radius,i=a.radiusX,j=a.radiusY,l=a.points,m=a.image,n=a.text,o=a.scaleX,p=a.scaleY,q=a.rotation,r=_objectWithoutProperties(a,_excluded2);return _objectSpread(_objectSpread(_objectSpread({},k),b),r)}return _objectSpread(_objectSpread({},k),b)},[]),u=useCallback(function(a){o(function(c){var d=t(c,a.name||b.name);return _objectSpread(_objectSpread(_objectSpread({},d),a),{},{id:a.id||randomId(a.name||c.name),shouldSave:!0,neverSave:!1})})},[]);return useEffect(function(){var a=n.shouldSave,b=n.neverSave,c=_objectWithoutProperties(n,_excluded3),d=1===i.length&&g[i[0]];!b&&(a||d)&&r(_objectSpread(_objectSpread({},c),{},{id:a?c.id:d.id}))},[n]),useEffect(function(){setTimeout(function(){1===i.length?(p.current=n,o(_objectSpread(_objectSpread({},g[i[0]]),{},{neverSave:!0}))):p.current&&(o(_objectSpread(_objectSpread({},p.current),{},{neverSave:!0})),p.current=null)})},[i,g]),useEffect(function(){var a=null;if(q&&c){var d=t(n,b.name);a=previewThenCallAnnotationAdding(q,_objectSpread(_objectSpread({},d),{},{name:b.name}),f,u)}return function(){a&&a()}},[q,n,f]),useMemo(function(){return[n,s,u]},[n,s,u])};export default useAnnotation;
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _excluded=["fonts","onFontChange"],_excluded2=["x","y","width","height","radius","radiusX","radiusY","points","image","text","scaleX","scaleY","rotation"],_excluded3=["shouldSave","neverSave"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{useCallback,useEffect,useMemo,useRef,useState}from"react";import{SELECT_ANNOTATION,SET_ANNOTATION}from"actions";import randomId from"utils/random-id";import debounce from"utils/debounce";import{TOOLS_IDS}from"utils/constants";import{useStore}from"hooks";import previewThenCallAnnotationAdding from"./preview-then-call-annotation-adding";import useDebouncedCallback from"../use-debounced-callback";var useAnnotation=function(){var a,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],d=useStore(),e=d.dispatch,f=d.previewGroup,g=d.annotations,h=d.selectionsIds,i=void 0===h?[]:h,j=d.config,k=_objectSpread(_objectSpread({},j.annotationsCommon),j[(null===(a=g[i[0]])||void 0===a?void 0:a.name)||b.name]),l=useState(function(){return _objectSpread(_objectSpread(_objectSpread({},k),b),g[i[0]])}),m=_slicedToArray(l,2),n=m[0],o=m[1],p=useRef(null),q=null===f||void 0===f?void 0:f.getStage(),r=useCallback(function(a){var c=a.fonts,d=a.onFontChange,f=_objectWithoutProperties(a,_excluded);e({type:SET_ANNOTATION,payload:f}),f.id&&b.name!==TOOLS_IDS.PEN&&debounce(function(){e({type:SELECT_ANNOTATION,payload:{annotationId:f.id}})},30)()},[b.name,e]),s=useDebouncedCallback(function(a){o(function(b){return _objectSpread(_objectSpread({},b),{},{shouldSave:!1,neverSave:!1},"function"==typeof a?a(b):a)})},15),t=useCallback(function(a,c){if(a.name===c){var d=a.x,e=a.y,f=a.width,g=a.height,h=a.radius,i=a.radiusX,j=a.radiusY,l=a.points,m=a.image,n=a.text,o=a.scaleX,p=a.scaleY,q=a.rotation,r=_objectWithoutProperties(a,_excluded2);return _objectSpread(_objectSpread(_objectSpread({},k),b),r)}return _objectSpread(_objectSpread({},k),b)},[k,b]),u=useCallback(function(a){o(function(c){var d=t(c,a.name||b.name);return _objectSpread(_objectSpread(_objectSpread({},d),a),{},{id:a.id||randomId(a.name||c.name),shouldSave:!0,neverSave:!1})})},[b.name,t]);return useEffect(function(){var a=n.shouldSave,b=n.neverSave,c=_objectWithoutProperties(n,_excluded3),d=1===i.length&&g[i[0]];!b&&(a||d)&&r(_objectSpread(_objectSpread({},c),{},{id:a?c.id:d.id}))},[n,i,g,r]),useEffect(function(){setTimeout(function(){1===i.length?(p.current=n,o(_objectSpread(_objectSpread({},g[i[0]]),{},{neverSave:!0}))):p.current&&(o(_objectSpread(_objectSpread({},p.current),{},{neverSave:!0})),p.current=null)})},[i,g]),useEffect(function(){var a=null;if(q&&c){var d=t(n,b.name);a=previewThenCallAnnotationAdding(q,_objectSpread(_objectSpread({},d),{},{name:b.name}),f,u)}return function(){a&&a()}},[q,n,f,t,b.name,u]),useMemo(function(){return[n,s,u]},[n,s,u])};export default useAnnotation;
@@ -0,0 +1,3 @@
1
+ declare const previewThenCallAnnotationAdding: (canvas: any, annotation: Record<string, any>, previewGroup: any, callbkAfterPreview: (annotationData: Record<string, any>, isNew?: boolean) => void) => (() => void);
2
+ export default previewThenCallAnnotationAdding;
3
+ //# sourceMappingURL=preview-then-call-annotation-adding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-then-call-annotation-adding.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-annotation/preview-then-call-annotation-adding.ts"],"names":[],"mappings":"AAgCA,QAAA,MAAM,+BAA+B,GACnC,QAAQ,GAAG,EACX,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,cAAc,GAAG,EACjB,oBAAoB,CAClB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,KAAK,CAAC,EAAE,OAAO,KACZ,IAAI,KACR,CAAC,MAAM,IAAI,CAsNb,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { KonvaEventObject } from 'konva/lib/Node';
2
+ export interface AnnotationEventHandlers {
3
+ onTransform?: (e: KonvaEventObject<Event>) => void;
4
+ onTransformEnd?: (e: KonvaEventObject<Event>) => void;
5
+ onDragEnd?: (e: KonvaEventObject<DragEvent>) => void;
6
+ onClick?: (e: KonvaEventObject<MouseEvent | TouchEvent>) => void;
7
+ onTap?: (e: KonvaEventObject<MouseEvent | TouchEvent>) => void;
8
+ }
9
+ declare const useAnnotationEvents: () => AnnotationEventHandlers;
10
+ export default useAnnotationEvents;
11
+ //# sourceMappingURL=use-annotation-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-annotation-events.d.ts","sourceRoot":"","sources":["../../src/hooks/use-annotation-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAOlD,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACnD,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACtD,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,IAAI,CAAC;IACjE,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,QAAA,MAAM,mBAAmB,QAAO,uBAmH/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- import{useMemo,useCallback}from"react";import{SET_ANNOTATION,SELECT_ANNOTATION,SELECT_TOOL}from"actions";import{TOOLS_IDS,TABS_IDS,WATERMARK_ANNOTATION_ID}from"utils/constants";import useStore from"./use-store";var useAnnotationEvents=function(){var a=useStore(),b=a.tabId,c=a.dispatch,d=useMemo(function(){return b!==TABS_IDS.ANNOTATE&&b!==TABS_IDS.WATERMARK},[b]),f=useCallback(function(a){c({type:SET_ANNOTATION,payload:a})},[]),g=useCallback(function(a){f({id:a.target.id(),x:a.target.x(),y:a.target.y()})},[]),h=useCallback(function(a){var b={id:a.target.id(),rotation:a.target.rotation(),x:a.target.x(),y:a.target.y()};return a.target.name()===TOOLS_IDS.TEXT?(b.width=a.target.width()*a.target.scaleX(),b.height=a.target.height()*a.target.scaleY(),b.scaleX=1,b.scaleY=1):(b.scaleX=a.target.scaleX(),b.scaleY=a.target.scaleY()),b},[]),i=useCallback(function(a){f(h(a))},[]),j=useCallback(function(a){a.target.name()===TOOLS_IDS.TEXT&&a.target.setAttrs(h(a))},[]),k=useCallback(function(a){if(!(a.target.id()===WATERMARK_ANNOTATION_ID||a.target.getStage().attrs.isDrawing)){var b=a.evt.ctrlKey||a.evt.shiftKey||a.evt.metaKey;c({type:SELECT_ANNOTATION,payload:{annotationId:a.target.id(),multiple:b}}),c({type:SELECT_TOOL,payload:{toolId:a.target.name(),keepSelections:b}})}},[]);return useMemo(function(){return d?{}:{onTransform:j,onTransformEnd:i,onDragEnd:g,onClick:k,onTap:k}},[d])};export default useAnnotationEvents;
1
+ import{useMemo,useCallback}from"react";import{SET_ANNOTATION,SELECT_ANNOTATION,SELECT_TOOL}from"actions";import{TOOLS_IDS,TABS_IDS,WATERMARK_ANNOTATION_ID}from"utils/constants";import useStore from"./use-store";var useAnnotationEvents=function(){var a=useStore(),b=a.tabId,c=a.dispatch,d=useMemo(function(){return b!==TABS_IDS.ANNOTATE&&b!==TABS_IDS.WATERMARK},[b]),f=useCallback(function(a){c({type:SET_ANNOTATION,payload:a})},[]),g=useCallback(function(a){f({id:a.target.id(),x:a.target.x(),y:a.target.y()})},[]),h=useCallback(function(a){var b={id:a.target.id(),rotation:a.target.rotation(),x:a.target.x(),y:a.target.y()};return a.target.name()===TOOLS_IDS.TEXT?(b.width=a.target.width()*a.target.scaleX(),b.height=a.target.height()*a.target.scaleY(),b.scaleX=1,b.scaleY=1):(b.scaleX=a.target.scaleX(),b.scaleY=a.target.scaleY()),b},[]),i=useCallback(function(a){f(h(a))},[]),j=useCallback(function(a){a.target.name()===TOOLS_IDS.TEXT&&a.target.setAttrs(h(a))},[]),k=useCallback(function(a){var b;if(!(a.target.id()===WATERMARK_ANNOTATION_ID||null!==(b=a.target.getStage())&&void 0!==b&&b.attrs.isDrawing)){var d=a.evt,e="ctrlKey"in d&&(d.ctrlKey||d.shiftKey||d.metaKey)||!1;c({type:SELECT_ANNOTATION,payload:{annotationId:a.target.id(),multiple:e}}),c({type:SELECT_TOOL,payload:{toolId:a.target.name(),keepSelections:e}})}},[]);return useMemo(function(){return d?{}:{onTransform:j,onTransformEnd:i,onDragEnd:g,onClick:k,onTap:k}},[d])};export default useAnnotationEvents;
@@ -0,0 +1,13 @@
1
+ /** External Dependencies */
2
+ import { Reducer } from 'react';
3
+ import { AppState } from 'types/state';
4
+ import { Action, Dispatch } from 'types/actions';
5
+ import { FilerobotImageEditorConfig } from 'types/config';
6
+ /**
7
+ * A normal react useReducer wrapped inside our own UNDO/REDO Reducer as middleware
8
+ * for updating the UNDO/REDO states automatically
9
+ *
10
+ */
11
+ declare const useAppReducer: (reducer: Reducer<AppState, Action>, initialState: AppState, passedConfig?: Partial<FilerobotImageEditorConfig>) => [AppState, Dispatch];
12
+ export default useAppReducer;
13
+ //# sourceMappingURL=use-app-reducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-app-reducer.d.ts","sourceRoot":"","sources":["../../src/hooks/use-app-reducer.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAc,OAAO,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAgB1D;;;;GAIG;AAEH,QAAA,MAAM,aAAa,GACjB,SAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,EAClC,cAAc,QAAQ,EACtB,eAAc,OAAO,CAAC,0BAA0B,CAAM,KACrD,CAAC,QAAQ,EAAE,QAAQ,CAmDrB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** External Dependencies */
2
+ import { DependencyList } from 'react';
3
+ declare const useDebouncedCallback: <T extends (...args: any[]) => any>(func: T, timeout: number, dependencies?: DependencyList) => ((...args: Parameters<T>) => void);
4
+ export default useDebouncedCallback;
5
+ //# sourceMappingURL=use-debounced-callback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-debounced-callback.d.ts","sourceRoot":"","sources":["../../src/hooks/use-debounced-callback.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAKpD,QAAA,MAAM,oBAAoB,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC7D,MAAM,CAAC,EACP,SAAS,MAAM,EACf,eAAc,cAAmB,KAChC,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAEnC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ type DragEventHandler = (e: MouseEvent | Touch) => void;
2
+ interface DragHandlers {
3
+ onMouseDown: (e: MouseEvent | TouchEvent) => void;
4
+ onTouchStart: (e: MouseEvent | TouchEvent) => void;
5
+ }
6
+ declare const useDrag: (onMove?: DragEventHandler, onStart?: DragEventHandler, onEnd?: DragEventHandler) => DragHandlers;
7
+ export default useDrag;
8
+ //# sourceMappingURL=use-drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-drag.d.ts","sourceRoot":"","sources":["../../src/hooks/use-drag.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,KAAK,KAAK,IAAI,CAAC;AAExD,UAAU,YAAY;IACpB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;CACpD;AAED,QAAA,MAAM,OAAO,GACX,SAAS,gBAAgB,EACzB,UAAU,gBAAgB,EAC1B,QAAQ,gBAAgB,KACvB,YAwCF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Filter } from 'konva/lib/Node';
2
+ declare const useFilter: () => [Filter | null, (filterToApply: Filter | null) => void];
3
+ export default useFilter;
4
+ //# sourceMappingURL=use-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-filter.d.ts","sourceRoot":"","sources":["../../src/hooks/use-filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAMxC,QAAA,MAAM,SAAS,QAAO,CACpB,MAAM,GAAG,IAAI,EACb,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAcvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Filter } from 'konva/lib/Node';
2
+ import { FinetunesProps } from 'types/state';
3
+ declare const useFinetune: (finetune: Filter, initialProps: FinetunesProps) => [FinetunesProps, (newFinetuneProps: FinetunesProps) => void];
4
+ export default useFinetune;
5
+ //# sourceMappingURL=use-finetune.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-finetune.d.ts","sourceRoot":"","sources":["../../src/hooks/use-finetune.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKxC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,QAAA,MAAM,WAAW,GACf,UAAU,MAAM,EAChB,cAAc,cAAc,KAC3B,CAAC,cAAc,EAAE,CAAC,gBAAgB,EAAE,cAAc,KAAK,IAAI,CAiC7D,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const usePhoneScreen: (screenWidth?: number) => boolean;
2
+ export default usePhoneScreen;
3
+ //# sourceMappingURL=use-phone-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-phone-screen.d.ts","sourceRoot":"","sources":["../../src/hooks/use-phone-screen.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,GAAI,cAAa,MAAY,KAAG,OACQ,CAAC;AAE7D,eAAe,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { MouseEvent } from 'react';
2
+ interface PopoverState {
3
+ anchorEl: HTMLElement | null;
4
+ open: boolean;
5
+ handleOpen: (event: MouseEvent<HTMLElement>) => void;
6
+ handleClose: () => void;
7
+ handleToggle: (event: MouseEvent<HTMLElement>) => void;
8
+ }
9
+ declare const usePopover: () => PopoverState;
10
+ export default usePopover;
11
+ //# sourceMappingURL=use-popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-popover.d.ts","sourceRoot":"","sources":["../../src/hooks/use-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1D,UAAU,YAAY;IACpB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACxD;AAED,QAAA,MAAM,UAAU,QAAO,YAsBtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface ResizeCallbackData {
2
+ entry: ResizeObserverEntry;
3
+ width: number;
4
+ height: number;
5
+ }
6
+ type OnResizeCallback = (data: ResizeCallbackData) => void;
7
+ type ObserveElementFn = (element: Element, newOnResizeCallback?: OnResizeCallback) => void;
8
+ type UnobserveElementFn = (element: Element, newOnResizeCallback?: OnResizeCallback) => void;
9
+ type UpdateOnResizeCallbackFn = (newOnResizeCallback: OnResizeCallback) => void;
10
+ declare const useResizeObserver: (onResize?: OnResizeCallback) => [ObserveElementFn, UnobserveElementFn, UpdateOnResizeCallbackFn];
11
+ export default useResizeObserver;
12
+ //# sourceMappingURL=use-resize-observer.d.ts.map