@syncfusion/ej2-image-editor 20.3.56 → 20.4.40

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 (62) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +5 -5
  3. package/README.md +65 -2
  4. package/dist/ej2-image-editor.umd.min.js +2 -2
  5. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es2015.js +6191 -4168
  7. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-image-editor.es5.js +2505 -474
  9. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  10. package/dist/global/ej2-image-editor.min.js +2 -2
  11. package/dist/global/ej2-image-editor.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +23 -24
  14. package/src/image-editor/image-editor-model.d.ts +114 -20
  15. package/src/image-editor/image-editor.d.ts +251 -33
  16. package/src/image-editor/image-editor.js +2505 -473
  17. package/styles/bootstrap-dark.css +36 -0
  18. package/styles/bootstrap.css +36 -0
  19. package/styles/bootstrap4.css +36 -0
  20. package/styles/bootstrap5-dark.css +36 -0
  21. package/styles/bootstrap5.css +36 -0
  22. package/styles/fabric-dark.css +36 -0
  23. package/styles/fabric.css +36 -0
  24. package/styles/fluent-dark.css +36 -0
  25. package/styles/fluent.css +36 -0
  26. package/styles/highcontrast-light.css +36 -0
  27. package/styles/highcontrast.css +36 -0
  28. package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
  29. package/styles/image-editor/_bootstrap-definition.scss +1 -0
  30. package/styles/image-editor/_bootstrap4-definition.scss +1 -0
  31. package/styles/image-editor/_bootstrap5-definition.scss +1 -0
  32. package/styles/image-editor/_fabric-dark-definition.scss +1 -0
  33. package/styles/image-editor/_fabric-definition.scss +1 -0
  34. package/styles/image-editor/_fluent-definition.scss +1 -0
  35. package/styles/image-editor/_fusionnew-definition.scss +1 -0
  36. package/styles/image-editor/_highcontrast-definition.scss +1 -0
  37. package/styles/image-editor/_highcontrast-light-definition.scss +1 -0
  38. package/styles/image-editor/_layout.scss +38 -0
  39. package/styles/image-editor/_material-dark-definition.scss +1 -0
  40. package/styles/image-editor/_material-definition.scss +1 -0
  41. package/styles/image-editor/_material3-definition.scss +1 -0
  42. package/styles/image-editor/_tailwind-definition.scss +1 -0
  43. package/styles/image-editor/_theme.scss +11 -0
  44. package/styles/image-editor/bootstrap-dark.css +36 -0
  45. package/styles/image-editor/bootstrap.css +36 -0
  46. package/styles/image-editor/bootstrap4.css +36 -0
  47. package/styles/image-editor/bootstrap5-dark.css +36 -0
  48. package/styles/image-editor/bootstrap5.css +36 -0
  49. package/styles/image-editor/fabric-dark.css +36 -0
  50. package/styles/image-editor/fabric.css +36 -0
  51. package/styles/image-editor/fluent-dark.css +36 -0
  52. package/styles/image-editor/fluent.css +36 -0
  53. package/styles/image-editor/highcontrast-light.css +36 -0
  54. package/styles/image-editor/highcontrast.css +36 -0
  55. package/styles/image-editor/material-dark.css +36 -0
  56. package/styles/image-editor/material.css +36 -0
  57. package/styles/image-editor/tailwind-dark.css +36 -0
  58. package/styles/image-editor/tailwind.css +36 -0
  59. package/styles/material-dark.css +36 -0
  60. package/styles/material.css +36 -0
  61. package/styles/tailwind-dark.css +36 -0
  62. package/styles/tailwind.css +36 -0
@@ -2,8 +2,78 @@ import { INotifyPropertyChanged } from '@syncfusion/ej2-base';
2
2
  import { EmitType } from '@syncfusion/ej2-base';
3
3
  import { SignatureBase } from '@syncfusion/ej2-inputs';
4
4
  import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations';
