@syncfusion/ej2-image-editor 20.4.51 → 21.1.36
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +55 -5
- 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 +20032 -11350
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +20027 -11313
- 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/action/crop.d.ts +36 -0
- package/src/image-editor/action/crop.js +829 -0
- package/src/image-editor/action/draw.d.ts +125 -0
- package/src/image-editor/action/draw.js +3263 -0
- package/src/image-editor/action/export.d.ts +23 -0
- package/src/image-editor/action/export.js +364 -0
- package/src/image-editor/action/filter.d.ts +35 -0
- package/src/image-editor/action/filter.js +699 -0
- package/src/image-editor/action/freehand-draw.d.ts +61 -0
- package/src/image-editor/action/freehand-draw.js +1015 -0
- package/src/image-editor/action/index.d.ts +9 -0
- package/src/image-editor/action/index.js +9 -0
- package/src/image-editor/action/selection.d.ts +139 -0
- package/src/image-editor/action/selection.js +4518 -0
- package/src/image-editor/action/shape.d.ts +94 -0
- package/src/image-editor/action/shape.js +2745 -0
- package/src/image-editor/action/transform.d.ts +67 -0
- package/src/image-editor/action/transform.js +1859 -0
- package/src/image-editor/action/undo-redo.d.ts +43 -0
- package/src/image-editor/action/undo-redo.js +800 -0
- package/src/image-editor/base/enum.d.ts +189 -0
- package/src/image-editor/base/enum.js +198 -0
- package/src/image-editor/base/image-editor-model.d.ts +626 -0
- package/src/image-editor/base/image-editor.d.ts +1300 -0
- package/src/image-editor/base/image-editor.js +2270 -0
- package/src/image-editor/base/index.d.ts +4 -0
- package/src/image-editor/base/index.js +2 -0
- package/src/image-editor/base/interface.d.ts +1128 -0
- package/src/image-editor/base/interface.js +1 -0
- package/src/image-editor/index.d.ts +3 -5
- package/src/image-editor/index.js +3 -4
- package/src/image-editor/renderer/index.d.ts +1 -0
- package/src/image-editor/renderer/index.js +1 -0
- package/src/image-editor/renderer/toolbar.d.ts +105 -0
- package/src/image-editor/renderer/toolbar.js +3018 -0
- package/styles/bootstrap-dark.css +79 -8
- package/styles/bootstrap.css +79 -8
- package/styles/bootstrap4.css +79 -8
- package/styles/bootstrap5-dark.css +81 -11
- package/styles/bootstrap5.css +81 -11
- package/styles/fabric-dark.css +79 -8
- package/styles/fabric.css +79 -8
- package/styles/fluent-dark.css +79 -8
- package/styles/fluent.css +79 -8
- package/styles/highcontrast-light.css +81 -10
- package/styles/highcontrast.css +82 -10
- package/styles/image-editor/_highcontrast-definition.scss +1 -1
- package/styles/image-editor/_highcontrast-light-definition.scss +1 -1
- package/styles/image-editor/_layout.scss +28 -18
- package/styles/image-editor/_material3-dark-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +10 -10
- package/styles/image-editor/_theme.scss +11 -6
- package/styles/image-editor/bootstrap-dark.css +79 -8
- package/styles/image-editor/bootstrap.css +79 -8
- package/styles/image-editor/bootstrap4.css +79 -8
- package/styles/image-editor/bootstrap5-dark.css +81 -11
- package/styles/image-editor/bootstrap5.css +81 -11
- package/styles/image-editor/fabric-dark.css +79 -8
- package/styles/image-editor/fabric.css +79 -8
- package/styles/image-editor/fluent-dark.css +79 -8
- package/styles/image-editor/fluent.css +79 -8
- package/styles/image-editor/highcontrast-light.css +81 -10
- package/styles/image-editor/highcontrast.css +82 -10
- package/styles/image-editor/icons/_bootstrap-dark.scss +132 -0
- package/styles/image-editor/icons/_bootstrap.scss +132 -0
- package/styles/image-editor/icons/_bootstrap4.scss +132 -0
- package/styles/image-editor/icons/_bootstrap5.scss +132 -0
- package/styles/image-editor/icons/_fabric-dark.scss +132 -0
- package/styles/image-editor/icons/_fabric.scss +132 -0
- package/styles/image-editor/icons/_fluent.scss +132 -0
- package/styles/image-editor/icons/_fusionnew.scss +132 -0
- package/styles/image-editor/icons/_highcontrast-light.scss +132 -0
- package/styles/image-editor/icons/_highcontrast.scss +132 -0
- package/styles/image-editor/icons/_material-dark.scss +132 -0
- package/styles/image-editor/icons/_material.scss +132 -0
- package/styles/image-editor/icons/_material3-dark.scss +1 -0
- package/styles/image-editor/icons/_material3.scss +133 -1
- package/styles/image-editor/icons/_tailwind.scss +132 -0
- package/styles/image-editor/material-dark.css +79 -16
- package/styles/image-editor/material.css +79 -11
- package/styles/image-editor/material3-dark.css +453 -0
- package/styles/image-editor/material3-dark.scss +14 -0
- package/styles/image-editor/material3.css +509 -0
- package/styles/image-editor/material3.scss +14 -0
- package/styles/image-editor/tailwind-dark.css +79 -8
- package/styles/image-editor/tailwind.css +79 -8
- package/styles/material-dark.css +79 -16
- package/styles/material.css +79 -11
- package/styles/material3-dark.css +453 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +509 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +79 -8
- package/styles/tailwind.css +79 -8
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/src/image-editor/image-editor-model.d.ts +0 -331
- package/src/image-editor/image-editor.d.ts +0 -1428
- package/src/image-editor/image-editor.js +0 -12849
|
@@ -1,1428 +0,0 @@
|
|
|
1
|
-
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
2
|
-
import { EmitType } from '@syncfusion/ej2-base';
|
|
3
|
-
import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations';
|
|
4
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
5
|
-
import { ImageEditorModel, FinetuneSettingsModel } from './image-editor-model';
|
|
6
|
-
/**
|
|
7
|
-
* Interface for image finetune values.
|
|
8
|
-
*/
|
|
9
|
-
export interface ImageFinetuneValue {
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the minimum value of finetune option.
|
|
12
|
-
*
|
|
13
|
-
* @default null
|
|
14
|
-
*/
|
|
15
|
-
min: number;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the maximum value of finetune option.
|
|
18
|
-
*
|
|
19
|
-
* @default null
|
|
20
|
-
*/
|
|
21
|
-
max: number;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the default value of finetune option.
|
|
24
|
-
*
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
27
|
-
defaultValue: number;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Interface for image finetune values.
|
|
31
|
-
*/
|
|
32
|
-
export declare class FinetuneSettings extends ChildProperty<FinetuneSettings> {
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the brightness level of image.
|
|
35
|
-
*
|
|
36
|
-
* @default null
|
|
37
|
-
*/
|
|
38
|
-
brightness: ImageFinetuneValue;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the contrast level image.
|
|
41
|
-
*
|
|
42
|
-
* @default null
|
|
43
|
-
*/
|
|
44
|
-
contrast: ImageFinetuneValue;
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the hue level image.
|
|
47
|
-
*
|
|
48
|
-
* @default null
|
|
49
|
-
*/
|
|
50
|
-
hue: ImageFinetuneValue;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies the saturation level image.
|
|
53
|
-
*
|
|
54
|
-
* @default null
|
|
55
|
-
*/
|
|
56
|
-
saturation: ImageFinetuneValue;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the exposure level image.
|
|
59
|
-
*
|
|
60
|
-
* @default null
|
|
61
|
-
*/
|
|
62
|
-
exposure: ImageFinetuneValue;
|
|
63
|
-
/**
|
|
64
|
-
* Specifies the opacity level image.
|
|
65
|
-
*
|
|
66
|
-
* @default null
|
|
67
|
-
*/
|
|
68
|
-
opacity: ImageFinetuneValue;
|
|
69
|
-
/**
|
|
70
|
-
* Specifies the blur level image.
|
|
71
|
-
*
|
|
72
|
-
* @default null
|
|
73
|
-
*/
|
|
74
|
-
blur: ImageFinetuneValue;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Image Editor is a graphical user interface that helps to edit an image by performing actions like selection,
|
|
78
|
-
* cropping, rotating, inserting text and shapes (rectangles, ellipses, lines), and drawing free hand on top of an image.
|
|
79
|
-
*
|
|
80
|
-
```html
|
|
81
|
-
* <div id='imageeditor'></div>
|
|
82
|
-
* ```
|
|
83
|
-
* ```typescript
|
|
84
|
-
* <script>
|
|
85
|
-
* var imageObj = new ImageEditor({});
|
|
86
|
-
* imageObj.appendTo("#imageeditor");
|
|
87
|
-
* </script>
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
export declare class ImageEditor extends Component<HTMLDivElement> implements INotifyPropertyChanged {
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* ImageEditor Private Properties
|
|
94
|
-
*/
|
|
95
|
-
private lowerCanvas;
|
|
96
|
-
private lowerContext;
|
|
97
|
-
private upperCanvas;
|
|
98
|
-
private upperContext;
|
|
99
|
-
private inMemoryCanvas;
|
|
100
|
-
private inMemoryContext;
|
|
101
|
-
private baseImg;
|
|
102
|
-
private textArea;
|
|
103
|
-
private degree;
|
|
104
|
-
private isUndoRedo;
|
|
105
|
-
private dragCanvas;
|
|
106
|
-
private dragElement;
|
|
107
|
-
private keyHistory;
|
|
108
|
-
private tempKeyHistory;
|
|
109
|
-
private mouseDownPoint;
|
|
110
|
-
private previousPoint;
|
|
111
|
-
private dragPoint;
|
|
112
|
-
private diffPoint;
|
|
113
|
-
private oldPoint;
|
|
114
|
-
private objColl;
|
|
115
|
-
private undoRedoColl;
|
|
116
|
-
private isImageLoaded;
|
|
117
|
-
private strokeSettings;
|
|
118
|
-
private tempStrokeSettings;
|
|
119
|
-
private textSettings;
|
|
120
|
-
private tempTextSettings;
|
|
121
|
-
private penStrokeWidth;
|
|
122
|
-
private toolbarHeight;
|
|
123
|
-
private togglePan;
|
|
124
|
-
private disablePan;
|
|
125
|
-
private currFlipState;
|
|
126
|
-
private touchEndPoint;
|
|
127
|
-
private undoRedoStep;
|
|
128
|
-
private togglePen;
|
|
129
|
-
private currentToolbar;
|
|
130
|
-
private textStartPoints;
|
|
131
|
-
private fontSizeColl;
|
|
132
|
-
private textRow;
|
|
133
|
-
private activeObj;
|
|
134
|
-
private tempActiveObj;
|
|
135
|
-
private currObjType;
|
|
136
|
-
private defToolbarItems;
|
|
137
|
-
private defaultLocale;
|
|
138
|
-
private l10n;
|
|
139
|
-
private themeColl;
|
|
140
|
-
private toolbarFn;
|
|
141
|
-
private isTimer;
|
|
142
|
-
private timer;
|
|
143
|
-
private tempObjColl;
|
|
144
|
-
private isFirstMove;
|
|
145
|
-
private startTouches;
|
|
146
|
-
private tempTouches;
|
|
147
|
-
private adjustmentLevel;
|
|
148
|
-
private tempAdjustmentLevel;
|
|
149
|
-
private adjustmentValue;
|
|
150
|
-
private initialAdjustmentValue;
|
|
151
|
-
private tempAdjustmentValue;
|
|
152
|
-
private currentFilter;
|
|
153
|
-
private tempFilter;
|
|
154
|
-
private canvasFilter;
|
|
155
|
-
private tempUndoRedoColl;
|
|
156
|
-
private tempUndoRedoStep;
|
|
157
|
-
private zoomFactor;
|
|
158
|
-
private tempZoomFactor;
|
|
159
|
-
private destLeft;
|
|
160
|
-
private destTop;
|
|
161
|
-
private destWidth;
|
|
162
|
-
private destHeight;
|
|
163
|
-
private srcLeft;
|
|
164
|
-
private srcTop;
|
|
165
|
-
private srcWidth;
|
|
166
|
-
private srcHeight;
|
|
167
|
-
private currSelectionPoint;
|
|
168
|
-
private currDestinationPoint;
|
|
169
|
-
private cropDestPoints;
|
|
170
|
-
private panDown;
|
|
171
|
-
private panMove;
|
|
172
|
-
private tempPanMove;
|
|
173
|
-
private flipColl;
|
|
174
|
-
private isReverseRotate;
|
|
175
|
-
private isReverseFlip;
|
|
176
|
-
private isPreventDragging;
|
|
177
|
-
private isRotateZoom;
|
|
178
|
-
private rotateFlipColl;
|
|
179
|
-
private currentPannedPoint;
|
|
180
|
-
private isCircleCrop;
|
|
181
|
-
private rotatedDestPoints;
|
|
182
|
-
private croppedDegree;
|
|
183
|
-
private freehandDrawHoveredIndex;
|
|
184
|
-
private freehandDrawSelectedIndex;
|
|
185
|
-
private isFreehandDrawingPoint;
|
|
186
|
-
private isFreehandDrawEditing;
|
|
187
|
-
private tempFreeHandDrawEditingStyles;
|
|
188
|
-
private totalPannedInternalPoint;
|
|
189
|
-
private totalPannedClientPoint;
|
|
190
|
-
private currentSelectionPoint;
|
|
191
|
-
private totalPannedPoint;
|
|
192
|
-
private isCropTab;
|
|
193
|
-
private cropZoomFactor;
|
|
194
|
-
private defaultZoomFactor;
|
|
195
|
-
private fileName;
|
|
196
|
-
private isBrightnessAdjusted;
|
|
197
|
-
private isInitialLoading;
|
|
198
|
-
private fileType;
|
|
199
|
-
private freehandDrawObj;
|
|
200
|
-
private points;
|
|
201
|
-
private pointColl;
|
|
202
|
-
private pointCounter;
|
|
203
|
-
private freehandCounter;
|
|
204
|
-
private isFreehandDrawing;
|
|
205
|
-
private tempFreehandCounter;
|
|
206
|
-
private tempActObj;
|
|
207
|
-
private lastPan;
|
|
208
|
-
private selectedFreehandColor;
|
|
209
|
-
private isFreehandDrawCustomized;
|
|
210
|
-
private isShapeInserted;
|
|
211
|
-
private isAllowCropPan;
|
|
212
|
-
private tempPannedPoint;
|
|
213
|
-
private cropObj;
|
|
214
|
-
private afterCropActions;
|
|
215
|
-
private isCancelAction;
|
|
216
|
-
private isFreehandPointMoved;
|
|
217
|
-
private isTouch;
|
|
218
|
-
private freehandDownPoint;
|
|
219
|
-
private tempFlipPanPoint;
|
|
220
|
-
private currentFreehandDrawIndex;
|
|
221
|
-
private tempCurrentFreehandDrawIndex;
|
|
222
|
-
private preventZoomBtn;
|
|
223
|
-
private cancelObjColl;
|
|
224
|
-
private cancelPointColl;
|
|
225
|
-
private rotatedFlipCropSelection;
|
|
226
|
-
private freehandDrawSelectedId;
|
|
227
|
-
private panStartObj;
|
|
228
|
-
private transformCurrentObj;
|
|
229
|
-
/**
|
|
230
|
-
* Defines class/multiple classes separated by a space for customizing Image Editor UI.
|
|
231
|
-
*
|
|
232
|
-
* @default ''
|
|
233
|
-
```html
|
|
234
|
-
* <div id='imageeditor'></div>
|
|
235
|
-
* ```
|
|
236
|
-
* ```typescript
|
|
237
|
-
* <script>
|
|
238
|
-
* var imageObj = new ImageEditor({cssClass: 'e-custom-img-editor'});
|
|
239
|
-
* imageObj.appendTo("#imageeditor");
|
|
240
|
-
* </script>
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
cssClass: string;
|
|
244
|
-
/**
|
|
245
|
-
* Specifies whether the Image Editor is disabled.
|
|
246
|
-
*
|
|
247
|
-
* @default false
|
|
248
|
-
*/
|
|
249
|
-
disabled: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Specifies the height of the Image Editor.
|
|
252
|
-
*
|
|
253
|
-
* @default '100%'
|
|
254
|
-
*/
|
|
255
|
-
height: string;
|
|
256
|
-
/**
|
|
257
|
-
* Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
|
|
258
|
-
* The property supports all the built-in themes of Syncfusion.
|
|
259
|
-
* default 'Bootstrap5'
|
|
260
|
-
*
|
|
261
|
-
* @isenumeration true
|
|
262
|
-
* @default Theme.Bootstrap5
|
|
263
|
-
* @asptype Theme
|
|
264
|
-
*
|
|
265
|
-
*/
|
|
266
|
-
theme: string | Theme;
|
|
267
|
-
/**
|
|
268
|
-
* Specifies the toolbar items to perform UI interactions. It accepts both string[] and ItemModel[] to configure its toolbar items.
|
|
269
|
-
* If the property is defined as empty collection, the toolbar will not be rendered.
|
|
270
|
-
* Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
|
|
271
|
-
* The preconfigured toolbar commands are
|
|
272
|
-
* Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
|
|
273
|
-
* 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.
|
|
274
|
-
* Transform: helps to rotate and flip an image.
|
|
275
|
-
* ZoomIn: performs zoom-in an image.
|
|
276
|
-
* ZoomOut: performs zoom-out an image.
|
|
277
|
-
* Pan: performs panning once zoomed an image.
|
|
278
|
-
* Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
|
|
279
|
-
* Save: save the modified image.
|
|
280
|
-
* Open: open an image to perform editing.
|
|
281
|
-
* Reset: reset the modification and restore the original image.
|
|
282
|
-
*
|
|
283
|
-
* @default null
|
|
284
|
-
```html
|
|
285
|
-
* <div id='imageeditor'></div>
|
|
286
|
-
* ```
|
|
287
|
-
* ```typescript
|
|
288
|
-
* <script>
|
|
289
|
-
* var imageObj = new ImageEditor({
|
|
290
|
-
* toolbar[Crop, ZoomIn, ZoomOut, Transform, {text: 'Custom'}]
|
|
291
|
-
* });
|
|
292
|
-
* imageObj.appendTo("#imageeditor");
|
|
293
|
-
* </script>
|
|
294
|
-
* ```
|
|
295
|
-
*/
|
|
296
|
-
toolbar: (string | ImageEditorCommands | ItemModel)[];
|
|
297
|
-
/**
|
|
298
|
-
* Specifies template to the Image Editor Toolbar.
|
|
299
|
-
* If you want to customize the entire toolbar in own way by using this property.
|
|
300
|
-
* The property is depending on ‘toolbar’.
|
|
301
|
-
*
|
|
302
|
-
* @default null
|
|
303
|
-
```html
|
|
304
|
-
* <div id='imageeditor'></div>
|
|
305
|
-
* ```
|
|
306
|
-
* ```typescript
|
|
307
|
-
* <script>
|
|
308
|
-
* var imageObj = new ImageEditor({
|
|
309
|
-
* toolbarTemplate: '#toolbarTemplate'
|
|
310
|
-
* });
|
|
311
|
-
* imageObj.appendTo("#imageeditor");
|
|
312
|
-
* </script>
|
|
313
|
-
* <script id="toolbarTemplate" type="text/x-template">
|
|
314
|
-
* <div class = 'e-toolbar'>
|
|
315
|
-
* <button id= 'dltbtn'></button>
|
|
316
|
-
* </div>
|
|
317
|
-
* </script>
|
|
318
|
-
* ```
|
|
319
|
-
*/
|
|
320
|
-
toolbarTemplate: string;
|
|
321
|
-
/**
|
|
322
|
-
* Specifies the width of the Image Editor.
|
|
323
|
-
*
|
|
324
|
-
* @default '100%'
|
|
325
|
-
*/
|
|
326
|
-
width: string;
|
|
327
|
-
/**
|
|
328
|
-
* Specifies whether to perform undo / redo operation.
|
|
329
|
-
*
|
|
330
|
-
* @default false
|
|
331
|
-
* @private
|
|
332
|
-
*/
|
|
333
|
-
allowUndoRedo: boolean;
|
|
334
|
-
/**
|
|
335
|
-
* Gets or sets whether to prevent the interaction in signature component.
|
|
336
|
-
* True, if the signature component is read only state where the user interaction is prevented. The default value is false.
|
|
337
|
-
*
|
|
338
|
-
* @default false
|
|
339
|
-
* @private
|
|
340
|
-
*/
|
|
341
|
-
isReadOnly: boolean;
|
|
342
|
-
/**
|
|
343
|
-
* Specifies the Signature in RTL mode that displays the content in the right-to-left direction.
|
|
344
|
-
*
|
|
345
|
-
* @default false
|
|
346
|
-
* @private
|
|
347
|
-
*/
|
|
348
|
-
enableRtl: boolean;
|
|
349
|
-
/**
|
|
350
|
-
* Gets or sets whether to persist component's state between page reloads.
|
|
351
|
-
* True, if the component's state persistence is enabled. The default value is false.
|
|
352
|
-
* Component's property will be stored in browser local storage to persist component's state when page reloads.
|
|
353
|
-
*
|
|
354
|
-
* @default false
|
|
355
|
-
* @private
|
|
356
|
-
*/
|
|
357
|
-
enablePersistence: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* It can be done using the filter property of the canvas. The following fine tunes can be supported.
|
|
360
|
-
* 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.
|
|
361
|
-
* 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.
|
|
362
|
-
* 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.
|
|
363
|
-
* 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.
|
|
364
|
-
* Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
|
|
365
|
-
* 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.
|
|
366
|
-
* Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
|
|
367
|
-
*
|
|
368
|
-
*/
|
|
369
|
-
finetuneSettings: FinetuneSettingsModel;
|
|
370
|
-
/**
|
|
371
|
-
* Triggers before an image is saved.
|
|
372
|
-
*
|
|
373
|
-
* @event beforeSave
|
|
374
|
-
*/
|
|
375
|
-
beforeSave: EmitType<BeforeSaveEventArgs>;
|
|
376
|
-
/**
|
|
377
|
-
* Triggers once the component rendering is completed.
|
|
378
|
-
*
|
|
379
|
-
* @event created
|
|
380
|
-
*/
|
|
381
|
-
created: EmitType<Event>;
|
|
382
|
-
/**
|
|
383
|
-
* Triggers once the component is destroyed with its elements and bound events.
|
|
384
|
-
*
|
|
385
|
-
* @event destroyed
|
|
386
|
-
*/
|
|
387
|
-
destroyed: EmitType<Event>;
|
|
388
|
-
/**
|
|
389
|
-
* Triggers while zooming an image.
|
|
390
|
-
*
|
|
391
|
-
* @event zooming
|
|
392
|
-
*/
|
|
393
|
-
zooming: EmitType<ZoomEventArgs>;
|
|
394
|
-
/**
|
|
395
|
-
* Triggers while panning an image.
|
|
396
|
-
*
|
|
397
|
-
* @event panning
|
|
398
|
-
*/
|
|
399
|
-
panning: EmitType<PanEventArgs>;
|
|
400
|
-
/**
|
|
401
|
-
* Triggers while cropping an image.
|
|
402
|
-
*
|
|
403
|
-
* @event cropping
|
|
404
|
-
*/
|
|
405
|
-
cropping: EmitType<CropEventArgs>;
|
|
406
|
-
/**
|
|
407
|
-
* Triggers while rotating an image.
|
|
408
|
-
*
|
|
409
|
-
* @event rotating
|
|
410
|
-
*/
|
|
411
|
-
rotating: EmitType<RotateEventArgs>;
|
|
412
|
-
/**
|
|
413
|
-
* Triggers while flipping an image.
|
|
414
|
-
*
|
|
415
|
-
* @event flipping
|
|
416
|
-
*/
|
|
417
|
-
flipping: EmitType<FlipEventArgs>;
|
|
418
|
-
/**
|
|
419
|
-
* Triggers while changing shapes in an image.
|
|
420
|
-
*
|
|
421
|
-
* @event shapeChanging
|
|
422
|
-
*/
|
|
423
|
-
shapeChanging: EmitType<ShapeChangeEventArgs>;
|
|
424
|
-
/**
|
|
425
|
-
* Triggers once an image is opened.
|
|
426
|
-
*
|
|
427
|
-
* @event fileOpened
|
|
428
|
-
*/
|
|
429
|
-
fileOpened: EmitType<OpenEventArgs>;
|
|
430
|
-
/**
|
|
431
|
-
* Triggers once an image is saved.
|
|
432
|
-
*
|
|
433
|
-
* @event saved
|
|
434
|
-
*/
|
|
435
|
-
saved: EmitType<SaveEventArgs>;
|
|
436
|
-
/**
|
|
437
|
-
* Triggers once the toolbar is created.
|
|
438
|
-
*
|
|
439
|
-
* @event toolbarCreated
|
|
440
|
-
*/
|
|
441
|
-
toolbarCreated: EmitType<ToolbarEventArgs>;
|
|
442
|
-
/**
|
|
443
|
-
* Triggers while updating/refreshing the toolbar
|
|
444
|
-
*
|
|
445
|
-
* @event toolbarUpdating
|
|
446
|
-
*/
|
|
447
|
-
toolbarUpdating: EmitType<ToolbarEventArgs>;
|
|
448
|
-
/**
|
|
449
|
-
* Triggers once the toolbar item is clicked.
|
|
450
|
-
*
|
|
451
|
-
* @event toolbarItemClicked
|
|
452
|
-
*/
|
|
453
|
-
toolbarItemClicked: EmitType<ClickEventArgs>;
|
|
454
|
-
/**
|
|
455
|
-
* Triggers when applying filter to an image.
|
|
456
|
-
*
|
|
457
|
-
* @event imageFiltering
|
|
458
|
-
*/
|
|
459
|
-
imageFiltering: EmitType<ImageFilterEventArgs>;
|
|
460
|
-
/**
|
|
461
|
-
* Triggers when applying fine tune to an image.
|
|
462
|
-
*
|
|
463
|
-
* @event finetuneValueChanging
|
|
464
|
-
*/
|
|
465
|
-
finetuneValueChanging: EmitType<FinetuneEventArgs>;
|
|
466
|
-
/**
|
|
467
|
-
*
|
|
468
|
-
* Constructor for creating the widget
|
|
469
|
-
*
|
|
470
|
-
* @param {ImageEditorModel} options - Specifies the image editor model
|
|
471
|
-
* @param {string|HTMLDivElement} element - Specifies the target element
|
|
472
|
-
*/
|
|
473
|
-
constructor(options?: ImageEditorModel, element?: string | HTMLDivElement);
|
|
474
|
-
protected preRender(): void;
|
|
475
|
-
/**
|
|
476
|
-
*
|
|
477
|
-
* To Initialize the component rendering
|
|
478
|
-
*
|
|
479
|
-
* @private
|
|
480
|
-
* @returns {void}
|
|
481
|
-
*/
|
|
482
|
-
protected render(): void;
|
|
483
|
-
/**
|
|
484
|
-
* To get component name.
|
|
485
|
-
*
|
|
486
|
-
* @returns {string} - Module Name
|
|
487
|
-
* @private
|
|
488
|
-
*/
|
|
489
|
-
getModuleName(): string;
|
|
490
|
-
/**
|
|
491
|
-
*
|
|
492
|
-
* To get the properties to be maintained in the persisted state.
|
|
493
|
-
*
|
|
494
|
-
* @returns {string} - Persist data
|
|
495
|
-
* @private
|
|
496
|
-
*/
|
|
497
|
-
getPersistData(): string;
|
|
498
|
-
/**
|
|
499
|
-
*
|
|
500
|
-
* Called internally if any of the property value changed.
|
|
501
|
-
*
|
|
502
|
-
* @param {ImageEditorModel} newProperties - Specifies new properties
|
|
503
|
-
* @param {ImageEditorModel} oldProperties - Specifies old properties
|
|
504
|
-
* @returns {void}
|
|
505
|
-
* @private
|
|
506
|
-
*/
|
|
507
|
-
onPropertyChanged(newProperties: ImageEditorModel, oldProperties?: ImageEditorModel): void;
|
|
508
|
-
destroy(): void;
|
|
509
|
-
initialize(): void;
|
|
510
|
-
private getDefaultFilter;
|
|
511
|
-
private updateFinetunes;
|
|
512
|
-
private initializeFilter;
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* This Method will add events to component (element, event, method, current reference)
|
|
516
|
-
*
|
|
517
|
-
* @returns {void}.
|
|
518
|
-
*/
|
|
519
|
-
private wireEvent;
|
|
520
|
-
/**
|
|
521
|
-
*
|
|
522
|
-
* This Method will remove events from component
|
|
523
|
-
*
|
|
524
|
-
* @returns {void}.
|
|
525
|
-
*/
|
|
526
|
-
private unwireEvent;
|
|
527
|
-
private destroySubComponents;
|
|
528
|
-
private updateTheme;
|
|
529
|
-
private toPascalCase;
|
|
530
|
-
private createCanvas;
|
|
531
|
-
private createToolbar;
|
|
532
|
-
private createContextualToolbar;
|
|
533
|
-
private updateContextualToolbar;
|
|
534
|
-
private createBottomToolbar;
|
|
535
|
-
private initBottomToolbar;
|
|
536
|
-
private toolbarTemplateFn;
|
|
537
|
-
private templateParser;
|
|
538
|
-
private getLeftToolbarItem;
|
|
539
|
-
private getRightToolbarItem;
|
|
540
|
-
private getMainToolbarItem;
|
|
541
|
-
private getZoomToolbarItem;
|
|
542
|
-
private processToolbar;
|
|
543
|
-
private processSubToolbar;
|
|
544
|
-
private isToolbar;
|
|
545
|
-
private initToolbarItem;
|
|
546
|
-
private enableDisableToolbarBtn;
|
|
547
|
-
private createLeftToolbarControls;
|
|
548
|
-
private cropSelectedState;
|
|
549
|
-
private renderAnnotationBtn;
|
|
550
|
-
private renderCropBtn;
|
|
551
|
-
private renderTransformBtn;
|
|
552
|
-
private renderSaveBtn;
|
|
553
|
-
private cropSelect;
|
|
554
|
-
private transformSelect;
|
|
555
|
-
private performTransformation;
|
|
556
|
-
private updateTransform;
|
|
557
|
-
private getShapesToolbarItem;
|
|
558
|
-
private initShapesToolbarItem;
|
|
559
|
-
private createShapeColor;
|
|
560
|
-
private createShapeBtn;
|
|
561
|
-
private getTextToolbarItem;
|
|
562
|
-
private getFontFamilyItems;
|
|
563
|
-
private getFontSizeItems;
|
|
564
|
-
private initTextToolbarItem;
|
|
565
|
-
private createTextColor;
|
|
566
|
-
private pushActItemIntoObj;
|
|
567
|
-
private createTextBtn;
|
|
568
|
-
private getFontSizes;
|
|
569
|
-
private getTextAreaWidth;
|
|
570
|
-
private updateUndoRedoObj;
|
|
571
|
-
private updateObjColl;
|
|
572
|
-
private applyFontStyle;
|
|
573
|
-
private initZoomToolbarItem;
|
|
574
|
-
private refreshUndoRedoColl;
|
|
575
|
-
private applyPreviewFilter;
|
|
576
|
-
private contextualToolbarClicked;
|
|
577
|
-
private defToolbarClicked;
|
|
578
|
-
private performCancel;
|
|
579
|
-
private applyShape;
|
|
580
|
-
private applyFreehandDraw;
|
|
581
|
-
private cancelFreehandDraw;
|
|
582
|
-
private openSlider;
|
|
583
|
-
private setTempFilterProperties;
|
|
584
|
-
private okBtn;
|
|
585
|
-
private updateBrightnessFilter;
|
|
586
|
-
private isFreehandDrawIndex;
|
|
587
|
-
private deleteFreehandDraw;
|
|
588
|
-
private unselectBtn;
|
|
589
|
-
private callUndo;
|
|
590
|
-
private callRedo;
|
|
591
|
-
private refreshSlider;
|
|
592
|
-
private iterateObjColl;
|
|
593
|
-
private updateAdjustment;
|
|
594
|
-
private autoEnablePan;
|
|
595
|
-
private setTempFilterValue;
|
|
596
|
-
private getDefaultCurrentFilter;
|
|
597
|
-
private renderSlider;
|
|
598
|
-
private createSlider;
|
|
599
|
-
private getCurrAdjustmentValue;
|
|
600
|
-
private setCurrAdjustmentValue;
|
|
601
|
-
private cancelPan;
|
|
602
|
-
private callMainToolbar;
|
|
603
|
-
private setCurrSelectionPoints;
|
|
604
|
-
private updatePannedRegion;
|
|
605
|
-
private updateObjAndFreeHandDrawColl;
|
|
606
|
-
private cancelItems;
|
|
607
|
-
private freehandDownHandler;
|
|
608
|
-
private freehandUpHandler;
|
|
609
|
-
private freehandMoveHandler;
|
|
610
|
-
private processPoint;
|
|
611
|
-
private calcCurveControlPoints;
|
|
612
|
-
private point;
|
|
613
|
-
private startDraw;
|
|
614
|
-
private pointVelocity;
|
|
615
|
-
private distanceTo;
|
|
616
|
-
private drawCurve;
|
|
617
|
-
private bezierLength;
|
|
618
|
-
private bezierPoint;
|
|
619
|
-
private drawArc;
|
|
620
|
-
private freehandRedraw;
|
|
621
|
-
private redrawImgWithObj;
|
|
622
|
-
private refreshToolbar;
|
|
623
|
-
private getAdjustmentToolbarItem;
|
|
624
|
-
private getFilterToolbarItem;
|
|
625
|
-
private getPenToolbarItem;
|
|
626
|
-
private initPenToolbarItem;
|
|
627
|
-
private createPenColor;
|
|
628
|
-
private createPenBtn;
|
|
629
|
-
private updateFreehandDrawColorChange;
|
|
630
|
-
private setPenStroke;
|
|
631
|
-
private getPenStroke;
|
|
632
|
-
private initAdjustmentToolbarItem;
|
|
633
|
-
private initFilterToolbarItem;
|
|
634
|
-
private getCurrentCanvasData;
|
|
635
|
-
private createCanvasFilter;
|
|
636
|
-
private callUpdateCurrentTransformedState;
|
|
637
|
-
private updateCurrentTransformedState;
|
|
638
|
-
private reverseTransformedState;
|
|
639
|
-
private currentTransformedState;
|
|
640
|
-
private iterateRotateFlipColl;
|
|
641
|
-
private setTransform;
|
|
642
|
-
private isObjInsideCropRegion;
|
|
643
|
-
private panFreehandDrawColl;
|
|
644
|
-
private panObjColl;
|
|
645
|
-
private cropObjColl;
|
|
646
|
-
private cropFreehandDrawColl;
|
|
647
|
-
private hoverFreehandraw;
|
|
648
|
-
private pointsHorizontalFlip;
|
|
649
|
-
private pointsVerticalFlip;
|
|
650
|
-
private flipFreehandrawColl;
|
|
651
|
-
private rotateFreehandDrawColl;
|
|
652
|
-
private zoomFreehandDrawColl;
|
|
653
|
-
private zoomX;
|
|
654
|
-
private zoomY;
|
|
655
|
-
private zoomObjColl;
|
|
656
|
-
private calcRatio;
|
|
657
|
-
private drawCustomSelection;
|
|
658
|
-
private clearOuterCanvas;
|
|
659
|
-
private cropCircle;
|
|
660
|
-
private updateCropObj;
|
|
661
|
-
private setCurrentObj;
|
|
662
|
-
private drawCropSelectionImage;
|
|
663
|
-
private cropImg;
|
|
664
|
-
private updateImageRatioForActObj;
|
|
665
|
-
private drawImgToCanvas;
|
|
666
|
-
private limitPan;
|
|
667
|
-
private updatePanPoints;
|
|
668
|
-
private setCurrentPanRegion;
|
|
669
|
-
private getCurrentPanRegion;
|
|
670
|
-
private drawPannImage;
|
|
671
|
-
private drawPannedImage;
|
|
672
|
-
private updateFlipPan;
|
|
673
|
-
private updateFlipActiveObj;
|
|
674
|
-
private resetPanPoints;
|
|
675
|
-
private flipCrop;
|
|
676
|
-
private rotateCrop;
|
|
677
|
-
private getCurrentCropState;
|
|
678
|
-
private isInitialRotate;
|
|
679
|
-
private updateRotatePanPoints;
|
|
680
|
-
private rotatePan;
|
|
681
|
-
private rotateZoom;
|
|
682
|
-
private drawZoomImgToCanvas;
|
|
683
|
-
private cropZoom;
|
|
684
|
-
private updateCanvas;
|
|
685
|
-
private imageOnLoad;
|
|
686
|
-
private refreshActiveObj;
|
|
687
|
-
private redrawText;
|
|
688
|
-
private setTextSelection;
|
|
689
|
-
private getCurrentObj;
|
|
690
|
-
private updateUndoRedoColl;
|
|
691
|
-
private fileSelect;
|
|
692
|
-
private findTextPoint;
|
|
693
|
-
private getStrokeWidth;
|
|
694
|
-
private updateToolbarItems;
|
|
695
|
-
private setTimer;
|
|
696
|
-
private targetTouches;
|
|
697
|
-
private calculateScale;
|
|
698
|
-
private getDistance;
|
|
699
|
-
private setXYPoints;
|
|
700
|
-
private touchStartHandler;
|
|
701
|
-
private isShapeTouch;
|
|
702
|
-
private isFreehandDrawTouch;
|
|
703
|
-
private selectFreehandDraw;
|
|
704
|
-
private closeContextualToolbar;
|
|
705
|
-
private mouseDownEventHandler;
|
|
706
|
-
private mouseMoveEventHandler;
|
|
707
|
-
private mouseUpEventHandler;
|
|
708
|
-
private keyDownEventHandler;
|
|
709
|
-
private keyUpEventHandler;
|
|
710
|
-
private canvasMouseDownHandler;
|
|
711
|
-
private canvasMouseMoveHandler;
|
|
712
|
-
private canvasMouseUpHandler;
|
|
713
|
-
private handleScroll;
|
|
714
|
-
private textKeyDown;
|
|
715
|
-
private adjustToScreen;
|
|
716
|
-
private screenOrientation;
|
|
717
|
-
private windowResizeHandler;
|
|
718
|
-
private updatePreviousShapeSettings;
|
|
719
|
-
private disableZoomOutBtn;
|
|
720
|
-
private setZoomDimension;
|
|
721
|
-
private applyCurrActObj;
|
|
722
|
-
private updateTextFromTextArea;
|
|
723
|
-
private setTextBoxStylesToActObj;
|
|
724
|
-
private redrawActObj;
|
|
725
|
-
private setTextBoxPos;
|
|
726
|
-
private setTextBoxPoints;
|
|
727
|
-
private findTextTarget;
|
|
728
|
-
private selectedText;
|
|
729
|
-
private setTextBoxHeight;
|
|
730
|
-
private setTextBoxWidth;
|
|
731
|
-
private setActivePoint;
|
|
732
|
-
private setDragWidth;
|
|
733
|
-
private setDragHeight;
|
|
734
|
-
private triggerShapeChange;
|
|
735
|
-
private updateActivePoint;
|
|
736
|
-
private preventDraggingInvertly;
|
|
737
|
-
private updateNWPoints;
|
|
738
|
-
private updateNPoints;
|
|
739
|
-
private updateNEPoints;
|
|
740
|
-
private updateWPoints;
|
|
741
|
-
private updateEPoints;
|
|
742
|
-
private updateSWPoints;
|
|
743
|
-
private updateSPoints;
|
|
744
|
-
private updateSEPoints;
|
|
745
|
-
private updateFontRatio;
|
|
746
|
-
private updateFontSize;
|
|
747
|
-
private preventInverseResize;
|
|
748
|
-
private getScaleRatio;
|
|
749
|
-
private getMaxText;
|
|
750
|
-
private setDragLimit;
|
|
751
|
-
private lineDraw;
|
|
752
|
-
private shapeCircle;
|
|
753
|
-
private drawOuterSelection;
|
|
754
|
-
private drawObject;
|
|
755
|
-
private rotateShape;
|
|
756
|
-
private updateActiveObject;
|
|
757
|
-
private drawShapeObj;
|
|
758
|
-
private shapeLine;
|
|
759
|
-
private shapeText;
|
|
760
|
-
private updateActPoint;
|
|
761
|
-
private drawSquareLines;
|
|
762
|
-
private drawSelection;
|
|
763
|
-
private drawCenterCircles;
|
|
764
|
-
private findTarget;
|
|
765
|
-
private findTargetObj;
|
|
766
|
-
private getCurrentFlipState;
|
|
767
|
-
private rotateDegree;
|
|
768
|
-
private updateCursorStyles;
|
|
769
|
-
private drawCropRatio;
|
|
770
|
-
private setDragDirection;
|
|
771
|
-
private updatePoints;
|
|
772
|
-
private calcShapeRatio;
|
|
773
|
-
private getScale;
|
|
774
|
-
private calcMaxDimension;
|
|
775
|
-
private setMaximumDimension;
|
|
776
|
-
private setCursor;
|
|
777
|
-
private setCursorForFreehandDrawing;
|
|
778
|
-
private setCursorFromObj;
|
|
779
|
-
private isInside;
|
|
780
|
-
private refreshDropDownBtn;
|
|
781
|
-
private downloadImg;
|
|
782
|
-
private toSVGImg;
|
|
783
|
-
private toBlobFn;
|
|
784
|
-
private exportChangesToCanvas;
|
|
785
|
-
private exportTransformedImage;
|
|
786
|
-
private exportRotate;
|
|
787
|
-
private exportHorizontalFlip;
|
|
788
|
-
private exportVerticalFlip;
|
|
789
|
-
private updateSaveContext;
|
|
790
|
-
private addLetter;
|
|
791
|
-
private updateFontStyles;
|
|
792
|
-
private textFlipDegree;
|
|
793
|
-
private rotateText;
|
|
794
|
-
private redrawObj;
|
|
795
|
-
private updateCurrentActiveObjPoint;
|
|
796
|
-
private rotateObjColl;
|
|
797
|
-
private redrawShape;
|
|
798
|
-
private applyActObj;
|
|
799
|
-
private apply;
|
|
800
|
-
private setCenterPoints;
|
|
801
|
-
private drawShape;
|
|
802
|
-
private drawShapeText;
|
|
803
|
-
private updateShapeChangeEventArgs;
|
|
804
|
-
private getObjDetails;
|
|
805
|
-
private getFreehandDrawDetails;
|
|
806
|
-
private isPointsInRange;
|
|
807
|
-
private clearActObj;
|
|
808
|
-
private applyPenDraw;
|
|
809
|
-
private drawRotatedImage;
|
|
810
|
-
private updateCurrSelectionPoint;
|
|
811
|
-
private setClientTransformedDimension;
|
|
812
|
-
private popForDefaultTransformedState;
|
|
813
|
-
private popForDefaultFlipState;
|
|
814
|
-
private popForDefaultRotateState;
|
|
815
|
-
private alignRotateFlipColl;
|
|
816
|
-
private updateFlipColl;
|
|
817
|
-
private horizontalFlip;
|
|
818
|
-
private verticalFlip;
|
|
819
|
-
private updateFlipState;
|
|
820
|
-
private setDestinationPoints;
|
|
821
|
-
private rotatedFlip;
|
|
822
|
-
private getFilterValue;
|
|
823
|
-
private setFilterValue;
|
|
824
|
-
private getSaturationFilterValue;
|
|
825
|
-
private setSaturationFilterValue;
|
|
826
|
-
private getBlackAndWhiteData;
|
|
827
|
-
private setBrightness;
|
|
828
|
-
private setContrast;
|
|
829
|
-
private setHue;
|
|
830
|
-
private setSaturation;
|
|
831
|
-
private setOpacity;
|
|
832
|
-
private setBlur;
|
|
833
|
-
private setExposure;
|
|
834
|
-
private setFilter;
|
|
835
|
-
private renderImage;
|
|
836
|
-
private updateTextBox;
|
|
837
|
-
private drawNewSelection;
|
|
838
|
-
private setDestPointsForFlipState;
|
|
839
|
-
private performUndoDefaultAction;
|
|
840
|
-
private setAdjustment;
|
|
841
|
-
private updateFilter;
|
|
842
|
-
/**
|
|
843
|
-
* Clear a current selection.
|
|
844
|
-
*
|
|
845
|
-
* @returns {void}.
|
|
846
|
-
*/
|
|
847
|
-
clearSelection(): void;
|
|
848
|
-
/**
|
|
849
|
-
* Crops an image based on the selection.
|
|
850
|
-
* The selection can be done through programmatically using the select method or through UI interactions.
|
|
851
|
-
*
|
|
852
|
-
* @returns {boolean}.
|
|
853
|
-
*/
|
|
854
|
-
crop(): boolean;
|
|
855
|
-
/**
|
|
856
|
-
* Flips an image by horizontally or vertically.
|
|
857
|
-
*
|
|
858
|
-
* @param {Direction } direction - Specifies the direction to flip the image.
|
|
859
|
-
* @returns {void}.
|
|
860
|
-
*/
|
|
861
|
-
flip(direction: Direction): void;
|
|
862
|
-
/**
|
|
863
|
-
* Return an image as ImageData.
|
|
864
|
-
*
|
|
865
|
-
* @returns {ImageData}.
|
|
866
|
-
*/
|
|
867
|
-
getImageData(): ImageData;
|
|
868
|
-
/**
|
|
869
|
-
* Load/opens an image for editing within an image editor.
|
|
870
|
-
*
|
|
871
|
-
* @param {string | ImageData } data - Specifies url of the Image or image data.
|
|
872
|
-
*
|
|
873
|
-
* @returns {void}.
|
|
874
|
-
*/
|
|
875
|
-
open(data: string | ImageData): void;
|
|
876
|
-
/**
|
|
877
|
-
* Reset all the changes and revert to original image.
|
|
878
|
-
*
|
|
879
|
-
* @returns {void}.
|
|
880
|
-
*/
|
|
881
|
-
reset(): void;
|
|
882
|
-
/**
|
|
883
|
-
* Rotate an image to clockwise and anti-clockwise.
|
|
884
|
-
*
|
|
885
|
-
* @param {number} degree - Specifies a degree to rotate an image.
|
|
886
|
-
* positive integer value for clockwise and negative integer value for anti-clockwise rotation.
|
|
887
|
-
*
|
|
888
|
-
* @returns {boolean}.
|
|
889
|
-
*/
|
|
890
|
-
rotate(degree: number): boolean;
|
|
891
|
-
/**
|
|
892
|
-
* Export an image using the specified file name and the extension.
|
|
893
|
-
*
|
|
894
|
-
* @param {string} type - Specifies a format of image to be saved.
|
|
895
|
-
* @param {string} fileName – Specifies a file name to be saved
|
|
896
|
-
*
|
|
897
|
-
* @returns {void}.
|
|
898
|
-
*/
|
|
899
|
-
export(type?: string, fileName?: string): void;
|
|
900
|
-
/**
|
|
901
|
-
* Perform selection in an image editor. The selection helps to crop an image.
|
|
902
|
-
*
|
|
903
|
-
* @param {string} type - Specifies the shape - circle / square / custom selection / pre-defined ratios.
|
|
904
|
-
* @param {number} startX – Specifies the start x-coordinate point of the selection.
|
|
905
|
-
* @param {number} startY – Specifies the start y-coordinate point of the selection.
|
|
906
|
-
* @param {number} width - Specifies the width of the selection area.
|
|
907
|
-
* @param {number} height - Specifies the height of the selection area.
|
|
908
|
-
* @returns {void}.
|
|
909
|
-
* ```html
|
|
910
|
-
* <div id='imageeditor'></div>
|
|
911
|
-
* ```
|
|
912
|
-
* ```typescript
|
|
913
|
-
* <script>
|
|
914
|
-
* var imageObj = new ImageEditor({
|
|
915
|
-
* created : () => {
|
|
916
|
-
* imageObj.select('16:9', 10, 10);
|
|
917
|
-
* }
|
|
918
|
-
* });
|
|
919
|
-
* imageObj.appendTo("#imageeditor");
|
|
920
|
-
* </script>
|
|
921
|
-
* ```
|
|
922
|
-
*/
|
|
923
|
-
select(type: string, startX?: number, startY?: number, width?: number, height?: number): void;
|
|
924
|
-
/**
|
|
925
|
-
* Enable or disable a freehand drawing in an Image Editor.
|
|
926
|
-
*
|
|
927
|
-
* @param {boolean} value - Specifies a value whether enable or disable freehand drawing.
|
|
928
|
-
*
|
|
929
|
-
* @returns {void}.
|
|
930
|
-
* @private
|
|
931
|
-
*/
|
|
932
|
-
freeHandDraw(value: boolean): void;
|
|
933
|
-
/**
|
|
934
|
-
* Enable or disable a freehand drawing in an Image Editor.
|
|
935
|
-
*
|
|
936
|
-
* @param {boolean} value - Specifies a value whether enable or disable freehand drawing.
|
|
937
|
-
*
|
|
938
|
-
* @returns {void}.
|
|
939
|
-
*/
|
|
940
|
-
freehandDraw(value: boolean): void;
|
|
941
|
-
/**
|
|
942
|
-
* Enable or disable a panning on the Image Editor.
|
|
943
|
-
*
|
|
944
|
-
* @param {boolean} value - Specifies a value whether enable or disable panning.
|
|
945
|
-
*
|
|
946
|
-
* @returns {void}.
|
|
947
|
-
*/
|
|
948
|
-
pan(value: boolean): void;
|
|
949
|
-
/**
|
|
950
|
-
* Increase / Decrease the magnification of an image.
|
|
951
|
-
*
|
|
952
|
-
* @param {boolean} value - Specifies a value to be zoomed on the image.
|
|
953
|
-
* @returns {void}.
|
|
954
|
-
*/
|
|
955
|
-
zoom(value: number): void;
|
|
956
|
-
/**
|
|
957
|
-
* Draw ellipse on an image.
|
|
958
|
-
*
|
|
959
|
-
* @param {number} x - Specifies x-coordinate of ellipse.
|
|
960
|
-
* @param {number} y - Specifies y-coordinate of ellipse.
|
|
961
|
-
* @param {number} radiusX - the radius x point for the ellipse.
|
|
962
|
-
* @param {number} radiusY - the radius y point for the ellipse.
|
|
963
|
-
* @param {number} strokeWidth - the stroke width of ellipse.
|
|
964
|
-
* @param {string} strokeColor - the stroke color of ellipse.
|
|
965
|
-
* @param {string} fillColor - the fill color of the ellipse.
|
|
966
|
-
* @returns {boolean}.
|
|
967
|
-
*
|
|
968
|
-
* ```html
|
|
969
|
-
* <div id='imageeditor'></div>
|
|
970
|
-
* ```
|
|
971
|
-
* ```typescript
|
|
972
|
-
* <script>
|
|
973
|
-
* * var imageObj = new ImageEditor({
|
|
974
|
-
* created: () => {
|
|
975
|
-
* imageObj.drawEllipse(10, 10, 40, 60);
|
|
976
|
-
* }
|
|
977
|
-
* });
|
|
978
|
-
* imageObj.appendTo("#imageeditor");
|
|
979
|
-
* </script>
|
|
980
|
-
* ```
|
|
981
|
-
*/
|
|
982
|
-
drawEllipse(x?: number, y?: number, radiusX?: number, radiusY?: number, strokeWidth?: number, strokeColor?: string, fillColor?: string): boolean;
|
|
983
|
-
/**
|
|
984
|
-
* Draw line on an image.
|
|
985
|
-
*
|
|
986
|
-
* @param {number} startX – Specifies start point x-coordinate of line.
|
|
987
|
-
* @param {number} startY – Specifies start point y-coordinate of line.
|
|
988
|
-
* @param {number} endX - Specifies end point x-coordinates of line.
|
|
989
|
-
* @param {number} endY - Specifies end point y-coordinates of the line.
|
|
990
|
-
* @param {number} strokeWidth - Specifies the stroke width of line.
|
|
991
|
-
* @param {string} strokeColor - Specifies the stroke color of line.
|
|
992
|
-
* @returns {boolean}.
|
|
993
|
-
*/
|
|
994
|
-
drawLine(startX?: number, startY?: number, endX?: number, endY?: number, strokeWidth?: number, strokeColor?: string): boolean;
|
|
995
|
-
/**
|
|
996
|
-
* Draw a rectangle on an image.
|
|
997
|
-
*
|
|
998
|
-
* @param {number} x - Specifies x-coordinate of rectangle.
|
|
999
|
-
* @param {number} y - Specifies y-coordinate of rectangle.
|
|
1000
|
-
* @param {number} width - Specifies the width of the rectangle.
|
|
1001
|
-
* @param {number} height - Specifies the height of the rectangle.
|
|
1002
|
-
* @param {number} strokeWidth - Specifies the stroke width of rectangle.
|
|
1003
|
-
* @param {string} strokeColor - Specifies the stroke color of rectangle.
|
|
1004
|
-
* @param {string} fillColor - the fill color of the rectangle.
|
|
1005
|
-
* @returns {boolean}.
|
|
1006
|
-
*/
|
|
1007
|
-
drawRectangle(x?: number, y?: number, width?: number, height?: number, strokeWidth?: number, strokeColor?: string, fillColor?: string): boolean;
|
|
1008
|
-
/**
|
|
1009
|
-
* Draw a text on an image.
|
|
1010
|
-
*
|
|
1011
|
-
* @param {number} x - Specifies x-coordinate of text.
|
|
1012
|
-
* @param {number} y - Specifies y-coordinate of text.
|
|
1013
|
-
* @param {string} text - Specifies the text to add on an image.
|
|
1014
|
-
* @param {string} fontFamily - Specifies the font family of the text.
|
|
1015
|
-
* @param {number} fontSize - Specifies the font size of the text.
|
|
1016
|
-
* @param {boolean} bold - Specifies whether the text is bold or not.
|
|
1017
|
-
* @param {boolean} italic - Specifies whether the text is italic or not.
|
|
1018
|
-
* @param {string} color - Specifies font color of the text.
|
|
1019
|
-
* @returns {boolean}.
|
|
1020
|
-
*
|
|
1021
|
-
* ```html
|
|
1022
|
-
* <div id='imageeditor'></div>
|
|
1023
|
-
* ```
|
|
1024
|
-
* ```typescript
|
|
1025
|
-
* <script>
|
|
1026
|
-
* var imageObj = new ImageEditor({
|
|
1027
|
-
* created: () => {
|
|
1028
|
-
* imageObj.drawText(10, 10, 'Syncfusion', 'Arial', 12, true, true, '#000');
|
|
1029
|
-
* }
|
|
1030
|
-
* });
|
|
1031
|
-
* imageObj.appendTo("#imageeditor");
|
|
1032
|
-
*
|
|
1033
|
-
* </script>
|
|
1034
|
-
* ```
|
|
1035
|
-
*/
|
|
1036
|
-
drawText(x?: number, y?: number, text?: string, fontFamily?: string, fontSize?: number, bold?: boolean, italic?: boolean, color?: string): boolean;
|
|
1037
|
-
/**
|
|
1038
|
-
* Selects a shape based on the given shape id. The id can be got from the public method ‘getShapeSettings’.
|
|
1039
|
-
*
|
|
1040
|
-
* @param {string} id - Specifies the shape id to select a shape on an image.
|
|
1041
|
-
* @returns {boolean}.
|
|
1042
|
-
* ```html
|
|
1043
|
-
* <div id='imageeditor'></div>
|
|
1044
|
-
* ```
|
|
1045
|
-
* ```typescript
|
|
1046
|
-
* <script>
|
|
1047
|
-
* var imageObj = new ImageEditor({
|
|
1048
|
-
* created: () => {
|
|
1049
|
-
* imageObj.selectShape('shape_1');
|
|
1050
|
-
* }
|
|
1051
|
-
* });
|
|
1052
|
-
* imageObj.appendTo("#imageeditor");
|
|
1053
|
-
* </script>
|
|
1054
|
-
* ```
|
|
1055
|
-
*/
|
|
1056
|
-
selectShape(id: string): boolean;
|
|
1057
|
-
/**
|
|
1058
|
-
* Deletes a shape based on the given shape id. The id can be got from the public method getShapeSettings.
|
|
1059
|
-
*
|
|
1060
|
-
* @param {string} id - Specifies the shape id to delete the shape on an image.
|
|
1061
|
-
* @returns {void}.
|
|
1062
|
-
* ```html
|
|
1063
|
-
* <div id='imageeditor'></div>
|
|
1064
|
-
* ```
|
|
1065
|
-
* ```typescript
|
|
1066
|
-
* <script>
|
|
1067
|
-
* var imageObj = new ImageEditor({
|
|
1068
|
-
* created: () => {
|
|
1069
|
-
* imageObj.deleteShape('shape_1');
|
|
1070
|
-
* }
|
|
1071
|
-
* });
|
|
1072
|
-
* imageObj.appendTo("#imageeditor");
|
|
1073
|
-
* </script>
|
|
1074
|
-
* ```
|
|
1075
|
-
*/
|
|
1076
|
-
deleteShape(id: string): void;
|
|
1077
|
-
/**
|
|
1078
|
-
* Get particular shapes details based on id of the shape which is drawn on an image editor.
|
|
1079
|
-
*
|
|
1080
|
-
* @param {string} id - Specifies the shape id on an image.
|
|
1081
|
-
* @returns {ShapeSettings}.
|
|
1082
|
-
* ```html
|
|
1083
|
-
* <div id='imageeditor'></div>
|
|
1084
|
-
* ```
|
|
1085
|
-
* ```typescript
|
|
1086
|
-
* <script>
|
|
1087
|
-
* var imageObj = new ImageEditor({
|
|
1088
|
-
* created: () => {
|
|
1089
|
-
* imageObj.getShapeSetting('shape_1');
|
|
1090
|
-
* }
|
|
1091
|
-
* });
|
|
1092
|
-
* imageObj.appendTo("#imageeditor");
|
|
1093
|
-
* </script>
|
|
1094
|
-
* ```
|
|
1095
|
-
*/
|
|
1096
|
-
getShapeSetting(id: string): ShapeSettings;
|
|
1097
|
-
/**
|
|
1098
|
-
* Get all the shapes details which is drawn on an image editor.
|
|
1099
|
-
*
|
|
1100
|
-
* @returns {ShapeSettings[]}.
|
|
1101
|
-
*/
|
|
1102
|
-
getShapeSettings(): ShapeSettings[];
|
|
1103
|
-
/**
|
|
1104
|
-
* To refresh the Canvas Wrapper.
|
|
1105
|
-
*
|
|
1106
|
-
* @returns {void}.
|
|
1107
|
-
*/
|
|
1108
|
-
update(): void;
|
|
1109
|
-
/**
|
|
1110
|
-
* To apply the filters to an image
|
|
1111
|
-
*
|
|
1112
|
-
* @param {ImageFinetuneOptions } finetuneOption - Specifies the finetune options to the image.
|
|
1113
|
-
* @param {number } value - Specifies the value for finetuning the image.
|
|
1114
|
-
* @returns {void}.
|
|
1115
|
-
*
|
|
1116
|
-
*/
|
|
1117
|
-
finetuneImage(finetuneOption: ImageFinetuneOptions, value: number): void;
|
|
1118
|
-
/**
|
|
1119
|
-
* To apply the filters to an image
|
|
1120
|
-
*
|
|
1121
|
-
* @param {ImageFilterOptions } filterOption - Specifies the filter options to the image.
|
|
1122
|
-
* @returns {void}.
|
|
1123
|
-
*/
|
|
1124
|
-
applyImageFilter(filterOption: ImageFilterOptions): void;
|
|
1125
|
-
/**
|
|
1126
|
-
* Undo the last user action.
|
|
1127
|
-
*
|
|
1128
|
-
* @private
|
|
1129
|
-
* @returns {void}.
|
|
1130
|
-
*/
|
|
1131
|
-
undo(): void;
|
|
1132
|
-
/**
|
|
1133
|
-
* Redo the last user action.
|
|
1134
|
-
*
|
|
1135
|
-
* @private
|
|
1136
|
-
* @returns {void}.
|
|
1137
|
-
*/
|
|
1138
|
-
redo(): void;
|
|
1139
|
-
}
|
|
1140
|
-
/**
|
|
1141
|
-
* Defines the Image Editor file type.
|
|
1142
|
-
*/
|
|
1143
|
-
export declare type FileType = 'Png' | 'Jpeg' | 'Svg';
|
|
1144
|
-
/**
|
|
1145
|
-
* Defines the direction to flip the image on Image Editor.
|
|
1146
|
-
*/
|
|
1147
|
-
export declare type Direction = 'Horizontal' | 'Vertical';
|
|
1148
|
-
/**
|
|
1149
|
-
* Defines the Image Editor shape type.
|
|
1150
|
-
*/
|
|
1151
|
-
export declare type ShapeType = 'Rectangle' | 'Ellipse' | 'Line' | 'Text' | 'FreehandDraw';
|
|
1152
|
-
/**
|
|
1153
|
-
* Defines the theme for Image Editor.
|
|
1154
|
-
*/
|
|
1155
|
-
export declare type Theme = 'Bootstrap5' | 'Bootstrap5Dark' | 'Tailwind' | 'TailwindDark' | 'Fluent' | 'FluentDark' | 'Bootstrap4' | 'Bootstrap' | 'BootstrapDark' | 'Material' | 'MaterialDark' | 'Fabric' | 'FabricDark' | 'Highcontrast';
|
|
1156
|
-
/**
|
|
1157
|
-
* Defines the toolbar items for Image Editor.
|
|
1158
|
-
*/
|
|
1159
|
-
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';
|
|
1160
|
-
/**
|
|
1161
|
-
* Defines the image filter options
|
|
1162
|
-
*/
|
|
1163
|
-
export declare type ImageFilterOptions = 'Default' | 'Chrome' | 'Cold' | 'Warm' | 'Grayscale' | 'Sepia' | 'Invert';
|
|
1164
|
-
/**
|
|
1165
|
-
* Defines the image filter options
|
|
1166
|
-
*/
|
|
1167
|
-
export declare type ImageFinetuneOptions = 'Brightness' | 'Contrast' | 'Hue' | 'Saturation' | 'Exposure' | 'Opacity' | 'Blur';
|
|
1168
|
-
/**
|
|
1169
|
-
* Interface for zoom transition occur in the imageEditor.
|
|
1170
|
-
*/
|
|
1171
|
-
export interface ZoomEventArgs {
|
|
1172
|
-
/**
|
|
1173
|
-
* Returns the (x, y) point to be zoomed.
|
|
1174
|
-
*/
|
|
1175
|
-
zoomPoint: Point;
|
|
1176
|
-
/**
|
|
1177
|
-
* Specifies the value of zooming. Zoom in or out can be defined based on the value.
|
|
1178
|
-
*/
|
|
1179
|
-
zoomLevel: number;
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Interface for pan transition occur in the imageEditor.
|
|
1183
|
-
*/
|
|
1184
|
-
export interface PanEventArgs {
|
|
1185
|
-
/**
|
|
1186
|
-
* Returns the (x, y) point of panning started
|
|
1187
|
-
*/
|
|
1188
|
-
startPoint: Point;
|
|
1189
|
-
/**
|
|
1190
|
-
* Returns the (x, y) point to be panning ended.
|
|
1191
|
-
*/
|
|
1192
|
-
endPoint: Point;
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* Interface for crop transition occur in the imageEditor.
|
|
1196
|
-
*/
|
|
1197
|
-
export interface CropEventArgs {
|
|
1198
|
-
/**
|
|
1199
|
-
* Returns the start point of the crop region.
|
|
1200
|
-
*/
|
|
1201
|
-
startPoint: Point;
|
|
1202
|
-
/**
|
|
1203
|
-
* Returns the end point of the crop region.
|
|
1204
|
-
*/
|
|
1205
|
-
endPoint: Point;
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Interface for rotate transition in the imageEditor.
|
|
1209
|
-
*/
|
|
1210
|
-
export interface RotateEventArgs {
|
|
1211
|
-
/**
|
|
1212
|
-
* Returns the degree to be rotated.
|
|
1213
|
-
*/
|
|
1214
|
-
degree: number;
|
|
1215
|
-
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Interface for flip transition in the imageEditor.
|
|
1218
|
-
*/
|
|
1219
|
-
export interface FlipEventArgs {
|
|
1220
|
-
/**
|
|
1221
|
-
* Returns the direction(Horizontal and vertical) to be flipped.
|
|
1222
|
-
*/
|
|
1223
|
-
direction: string;
|
|
1224
|
-
}
|
|
1225
|
-
/**
|
|
1226
|
-
* Interface for shape change in imageEditor.
|
|
1227
|
-
*/
|
|
1228
|
-
export interface ShapeChangeEventArgs {
|
|
1229
|
-
/**
|
|
1230
|
-
* Returns the name of the action.
|
|
1231
|
-
*/
|
|
1232
|
-
action?: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* Returns the object of shape before moved, resized, or customized the UI.
|
|
1235
|
-
*/
|
|
1236
|
-
previousShapeSettings?: ShapeSettings;
|
|
1237
|
-
/**
|
|
1238
|
-
* Returns `the object of shape which is inserted or moved or deleted or resized or customized the UI.
|
|
1239
|
-
*/
|
|
1240
|
-
currentShapeSettings?: ShapeSettings;
|
|
1241
|
-
}
|
|
1242
|
-
/**
|
|
1243
|
-
* Interface for Toolbar events.
|
|
1244
|
-
*/
|
|
1245
|
-
export interface ToolbarEventArgs {
|
|
1246
|
-
/**
|
|
1247
|
-
* Defines the cancel option to cancel the toolbar action.
|
|
1248
|
-
*/
|
|
1249
|
-
cancel?: boolean;
|
|
1250
|
-
/**
|
|
1251
|
-
* Returns the current toolbar type.
|
|
1252
|
-
*/
|
|
1253
|
-
toolbarType?: string;
|
|
1254
|
-
/**
|
|
1255
|
-
* Returns the current toolbar item.
|
|
1256
|
-
*/
|
|
1257
|
-
item?: ItemModel;
|
|
1258
|
-
/**
|
|
1259
|
-
* Specifies the toolbar item collection to be rendered as contextual toolbar.
|
|
1260
|
-
*/
|
|
1261
|
-
toolbarItems?: (string | ItemModel)[];
|
|
1262
|
-
}
|
|
1263
|
-
/**
|
|
1264
|
-
* Interface for opening the image.
|
|
1265
|
-
*/
|
|
1266
|
-
export interface OpenEventArgs {
|
|
1267
|
-
/**
|
|
1268
|
-
* Returns the file name of an image.
|
|
1269
|
-
*/
|
|
1270
|
-
fileName: string;
|
|
1271
|
-
/**
|
|
1272
|
-
* Returns the file type of an image.
|
|
1273
|
-
*/
|
|
1274
|
-
fileType: FileType;
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* Interface for saving the canvas as image.
|
|
1278
|
-
*/
|
|
1279
|
-
export interface SaveEventArgs {
|
|
1280
|
-
/**
|
|
1281
|
-
* Returns the file name of an image.
|
|
1282
|
-
*/
|
|
1283
|
-
fileName: string;
|
|
1284
|
-
/**
|
|
1285
|
-
* Returns the file type of an image.
|
|
1286
|
-
*/
|
|
1287
|
-
fileType: FileType;
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Interface for before saving the canvas as image.
|
|
1291
|
-
*/
|
|
1292
|
-
export interface BeforeSaveEventArgs {
|
|
1293
|
-
/**
|
|
1294
|
-
* Defines the cancel option to cancel the save action.
|
|
1295
|
-
*/
|
|
1296
|
-
cancel: boolean;
|
|
1297
|
-
/**
|
|
1298
|
-
* Specifies the file name for an image.
|
|
1299
|
-
*/
|
|
1300
|
-
fileName: string;
|
|
1301
|
-
/**
|
|
1302
|
-
* Returns the file type for an image.
|
|
1303
|
-
*/
|
|
1304
|
-
fileType: FileType;
|
|
1305
|
-
}
|
|
1306
|
-
/**
|
|
1307
|
-
* Interface for Point Object in the image editor.
|
|
1308
|
-
*
|
|
1309
|
-
*/
|
|
1310
|
-
export interface Point {
|
|
1311
|
-
/**
|
|
1312
|
-
* Returns the x position in the canvas.
|
|
1313
|
-
*/
|
|
1314
|
-
x: number;
|
|
1315
|
-
/**
|
|
1316
|
-
* Returns y position in the canvas.
|
|
1317
|
-
*/
|
|
1318
|
-
y: number;
|
|
1319
|
-
/**
|
|
1320
|
-
* Returns the x ratio from in the image.
|
|
1321
|
-
*
|
|
1322
|
-
* @private
|
|
1323
|
-
*/
|
|
1324
|
-
ratioX?: number;
|
|
1325
|
-
/**
|
|
1326
|
-
* Returns y ratio from the image.
|
|
1327
|
-
*
|
|
1328
|
-
* @private
|
|
1329
|
-
*/
|
|
1330
|
-
ratioY?: number;
|
|
1331
|
-
/**
|
|
1332
|
-
* Gets or sets the time.
|
|
1333
|
-
*
|
|
1334
|
-
* @private
|
|
1335
|
-
*/
|
|
1336
|
-
time?: number;
|
|
1337
|
-
}
|
|
1338
|
-
/**
|
|
1339
|
-
* Interface for ShapeSettings in the imageEditor.
|
|
1340
|
-
*/
|
|
1341
|
-
export interface ShapeSettings {
|
|
1342
|
-
/**
|
|
1343
|
-
* Returns the id of the shape.
|
|
1344
|
-
*/
|
|
1345
|
-
id: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* Returns the type of the shape.
|
|
1348
|
-
*/
|
|
1349
|
-
type: ShapeType;
|
|
1350
|
-
/**
|
|
1351
|
-
* Returns the start x position of the shape.
|
|
1352
|
-
*/
|
|
1353
|
-
startX: number;
|
|
1354
|
-
/**
|
|
1355
|
-
* Returns the start y position of the shape.
|
|
1356
|
-
*/
|
|
1357
|
-
startY: number;
|
|
1358
|
-
/**
|
|
1359
|
-
* Returns the width of the shape.
|
|
1360
|
-
*/
|
|
1361
|
-
width?: number;
|
|
1362
|
-
/**
|
|
1363
|
-
* Returns the height of the shape.
|
|
1364
|
-
*/
|
|
1365
|
-
height?: number;
|
|
1366
|
-
/**
|
|
1367
|
-
* Returns the stroke color of the shape.
|
|
1368
|
-
*/
|
|
1369
|
-
strokeColor?: string;
|
|
1370
|
-
/**
|
|
1371
|
-
* Returns the fill color of the shape.
|
|
1372
|
-
*/
|
|
1373
|
-
fillColor?: string;
|
|
1374
|
-
/**
|
|
1375
|
-
* Returns the stroke width of the shape.
|
|
1376
|
-
*/
|
|
1377
|
-
strokeWidth?: number;
|
|
1378
|
-
/**
|
|
1379
|
-
* Returns the radius of the ellipse shape.
|
|
1380
|
-
*/
|
|
1381
|
-
radius?: number;
|
|
1382
|
-
/**
|
|
1383
|
-
* Returns the length of the line shape.
|
|
1384
|
-
*/
|
|
1385
|
-
length?: number;
|
|
1386
|
-
/**
|
|
1387
|
-
* Returns the text content of the text.
|
|
1388
|
-
*/
|
|
1389
|
-
text?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* Returns the font size of the text.
|
|
1392
|
-
*/
|
|
1393
|
-
fontSize?: number;
|
|
1394
|
-
/**
|
|
1395
|
-
* Returns the font style of the text.
|
|
1396
|
-
*/
|
|
1397
|
-
fontStyle?: string[];
|
|
1398
|
-
/**
|
|
1399
|
-
* Returns the font color of the text.
|
|
1400
|
-
*/
|
|
1401
|
-
color?: string;
|
|
1402
|
-
/**
|
|
1403
|
-
* Returns the points collection of freehand drawing.
|
|
1404
|
-
*/
|
|
1405
|
-
points?: Point[];
|
|
1406
|
-
}
|
|
1407
|
-
/**
|
|
1408
|
-
* Interface for filter option for the image.
|
|
1409
|
-
*/
|
|
1410
|
-
export interface ImageFilterEventArgs {
|
|
1411
|
-
/**
|
|
1412
|
-
* Specifies the when applying filter to an image.
|
|
1413
|
-
*/
|
|
1414
|
-
filter: ImageFilterOptions;
|
|
1415
|
-
}
|
|
1416
|
-
/**
|
|
1417
|
-
* Interface for filter option for the image.
|
|
1418
|
-
*/
|
|
1419
|
-
export interface FinetuneEventArgs {
|
|
1420
|
-
/**
|
|
1421
|
-
* Specifies the type of fine tunes.
|
|
1422
|
-
*/
|
|
1423
|
-
finetune: ImageFinetuneOptions;
|
|
1424
|
-
/**
|
|
1425
|
-
* Specifies the value of the fine tunes.
|
|
1426
|
-
*/
|
|
1427
|
-
value: number;
|
|
1428
|
-
}
|