@syncfusion/ej2-image-editor 25.2.4 → 26.1.35

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 (128) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-image-editor.umd.min.js +2 -2
  3. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-image-editor.es2015.js +2679 -830
  5. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es5.js +2762 -873
  7. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  8. package/dist/global/ej2-image-editor.min.js +2 -2
  9. package/dist/global/ej2-image-editor.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +13 -12
  12. package/src/image-editor/action/crop.d.ts +0 -1
  13. package/src/image-editor/action/crop.js +35 -77
  14. package/src/image-editor/action/draw.d.ts +3 -0
  15. package/src/image-editor/action/draw.js +190 -81
  16. package/src/image-editor/action/export.d.ts +3 -0
  17. package/src/image-editor/action/export.js +99 -41
  18. package/src/image-editor/action/filter.d.ts +0 -1
  19. package/src/image-editor/action/filter.js +4 -24
  20. package/src/image-editor/action/freehand-draw.js +30 -8
  21. package/src/image-editor/action/selection.d.ts +10 -0
  22. package/src/image-editor/action/selection.js +444 -99
  23. package/src/image-editor/action/shape.d.ts +11 -1
  24. package/src/image-editor/action/shape.js +520 -127
  25. package/src/image-editor/action/transform.d.ts +0 -1
  26. package/src/image-editor/action/transform.js +53 -69
  27. package/src/image-editor/action/undo-redo.d.ts +2 -0
  28. package/src/image-editor/action/undo-redo.js +114 -29
  29. package/src/image-editor/base/enum.d.ts +5 -1
  30. package/src/image-editor/base/enum.js +4 -0
  31. package/src/image-editor/base/image-editor-model.d.ts +8 -6
  32. package/src/image-editor/base/image-editor.d.ts +116 -7
  33. package/src/image-editor/base/image-editor.js +378 -52
  34. package/src/image-editor/base/interface.d.ts +17 -0
  35. package/src/image-editor/base/interface.js +0 -1
  36. package/src/image-editor/renderer/toolbar.d.ts +14 -1
  37. package/src/image-editor/renderer/toolbar.js +831 -191
  38. package/styles/bootstrap-dark.css +279 -97
  39. package/styles/bootstrap-dark.scss +13 -1
  40. package/styles/bootstrap.css +282 -98
  41. package/styles/bootstrap.scss +13 -1
  42. package/styles/bootstrap4.css +280 -97
  43. package/styles/bootstrap4.scss +13 -1
  44. package/styles/bootstrap5-dark.css +280 -101
  45. package/styles/bootstrap5-dark.scss +13 -1
  46. package/styles/bootstrap5.css +280 -101
  47. package/styles/bootstrap5.scss +13 -1
  48. package/styles/fabric-dark.css +281 -97
  49. package/styles/fabric-dark.scss +13 -1
  50. package/styles/fabric.css +284 -97
  51. package/styles/fabric.scss +13 -1
  52. package/styles/fluent-dark.css +287 -101
  53. package/styles/fluent-dark.scss +13 -1
  54. package/styles/fluent.css +287 -101
  55. package/styles/fluent.scss +13 -1
  56. package/styles/fluent2.css +1851 -0
  57. package/styles/fluent2.scss +13 -0
  58. package/styles/highcontrast-light.css +279 -97
  59. package/styles/highcontrast-light.scss +13 -1
  60. package/styles/highcontrast.css +284 -97
  61. package/styles/highcontrast.scss +13 -1
  62. package/styles/image-editor/_bds-definition.scss +5 -0
  63. package/styles/image-editor/_bootstrap-dark-definition.scss +5 -0
  64. package/styles/image-editor/_bootstrap-definition.scss +5 -0
  65. package/styles/image-editor/_bootstrap4-definition.scss +5 -0
  66. package/styles/image-editor/_bootstrap5-definition.scss +5 -0
  67. package/styles/image-editor/_bootstrap5.3-definition.scss +26 -0
  68. package/styles/image-editor/_fabric-dark-definition.scss +5 -0
  69. package/styles/image-editor/_fabric-definition.scss +5 -0
  70. package/styles/image-editor/_fluent-definition.scss +5 -0
  71. package/styles/image-editor/_fluent2-definition.scss +26 -0
  72. package/styles/image-editor/_fusionnew-definition.scss +5 -0
  73. package/styles/image-editor/_highcontrast-definition.scss +5 -0
  74. package/styles/image-editor/_highcontrast-light-definition.scss +5 -0
  75. package/styles/image-editor/_layout.scss +352 -13
  76. package/styles/image-editor/_material-dark-definition.scss +5 -0
  77. package/styles/image-editor/_material-definition.scss +5 -0
  78. package/styles/image-editor/_material3-definition.scss +5 -0
  79. package/styles/image-editor/_tailwind-definition.scss +5 -0
  80. package/styles/image-editor/bootstrap-dark.css +279 -97
  81. package/styles/image-editor/bootstrap.css +282 -98
  82. package/styles/image-editor/bootstrap4.css +280 -97
  83. package/styles/image-editor/bootstrap5-dark.css +280 -101
  84. package/styles/image-editor/bootstrap5.css +280 -101
  85. package/styles/image-editor/fabric-dark.css +281 -97
  86. package/styles/image-editor/fabric.css +284 -97
  87. package/styles/image-editor/fluent-dark.css +287 -101
  88. package/styles/image-editor/fluent.css +287 -101
  89. package/styles/image-editor/fluent2.css +1851 -0
  90. package/styles/image-editor/fluent2.scss +13 -0
  91. package/styles/image-editor/highcontrast-light.css +279 -97
  92. package/styles/image-editor/highcontrast.css +284 -97
  93. package/styles/image-editor/icons/_bds.scss +1 -162
  94. package/styles/image-editor/icons/_bootstrap-dark.scss +1 -162
  95. package/styles/image-editor/icons/_bootstrap.scss +1 -162
  96. package/styles/image-editor/icons/_bootstrap4.scss +1 -162
  97. package/styles/image-editor/icons/_bootstrap5.3.scss +250 -0
  98. package/styles/image-editor/icons/_bootstrap5.scss +1 -168
  99. package/styles/image-editor/icons/_fabric-dark.scss +1 -162
  100. package/styles/image-editor/icons/_fabric.scss +1 -162
  101. package/styles/image-editor/icons/_fluent.scss +1 -168
  102. package/styles/image-editor/icons/_fluent2.scss +256 -0
  103. package/styles/image-editor/icons/_fusionnew.scss +1 -138
  104. package/styles/image-editor/icons/_highcontrast-light.scss +1 -162
  105. package/styles/image-editor/icons/_highcontrast.scss +1 -162
  106. package/styles/image-editor/icons/_material-dark.scss +2 -163
  107. package/styles/image-editor/icons/_material.scss +1 -162
  108. package/styles/image-editor/icons/_material3.scss +2 -169
  109. package/styles/image-editor/icons/_tailwind.scss +1 -162
  110. package/styles/image-editor/material-dark.css +299 -100
  111. package/styles/image-editor/material.css +302 -100
  112. package/styles/image-editor/material3-dark.css +314 -103
  113. package/styles/image-editor/material3.css +314 -103
  114. package/styles/image-editor/tailwind-dark.css +284 -97
  115. package/styles/image-editor/tailwind.css +284 -97
  116. package/styles/material-dark.css +299 -100
  117. package/styles/material-dark.scss +13 -1
  118. package/styles/material.css +302 -100
  119. package/styles/material.scss +13 -1
  120. package/styles/material3-dark.css +314 -103
  121. package/styles/material3-dark.scss +13 -1
  122. package/styles/material3.css +314 -103
  123. package/styles/material3.scss +13 -1
  124. package/styles/tailwind-dark.css +284 -97
  125. package/styles/tailwind-dark.scss +13 -1
  126. package/styles/tailwind.css +284 -97
  127. package/styles/tailwind.scss +13 -1
  128. package/CHANGELOG.md +0 -289
