@syncfusion/ej2-image-editor 26.2.14 → 27.1.48

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 (186) hide show
  1. package/README.md +1 -1
  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 +3202 -732
  5. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es5.js +3281 -797
  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 +14 -13
  12. package/src/image-editor/action/crop.d.ts +0 -1
  13. package/src/image-editor/action/crop.js +8 -19
  14. package/src/image-editor/action/draw.d.ts +4 -0
  15. package/src/image-editor/action/draw.js +377 -45
  16. package/src/image-editor/action/export.js +21 -13
  17. package/src/image-editor/action/filter.d.ts +13 -0
  18. package/src/image-editor/action/filter.js +272 -1
  19. package/src/image-editor/action/freehand-draw.d.ts +1 -0
  20. package/src/image-editor/action/freehand-draw.js +44 -23
  21. package/src/image-editor/action/selection.d.ts +6 -0
  22. package/src/image-editor/action/selection.js +382 -97
  23. package/src/image-editor/action/shape.d.ts +5 -0
  24. package/src/image-editor/action/shape.js +287 -141
  25. package/src/image-editor/action/transform.js +56 -82
  26. package/src/image-editor/action/undo-redo.d.ts +2 -0
  27. package/src/image-editor/action/undo-redo.js +100 -1
  28. package/src/image-editor/base/enum.d.ts +11 -0
  29. package/src/image-editor/base/enum.js +12 -0
  30. package/src/image-editor/base/image-editor-model.d.ts +13 -1
  31. package/src/image-editor/base/image-editor.d.ts +142 -20
  32. package/src/image-editor/base/image-editor.js +811 -149
  33. package/src/image-editor/base/interface.d.ts +140 -1
  34. package/src/image-editor/renderer/toolbar.d.ts +8 -0
  35. package/src/image-editor/renderer/toolbar.js +873 -191
  36. package/styles/bootstrap-dark-lite.css +746 -0
  37. package/styles/bootstrap-dark-lite.scss +13 -0
  38. package/styles/bootstrap-dark.css +150 -105
  39. package/styles/bootstrap-dark.scss +1 -0
  40. package/styles/bootstrap-lite.css +747 -0
  41. package/styles/bootstrap-lite.scss +13 -0
  42. package/styles/bootstrap.css +151 -106
  43. package/styles/bootstrap.scss +1 -0
  44. package/styles/bootstrap4-lite.css +747 -0
  45. package/styles/bootstrap4-lite.scss +13 -0
  46. package/styles/bootstrap4.css +150 -105
  47. package/styles/bootstrap4.scss +1 -0
  48. package/styles/bootstrap5-dark-lite.css +757 -0
  49. package/styles/bootstrap5-dark-lite.scss +13 -0
  50. package/styles/bootstrap5-dark.css +152 -113
  51. package/styles/bootstrap5-dark.scss +1 -0
  52. package/styles/bootstrap5-lite.css +757 -0
  53. package/styles/bootstrap5-lite.scss +13 -0
  54. package/styles/bootstrap5.3-lite.css +760 -0
  55. package/styles/bootstrap5.3-lite.scss +13 -0
  56. package/styles/bootstrap5.3.css +867 -0
  57. package/styles/bootstrap5.3.scss +14 -0
  58. package/styles/bootstrap5.css +152 -113
  59. package/styles/bootstrap5.scss +1 -0
  60. package/styles/fabric-dark-lite.css +749 -0
  61. package/styles/fabric-dark-lite.scss +13 -0
  62. package/styles/fabric-dark.css +150 -105
  63. package/styles/fabric-dark.scss +1 -0
  64. package/styles/fabric-lite.css +751 -0
  65. package/styles/fabric-lite.scss +13 -0
  66. package/styles/fabric.css +151 -106
  67. package/styles/fabric.scss +1 -0
  68. package/styles/fluent-dark-lite.css +758 -0
  69. package/styles/fluent-dark-lite.scss +13 -0
  70. package/styles/fluent-dark.css +150 -111
  71. package/styles/fluent-dark.scss +1 -0
  72. package/styles/fluent-lite.css +758 -0
  73. package/styles/fluent-lite.scss +13 -0
  74. package/styles/fluent.css +150 -111
  75. package/styles/fluent.scss +1 -0
  76. package/styles/fluent2-lite.css +791 -0
  77. package/styles/fluent2-lite.scss +13 -0
  78. package/styles/fluent2.css +173 -117
  79. package/styles/fluent2.scss +1 -0
  80. package/styles/highcontrast-light-lite.css +748 -0
  81. package/styles/highcontrast-light-lite.scss +13 -0
  82. package/styles/highcontrast-light.css +149 -104
  83. package/styles/highcontrast-light.scss +1 -0
  84. package/styles/highcontrast-lite.css +753 -0
  85. package/styles/highcontrast-lite.scss +13 -0
  86. package/styles/highcontrast.css +150 -104
  87. package/styles/highcontrast.scss +1 -0
  88. package/styles/image-editor/_bds-definition.scss +3 -1
  89. package/styles/image-editor/_bigger.scss +216 -0
  90. package/styles/image-editor/_bootstrap-dark-definition.scss +3 -1
  91. package/styles/image-editor/_bootstrap-definition.scss +3 -1
  92. package/styles/image-editor/_bootstrap4-definition.scss +3 -1
  93. package/styles/image-editor/_bootstrap5-definition.scss +3 -1
  94. package/styles/image-editor/_bootstrap5.3-definition.scss +3 -1
  95. package/styles/image-editor/_fabric-dark-definition.scss +3 -1
  96. package/styles/image-editor/_fabric-definition.scss +3 -1
  97. package/styles/image-editor/_fluent-definition.scss +3 -1
  98. package/styles/image-editor/_fluent2-definition.scss +4 -2
  99. package/styles/image-editor/_fusionnew-definition.scss +3 -1
  100. package/styles/image-editor/_highcontrast-definition.scss +3 -1
  101. package/styles/image-editor/_highcontrast-light-definition.scss +3 -1
  102. package/styles/image-editor/_layout.scss +75 -212
  103. package/styles/image-editor/_material-dark-definition.scss +3 -1
  104. package/styles/image-editor/_material-definition.scss +3 -1
  105. package/styles/image-editor/_material3-definition.scss +5 -3
  106. package/styles/image-editor/_tailwind-definition.scss +5 -3
  107. package/styles/image-editor/_theme.scss +48 -11
  108. package/styles/image-editor/bootstrap-dark.css +150 -105
  109. package/styles/image-editor/bootstrap-dark.scss +1 -0
  110. package/styles/image-editor/bootstrap.css +151 -106
  111. package/styles/image-editor/bootstrap.scss +1 -0
  112. package/styles/image-editor/bootstrap4.css +150 -105
  113. package/styles/image-editor/bootstrap4.scss +1 -0
  114. package/styles/image-editor/bootstrap5-dark.css +152 -113
  115. package/styles/image-editor/bootstrap5-dark.scss +1 -0
  116. package/styles/image-editor/bootstrap5.3.css +867 -0
  117. package/styles/image-editor/bootstrap5.3.scss +14 -0
  118. package/styles/image-editor/bootstrap5.css +152 -113
  119. package/styles/image-editor/bootstrap5.scss +1 -0
  120. package/styles/image-editor/fabric-dark.css +150 -105
  121. package/styles/image-editor/fabric-dark.scss +1 -0
  122. package/styles/image-editor/fabric.css +151 -106
  123. package/styles/image-editor/fabric.scss +1 -0
  124. package/styles/image-editor/fluent-dark.css +150 -111
  125. package/styles/image-editor/fluent-dark.scss +1 -0
  126. package/styles/image-editor/fluent.css +150 -111
  127. package/styles/image-editor/fluent.scss +1 -0
  128. package/styles/image-editor/fluent2.css +173 -117
  129. package/styles/image-editor/fluent2.scss +1 -0
  130. package/styles/image-editor/highcontrast-light.css +149 -104
  131. package/styles/image-editor/highcontrast-light.scss +1 -0
  132. package/styles/image-editor/highcontrast.css +150 -104
  133. package/styles/image-editor/highcontrast.scss +1 -0
  134. package/styles/image-editor/icons/_bds.scss +10 -1
  135. package/styles/image-editor/icons/_bootstrap-dark.scss +10 -1
  136. package/styles/image-editor/icons/_bootstrap.scss +10 -1
  137. package/styles/image-editor/icons/_bootstrap4.scss +10 -1
  138. package/styles/image-editor/icons/_bootstrap5.3.scss +10 -1
  139. package/styles/image-editor/icons/_bootstrap5.scss +10 -1
  140. package/styles/image-editor/icons/_fabric-dark.scss +10 -1
  141. package/styles/image-editor/icons/_fabric.scss +10 -1
  142. package/styles/image-editor/icons/_fluent.scss +10 -1
  143. package/styles/image-editor/icons/_fluent2.scss +10 -1
  144. package/styles/image-editor/icons/_fusionnew.scss +10 -1
  145. package/styles/image-editor/icons/_highcontrast-light.scss +10 -1
  146. package/styles/image-editor/icons/_highcontrast.scss +10 -1
  147. package/styles/image-editor/icons/_material-dark.scss +10 -1
  148. package/styles/image-editor/icons/_material.scss +10 -1
  149. package/styles/image-editor/icons/_material3.scss +10 -1
  150. package/styles/image-editor/icons/_tailwind.scss +10 -1
  151. package/styles/image-editor/material-dark.css +153 -108
  152. package/styles/image-editor/material-dark.scss +1 -0
  153. package/styles/image-editor/material.css +159 -114
  154. package/styles/image-editor/material.scss +1 -0
  155. package/styles/image-editor/material3-dark.css +171 -123
  156. package/styles/image-editor/material3-dark.scss +1 -0
  157. package/styles/image-editor/material3.css +171 -123
  158. package/styles/image-editor/material3.scss +1 -0
  159. package/styles/image-editor/tailwind-dark.css +154 -116
  160. package/styles/image-editor/tailwind-dark.scss +1 -0
  161. package/styles/image-editor/tailwind.css +154 -116
  162. package/styles/image-editor/tailwind.scss +1 -0
  163. package/styles/material-dark-lite.css +767 -0
  164. package/styles/material-dark-lite.scss +13 -0
  165. package/styles/material-dark.css +153 -108
  166. package/styles/material-dark.scss +1 -0
  167. package/styles/material-lite.css +769 -0
  168. package/styles/material-lite.scss +13 -0
  169. package/styles/material.css +159 -114
  170. package/styles/material.scss +1 -0
  171. package/styles/material3-dark-lite.css +799 -0
  172. package/styles/material3-dark-lite.scss +13 -0
  173. package/styles/material3-dark.css +171 -123
  174. package/styles/material3-dark.scss +1 -0
  175. package/styles/material3-lite.css +801 -0
  176. package/styles/material3-lite.scss +13 -0
  177. package/styles/material3.css +171 -123
  178. package/styles/material3.scss +1 -0
  179. package/styles/tailwind-dark-lite.css +751 -0
  180. package/styles/tailwind-dark-lite.scss +13 -0
  181. package/styles/tailwind-dark.css +154 -116
  182. package/styles/tailwind-dark.scss +1 -0
  183. package/styles/tailwind-lite.css +751 -0
  184. package/styles/tailwind-lite.scss +13 -0
  185. package/styles/tailwind.css +154 -116
  186. package/styles/tailwind.scss +1 -0