5
- import { OpenEventArgs } from '@syncfusion/ej2-popups';
6
- import { ImageEditorModel } from './image-editor-model';
5
+ import { ChildProperty } from '@syncfusion/ej2-base';
6
+ import { ImageEditorModel, FinetuneSettingsModel } from './image-editor-model';
7
+ /**
8
+ * Interface for image finetune values.
9
+ */
10
+ export interface ImageFinetuneValue {
11
+ /**
12
+ * Specifies the minimum value of finetune option.
13
+ *
14
+ * @default null
15
+ */
16
+ min: number;
17
+ /**
18
+ * Specifies the maximum value of finetune option.
19
+ *
20
+ * @default null
21
+ */
22
+ max: number;
23
+ /**
24
+ * Specifies the default value of finetune option.
25
+ *
26
+ * @default null
27
+ */
28
+ defaultValue: number;
29
+ }
30
+ /**
31
+ * Interface for image finetune values.
32
+ */
33
+ export declare class FinetuneSettings extends ChildProperty<FinetuneSettings> {
34
+ /**
35
+ * Specifies the brightness level of image.
36
+ *
37
+ * @default null
38
+ */
39
+ brightness: ImageFinetuneValue;
40
+ /**
41
+ * Specifies the contrast level image.
42
+ *
43
+ * @default null
44
+ */
45
+ contrast: ImageFinetuneValue;
46
+ /**
47
+ * Specifies the hue level image.
48
+ *
49
+ * @default null
50
+ */
51
+ hue: ImageFinetuneValue;
52
+ /**
53
+ * Specifies the saturation level image.
54
+ *
55
+ * @default null
56
+ */
57
+ saturation: ImageFinetuneValue;
58
+ /**
59
+ * Specifies the exposure level image.
60
+ *
61
+ * @default null
62
+ */
63
+ exposure: ImageFinetuneValue;
64
+ /**
65
+ * Specifies the opacity level image.
66
+ *
67
+ * @default null
68
+ */
69
+ opacity: ImageFinetuneValue;
70
+ /**
71
+ * Specifies the blur level image.
72
+ *
73
+ * @default null
74
+ */
75
+ blur: ImageFinetuneValue;
76
+ }
7
77
  /**
8
78
  * Image Editor is a graphical user interface that helps to edit an image by performing actions like selection,
9
79
  * cropping, rotating, inserting text and shapes (rectangles, ellipses, lines), and drawing free hand on top of an image.
@@ -32,7 +102,6 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
32
102
  private baseImg;
33
103
  private textBox;
34
104
  private degree;
35
- private isUndoRedo;
36
105
  private dragCanvas;
37
106
  private dragElement;
38
107
  private keyHistory;
@@ -55,24 +124,18 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
55
124
  private pannStart;
56
125
  private pannEnd;
57
126
  private togglePan;
127
+ private disablePan;
58
128
  private lastX;
59
129
  private lastY;
60
130
  private dragStart;
61
- private dragged;
62
131
  private factor;
63
132
  private currFlipState;
64
133
  private touchEndPoint;
65
- private flipMethod;
66
- private flipDirection;
67
134
  private prevX;
68
135
  private currX;
69
136
  private prevY;
70
137
  private currY;
71
138
  private togglePen;
72
- private rotateMethod;
73
- private isBoldbtn;
74
- private isItalicbtn;
75
- private lastAction;
76
139
  private currentToolbar;
77
140
  private textStartPoints;
78
141
  private fontSizeColl;
@@ -91,9 +154,30 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
91
154
  private isTimer;
92
155
  private timer;
93
156
  private isScreenOriented;
157
+ private tempObjColl;
158
+ private isFirstMove;
159
+ private startTouches;
160
+ private tempTouches;
161
+ private adjustmentLevel;
162
+ private tempAdjustmentLevel;
163
+ private adjustmentValue;
164
+ private initialAdjustmentValue;
165
+ private tempAdjustmentValue;
166
+ private currentFilter;
167
+ private tempFilter;
168
+ private canvasFilter;
169
+ private tempImageData;
170
+ private sharpenedImgData;
171
+ private tempSharpenFilter;
172
+ private tempBWFilter;
173
+ private isBrightnessAdjusted;
174
+ private isInitialLoading;
175
+ private imageFileName;
176
+ private imageFileType;
94
177
  /**
95
178
  * Defines class/multiple classes separated by a space for customizing Image Editor UI.
96
- * default ''
179
+ *
180
+ * @default ''
97
181
  ```html
98
182
  * <div id='imageeditor'></div>
99
183
  * ```
@@ -107,18 +191,20 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
107
191
  cssClass: string;
108
192
  /**
109
193
  * Specifies whether the Image Editor is disabled.
110
- * default false
194
+ *
195
+ * @default false
111
196
  */
