@syncfusion/ej2-image-editor 20.4.51 → 21.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.
- package/CHANGELOG.md +12 -12
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +3212 -1326
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +3254 -1363
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/image-editor/image-editor-model.d.ts +306 -100
- package/src/image-editor/image-editor.d.ts +839 -273
- package/src/image-editor/image-editor.js +3252 -1372
- package/styles/bootstrap-dark.css +10 -5
- package/styles/bootstrap.css +10 -5
- package/styles/bootstrap4.css +10 -5
- package/styles/bootstrap5-dark.css +12 -8
- package/styles/bootstrap5.css +12 -8
- package/styles/fabric-dark.css +10 -5
- package/styles/fabric.css +10 -5
- package/styles/fluent-dark.css +10 -5
- package/styles/fluent.css +10 -5
- package/styles/highcontrast-light.css +10 -5
- package/styles/highcontrast.css +10 -5
- package/styles/image-editor/_layout.scss +7 -11
- package/styles/image-editor/_theme.scss +4 -4
- package/styles/image-editor/bootstrap-dark.css +10 -5
- package/styles/image-editor/bootstrap.css +10 -5
- package/styles/image-editor/bootstrap4.css +10 -5
- package/styles/image-editor/bootstrap5-dark.css +12 -8
- package/styles/image-editor/bootstrap5.css +12 -8
- package/styles/image-editor/fabric-dark.css +10 -5
- package/styles/image-editor/fabric.css +10 -5
- package/styles/image-editor/fluent-dark.css +10 -5
- package/styles/image-editor/fluent.css +10 -5
- package/styles/image-editor/highcontrast-light.css +10 -5
- package/styles/image-editor/highcontrast.css +10 -5
- package/styles/image-editor/material-dark.css +10 -13
- package/styles/image-editor/material.css +10 -8
- package/styles/image-editor/tailwind-dark.css +10 -5
- package/styles/image-editor/tailwind.css +10 -5
- package/styles/material-dark.css +10 -13
- package/styles/material.css +10 -8
- package/styles/tailwind-dark.css +10 -5
- package/styles/tailwind.css +10 -5
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/styles/image-editor/_material3-definition.scss +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
2
|
-
import {ImageFinetuneValue,Theme,
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
2
|
+
import {ImageFinetuneValue,ZoomTrigger,Point,Theme,ImageEditorCommand,SaveEventArgs,BeforeSaveEventArgs,ZoomEventArgs,PanEventArgs,CropEventArgs,RotateEventArgs,FlipEventArgs,ShapeChangeEventArgs,OpenEventArgs,ToolbarEventArgs,ImageFilterEventArgs,FinetuneEventArgs,ImageEditorClickEventArgs,QuickAccessToolbarEventArgs} from "./image-editor";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -8,79 +8,177 @@ import {ComponentModel} from '@syncfusion/ej2-base';
|
|
|
8
8
|
export interface FinetuneSettingsModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents a finetune setting for adjusting the brightness of an image.
|
|
12
12
|
*
|
|
13
|
+
* @type {ImageFinetuneValue}
|
|
14
|
+
*
|
|
15
|
+
* @property {number} value - The brightness level of the image, from -100 to 100.
|
|
16
|
+
* @property {number} min - The minimum brightness value allowed, typically -100.
|
|
17
|
+
* @property {number} max - The maximum brightness value allowed, typically 100.
|
|
13
18
|
* @default null
|
|
14
19
|
*/
|
|
15
20
|
brightness?: ImageFinetuneValue;
|
|
16
21
|
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
23
|
+
* Represents a finetune setting for adjusting the contrast of an image.
|
|
24
|
+
*
|
|
25
|
+
* @type {ImageFinetuneValue}
|
|
19
26
|
*
|
|
27
|
+
* @property {number} value - The contrast level of the image, from -100 to 100.
|
|
28
|
+
* @property {number} min - The minimum contrast value allowed, typically -100.
|
|
29
|
+
* @property {number} max - The maximum contrast value allowed, typically 100.
|
|
20
30
|
* @default null
|
|
21
31
|
*/
|
|
22
32
|
contrast?: ImageFinetuneValue;
|
|
23
33
|
|
|
24
34
|
/**
|
|
25
|
-
*
|
|
35
|
+
* Represents a finetune setting for adjusting the hue of an image.
|
|
26
36
|
*
|
|
37
|
+
* @type {ImageFinetuneValue}
|
|
38
|
+
*
|
|
39
|
+
* @property {number} value - The hue level of the image, from 0 to 100.
|
|
40
|
+
* @property {number} min - The minimum hue value allowed, typically 0.
|
|
41
|
+
* @property {number} max - The maximum hue value allowed, typically 100.
|
|
27
42
|
* @default null
|
|
28
43
|
*/
|
|
29
44
|
hue?: ImageFinetuneValue;
|
|
30
45
|
|
|
31
46
|
/**
|
|
32
|
-
*
|
|
47
|
+
* Represents a finetune setting for adjusting the saturation of an image.
|
|
48
|
+
*
|
|
49
|
+
* @type {ImageFinetuneValue}
|
|
33
50
|
*
|
|
51
|
+
* @property {number} value - The saturation level of the image, from -100 to 100.
|
|
52
|
+
* @property {number} min - The minimum saturation value allowed, typically -100.
|
|
53
|
+
* @property {number} max - The maximum saturation value allowed, typically 100.
|
|
34
54
|
* @default null
|
|
35
55
|
*/
|
|
36
56
|
saturation?: ImageFinetuneValue;
|
|
37
57
|
|
|
38
58
|
/**
|
|
39
|
-
*
|
|
59
|
+
* Represents a finetune setting for adjusting the exposure of an image.
|
|
40
60
|
*
|
|
61
|
+
* @type {ImageFinetuneValue}
|
|
62
|
+
*
|
|
63
|
+
* @property {number} value - The exposure level of the image, from -100 to 100.
|
|
64
|
+
* @property {number} min - The minimum exposure value allowed, typically -100.
|
|
65
|
+
* @property {number} max - The maximum exposure value allowed, typically 100.
|
|
41
66
|
* @default null
|
|
42
67
|
*/
|
|
43
68
|
exposure?: ImageFinetuneValue;
|
|
44
69
|
|
|
45
70
|
/**
|
|
46
|
-
*
|
|
71
|
+
* Represents a finetune setting for adjusting the opacity of an image.
|
|
72
|
+
*
|
|
73
|
+
* @type {ImageFinetuneValue}
|
|
47
74
|
*
|
|
75
|
+
* @property {number} value - The opacity level of the image, from 0 to 100.
|
|
76
|
+
* @property {number} min - The minimum opacity value allowed, typically 0.
|
|
77
|
+
* @property {number} max - The maximum opacity value allowed, typically 100.
|
|
48
78
|
* @default null
|
|
49
79
|
*/
|
|
50
80
|
opacity?: ImageFinetuneValue;
|
|
51
81
|
|
|
52
82
|
/**
|
|
53
|
-
*
|
|
83
|
+
* Represents a finetune setting for adjusting the blur of an image.
|
|
84
|
+
*
|
|
85
|
+
* @type {ImageFinetuneValue}
|
|
54
86
|
*
|
|
87
|
+
* @property {number} value - The blur level of the image, from 0 to 100.
|
|
88
|
+
* @property {number} min - The minimum blur value allowed, typically 0.
|
|
89
|
+
* @property {number} max - The maximum blur value allowed, typically 100.
|
|
55
90
|
* @default null
|
|
56
91
|
*/
|
|
57
92
|
blur?: ImageFinetuneValue;
|
|
58
93
|
|
|
59
94
|
}
|
|
60
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Interface for a class ZoomSettings
|
|
98
|
+
*/
|
|
99
|
+
export interface ZoomSettingsModel {
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the available options for zooming in an image editor control.
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
* Use this property to enable or disable specific types of zooming in the image editor. The following zooming options are available:
|
|
106
|
+
* MouseWheel: Zooming is performed by scrolling the mouse wheel up and down.
|
|
107
|
+
* Pinch: Zooming is performed using pinch gestures on touch-enabled devices.
|
|
108
|
+
* Commands: Zooming is performed by clicking the CTRL key and either the plus (+) or minus (-) buttons on the keyboard.
|
|
109
|
+
* Toolbar: Zooming is performed using toolbar buttons.
|
|
110
|
+
*
|
|
111
|
+
* By default, this property is set to `null`, which enables all types of zooming.
|
|
112
|
+
*
|
|
113
|
+
* @default null
|
|
114
|
+
*/
|
|
115
|
+
zoomTrigger?: ZoomTrigger;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Specifies the minimum zooming level to limit the zooming.
|
|
119
|
+
* An integer value that specifies the minimum zooming level. And the default value is 1 (100%).
|
|
120
|
+
*
|
|
121
|
+
* @private
|
|
122
|
+
* @remarks
|
|
123
|
+
* The given value is considered as percentage.
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
minZoomFactor?: number;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the maximum zooming level to limit the zooming.
|
|
130
|
+
* An integer value that specifies the maximum zooming level. And the default value is 10 (1000 percent).
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* The given value is considered as percentage.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
maxZoomFactor?: number;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Specifies the default zoom factor to be applied on initial loading of image.
|
|
140
|
+
* An integer value that specifies the current zooming level. And the default value is 1 (100 percent).
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* The given value is considered as percentage.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
zoomFactor?: number;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Specifies the point in which the zooming has been performed in the image editor.
|
|
150
|
+
* A point value that specifies the current zooming point.
|
|
151
|
+
* And the default value is null, and it can be considered as center point of the image editor.
|
|
152
|
+
*
|
|
153
|
+
* @remarks
|
|
154
|
+
* The given value is a point object which has x and y coordinates.
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
zoomPoint?: Point;
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
61
161
|
/**
|
|
62
162
|
* Interface for a class ImageEditor
|
|
63
163
|
*/
|
|
64
164
|
export interface ImageEditorModel extends ComponentModel{
|
|
65
165
|
|
|
66
166
|
/**
|
|
67
|
-
* Defines
|
|
167
|
+
* Defines one or more CSS classes that can be used to customize the appearance of an Image Editor component.
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
* One or more CSS classes to customize the appearance of the Image Editor component, such as by changing its toolbar appearance, borders, sizes, or other visual aspects.
|
|
68
171
|
*
|
|
69
172
|
* @default ''
|
|
70
|
-
|
|
71
|
-
* <div id='imageeditor'></div>
|
|
72
|
-
* ```
|
|
73
|
-
* ```typescript
|
|
74
|
-
* <script>
|
|
75
|
-
* var imageObj = new ImageEditor({cssClass: 'e-custom-img-editor'});
|
|
76
|
-
* imageObj.appendTo("#imageeditor");
|
|
77
|
-
* </script>
|
|
78
|
-
* ```
|
|
173
|
+
*
|
|
79
174
|
*/
|
|
80
175
|
cssClass?: string;
|
|
81
176
|
|
|
82
177
|
/**
|
|
83
|
-
*
|
|
178
|
+
* Defines whether an Image Editor component is enabled or disabled.
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
* A disabled Image Editor component may have a different visual appearance than an enabled one. When set to “true”, the Image Editor component will be disabled, and the user will not be able to interact with it.
|
|
84
182
|
*
|
|
85
183
|
* @default false
|
|
86
184
|
*/
|
|
@@ -89,14 +187,32 @@ export interface ImageEditorModel extends ComponentModel{
|
|
|
89
187
|
/**
|
|
90
188
|
* Specifies the height of the Image Editor.
|
|
91
189
|
*
|
|
190
|
+
* @remarks
|
|
191
|
+
* The value of height is specified either as a percentage (e.g. '100%') or as a fixed pixel value (e.g. '100px').
|
|
192
|
+
*
|
|
92
193
|
* @default '100%'
|
|
93
194
|
*/
|
|
94
195
|
height?: string;
|
|
95
196
|
|
|
96
197
|
/**
|
|
97
|
-
* Specifies the theme of the Image Editor. The shape selection
|
|
98
|
-
*
|
|
99
|
-
*
|
|
198
|
+
* Specifies the theme of the Image Editor. The appearance of the shape selection in Image Editor is determined by this property.
|
|
199
|
+
*
|
|
200
|
+
* @remarks
|
|
201
|
+
* The `theme` property supports all the built-in themes of Syncfusion, including:
|
|
202
|
+
* - `Bootstrap5`
|
|
203
|
+
* - `Fluent`
|
|
204
|
+
* - `Tailwind`
|
|
205
|
+
* - `Bootstrap4`
|
|
206
|
+
* - `Material`
|
|
207
|
+
* - `Fabric`
|
|
208
|
+
* - `HighContrast`
|
|
209
|
+
* - `Bootstrap5Dark`
|
|
210
|
+
* - `Bootstrap4Dark`
|
|
211
|
+
* - `MaterialDark`
|
|
212
|
+
* - `FabricDark`
|
|
213
|
+
* - `HighContrastDark`
|
|
214
|
+
*
|
|
215
|
+
* The default value is set to `Theme.Bootstrap5`.
|
|
100
216
|
*
|
|
101
217
|
* @isenumeration true
|
|
102
218
|
* @default Theme.Bootstrap5
|
|
@@ -106,79 +222,111 @@ export interface ImageEditorModel extends ComponentModel{
|
|
|
106
222
|
theme?: string | Theme;
|
|
107
223
|
|
|
108
224
|
/**
|
|
109
|
-
* Specifies the toolbar items to perform UI interactions.
|
|
225
|
+
* Specifies the toolbar items to perform UI interactions.
|
|
226
|
+
* It accepts both string[] and ItemModel[] to configure its toolbar items. The default value is null.
|
|
227
|
+
* If the property is not defined in the control, the default toolbar will be rendered with preconfigured toolbar commands.
|
|
110
228
|
* If the property is defined as empty collection, the toolbar will not be rendered.
|
|
111
|
-
* Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
|
|
112
229
|
* The preconfigured toolbar commands are
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
230
|
+
* - Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
|
|
231
|
+
* - Annotate: help to insert a shape on image that supports rectangle, ellipse, line, arrow, text and freehand drawing with resize, drag and drop, and customize its appearance.
|
|
232
|
+
* - Transform: helps to rotate and flip an image.
|
|
233
|
+
* - Finetunes: helps to perform adjustments on an image.
|
|
234
|
+
* - Filters: helps to perform predefined color filters.
|
|
235
|
+
* - ZoomIn: performs zoom-in an image.
|
|
236
|
+
* - ZoomOut: performs zoom-out an image.
|
|
237
|
+
* - Save: save the modified image.
|
|
238
|
+
* - Open: open an image to perform editing.
|
|
239
|
+
* - Reset: reset the modification and restore the original image.
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* // Define toolbar items as an array of strings
|
|
243
|
+
* var toolbarItems = ["Crop", "Annotate", "Transform", "ZoomIn", "ZoomOut", "Pan", "Move", "Save", "Open", "Reset"];
|
|
244
|
+
*
|
|
245
|
+
* // Define toolbar items as an array of ItemModel objects
|
|
246
|
+
* var toolbarItems = [
|
|
247
|
+
* { text: "Crop", tooltipText: "Crop", prefixIcon: "e-icon e-crop-icon" }
|
|
248
|
+
* ]
|
|
249
|
+
*
|
|
250
|
+
* @remarks
|
|
251
|
+
* If the toolbarTemplate property is defined in the control, the toolbar will be rendered based on the toolbarTemplate property.
|
|
124
252
|
* @default null
|
|
125
|
-
|
|
126
|
-
*
|
|
127
|
-
* ```
|
|
128
|
-
* ```typescript
|
|
129
|
-
* <script>
|
|
130
|
-
* var imageObj = new ImageEditor({
|
|
131
|
-
* toolbar[Crop, ZoomIn, ZoomOut, Transform, {text: 'Custom'}]
|
|
132
|
-
* });
|
|
133
|
-
* imageObj.appendTo("#imageeditor");
|
|
134
|
-
* </script>
|
|
135
|
-
* ```
|
|
253
|
+
*
|
|
254
|
+
* {% codeBlock src='image-editor/toolbar/index.md' %}{% endcodeBlock %}
|
|
136
255
|
*/
|
|
137
|
-
toolbar?: (string |
|
|
256
|
+
toolbar?: (string | ImageEditorCommand | ItemModel)[];
|
|
138
257
|
|
|
139
258
|
/**
|
|
140
|
-
* Specifies template
|
|
141
|
-
*
|
|
142
|
-
*
|
|
259
|
+
* Specifies a custom template for the toolbar of an image editor control.
|
|
260
|
+
* A string that specifies a custom template for the toolbar of the image editor. If this property is defined, the 'toolbar' property will not have any effect.
|
|
261
|
+
*
|
|
262
|
+
* @remarks
|
|
263
|
+
* Use this property if you want to customize the entire toolbar in your own way. The template should be a string that contains the HTML markup for the custom toolbar.
|
|
143
264
|
*
|
|
144
265
|
* @default null
|
|
145
|
-
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* ```typescript
|
|
149
|
-
* <script>
|
|
150
|
-
* var imageObj = new ImageEditor({
|
|
151
|
-
* toolbarTemplate: '#toolbarTemplate'
|
|
152
|
-
* });
|
|
153
|
-
* imageObj.appendTo("#imageeditor");
|
|
154
|
-
* </script>
|
|
155
|
-
* <script id="toolbarTemplate" type="text/x-template">
|
|
156
|
-
* <div class = 'e-toolbar'>
|
|
157
|
-
* <button id= 'dltbtn'></button>
|
|
158
|
-
* </div>
|
|
159
|
-
* </script>
|
|
160
|
-
* ```
|
|
266
|
+
*
|
|
267
|
+
* {% codeBlock src='image-editor/toolbarTemplate/index.md' %}{% endcodeBlock %}
|
|
268
|
+
*
|
|
161
269
|
*/
|
|
162
270
|
toolbarTemplate?: string;
|
|
163
271
|
|
|
164
272
|
/**
|
|
165
|
-
* Specifies the width of
|
|
273
|
+
* Specifies the width of an Image Editor.
|
|
274
|
+
*
|
|
275
|
+
* @remarks
|
|
276
|
+
* The value of width is specified either as a percentage (e.g. '100%') or as a fixed pixel value (e.g. '100px').
|
|
166
277
|
*
|
|
167
278
|
* @default '100%'
|
|
168
279
|
*/
|
|
169
280
|
width?: string;
|
|
170
281
|
|
|
171
282
|
/**
|
|
172
|
-
* Specifies whether
|
|
283
|
+
* Specifies a boolean value whether enable undo/redo operations in the image editor.
|
|
284
|
+
*
|
|
285
|
+
* @remarks
|
|
286
|
+
* If this property is true, the undo redo options will be enabled in toolbar and can also be accessed via keyboard shortcuts.
|
|
287
|
+
* If set to false, both options will be disabled.
|
|
288
|
+
* The undo redo history is limited to 16. Once the maximum limit is reached, the oldest history item will be removed to make space for the new item.
|
|
289
|
+
*
|
|
290
|
+
* @default true
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
293
|
+
allowUndoRedo?: boolean;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Specifies whether to show/hide the Quick Access Toolbar while select the shapes.
|
|
297
|
+
*
|
|
298
|
+
* @remarks
|
|
299
|
+
* The Quick Access Toolbar is a small customizable toolbar that shows commonly used commands while select the shapes.
|
|
300
|
+
* Set this property to true to show the Quick Access Toolbar, and false to hide it.
|
|
173
301
|
*
|
|
174
302
|
* @default false
|
|
175
303
|
* @private
|
|
304
|
+
*
|
|
305
|
+
* @remarks
|
|
306
|
+
* Set this property to true to show the quick access toolbar, and false to hide it.
|
|
307
|
+
*/
|
|
308
|
+
showQuickAccessToolbar?: boolean;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Specifies a custom template content for the quick access toolbar of an Image Editor control.
|
|
312
|
+
*
|
|
313
|
+
* @default null
|
|
314
|
+
* @private
|
|
315
|
+
*
|
|
316
|
+
* @remarks
|
|
317
|
+
* This property only works if the "showQuickAccessToolbar" property is set to true.
|
|
318
|
+
*
|
|
319
|
+
* {% codeBlock src='image-editor/quickAccessToolbarTemplate/index.md' %}{% endcodeBlock %}
|
|
320
|
+
*
|
|
176
321
|
*/
|
|
177
|
-
|
|
322
|
+
quickAccessToolbarTemplate?: string;
|
|
178
323
|
|
|
179
324
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
325
|
+
* Specifies whether to prevent user interaction with the image editor control.
|
|
326
|
+
* A boolean that specifies whether to prevent the interaction in image editor control. The default value is false.
|
|
327
|
+
*
|
|
328
|
+
* @remarks
|
|
329
|
+
* If the property is true, the image editor control becomes read-only, and the user interaction will be prevented.
|
|
182
330
|
*
|
|
183
331
|
* @default false
|
|
184
332
|
* @private
|
|
@@ -186,7 +334,8 @@ export interface ImageEditorModel extends ComponentModel{
|
|
|
186
334
|
isReadOnly?: boolean;
|
|
187
335
|
|
|
188
336
|
/**
|
|
189
|
-
* Specifies
|
|
337
|
+
* Specifies whether to enable RTL mode in image editor control that displays the content in the right-to-left direction.
|
|
338
|
+
* A boolean that specifies whether to enable RTL mode in image editor control. The default value is false.
|
|
190
339
|
*
|
|
191
340
|
* @default false
|
|
192
341
|
* @private
|
|
@@ -194,9 +343,11 @@ export interface ImageEditorModel extends ComponentModel{
|
|
|
194
343
|
enableRtl?: boolean;
|
|
195
344
|
|
|
196
345
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
346
|
+
* Specifies a bool value whether enable or disable persist component's state between page reloads. The default value is false.
|
|
347
|
+
*
|
|
348
|
+
* @remarks
|
|
349
|
+
* If this property is true, the controls's state persistence will be enabled.
|
|
350
|
+
* Control's property will be stored in browser local storage to persist control's state when page reloads.
|
|
200
351
|
*
|
|
201
352
|
* @default false
|
|
202
353
|
* @private
|
|
@@ -204,128 +355,183 @@ export interface ImageEditorModel extends ComponentModel{
|
|
|
204
355
|
enablePersistence?: boolean;
|
|
205
356
|
|
|
206
357
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
358
|
+
* Specifies the finetune settings option which can be used to perform color adjustments in the image editor control.
|
|
359
|
+
*
|
|
360
|
+
* @remarks
|
|
361
|
+
* A 'FinetuneSettingsModel' value that specifies the the finetune options which are enabled in image editor control.
|
|
362
|
+
* If the property is not specified, then the default values will be applied for minimum, maximum, and value properties for all finetune options.
|
|
363
|
+
*
|
|
364
|
+
* The possible values are:
|
|
365
|
+
* - 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.
|
|
366
|
+
* - 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.
|
|
367
|
+
* - 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.
|
|
368
|
+
* - 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.
|
|
369
|
+
* - Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
|
|
370
|
+
* - 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.
|
|
371
|
+
* - Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
|
|
372
|
+
*
|
|
373
|
+
* {% codeBlock src='image-editor/finetuneSettings/index.md' %}{% endcodeBlock %}
|
|
215
374
|
*
|
|
216
375
|
*/
|
|
217
376
|
finetuneSettings?: FinetuneSettingsModel;
|
|
218
377
|
|
|
219
378
|
/**
|
|
220
|
-
*
|
|
379
|
+
* Specifies the zoom settings to perform zooming action.
|
|
380
|
+
* A 'ZoomSettingsModel' value that specifies the the zoom related options which are enabled in image editor control. The default value is null.
|
|
381
|
+
*
|
|
382
|
+
* @remarks
|
|
383
|
+
* If the property is not specified, then the default settings will be applied for all the properties available in zoom settings.
|
|
384
|
+
*
|
|
385
|
+
* The following options are available in `zoomSettings`.
|
|
386
|
+
* - minZoomFactor: Specifies the minimum zoom factor level to control the zoom.
|
|
387
|
+
* - maxZoomFactor: Specifies the maximum zoom factor level to control the zoom.
|
|
388
|
+
* - zoomFactor: Specifies the zoom factor to be applied to the image.
|
|
389
|
+
* - zoomTrigger: Specifies the types of zooming to be supported in the image editor.
|
|
390
|
+
* - zoomPoint: Specifies the x and y coordinates in which the zooming performed on initial load.
|
|
391
|
+
*
|
|
392
|
+
* {% codeBlock src='image-editor/zoomSettings/index.md' %}{% endcodeBlock %}
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
395
|
+
zoomSettings?: ZoomSettingsModel;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Event callback that is raised before an image is saved.
|
|
221
399
|
*
|
|
222
400
|
* @event beforeSave
|
|
223
401
|
*/
|
|
224
402
|
beforeSave?: EmitType<BeforeSaveEventArgs>;
|
|
225
403
|
|
|
226
404
|
/**
|
|
227
|
-
*
|
|
405
|
+
* Event callback that is raised after rendering the Image Editor component.
|
|
228
406
|
*
|
|
229
407
|
* @event created
|
|
230
408
|
*/
|
|
231
409
|
created?: EmitType<Event>
|
|
232
410
|
|
|
233
411
|
/**
|
|
234
|
-
*
|
|
412
|
+
* Event callback that is raised once the component is destroyed with its elements and bound events.
|
|
235
413
|
*
|
|
236
414
|
* @event destroyed
|
|
237
415
|
*/
|
|
238
416
|
destroyed?: EmitType<Event>
|
|
239
417
|
|
|
240
418
|
/**
|
|
241
|
-
*
|
|
419
|
+
* Event callback that is raised while zooming an image.
|
|
242
420
|
*
|
|
243
421
|
* @event zooming
|
|
244
422
|
*/
|
|
245
423
|
zooming?: EmitType<ZoomEventArgs>
|
|
246
424
|
|
|
247
425
|
/**
|
|
248
|
-
*
|
|
426
|
+
* Event callback that is raised while panning an image.
|
|
249
427
|
*
|
|
250
428
|
* @event panning
|
|
251
429
|
*/
|
|
252
430
|
panning?: EmitType<PanEventArgs>
|
|
253
431
|
|
|
254
432
|
/**
|
|
255
|
-
*
|
|
433
|
+
* Event callback that is raised while cropping an image.
|
|
256
434
|
*
|
|
257
435
|
* @event cropping
|
|
258
436
|
*/
|
|
259
437
|
cropping?: EmitType<CropEventArgs>
|
|
260
438
|
|
|
261
439
|
/**
|
|
262
|
-
*
|
|
440
|
+
* Event callback that is raised while rotating an image.
|
|
263
441
|
*
|
|
264
442
|
* @event rotating
|
|
265
443
|
*/
|
|
266
444
|
rotating?: EmitType<RotateEventArgs>
|
|
267
445
|
|
|
268
446
|
/**
|
|
269
|
-
*
|
|
447
|
+
* Event callback that is raised while flipping an image.
|
|
270
448
|
*
|
|
271
449
|
* @event flipping
|
|
272
450
|
*/
|
|
273
451
|
flipping?: EmitType<FlipEventArgs>
|
|
274
452
|
|
|
275
453
|
/**
|
|
276
|
-
*
|
|
454
|
+
* Event callback that is raised while changing shapes in an Image Editor.
|
|
277
455
|
*
|
|
278
456
|
* @event shapeChanging
|
|
279
457
|
*/
|
|
280
458
|
shapeChanging?: EmitType<ShapeChangeEventArgs>
|
|
281
459
|
|
|
282
460
|
/**
|
|
283
|
-
*
|
|
461
|
+
* Event callback that is raised once an image is opened in an Image Editor.
|
|
284
462
|
*
|
|
285
463
|
* @event fileOpened
|
|
286
464
|
*/
|
|
287
465
|
fileOpened?: EmitType<OpenEventArgs>
|
|
288
466
|
|
|
289
467
|
/**
|
|
290
|
-
*
|
|
468
|
+
* Event callback that is raised once an image is saved.
|
|
291
469
|
*
|
|
292
470
|
* @event saved
|
|
293
471
|
*/
|
|
294
472
|
saved?: EmitType<SaveEventArgs>;
|
|
295
473
|
|
|
296
474
|
/**
|
|
297
|
-
*
|
|
475
|
+
* Event callback that is raised once the toolbar is created.
|
|
298
476
|
*
|
|
299
477
|
* @event toolbarCreated
|
|
300
478
|
*/
|
|
301
479
|
toolbarCreated?: EmitType<ToolbarEventArgs>
|
|
302
480
|
|
|
303
481
|
/**
|
|
304
|
-
*
|
|
482
|
+
* Event callback that is raised while updating/refreshing the toolbar
|
|
305
483
|
*
|
|
306
484
|
* @event toolbarUpdating
|
|
485
|
+
*
|
|
486
|
+
* {% codeBlock src='image-editor/toolbarUpdating/index.md' %}{% endcodeBlock %}
|
|
487
|
+
*
|
|
307
488
|
*/
|
|
308
489
|
toolbarUpdating?: EmitType<ToolbarEventArgs>
|
|
309
490
|
|
|
310
491
|
/**
|
|
311
|
-
*
|
|
492
|
+
* Event callback that is raised once the toolbar item is clicked.
|
|
312
493
|
*
|
|
313
494
|
* @event toolbarItemClicked
|
|
314
495
|
*/
|
|
315
496
|
toolbarItemClicked?: EmitType<ClickEventArgs>
|
|
316
497
|
|
|
317
498
|
/**
|
|
318
|
-
*
|
|
499
|
+
* Event callback that is raised when applying filter to an image.
|
|
319
500
|
*
|
|
320
501
|
* @event imageFiltering
|
|
321
502
|
*/
|
|
322
503
|
imageFiltering?: EmitType<ImageFilterEventArgs>;
|
|
323
504
|
|
|
324
505
|
/**
|
|
325
|
-
*
|
|
506
|
+
* Event callback that is raised when applying fine tune to an image.
|
|
326
507
|
*
|
|
327
508
|
* @event finetuneValueChanging
|
|
328
509
|
*/
|
|
329
510
|
finetuneValueChanging?: EmitType<FinetuneEventArgs>
|
|
330
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Event callback that is raised while clicking on an image in the Image Editor.
|
|
514
|
+
*
|
|
515
|
+
* @event click
|
|
516
|
+
*/
|
|
517
|
+
click?: EmitType<ImageEditorClickEventArgs>
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Event callback that is triggered when the quick access toolbar is opening.
|
|
521
|
+
*
|
|
522
|
+
* @event quickAccessToolbarOpening
|
|
523
|
+
* @private
|
|
524
|
+
*
|
|
525
|
+
* @remarks
|
|
526
|
+
* Use this event to customize the toolbar items that appear in the quick access toolbar.
|
|
527
|
+
* To customize the toolbar items, modify the "toolbarItems" collection property of the event arguments.
|
|
528
|
+
* The "toolbarItems" collection contains string and ItemModel values.
|
|
529
|
+
* The string values representing the names of the built-in toolbar items to display.
|
|
530
|
+
* The ItemModel values representing the ItemModel of custom toolbar items to display.
|
|
531
|
+
*
|
|
532
|
+
* {% codeBlock src='image-editor/quickAccessToolbarOpening/index.md' %}{% endcodeBlock %}
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
quickAccessToolbarOpening?: EmitType<QuickAccessToolbarEventArgs>
|
|
536
|
+
|
|
331
537
|
}
|