@@ -3,12 +3,12 @@ import { EmitType } from '@syncfusion/ej2-base';
3
3
  import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations';
4
4
  import { ChildProperty } from '@syncfusion/ej2-base';
5
5
  import { ImageEditorModel, FinetuneSettingsModel, ZoomSettingsModel, SelectionSettingsModel, FontFamilyModel } from './image-editor-model';
6
- import { SelectionChangeEventArgs, Transition, ArrowheadType, ResizeEventArgs, FrameType, FrameLineStyle, FrameChangeEventArgs, ShapeType } from './../index';
6
+ import { SelectionChangeEventArgs, Transition, ArrowheadType, ResizeEventArgs, FrameType, FrameLineStyle, FrameChangeEventArgs, ShapeType, ImageSettings, RedactType } from './../index';
7
7
  import { ZoomEventArgs, PanEventArgs, CropEventArgs, RotateEventArgs, FlipEventArgs, ShapeChangeEventArgs } from './../index';
8
- import { ToolbarEventArgs, OpenEventArgs, SaveEventArgs, BeforeSaveEventArgs, Point, ShapeSettings, ImageFilterEventArgs } from './../index';
8
+ import { ToolbarEventArgs, OpenEventArgs, SaveEventArgs, BeforeSaveEventArgs, Point, ShapeSettings, ImageFilterEventArgs, RedactSettings } from './../index';
9
9
  import { FinetuneEventArgs, QuickAccessToolbarEventArgs, CurrentObject, ImageDimension, TransformValue, PanPoint } from './../index';