112
197
  disabled: boolean;
113
198
  /**
114
199
  * Specifies the height of the Image Editor.
115
- * default '100%'
200
+ *
201
+ * @default '100%'
116
202
  */
117
203
  height: string;
118
204
  /**
119
205
  * Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
120
206
  * The property supports all the built-in themes of Syncfusion.
121
- * default 'Bootstrap5'
207
+ *
122
208
  * @isenumeration true
123
209
  * @default Theme.Bootstrap5
124
210
  * @asptype Theme
@@ -130,17 +216,16 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
130
216
  * If the property is defined as empty collection, the toolbar will not be rendered.
131
217
  * Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
132
218
  * The preconfigured toolbar commands are
133
- * Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
134
- * Annotate: help to insert a shape on image that supports rectangle, ellipse, line, text and freehand drawing with resize, drag and drop, and customize its appearance.
135
- * Transform: helps to rotate and flip an image.
136
- * ZoomIn: performs zoom-in an image.
137
- * ZoomOut: performs zoom-out an image.
138
- * Pan: performs panning once zoomed an image.
139
- * Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
140
- * Save: save the modified image.
141
- * Open: open an image to perform editing.
142
- * Reset: reset the modification and restore the original image.
143
- * default null
219
+ * Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
220
+ * Annotate: help to insert a shape on image that supports rectangle, ellipse, line, text and freehand drawing with resize, drag and drop, and customize its appearance.
221
+ * Transform: helps to rotate and flip an image.
222
+ * ZoomIn: performs zoom-in an image.
223
+ * ZoomOut: performs zoom-out an image.
224
+ * Pan: performs panning once zoomed an image.
225
+ * Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
226
+ * Save: save the modified image.
227
+ * Open: open an image to perform editing.
228
+ * Reset: reset the modification and restore the original image.
144
229
  ```html
145
230
  * <div id='imageeditor'></div>
146
231
  * ```
@@ -180,7 +265,8 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
180
265
  toolbarTemplate: string;
181
266
  /**
182
267
  * Specifies the width of the Image Editor.
183
- * default 100%
268
+ *
269
+ * @default '100%'
184
270
  */
185
271
  width: string;
186
272
  /**
@@ -266,6 +352,18 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
266
352
  * @private
267
353
  */
268
354
  enablePersistence: boolean;
355
+ /**
356
+ * It can be done using the filter property of the canvas. The following fine tunes can be supported.
357
+ * Brightness: The intensity of the primary colors grows with increased brightness, but the color itself does not change. It can be done by changing brightness and opacity property.
358
+ * Contrast: The contrast of an image refers to the difference between the light pixels and dark pixels. Low contrast images contain either a narrow range of colors while high contrast images have bright highlights and dark shadows. It can be done by changing contrast property.
359
+ * Hue: Hue distinguishes one color from another and is described using common color names such as green, blue, red, yellow, etc. Value refers to the lightness or darkness of a color. It can be controlled by hue-rotate property.
360
+ * Saturation: If saturation increases, colors appear sharper or purer. As saturation decreases, colors appear more washed-out or faded. It can be controlled by saturation and brightness property.
361
+ * Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
362
+ * Opacity: The state or quality of being opaque or transparent, not allowing light to pass through the image. Opacity can be controlled by opacity property.
363
+ * Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
364
+ *
365
+ */
366
+ finetuneSettings: FinetuneSettingsModel;
269
367
  /**
270
368
  * Gets or sets the last signature url to maintain the persist state.
271
369
  *
@@ -331,7 +429,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
331
429
  *
332
430
  * @event fileOpened
333
431
  */