package/CHANGELOG.md DELETED
@@ -1,289 +0,0 @@
1
- # Changelog
2
-
3
- ## [Unreleased]
4
-
5
- ### Image Editor
6
-
7
- #### Bug Fixes
8
-
9
- - `#I587459` - The issue with "Image size increased" has been resolved.
10
-
11
- ## 25.2.3 (2024-05-08)
12
-
13
- ### Image Editor
14
-
15
- #### Bug Fixes
16
-
17
- - `#I585515` - The issue with "script error throws when custom toolbar with frame option in image editor" has been resolved.
18
-
19
- ### Image Editor
20
-
21
- #### Bug Fixes
22
-
23
- - The issue with "dropdown button `popup` has empty space when using toolbar property in ImageEditor" has been resolved.
24
-
25
- ## 25.1.42 (2024-04-30)
26
-
27
- ### Image Editor
28
-
29
- #### Bug Fixes
30
-
31
- - `#I584239` - The issue with "Add Image dropdown item not displayed while using custom toolbar property as annotate" has been resolved.
32
-
33
- ## 25.1.40 (2024-04-16)
34
-
35
- ### Image Editor
36
-
37
- #### Bug Fixes
38
-
39
- - The issue with "content and close icon not proper in alert dialog of the ImageEditor" has been resolved.
40
-
41
- ## 25.1.39 (2024-04-09)
42
-
43
- ### Image Editor
44
-
45
- #### Bug Fixes
46
-
47
- - `#I564880` - The issue with "unable to restore the old image position after reopening the same image" has been resolved.
48
- - `#I575218` - The issue with "Image annotation not selected when we set the drawImage method with isSelected parameter as true." has been resolved.
49
-
50
- ## 25.1.38 (2024-04-02)
51
-
52
- ### Image Editor
53
-
54
- #### Bug Fixes
55
-
56
- - `#I875625` - The issue with "need to add all default toolbar items in `API` link" has been resolved.
57
-
58
- ## 25.1.37 (2024-03-26)
59
-
60
- ### Image Editor
61
-
62
- #### Bug Fixes
63
-
64
- - `#I567703` - The issue with "Script error thrown in ProfilePicture ImageEditor sample on a mobile device" has been resolved.
65
-
66
- - `#I565340` - The issue with "Script error thrown when attempting to reopen a base64 URL using a custom toolbar in mobile mode" has been resolved.
67
-
68
- - `#I566745` - The issue with "FontSize is not updated properly while using the updateShape method" has been resolved.
69
-
70
- - `#I570160` - "Provide the option to change stroke color for annotations using the shapeChanging event at the beginning of the toolbar render" has been completed.
71
-
72
- ## 25.1.35 (2024-03-15)
73
-
74
- ### Image Editor
75
-
76
- #### Bug Fixes
77
-
78
- - The issue with "Resizing event argument value not proper while resizing " has been resolved.
79
-
80
- ### Image Editor
81
-
82
- #### Bug Fixes
83
-
84
- - `#I555243` - The issue with "Text area not applied while using GetImageData method" has been resolved.
85
-
86
- ### Image Editor
87
-
88
- #### Bug Fixes
89
-
90
- - Issue with "Toolbar not refreshing while using select public method" has been resolved.
91
-
92
- ## 24.1.41 (2023-12-18)
93
-
94
- ### ImageEditor
95
-
96
- #### Features
97
-
98
- - Provided support for image straightening allows users to adjust an image by rotating it clockwise or counter clockwise. The rotating degree value should be within the range of -45 to +45 degrees for accurate straightening. Positive values indicate clockwise rotation, while negative values indicate counter clockwise rotation.
99
-
100
- - Provided support to add additional font families for text annotation.
101
-
102
- ## 23.1.36 (2023-09-15)
103
-
104
- ### ImageEditor
105
-
106
- #### Features
107
-
108
- - Provided support for image annotations allowing users to insert and display multiple images in addition to the main image they are editing.
109
- - Provided support for frames allowing users to add decorative borders or frames around images. Frames can enhance the visual appeal of an image..
110
- - Provided resizing support allowing users to adjust the size and dimensions of an image to suit their needs, such as printing, web display, or other purposes.
111
-
112
- ## 22.2.11 (2023-08-29)
113
-
114
- ### Image Editor
115
-
116
- #### Bug Fixes
117
-
118
- - `#I494726` - The issue with "Annotations pen drawing not working properly in ipad" has been resolved.
119
-
120
- ## 22.2.10 (2023-08-22)
121
-
122
- ### Image Editor
123
-
124
- #### Bug Fixes
125
-
126
- - Issue with "toolbar" property has been resolved.
127
-
128
- - Issue with "Script error thrown while editing multiple text area" has been resolved.
129
-
130
- ## 22.2.9 (2023-08-15)
131
-
132
- ### Image Editor
133
-
134
- #### Bug Fixes
135
-
136
- - Issue with "Script error thrown while applying text area changes to canvas" has been resolved.
137
-
138
- ## 22.2.5 (2023-07-27)
139
-
140
- ### Image Editor
141
-
142
- #### Bug Fixes
143
-
144
- - Issue with "Path size not proper after saving" has been resolved.
145
-
146
- ## 22.1.39 (2023-07-18)
147
-
148
- ### Image Editor
149
-
150
- #### Bug Fixes
151
-
152
- - Issue with "Circle cropped image is not saved properly" has been resolved.
153
-
154
- ## 22.1.38 (2023-07-11)
155
-
156
- ### Image Editor
157
-
158
- #### Bug Fixes
159
-
160
- - Issue with "Image not drawn properly after opening image as ImageData" has been resolved.
161
-
162
- ## 22.1.37 (2023-07-04)
163
-
164
- ### Image Editor
165
-
166
- #### Bug Fixes
167
-
168
- - Issue with "Touch events are not un-wired properly while destroying control" has been resolved.
169
-
170
- ## 22.1.36 (2023-06-28)
171
-
172
- ### Image Editor
173
-
174
- #### Bug Fixes
175
-
176
- - Issue with "Refreshing the Image Editor dimension while resizing" has been resolved.
177
-
178
- ## 22.1.34 (2023-06-21)
179
-
180
- ### Image Editor
181
-
182
- #### Features
183
-
184
- - Provided support for path annotations allowing users to annotate specific paths or routes within a document or graphical representation.
185
- - Provided support for arrow annotations allowing users to easily indicate direction or flow within their content.
186
- - Provided quick access toolbar support which improve accessibility when working with shapes. It automatically appears when shapes are selected, providing convenient access to commonly used tools and options.
187
-
188
- #### Breaking Changes
189
-
190
- - Previously, the "ShapeChanging" event was triggered for both shape modifications and selection customizations. However, a new event called "SelectionChanging" has been introduced specifically for selection customizations.
191
-
192
- ### Image Editor
193
-
194
- #### Bug Fixes
195
-
196
- - Issue with "GetImageData method returns low resolution data" has been resolved.
197
-
198
- ## 21.1.39 (2023-04-11)
199
-
200
- ### Image Editor
201
-
202
- #### Bug Fixes
203
-
204
- - Issue with "Shape changing event not triggered while inserting crop selection" has been resolved.
205
-
206
- ## 21.1.37 (2023-03-29)
207
-
208
- ### Image Editor
209
-
210
- #### Bug Fixes
211
-
212
- - Issue with "Shape changing event not triggered while inserting crop selection" has been resolved.
213
-
214
- ### Image Editor
215
-
216
- #### Bug Fixes
217
-
218
- - Issue with "Script error thrown while using Toolbar Template" has been resolved.
219
-
220
- ## 21.1.35 (2023-03-23)
221
-
222
- ### Image Editor
223
-
224
- #### Features
225
-
226
- - Provided the undo/redo support, that records all the actions so that it can be reverted later if necessary.
227
- - Provided pinch zoom support to zoom in or out the image while performing pinch on touch enabled devices.
228
- - Provided mouse wheel zoom support to zoom in/out the image while scrolling mouse wheel with ctrl key press.
229
- - Provided public method 'getImageDimension' to get the current image size with its coordinates.
230
- - Provided click event to get the current cursor position on the image.
231
-
232
- #### Breaking Changes
233
-
234
- |Previous Enum Name|Modified Enum Name|
235
- |-----------|-----------|
236
- |ImageFinetuneOptions|ImageFinetuneOption|
237
- |ImageFilterOptions|ImageFilterOption|
238
- |ImageEditorCommands|ImageEditorCommand|
239
-
240
- #### Bug Fixes
241
-
242
- - Issue with "Script error thrown while resizing control without toolbar" has been resolved.
243
-
244
- ## 20.4.40 (2022-12-28)
245
-
246
- ### Image Editor
247
-
248
- #### Bug Fixes
249
-
250
- - Issue with "Toolbar Alignment" has been resolved.
251
-
252
- ## 20.4.38 (2022-12-21)
253
-
254
- ### Image Editor
255
-
256
- #### Bug Fixes
257
-
258
- - Issue with "Save Button Alignment in mobile mode" has been resolved.
259
-
260
- ### Image Editor
261
-
262
- #### Bug Fixes
263
-
264
- - Issue with "Toolbar Template Alignment" has been resolved.
265
-
266
- ## 20.3.48 (2022-10-05)
267
-
268
- ### Image Editor
269
-
270
- #### Bug Fixes
271
-
272
- - Issue with "Screen Orientation Alignment in mobile mode" has been resolved.
273
-
274
- ## 20.3.47 (2022-09-29)
275
-
276
- ### Image Editor
277
-
278
- The Image Editor control is a graphical user interface used for editing images. It provides built-in support for rotate, flip, zoom, and crop the images based on the selection. It also has support for inserting an annotations including rectangle, ellipse, line, text, and freehand drawings.
279
-
280
- - **Selection** - The selection region can be a `square` or `circle`, customized to various aspects ratios, and customized by dragging and resizing.
281
- - **Crop** - The image can be cropped based on the selection.
282
- - **Rotate** - The image can be rotated both clockwise and anticlockwise by 90 degrees.
283
- - **Flip** - The image can be flipped both horizontally and vertically.
284
- - **Zoom** - The image can be zoomed in and out.
285
- - **Pan** - View the entire image by toggling the pan option from the toolbar.
286
- - **Freehand drawing** - Draw freehand on the image and adjust the pen's stroke width and stroke color.
287
- - **Reset** - Revert all the edited states and load the original image.
288
- - **Save** - Save the edited image in JPEG, PNG, and SVG formats.
289
- - **Annotation** - `Text`, `rectangle`, `ellipse`, and `line` annotation shapes are supported.