10
10
  import { Interaction, SelectionPoint, ImageFinetuneValue, Dimension, ActivePoint, ImageEditorClickEventArgs, FrameValue } from './../index';
11
- import { Direction, ZoomTrigger, Theme, ImageEditorCommand, ImageFilterOption, ImageFinetuneOption } from './../index';
11
+ import { Direction, ZoomTrigger, Theme, ImageEditorCommand, ImageFilterOption, ImageFinetuneOption, EditCompleteEventArgs } from './../index';
12
12
  import { ItemModel as DropDownButtonItemModel } from '@syncfusion/ej2-splitbuttons';
13
13
  /**
14
14
  * This interface is used to specify settings for finetuning operations on images, including brightness, contrast, hue, saturation, exposure, opacity, and blur. It includes properties for setting minimum and maximum values for each of these options, as well as a default value.
@@ -221,6 +221,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
221
221
  /** @hidden */
222
222
  upperCanvas: HTMLCanvasElement;
223
223
  /** @hidden */
224
+ maskCanvas: HTMLCanvasElement;
225
+ /** @hidden */
224
226
  inMemoryCanvas: HTMLCanvasElement;
225
227
  /** @hidden */
226
228
  textArea: HTMLInputElement;
@@ -376,11 +378,33 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
376
378
  imgSrc: string;