334
- fileOpened: EmitType<OpenEventArgs>;
432
+ fileOpened: EmitType<FileOpenEventArgs>;
335
433
  /**
336
434
  * Triggers once an image is saved.
337
435
  *
@@ -356,6 +454,18 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
356
454
  * @event toolbarItemClicked
357
455
  */
358
456
  toolbarItemClicked: EmitType<ClickEventArgs>;
457
+ /**
458
+ * Triggers when applying filter to an image.
459
+ *
460
+ * @event imageFiltering
461
+ */
462
+ imageFiltering: EmitType<ImageFilterEventArgs>;
463
+ /**
464
+ * Triggers when applying fine tune to an image.
465
+ *
466
+ * @event fineTuneValueChanging
467
+ */
468
+ fineTuneValueChanging: EmitType<FinetuneEventArgs>;
359
469
  /**
360
470
  *
361
471
  * Constructor for creating the widget
@@ -400,6 +510,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
400
510
  onPropertyChanged(newProperties: ImageEditorModel, oldProperties?: ImageEditorModel): void;
401
511
  destroy(): void;
402
512
  initialize(): void;
513
+ private updateFinetunes;
403
514
  /**
404
515
  *
405
516
  * This Method will add events to component (element, event, method, current reference)
@@ -414,11 +525,14 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
414
525
  * @returns {void}.
415
526
  */
416
527
  private unwireEvent;
528
+ private initializeFilter;
417
529
  private destroySubComponents;
418
530
  private updateTheme;
419
531
  private toPascalCase;
420
532
  private createCanvas;
421
533
  private createToolbar;
534
+ private createContextualToolbar;
535
+ private updateContextualToolbar;
422
536
  private createBottomToolbar;
423
537
  private initBottomToolbar;
424
538
  private toolbarTemplateFn;
@@ -447,34 +561,58 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
447
561
  private getFontSizeItems;
448
562
  private initTextToolbarItem;
449
563
  private createTextColor;
564
+ private pushActItemIntoObj;
450
565
  private createTextBtn;
451
566
  private getFontSizes;
452
567
  private getTextAreaWidth;
568
+ private updateObjColl;
453
569
  private applyFontStyle;
454
570
  private initZoomToolbarItem;
571
+ private contextualToolbarClicked;
455
572
  private defToolbarClicked;
573
+ private okBtn;
574
+ private unselectBtn;
575
+ private refreshSlider;
576
+ private updateAdjustment;
577
+ private updateBrightnessFilter;
578
+ private autoEnablePan;
579
+ private setTempFilterValue;
580
+ private getDefaultFilter;
581
+ private setAdjustment;
582
+ private renderSlider;
583
+ private getCurrAdjustmentValue;
584
+ private setCurrAdjustmentValue;
456
585
  private cancelPan;
457
586
  private callMainToolbar;
458
587
  private cancelItems;
459
588
  private gradient;
460
589
  private applyPenDraw;
590
+ private redrawImgWithObj;
461
591
  private refreshToolbar;
592
+ private getAdjustmentToolbarItem;
593
+ private getFilterToolbarItem;
462
594
  private getPenToolbarItem;
463
595
  private initPenToolbarItem;
464
596
  private createPenColor;
465
597
  private createPenBtn;
466
598
  private setPenStroke;
599
+ private getPenStroke;
600
+ private initAdjustmentToolbarItem;
601
+ private initFilterToolbarItem;
602
+ private createCanvasFilter;
467
603
  private updateCanvas;