377
379
  /** @hidden */
378
380
  isKBDNavigation: boolean;
381
+ /** @hidden */
382
+ isMaskImage: boolean;
383
+ /** @hidden */
384
+ tempObjColl: SelectionPoint[];
385
+ /** @hidden */
386
+ tempPointColl: Point[];
387
+ /** @hidden */
388
+ tempShapeColl: any;
389
+ /** @hidden */
390
+ isImageUpdated: boolean;
391
+ /** @hidden */
392
+ noRedact: boolean;
393
+ /** @hidden */
394
+ tempRedactBlur: number;
395
+ /** @hidden */
396
+ tempRedactPixel: number;
397
+ /** @hidden */
398
+ isSafari: boolean;
399
+ /** @hidden */
400
+ editCompleteArgs: object | RotateEventArgs | FlipEventArgs | CropEventArgs | FinetuneEventArgs | FrameChangeEventArgs | ImageFilterEventArgs | PanEventArgs | ResizeEventArgs | ShapeChangeEventArgs | ZoomEventArgs;
379
401
  private lowerContext;
380
402
  private upperContext;
381
403
  private inMemoryContext;
382
404
  private toolbarFn;
383
405
  private qatFn;
406
+ private tempToolbarHeight;
407
+ private tempToolbar;
384
408
  /**
385
409
  * Defines one or more CSS classes that can be used to customize the appearance of an Image Editor component.
386
410
  *
@@ -803,6 +827,17 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
803
827
  * @event frameChange
804
828
  */
805
829
  frameChange: EmitType<FrameChangeEventArgs>;
830
+ /**
831
+ * Event callback that is triggered after the completion of an editing action in the image editor.
832
+ *
833
+ * This event occurs after the image editor canvas has been updated through following actions such as cropping, drawing annotations, applying filters, fine-tuning, or other customizations.
834
+ *
835
+ * It provides an opportunity to perform additional tasks, such as comparing the current image data with previous states or triggering further processing based on the changes.
836
+ *
837
+ * @event editComplete
838
+ *
839
+ */
840
+ editComplete: EmitType<EditCompleteEventArgs>;
806
841
  /**
807
842
  *
808
843
  * Constructor for creating the widget
@@ -932,24 +967,28 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
932
967
  /**
933
968
  * Returns an image as ImageData to load it in to a canvas.
934
969
  *
970
+ * @param {boolean} [includeAnnotations=true] - Optional. Specifies whether the returned image data should include annotations. The default value is true, meaning annotations are included.
971
+ *
935
972
  * @remarks
936
973
  * The data returned from this method is directly drawn in a canvas using 'putImageData' method.
937
974
  * And then the user can get the base64 string from the canvas using toDataURL method.
938
975
  *
939
976
  * @returns {ImageData}.
940
977
  */
941
- getImageData(): ImageData;
978
+ getImageData(includeAnnotations?: boolean): ImageData;
942
979
  /**
943
980
  * Opens an image as URL or ImageData for editing in an image editor.
944
981
  *
945
982
  * @param {string | ImageData } data - Specifies url of the image or image data.
983
+ * @param {boolean} [resetChanges=true] - Optional. Determines whether to reset existing changes when opening the image. The default value is true, which resets all existing changes.
984
+ * @param {ImageSettings} imageSettings - Optional. Specifies the image setting that contains background color to apply when opening a transparent image. The default value of background color is an empty string (''), meaning no background color is applied by default when a transparent image is opened.
946
985
  *
947
986
  * @remarks
948
987
  * The supported file types are JPG, JPEG, PNG, and SVG.
949
988
  *
950
989
  * @returns {void}.
951
990
  */
952
- open(data: string | ImageData): void;
991
+ open(data: string | ImageData, resetChanges?: boolean, imageSettings?: ImageSettings): void;
953
992
  /**
954
993
  * Reset all the changes done in an image editor and revert to original image.
955
994
  *
@@ -1119,9 +1158,10 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1119
1158
  * @param {string} fillColor - Specifies the fill color of the rectangle.
1120
1159
  * @param {number} degree - Specifies the degree to rotate the rectangle.
1121
1160
  * @param {boolean} isSelected - Specifies to show the rectangle in the selected state.
1161
+ * @param {number} borderRadius - Specifies the radius to apply border radius to rectangle.
1122
1162
  * @returns {boolean}.
1123
1163
  */
1124
- drawRectangle(x?: number, y?: number, width?: number, height?: number, strokeWidth?: number, strokeColor?: string, fillColor?: string, degree?: number, isSelected?: boolean): boolean;
1164
+ drawRectangle(x?: number, y?: number, width?: number, height?: number, strokeWidth?: number, strokeColor?: string, fillColor?: string, degree?: number, isSelected?: boolean, borderRadius?: number): boolean;
1125
1165
  /**
1126
1166
  * Draw a text on an image.
1127
1167
  *
@@ -1137,10 +1177,13 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1137
1177
  * @param {string} color - Specifies font color of the text.
1138
1178
  * @param {boolean} isSelected - Specifies to show the text in the selected state.
1139
1179
  * @param {number} degree - Specifies the degree to rotate the text.
1180
+ * @param {fillColor} fillColor - Specifies the background Color of the text.
1181
+ * @param {string} strokeColor - Specifies the outline color of the text annotation.
1182
+ * @param {number} strokeWidth - Specifies the outline stroke width of the text annotation.
1140
1183
  * @returns {boolean}.
1141
1184
  *
1142
1185
  */
1143
- drawText(x?: number, y?: number, text?: string, fontFamily?: string, fontSize?: number, bold?: boolean, italic?: boolean, color?: string, isSelected?: boolean, degree?: number): boolean;
1186
+ drawText(x?: number, y?: number, text?: string, fontFamily?: string, fontSize?: number, bold?: boolean, italic?: boolean, color?: string, isSelected?: boolean, degree?: number, fillColor?: string, strokeColor?: string, strokeWidth?: number): boolean;
1144
1187
  /**
1145
1188
  * Draw an image as annotation on an image.
1146
1189
  *
@@ -1158,6 +1201,17 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1158
1201
  *
1159
1202
  */
1160
1203
  drawImage(data: string | ImageData, x?: number, y?: number, width?: number, height?: number, isAspectRatio?: boolean, degree?: number, opacity?: number, isSelected?: boolean): boolean;