468
604
  private imageOnLoad;
469
605
  private refreshActiveObj;
470
606
  private redrawText;
471
607
  private setTextSelection;
472
- private updateUndoRedoColl;
473
608
  private fileSelect;
474
609
  private findTextPoint;
475
610
  private getStrokeWidth;
476
611
  private updateToolbarItems;
477
612
  private setTimer;
613
+ private targetTouches;
614
+ private calculateScale;
615
+ private getDistance;
478
616
  private touchStartHandler;
479
617
  private mouseDownEventHandler;
480
618
  private mouseMoveEventHandler;
@@ -484,10 +622,12 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
484
622
  private canvasMouseDownHandler;
485
623
  private canvasMouseMoveHandler;
486
624
  private canvasMouseUpHandler;
625
+ private setPanPoints;
487
626
  private textKeyDown;
488
627
  private adjustToScreen;
489
628
  private screenOrientation;
490
629
  private windowResizeHandler;
630
+ private drawPanImg;
491
631
  private redrawImg;
492
632
  private updateContext;
493
633
  private scaleNonUniform;
@@ -496,6 +636,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
496
636
  private redraw;
497
637
  private applyCurrActObj;
498
638
  private updateTextFromTextArea;
639
+ private setTextBoxStylesToActObj;
499
640
  private redrawActObj;
500
641
  private setTextBoxPos;
501
642
  private setTextBoxPoints;
@@ -547,7 +688,6 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
547
688
  private addLetter;
548
689
  private updateFontStyles;
549
690
  private updateInMemoryCanvas;
550
- private drawBaseImg;
551
691
  private calcPrevRatio;
552
692
  private textFlipDegree;
553
693
  private rotateText;
@@ -564,7 +704,27 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
564
704
  private drawPen;
565
705
  private getObjDetails;
566
706
  private isPointsInRange;
707
+ private updateInMemoryContext;
708
+ private clearActObj;
567
709
  private rotateMultiple;
710
+ private setBrightness;
711
+ private setContrast;
712
+ private setHue;
713
+ private setSaturation;
714
+ private setOpacity;
715
+ private setBlur;
716
+ private setExposure;
717
+ private setFilter;
718
+ private setBlackAndWhiteFilter;
719
+ private setSharpness;
720
+ private replaceBWSharpenData;
721
+ private updateBWSharpness;
722
+ private getSharpenData;
723
+ private getFilterValue;
724
+ private setFilterValue;
725
+ private getSaturationFilterValue;
726
+ private setSaturationFilterValue;
727
+ private getBlackAndWhiteData;
568
728
  /**
569
729
  * Clear a current selection.
570
730
  *
@@ -578,7 +738,6 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
578
738
  * @returns {boolean}.
579
739
  */
580
740
  crop(): boolean;
581
- private updateInMemoryContext;
582
741
  /**
583
742
  * Flips an image by horizontally or vertically.
584
743
  *
@@ -662,7 +821,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
662
821
  *
663
822
  * @param {boolean} value - Specifies a value whether enable or disable freehand drawing.
664
823
  *
665
- * @returns {void}.
824
+ * @returns {void}.
666
825
  */
667
826
  freehandDraw(value: boolean): void;
668
827
  /**
@@ -833,6 +992,22 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
833
992
  * @returns {void}.
834
993
  */
835
994
  update(): void;