1204
+ /**
1205
+ * This method is used to update the existing shapes by changing its height, width, color, and font styles in the component.
1206
+ * Use 'getShapeSettings' method to get the shape which is then passed to change the options of a shape.
1207
+ * {% codeBlock src='image-editor/updateShape/index.md' %}{% endcodeBlock %}
1208
+ *
1209
+ * @param {ShapeSettings} setting - Specifies the shape settings to be updated for the shape on an image.
1210
+ * @param {boolean} isSelected - Specifies to show the shape in the selected state.
1211
+ * @returns {boolean}.
1212
+ *
1213
+ */
1214
+ updateShape(setting: ShapeSettings, isSelected?: boolean): boolean;
1161
1215
  /**
1162
1216
  * Select a shape based on the given shape id.
1163
1217
  * Use 'getShapeSettings' method to get the shape id which is then passed to perform selection.
@@ -1196,6 +1250,42 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1196
1250
  * @returns {ShapeSettings[]}.
1197
1251
  */
1198
1252
  getShapeSettings(): ShapeSettings[];
1253
+ /**
1254
+ * Get all the shapes details which is drawn on an image editor.
1255
+ *
1256
+ * @returns {RedactSettings[]}.
1257
+ */
1258
+ getRedacts(): RedactSettings[];
1259
+ /**
1260
+ * Select a redaction based on the given redaction id.
1261
+ * Use 'getRedacts' method to get the shape id which is then passed to perform selection.
1262
+ *
1263
+ *
1264
+ * @param {string} id - Specifies the shape id to select a redact on an image.
1265
+ * @returns {boolean}.
1266
+ *
1267
+ */
1268
+ selectRedact(id: string): boolean;
1269
+ /**
1270
+ * Deletes a redaction based on the given shape id.
1271
+ * Use 'getRedacts' method to get the redaaction id which is then passed to perform deletion.
1272
+ *
1273
+ *
1274
+ * @param {string} id - Specifies the redaction id to delete the redaction on an image.
1275
+ * @returns {void}.
1276
+ *
1277
+ */
1278
+ deleteRedact(id: string): void;
1279
+ /**
1280
+ * This method is used to update the existing redacts by changing its height, width, blur, and pixel size in the component.
1281
+ * Use 'getRedacts' method to get the redacts which is then passed to change the options of a redacts.
1282
+ *
1283
+ * @param {RedactSettings} setting - Specifies the redact settings to be updated for the shape on an image.
1284
+ * @param {boolean} isSelected - Specifies to show the redacts in the selected state.
1285
+ * @returns {boolean}.
1286
+ *
1287
+ */
1288
+ updateRedact(setting: RedactSettings, isSelected?: boolean): boolean;
1199
1289
  /**
1200
1290
  * To refresh the Canvas Wrapper.
1201
1291
  *
@@ -1288,17 +1378,6 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1288
1378
  * @returns {boolean} - A boolean value indicating the success of the straightening operation.
1289
1379
  */
1290
1380
  straightenImage(degree: number): boolean;
1291
- /**
1292
- * This method is used to update the existing shapes by changing its height, width, color, and font styles in the component.
1293
- * Use 'getShapeSettings' method to get the shape which is then passed to change the options of a shape.
1294
- * {% codeBlock src='image-editor/updateShape/index.md' %}{% endcodeBlock %}
1295
- *
1296
- * @param {ShapeSettings} setting - Specifies the shape settings to be updated for the shape on an image.
1297
- * @param {boolean} isSelected - Specifies to show the shape in the selected state.
1298
- * @returns {boolean}.
1299
- *
1300
- */
1301
- updateShape(setting: ShapeSettings, isSelected?: boolean): boolean;
1302
1381
  /**
1303
1382
  * Duplicates a shape based on the given shape ID in the ImageEditor.
1304
1383
  * Use 'getShapeSettings' method to get the shape and then pass a shapeId from the returned shape to clone a shape.
@@ -1409,6 +1488,25 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1409
1488
  * This method clears the loaded image and updates the component's user interface to its initial state (the initial user interface without a loaded image).
1410
1489
  */
1411
1490
  clearImage(): void;