995
+ /**
996
+ * To apply the filters to an image
997
+ *
998
+ * @param {ImageFilterOptions } filterOption - Specifies the filter options to the image.
999
+ * @returns {void}.
1000
+ */
1001
+ applyImageFilter(filterOption: ImageFilterOptions): void;
1002
+ /**
1003
+ * To apply the filters to an image
1004
+ *
1005
+ * @param {ImageFinetuneOptions } finetuneOption - Specifies the finetune options to the image.
1006
+ * @param {number } value - Specifies the value for finetuning the image.
1007
+ * @returns {void}.
1008
+ *
1009
+ */
1010
+ finetuneImage(finetuneOption: ImageFinetuneOptions, value: number): void;
836
1011
  /**
837
1012
  * To check whether the undo collection is empty or not.
838
1013
  *
@@ -907,7 +1082,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
907
1082
  /**
908
1083
  * To save the signature with the given file type and file name.
909
1084
  *
910
- * @param {SignatureFileType} type - specify type of the file to be saved a signature.
1085
+ * @param {FileType} type - specify type of the file to be saved a signature.
911
1086
  * @param {string} fileName - specify name of the file to be saved a signature.
912
1087
  *
913
1088
  * @returns {void}.
@@ -924,7 +1099,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
924
1099
  /**
925
1100
  * Returns the persistence data for component.
926
1101
  *
927
- * @returns any.
1102
+ * @returns {any}.
928
1103
  * @private
929
1104
  */
930
1105
  getLocalData(): any;
@@ -949,6 +1124,14 @@ export declare type Theme = 'Bootstrap5' | 'Bootstrap5Dark' | 'Tailwind' | 'Tail
949
1124
  * Defines the toolbar items for Image Editor.
950
1125
  */
951
1126
  export declare type ImageEditorCommands = 'Crop' | 'Transform' | 'Annotate' | 'ZoomIn' | 'ZoomOut' | 'Open' | 'Reset' | 'Save' | 'Pan' | 'Move' | 'Pen' | 'Line' | 'Rectangle' | 'Ellipse' | 'Text' | 'CustomSelection' | 'CircleSelection' | 'SquareSelection' | 'RatioSelection' | 'RotateLeft' | 'RotateRight' | 'FlipHorizontal' | 'FlipVertical';
1127
+ /**
1128
+ * Defines the image filter options
1129
+ */
1130
+ export declare type ImageFilterOptions = 'Default' | 'Chrome' | 'Cold' | 'Warm' | 'Gray Scale' | 'Sepia' | 'Invert';
1131
+ /**
1132
+ * Defines the image filter options
1133
+ */
1134
+ export declare type ImageFinetuneOptions = 'Brightness' | 'Contrast' | 'Hue' | 'Saturation' | 'Exposure' | 'Opacity' | 'Blur';
952
1135
  /**
953
1136
  * Interface for zoom transition occur in the imageEditor.
954
1137
  */
@@ -1044,6 +1227,19 @@ export interface ToolbarEventArgs {
1044
1227
  */
1045
1228
  toolbarItems?: (string | ItemModel)[];
1046
1229
  }
1230
+ /**
1231
+ * Interface for saving the canvas as image.
1232
+ */
1233
+ export interface FileOpenEventArgs {
1234
+ /**
1235
+ * Specifies the file name for an image.
1236
+ */
1237
+ fileName: string;
1238
+ /**
1239
+ * Returns the file type for an image.
1240
+ */
1241
+ fileType: FileType;
1242
+ }
1047
1243
  /**
1048
1244
  * Interface for saving the canvas as image.
1049
1245
  */
@@ -1153,3 +1349,25 @@ export interface ShapeSettings {
1153
1349
  */
1154
1350
  color?: string;
1155
1351
  }
1352
+ /**
1353
+ * Interface for filter option for the image.
1354
+ */
1355
+ export interface ImageFilterEventArgs {
1356
+ /**
1357
+ * Specifies the when applying filter to an image.
1358
+ */
1359
+ filter: ImageFilterOptions;
1360
+ }
1361
+ /**
1362
+ * Interface for filter option for the image.
1363
+ */
1364
+ export interface FinetuneEventArgs {
1365
+ /**
1366
+ * Specifies the type of fine tunes.
1367
+ */
1368
+ finetune: ImageFinetuneOptions;
1369
+ /**
1370
+ * Specifies the value of the fine tunes.
1371
+ */
1372
+ value: number;
1373
+ }