1491
+ /**
1492
+ * Enables overlay drawing to erase objects in an image editor. The eraser tool assists in selecting the mask image.
1493
+ *
1494
+ * @remarks
1495
+ * The selection UI is based on the 'theme' property.
1496
+ *
1497
+ * @param {number} strokeWidth - Specifies the stroke width of the drawing.
1498
+ * @param {string} color - Specifies the color of the drawing.
1499
+ * @hidden
1500
+ * @returns {void}.
1501
+ *
1502
+ */
1503
+ selectMaskImage(strokeWidth?: number, color?: string): void;
1504
+ private enableDisableToolbar;
1505
+ private updateImage;
1506
+ private editCompleted;
1507
+ private updateColl;
1508
+ private resetToolbar;
1509
+ private getData;
1412
1510
  private applyShapes;
1413
1511
  private closeOverlayTbar;
1414
1512
  private toolbarTemplateFn;
@@ -1455,6 +1553,7 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1455
1553
  * @returns {void}.
1456
1554
  */
1457
1555
  okBtn(isMouseDown?: boolean, isFinalApply?: boolean): void;
1556
+ triggerEditCompleteEvent(args: EditCompleteEventArgs): void;
1458
1557
  /**
1459
1558
  * Handles the OK button operation
1460
1559
  *
@@ -1544,6 +1643,15 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1544
1643
  * @returns {void}.
1545
1644
  */
1546
1645
  updateFontSize(text: string): void;
1646
+ /**
1647
+ * Apply Font color for text.
1648
+ *
1649
+ * @param { string } value - Specifies the selected color item value.
1650
+ * @param { string } color - Specifies the selected color type value.
1651
+ * @hidden
1652
+ * @returns {void}.
1653
+ */
1654
+ updateFontColor(value: string, color: string): void;
1547
1655
  /**
1548
1656
  * Apply Font color for text.
1549
1657
  *
@@ -1551,7 +1659,7 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1551
1659
  * @hidden
1552
1660
  * @returns {void}.
1553
1661
  */
1554
- updateFontColor(value: string): void;
1662
+ updateStrokeTextColor(value: string): void;
1555
1663
  /**
1556
1664
  * Apply Pen stroke width.
1557
1665
  *
@@ -1572,10 +1680,12 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1572
1680
  * Apply Shape stroke width.
1573
1681
  *
1574
1682
  * @param { string } id - Specifies the selected item id.
1683
+ * @param { string } type - Specifies the type of selected item.
1684
+ * @param { string } shapeType - Specifies the shape type of selected item.
1575
1685
  * @hidden
1576
1686
  * @returns {void}.
1577
1687
  */
1578
- updateStrokeWidth(id: string): void;
1688
+ updateStrokeWidth(id: string, type: string, shapeType?: string): void;
1579
1689
  /**
1580
1690
  * Apply Shape stroke color.
1581
1691
  *
@@ -1688,4 +1798,16 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
1688
1798
  private getStraightenFlipState;
1689
1799
  private initializeZoomSettings;
1690
1800
  private initializeThemeColl;
1801
+ /**
1802
+ * Draw a redaction on an image.
1803
+ *
1804
+ * @param {RedactType} type – Optional. Specifies the type of redaction to be drawn on the image such as blur or pixelate. If not specified, the redaction drawing is initiated with the default blur value.
1805
+ * @param {number} x – Optional. Specifies x-coordinate of redaction. If not specified, the redaction drawing is initiated with the first parameter.
1806
+ * @param {number} y – Optional. Specifies y-coordinate of redaction. If not specified it draws redaction from the center point of the image.
1807
+ * @param {number} width – Optional. Specifies the width of the redaction. The default value is 100.
1808
+ * @param {number} height – Optional. Specifies the height of the redaction. The default value is 50.
1809
+ * @param {number} value – Optional. Specifies the blur value for blur-type redaction or the pixel size for pixelate-type redaction. Defaults to 20 since the default redaction is blur.
1810
+ * @returns {boolean}.
1811
+ */
1812
+ drawRedact(type?: RedactType, x?: number, y?: number, width?: number, height?: number, value?: number): boolean;
1691
1813
  }