@syncfusion/ej2-image-editor 21.2.10 → 22.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 +8 -32
- 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 +19320 -12622
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +19139 -12414
- 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 +11 -11
- 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/{image-editor-model.d.ts → base/image-editor-model.d.ts} +130 -42
- package/src/image-editor/{image-editor.d.ts → base/image-editor.d.ts} +413 -1111
- 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 +69 -3
- package/styles/bootstrap.css +69 -3
- package/styles/bootstrap4.css +69 -3
- package/styles/bootstrap5-dark.css +69 -3
- package/styles/bootstrap5.css +69 -3
- package/styles/fabric-dark.css +69 -3
- package/styles/fabric.css +69 -3
- package/styles/fluent-dark.css +69 -3
- package/styles/fluent.css +69 -3
- package/styles/highcontrast-light.css +71 -5
- package/styles/highcontrast.css +72 -5
- 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 +21 -7
- package/styles/image-editor/_material3-dark-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +11 -0
- package/styles/image-editor/_theme.scss +7 -2
- package/styles/image-editor/bootstrap-dark.css +69 -3
- package/styles/image-editor/bootstrap.css +69 -3
- package/styles/image-editor/bootstrap4.css +69 -3
- package/styles/image-editor/bootstrap5-dark.css +69 -3
- package/styles/image-editor/bootstrap5.css +69 -3
- package/styles/image-editor/fabric-dark.css +69 -3
- package/styles/image-editor/fabric.css +69 -3
- package/styles/image-editor/fluent-dark.css +69 -3
- package/styles/image-editor/fluent.css +69 -3
- package/styles/image-editor/highcontrast-light.css +71 -5
- package/styles/image-editor/highcontrast.css +72 -5
- 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 +69 -3
- package/styles/image-editor/material.css +69 -3
- 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 +69 -3
- package/styles/image-editor/tailwind.css +69 -3
- package/styles/material-dark.css +69 -3
- package/styles/material.css +69 -3
- 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 +69 -3
- package/styles/tailwind.css +69 -3
- package/src/image-editor/image-editor.js +0 -14827
|
@@ -1,31 +1,15 @@
|
|
|
1
|
-
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, INotifyPropertyChanged, ModuleDeclaration, BlazorDotnetObject } from '@syncfusion/ej2-base';
|
|
2
2
|
import { EmitType } from '@syncfusion/ej2-base';
|
|
3
3
|
import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations';
|
|
4
4
|
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
5
|
-
import { ImageEditorModel, FinetuneSettingsModel, ZoomSettingsModel } from './image-editor-model';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
}
|
|
5
|
+
import { ImageEditorModel, FinetuneSettingsModel, ZoomSettingsModel, SelectionSettingsModel } from './image-editor-model';
|
|
6
|
+
import { SelectionChangeEventArgs, Transition, ArrowheadType } from './../index';
|
|
7
|
+
import { ZoomEventArgs, PanEventArgs, CropEventArgs, RotateEventArgs, FlipEventArgs, ShapeChangeEventArgs } from './../index';
|
|
8
|
+
import { ToolbarEventArgs, OpenEventArgs, SaveEventArgs, BeforeSaveEventArgs, Point, ShapeSettings, ImageFilterEventArgs } from './../index';
|
|
9
|
+
import { FinetuneEventArgs, QuickAccessToolbarEventArgs, CurrentObject, ImageDimension, TransformValue, PanPoint } from './../index';
|
|
10
|
+
import { Interaction, SelectionPoint, ImageFinetuneValue, Dimension, ActivePoint, ImageEditorClickEventArgs } from './../index';
|
|
11
|
+
import { Direction, ZoomTrigger, Theme, ImageEditorCommand, ImageFilterOption, ImageFinetuneOption } from './../index';
|
|
12
|
+
import { ItemModel as DropDownButtonItemModel } from '@syncfusion/ej2-splitbuttons';
|
|
29
13
|
/**
|
|
30
14
|
* This interface is used to specify settings for finetuning operations on images, including brightness, contrast, hue, saturation, exposure, opacity, and blur. It includes properties for setting minimum and maximum values for each of these options, as well as a default value.
|
|
31
15
|
*/
|
|
@@ -124,15 +108,14 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
|
|
|
124
108
|
*
|
|
125
109
|
* By default, this property is set to `null`, which enables all types of zooming.
|
|
126
110
|
*
|
|
127
|
-
* @aspNumberEnum
|
|
128
111
|
* @default null
|
|
112
|
+
* @aspNumberEnum
|
|
129
113
|
*/
|
|
130
114
|
zoomTrigger: ZoomTrigger;
|
|
131
115
|
/**
|
|
132
116
|
* Specifies the minimum zooming level to limit the zooming.
|
|
133
117
|
* An integer value that specifies the minimum zooming level. And the default value is 1 (100%).
|
|
134
118
|
*
|
|
135
|
-
* @private
|
|
136
119
|
* @remarks
|
|
137
120
|
* The given value is considered as percentage.
|
|
138
121
|
*
|
|
@@ -167,167 +150,132 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
|
|
|
167
150
|
*/
|
|
168
151
|
zoomPoint: Point;
|
|
169
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* This interface is used to specify settings for selection operations on images, including visibility, stroke color and fill color.
|
|
155
|
+
*/
|
|
156
|
+
export declare class SelectionSettings extends ChildProperty<SelectionSettings> {
|
|
157
|
+
/**
|
|
158
|
+
* Specifies a boolean value whether to show circle on selection in the image editor.
|
|
159
|
+
*
|
|
160
|
+
* @type {boolean}
|
|
161
|
+
*
|
|
162
|
+
* @default true
|
|
163
|
+
*/
|
|
164
|
+
showCircle: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Represents stroke color of circle selection in the image editor.
|
|
167
|
+
*
|
|
168
|
+
* @type {string}
|
|
169
|
+
*
|
|
170
|
+
* @default null
|
|
171
|
+
*/
|
|
172
|
+
strokeColor: string;
|
|
173
|
+
/**
|
|
174
|
+
* Represents fill color of circle selection in the image editor.
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
*
|
|
178
|
+
* @default null
|
|
179
|
+
*/
|
|
180
|
+
fillColor: string;
|
|
181
|
+
}
|
|
170
182
|
/**
|
|
171
183
|
* The Image Editor is a graphical user interface for editing images.
|
|
172
184
|
*
|
|
185
|
+
* {% codeBlock src='image-editor/default/index.md' %}{% endcodeBlock %}
|
|
186
|
+
*
|
|
173
187
|
* @remarks
|
|
174
188
|
* The Image Editor component provides various image editing features such as zooming, cropping, rotating, inserting text and shapes (rectangles, ellipses, and lines), drawing freehand on top of an image, undo/redo, and more.
|
|
175
189
|
*
|
|
176
|
-
* {% codeBlock src='image-editor/default/index.md' %}{% endcodeBlock %}
|
|
177
|
-
*
|
|
178
190
|
*/
|
|
179
191
|
export declare class ImageEditor extends Component<HTMLDivElement> implements INotifyPropertyChanged {
|
|
180
192
|
/**
|
|
181
193
|
*
|
|
182
194
|
* Image Editor Private Properties
|
|
183
195
|
*/
|
|
184
|
-
|
|
196
|
+
/** @hidden */
|
|
197
|
+
isImageLoaded: boolean;
|
|
198
|
+
/** @hidden */
|
|
199
|
+
baseImg: HTMLImageElement;
|
|
200
|
+
/** @hidden */
|
|
201
|
+
lowerCanvas: HTMLCanvasElement;
|
|
202
|
+
/** @hidden */
|
|
203
|
+
upperCanvas: HTMLCanvasElement;
|
|
204
|
+
/** @hidden */
|
|
205
|
+
inMemoryCanvas: HTMLCanvasElement;
|
|
206
|
+
/** @hidden */
|
|
207
|
+
textArea: HTMLInputElement;
|
|
208
|
+
/** @hidden */
|
|
209
|
+
activeObj: SelectionPoint;
|
|
210
|
+
/** @hidden */
|
|
211
|
+
currObjType: Interaction;
|
|
212
|
+
/** @hidden */
|
|
213
|
+
objColl: SelectionPoint[];
|
|
214
|
+
/** @hidden */
|
|
215
|
+
pointColl: any;
|
|
216
|
+
/** @hidden */
|
|
217
|
+
freehandCounter: number;
|
|
218
|
+
/** @hidden */
|
|
219
|
+
points: Point[];
|
|
220
|
+
/** @hidden */
|
|
221
|
+
togglePen: boolean;
|
|
222
|
+
/** @hidden */
|
|
223
|
+
togglePan: boolean;
|
|
224
|
+
/** @hidden */
|
|
225
|
+
img: ImageDimension;
|
|
226
|
+
/** @hidden */
|
|
227
|
+
themeColl: Object;
|
|
228
|
+
/** @hidden */
|
|
229
|
+
rotateFlipColl: any;
|
|
230
|
+
/** @hidden */
|
|
231
|
+
cropObj: CurrentObject;
|
|
232
|
+
/** @hidden */
|
|
233
|
+
afterCropActions: string[];
|
|
234
|
+
/** @hidden */
|
|
235
|
+
currSelectionPoint: SelectionPoint;
|
|
236
|
+
/** @hidden */
|
|
237
|
+
transform: TransformValue;
|
|
238
|
+
/** @hidden */
|
|
239
|
+
panPoint: PanPoint;
|
|
240
|
+
/** @hidden */
|
|
241
|
+
isUndoRedo: boolean;
|
|
242
|
+
/** @hidden */
|
|
243
|
+
isCropTab: boolean;
|
|
244
|
+
/** @hidden */
|
|
245
|
+
isCircleCrop: boolean;
|
|
246
|
+
/** @hidden */
|
|
247
|
+
fontSizeColl: DropDownButtonItemModel[];
|
|
248
|
+
/** @hidden */
|
|
249
|
+
initialAdjustmentValue: string;
|
|
250
|
+
/** @hidden */
|
|
251
|
+
currentFilter: string;
|
|
252
|
+
/** @hidden */
|
|
253
|
+
canvasFilter: string;
|
|
254
|
+
/** @hidden */
|
|
255
|
+
dotNetRef: BlazorDotnetObject;
|
|
256
|
+
/** @hidden */
|
|
257
|
+
toolbarHeight: number;
|
|
258
|
+
/** @hidden */
|
|
259
|
+
events: any;
|
|
260
|
+
/** @hidden */
|
|
261
|
+
isPublicMethod: boolean;
|
|
262
|
+
/** @hidden */
|
|
263
|
+
cancelCropSelection: Transition;
|
|
264
|
+
/** @hidden */
|
|
265
|
+
isCropToolbar: boolean;
|
|
266
|
+
/** @hidden */
|
|
267
|
+
prevCurrSelectionPoint: SelectionPoint;
|
|
268
|
+
/** @hidden */
|
|
269
|
+
cursor: string;
|
|
270
|
+
/** @hidden */
|
|
271
|
+
eventType: string;
|
|
272
|
+
/** @hidden */
|
|
273
|
+
panEventArgs: PanEventArgs;
|
|
185
274
|
private lowerContext;
|
|
186
|
-
private upperCanvas;
|
|
187
275
|
private upperContext;
|
|
188
|
-
private inMemoryCanvas;
|
|
189
276
|
private inMemoryContext;
|
|
190
|
-
private baseImg;
|
|
191
|
-
private textArea;
|
|
192
|
-
private degree;
|
|
193
|
-
private isUndoRedo;
|
|
194
|
-
private dragCanvas;
|
|
195
|
-
private dragElement;
|
|
196
|
-
private keyHistory;
|
|
197
|
-
private tempKeyHistory;
|
|
198
|
-
private mouseDownPoint;
|
|
199
|
-
private previousPoint;
|
|
200
|
-
private dragPoint;
|
|
201
|
-
private diffPoint;
|
|
202
|
-
private oldPoint;
|
|
203
|
-
private objColl;
|
|
204
|
-
private undoRedoColl;
|
|
205
|
-
private isImageLoaded;
|
|
206
|
-
private strokeSettings;
|
|
207
|
-
private tempStrokeSettings;
|
|
208
|
-
private textSettings;
|
|
209
|
-
private tempTextSettings;
|
|
210
|
-
private penStrokeWidth;
|
|
211
|
-
private toolbarHeight;
|
|
212
|
-
private togglePan;
|
|
213
|
-
private disablePan;
|
|
214
|
-
private currFlipState;
|
|
215
|
-
private touchEndPoint;
|
|
216
|
-
private undoRedoStep;
|
|
217
|
-
private togglePen;
|
|
218
|
-
private currentToolbar;
|
|
219
|
-
private textStartPoints;
|
|
220
|
-
private fontSizeColl;
|
|
221
|
-
private textRow;
|
|
222
|
-
private activeObj;
|
|
223
|
-
private tempActiveObj;
|
|
224
|
-
private currObjType;
|
|
225
|
-
private defToolbarItems;
|
|
226
|
-
private defaultLocale;
|
|
227
|
-
private l10n;
|
|
228
|
-
private themeColl;
|
|
229
277
|
private toolbarFn;
|
|
230
|
-
private
|
|
231
|
-
private timer;
|
|
232
|
-
private tempObjColl;
|
|
233
|
-
private isFirstMove;
|
|
234
|
-
private startTouches;
|
|
235
|
-
private tempTouches;
|
|
236
|
-
private adjustmentLevel;
|
|
237
|
-
private tempAdjustmentLevel;
|
|
238
|
-
private adjustmentValue;
|
|
239
|
-
private initialAdjustmentValue;
|
|
240
|
-
private tempAdjustmentValue;
|
|
241
|
-
private currentFilter;
|
|
242
|
-
private tempFilter;
|
|
243
|
-
private canvasFilter;
|
|
244
|
-
private tempUndoRedoStep;
|
|
245
|
-
private zoomFactor;
|
|
246
|
-
private tempZoomFactor;
|
|
247
|
-
private destLeft;
|
|
248
|
-
private destTop;
|
|
249
|
-
private destWidth;
|
|
250
|
-
private destHeight;
|
|
251
|
-
private srcLeft;
|
|
252
|
-
private srcTop;
|
|
253
|
-
private srcWidth;
|
|
254
|
-
private srcHeight;
|
|
255
|
-
private currSelectionPoint;
|
|
256
|
-
private currDestinationPoint;
|
|
257
|
-
private cropDestPoints;
|
|
258
|
-
private panDown;
|
|
259
|
-
private panMove;
|
|
260
|
-
private tempPanMove;
|
|
261
|
-
private flipColl;
|
|
262
|
-
private isReverseRotate;
|
|
263
|
-
private isReverseFlip;
|
|
264
|
-
private isPreventDragging;
|
|
265
|
-
private isRotateZoom;
|
|
266
|
-
private rotateFlipColl;
|
|
267
|
-
private currentPannedPoint;
|
|
268
|
-
private isCircleCrop;
|
|
269
|
-
private rotatedDestPoints;
|
|
270
|
-
private croppedDegree;
|
|
271
|
-
private freehandDrawHoveredIndex;
|
|
272
|
-
private freehandDrawSelectedIndex;
|
|
273
|
-
private isFreehandDrawingPoint;
|
|
274
|
-
private isFreehandDrawEditing;
|
|
275
|
-
private tempFreeHandDrawEditingStyles;
|
|
276
|
-
private totalPannedInternalPoint;
|
|
277
|
-
private totalPannedClientPoint;
|
|
278
|
-
private currentSelectionPoint;
|
|
279
|
-
private totalPannedPoint;
|
|
280
|
-
private isCropTab;
|
|
281
|
-
private cropZoomFactor;
|
|
282
|
-
private defaultZoomFactor;
|
|
283
|
-
private fileName;
|
|
284
|
-
private isBrightnessAdjusted;
|
|
285
|
-
private isInitialLoading;
|
|
286
|
-
private fileType;
|
|
287
|
-
private freehandDrawObj;
|
|
288
|
-
private points;
|
|
289
|
-
private pointColl;
|
|
290
|
-
private pointCounter;
|
|
291
|
-
private freehandCounter;
|
|
292
|
-
private isFreehandDrawing;
|
|
293
|
-
private tempFreehandCounter;
|
|
294
|
-
private tempActObj;
|
|
295
|
-
private selectedFreehandColor;
|
|
296
|
-
private isFreehandDrawCustomized;
|
|
297
|
-
private isAllowCropPan;
|
|
298
|
-
private cropObj;
|
|
299
|
-
private afterCropActions;
|
|
300
|
-
private isCancelAction;
|
|
301
|
-
private isFreehandPointMoved;
|
|
302
|
-
private isTouch;
|
|
303
|
-
private freehandDownPoint;
|
|
304
|
-
private tempFlipPanPoint;
|
|
305
|
-
private currentFreehandDrawIndex;
|
|
306
|
-
private tempCurrentFreehandDrawIndex;
|
|
307
|
-
private preventZoomBtn;
|
|
308
|
-
private cancelObjColl;
|
|
309
|
-
private cancelPointColl;
|
|
310
|
-
private rotatedFlipCropSelection;
|
|
311
|
-
private freehandDrawSelectedId;
|
|
312
|
-
private transformCurrentObj;
|
|
313
|
-
private currToolbar;
|
|
314
|
-
private currentMouseMovePoint;
|
|
315
|
-
private previousCropCurrentObj;
|
|
316
|
-
private zoomBtnHold;
|
|
317
|
-
private zoomType;
|
|
318
|
-
private cursorTargetObjId;
|
|
319
|
-
private appliedUndoRedoColl;
|
|
320
|
-
private selPoints;
|
|
321
|
-
private selPointColl;
|
|
322
|
-
private prevActObj;
|
|
323
|
-
private tempCurrSelectionPoint;
|
|
324
|
-
private previousZoomValue;
|
|
325
|
-
private initialZoomValue;
|
|
326
|
-
private isObjSelected;
|
|
327
|
-
private isShapeInserted;
|
|
328
|
-
private isInitialTextEdited;
|
|
329
|
-
private isShapeTextInserted;
|
|
330
|
-
private isErrorImage;
|
|
278
|
+
private qatFn;
|
|
331
279
|
/**
|
|
332
280
|
* Defines one or more CSS classes that can be used to customize the appearance of an Image Editor component.
|
|
333
281
|
*
|
|
@@ -389,7 +337,7 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
389
337
|
* If the property is defined as empty collection, the toolbar will not be rendered.
|
|
390
338
|
* The preconfigured toolbar commands are
|
|
391
339
|
* - Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
|
|
392
|
-
* - 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.
|
|
340
|
+
* - Annotate: help to insert a shape on image that supports rectangle, ellipse, line, arrow, path, text and freehand drawing with resize, drag and drop, and customize its appearance.
|
|
393
341
|
* - Transform: helps to rotate and flip an image.
|
|
394
342
|
* - Finetunes: helps to perform adjustments on an image.
|
|
395
343
|
* - Filters: helps to perform predefined color filters.
|
|
@@ -399,35 +347,29 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
399
347
|
* - Open: open an image to perform editing.
|
|
400
348
|
* - Reset: reset the modification and restore the original image.
|
|
401
349
|
*
|
|
402
|
-
*
|
|
403
|
-
* // Define toolbar items as an array of strings
|
|
404
|
-
* var toolbarItems = ["Crop", "Annotate", "Transform", "ZoomIn", "ZoomOut", "Pan", "Move", "Save", "Open", "Reset"];
|
|
405
|
-
*
|
|
406
|
-
* // Define toolbar items as an array of ItemModel objects
|
|
407
|
-
* var toolbarItems = [
|
|
408
|
-
* { text: "Crop", tooltipText: "Crop", prefixIcon: "e-icon e-crop-icon" }
|
|
409
|
-
* ]
|
|
350
|
+
* {% codeBlock src='image-editor/toolbar/index.md' %}{% endcodeBlock %}
|
|
410
351
|
*
|
|
411
352
|
* @remarks
|
|
412
353
|
* If the toolbarTemplate property is defined in the control, the toolbar will be rendered based on the toolbarTemplate property.
|
|
413
354
|
* @default null
|
|
414
355
|
*
|
|
415
|
-
* {% codeBlock src='image-editor/toolbar/index.md' %}{% endcodeBlock %}
|
|
416
356
|
*/
|
|
417
357
|
toolbar: (string | ImageEditorCommand | ItemModel)[];
|
|
418
358
|
/**
|
|
419
359
|
* Specifies a custom template for the toolbar of an image editor control.
|
|
420
360
|
* 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.
|
|
421
361
|
*
|
|
362
|
+
* {% codeBlock src='image-editor/toolbarTemplate/index.md' %}{% endcodeBlock %}
|
|
363
|
+
*
|
|
422
364
|
* @remarks
|
|
423
365
|
* 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.
|
|
424
366
|
*
|
|
425
367
|
* @default null
|
|
368
|
+
* @aspType string
|
|
426
369
|
*
|
|
427
|
-
* {% codeBlock src='image-editor/toolbarTemplate/index.md' %}{% endcodeBlock %}
|
|
428
370
|
*
|
|
429
371
|
*/
|
|
430
|
-
toolbarTemplate: string;
|
|
372
|
+
toolbarTemplate: string | Function;
|
|
431
373
|
/**
|
|
432
374
|
* Specifies the width of an Image Editor.
|
|
433
375
|
*
|
|
@@ -450,32 +392,53 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
450
392
|
*/
|
|
451
393
|
allowUndoRedo: boolean;
|
|
452
394
|
/**
|
|
453
|
-
* Specifies whether to show/hide the
|
|
454
|
-
*
|
|
455
|
-
* @remarks
|
|
456
|
-
* The Quick Access Toolbar is a small customizable toolbar that shows commonly used commands while select the shapes.
|
|
457
|
-
* Set this property to true to show the Quick Access Toolbar, and false to hide it.
|
|
395
|
+
* Specifies whether to show/hide the quick access toolbar.
|
|
458
396
|
*
|
|
459
|
-
* @default
|
|
460
|
-
* @private
|
|
397
|
+
* @default true
|
|
461
398
|
*
|
|
462
399
|
* @remarks
|
|
463
400
|
* Set this property to true to show the quick access toolbar, and false to hide it.
|
|
401
|
+
* ```html
|
|
402
|
+
* <div id='imageeditor'></div>
|
|
403
|
+
* ```
|
|
404
|
+
* ```typescript
|
|
405
|
+
* <script>
|
|
406
|
+
* var imageObj = new ImageEditor({
|
|
407
|
+
* showQuickAccessToolbar : true
|
|
408
|
+
* });
|
|
409
|
+
* imageObj.appendTo("#imageeditor");
|
|
410
|
+
* </script>
|
|
411
|
+
* ```
|
|
464
412
|
*/
|
|
465
413
|
showQuickAccessToolbar: boolean;
|
|
466
414
|
/**
|
|
467
|
-
* Specifies a
|
|
415
|
+
* Specifies a template for the quick access toolbar.
|
|
416
|
+
* Use this property to customize the quick access toolbar.
|
|
468
417
|
*
|
|
469
418
|
* @default null
|
|
470
|
-
* @
|
|
419
|
+
* @aspType string
|
|
471
420
|
*
|
|
472
421
|
* @remarks
|
|
473
|
-
* This property only works if the "
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
|
|
478
|
-
|
|
422
|
+
* This property only works if the "showQuickToolbar" property is set to true.
|
|
423
|
+
* ```html
|
|
424
|
+
* <div id='imageeditor'></div>
|
|
425
|
+
* ```
|
|
426
|
+
* ```typescript
|
|
427
|
+
* <script>
|
|
428
|
+
* var imageObj = new ImageEditor({
|
|
429
|
+
* showQuickAccessToolbar : true,
|
|
430
|
+
* quickAccessToolbarTemplate: '#toolbarTemplate'
|
|
431
|
+
* });
|
|
432
|
+
* imageObj.appendTo("#imageeditor");
|
|
433
|
+
* </script>
|
|
434
|
+
* <script id="toolbarTemplate" type="text/x-template">
|
|
435
|
+
* <div class = 'e-toolbar'>
|
|
436
|
+
* <button id= 'dltbtn'></button>
|
|
437
|
+
* </div>
|
|
438
|
+
* </script>
|
|
439
|
+
* ```
|
|
440
|
+
*/
|
|
441
|
+
quickAccessToolbarTemplate: string | Function;
|
|
479
442
|
/**
|
|
480
443
|
* Specifies whether to prevent user interaction with the image editor control.
|
|
481
444
|
* A boolean that specifies whether to prevent the interaction in image editor control. The default value is false.
|
|
@@ -509,6 +472,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
509
472
|
/**
|
|
510
473
|
* Specifies the finetune settings option which can be used to perform color adjustments in the image editor control.
|
|
511
474
|
*
|
|
475
|
+
* {% codeBlock src='image-editor/finetuneSettings/index.md' %}{% endcodeBlock %}
|
|
476
|
+
*
|
|
512
477
|
* @remarks
|
|
513
478
|
* A 'FinetuneSettingsModel' value that specifies the the finetune options which are enabled in image editor control.
|
|
514
479
|
* If the property is not specified, then the default values will be applied for minimum, maximum, and value properties for all finetune options.
|
|
@@ -522,14 +487,14 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
522
487
|
* - 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.
|
|
523
488
|
* - Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
|
|
524
489
|
*
|
|
525
|
-
* {% codeBlock src='image-editor/finetuneSettings/index.md' %}{% endcodeBlock %}
|
|
526
|
-
*
|
|
527
490
|
*/
|
|
528
491
|
finetuneSettings: FinetuneSettingsModel;
|
|
529
492
|
/**
|
|
530
493
|
* Specifies the zoom settings to perform zooming action.
|
|
531
494
|
* A 'ZoomSettingsModel' value that specifies the the zoom related options which are enabled in image editor control. The default value is null.
|
|
532
495
|
*
|
|
496
|
+
* {% codeBlock src='image-editor/zoomSettings/index.md' %}{% endcodeBlock %}
|
|
497
|
+
*
|
|
533
498
|
* @remarks
|
|
534
499
|
* If the property is not specified, then the default settings will be applied for all the properties available in zoom settings.
|
|
535
500
|
*
|
|
@@ -540,10 +505,22 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
540
505
|
* - zoomTrigger: Specifies the types of zooming to be supported in the image editor.
|
|
541
506
|
* - zoomPoint: Specifies the x and y coordinates in which the zooming performed on initial load.
|
|
542
507
|
*
|
|
543
|
-
* {% codeBlock src='image-editor/zoomSettings/index.md' %}{% endcodeBlock %}
|
|
544
|
-
*
|
|
545
508
|
*/
|
|
546
509
|
zoomSettings: ZoomSettingsModel;
|
|
510
|
+
/**
|
|
511
|
+
* Specifies the selection settings to customize selection.
|
|
512
|
+
* A 'SelectionSettingsModel' value that specifies the the customization related options which are enabled in image editor control. The default value is null.
|
|
513
|
+
*
|
|
514
|
+
* @remarks
|
|
515
|
+
* If the property is not specified, then the default settings will be applied for all the properties available in selection settings.
|
|
516
|
+
*
|
|
517
|
+
* The following options are available in `selectionSettings`.
|
|
518
|
+
* - showCircle: Specifies whether to show / hide circles on selection.
|
|
519
|
+
* - strokeColor: Specifies the stroke color of circle selection.
|
|
520
|
+
* - fillColor: Specifies the fill color of circle selection.
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
523
|
+
selectionSettings: SelectionSettingsModel;
|
|
547
524
|
/**
|
|
548
525
|
* Event callback that is raised before an image is saved.
|
|
549
526
|
*
|
|
@@ -598,6 +575,12 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
598
575
|
* @event shapeChanging
|
|
599
576
|
*/
|
|
600
577
|
shapeChanging: EmitType<ShapeChangeEventArgs>;
|
|
578
|
+
/**
|
|
579
|
+
* Event callback that is raised while changing selection in an Image Editor.
|
|
580
|
+
*
|
|
581
|
+
* @event selectionChanging
|
|
582
|
+
*/
|
|
583
|
+
selectionChanging: EmitType<SelectionChangeEventArgs>;
|
|
601
584
|
/**
|
|
602
585
|
* Event callback that is raised once an image is opened in an Image Editor.
|
|
603
586
|
*
|
|
@@ -619,10 +602,10 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
619
602
|
/**
|
|
620
603
|
* Event callback that is raised while updating/refreshing the toolbar
|
|
621
604
|
*
|
|
622
|
-
* @event toolbarUpdating
|
|
623
|
-
*
|
|
624
605
|
* {% codeBlock src='image-editor/toolbarUpdating/index.md' %}{% endcodeBlock %}
|
|
625
606
|
*
|
|
607
|
+
* @event toolbarUpdating
|
|
608
|
+
*
|
|
626
609
|
*/
|
|
627
610
|
toolbarUpdating: EmitType<ToolbarEventArgs>;
|
|
628
611
|
/**
|
|
@@ -650,10 +633,9 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
650
633
|
*/
|
|
651
634
|
click: EmitType<ImageEditorClickEventArgs>;
|
|
652
635
|
/**
|
|
653
|
-
* Event callback that is
|
|
636
|
+
* Event callback that is raised when opening the quick access toolbar.
|
|
654
637
|
*
|
|
655
|
-
* @event
|
|
656
|
-
* @private
|
|
638
|
+
* @event quickAccessToolbarOpen
|
|
657
639
|
*
|
|
658
640
|
* @remarks
|
|
659
641
|
* Use this event to customize the toolbar items that appear in the quick access toolbar.
|
|
@@ -662,10 +644,29 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
662
644
|
* The string values representing the names of the built-in toolbar items to display.
|
|
663
645
|
* The ItemModel values representing the ItemModel of custom toolbar items to display.
|
|
664
646
|
*
|
|
665
|
-
*
|
|
647
|
+
* ```html
|
|
648
|
+
* <div id='imageeditor'></div>
|
|
649
|
+
* ```
|
|
650
|
+
* ```typescript
|
|
651
|
+
* <script>
|
|
652
|
+
* var imageObj = new ImageEditor({
|
|
653
|
+
* showQuickAccessToolbar : true,
|
|
654
|
+
* quickAccessToolbarOpen: (args: QuickAccessToolbarEventArgs)=> {
|
|
655
|
+
* args.toolbarItems = [“Delete”, {text: “custom”}];
|
|
656
|
+
* }
|
|
657
|
+
*
|
|
658
|
+
* });
|
|
659
|
+
* imageObj.appendTo("#imageeditor");
|
|
660
|
+
* </script>
|
|
661
|
+
*/
|
|
662
|
+
quickAccessToolbarOpen: EmitType<QuickAccessToolbarEventArgs>;
|
|
663
|
+
/**
|
|
664
|
+
* Event callback that is raised once the quick access toolbar item is clicked.
|
|
665
|
+
*
|
|
666
|
+
* @event quickAccessToolbarItemClick
|
|
666
667
|
*
|
|
667
668
|
*/
|
|
668
|
-
|
|
669
|
+
quickAccessToolbarItemClick: EmitType<ClickEventArgs>;
|
|
669
670
|
/**
|
|
670
671
|
*
|
|
671
672
|
* Constructor for creating the widget
|
|
@@ -674,6 +675,13 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
674
675
|
* @param {string|HTMLDivElement} element - Specifies the target element
|
|
675
676
|
*/
|
|
676
677
|
constructor(options?: ImageEditorModel, element?: string | HTMLDivElement);
|
|
678
|
+
/**
|
|
679
|
+
* To provide the array of modules needed for component rendering.
|
|
680
|
+
*
|
|
681
|
+
* @returns {ModuleDeclaration[]} - To provide the array of modules needed for component rendering.
|
|
682
|
+
* @hidden
|
|
683
|
+
*/
|
|
684
|
+
requiredModules(): ModuleDeclaration[];
|
|
677
685
|
protected preRender(): void;
|
|
678
686
|
/**
|
|
679
687
|
*
|
|
@@ -702,17 +710,14 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
702
710
|
*
|
|
703
711
|
* Called internally if any of the property value changed.
|
|
704
712
|
*
|
|
705
|
-
* @param
|
|
706
|
-
* @param
|
|
713
|
+
* @param {ImageEditorModel} newProperties - Specifies new properties
|
|
714
|
+
* @param {ImageEditorModel} oldProperties - Specifies old properties
|
|
707
715
|
* @returns {void}
|
|
708
716
|
* @private
|
|
709
717
|
*/
|
|
710
718
|
onPropertyChanged(newProperties: ImageEditorModel, oldProperties?: ImageEditorModel): void;
|
|
711
719
|
destroy(): void;
|
|
712
720
|
initialize(): void;
|
|
713
|
-
private getDefaultFilter;
|
|
714
|
-
private updateFinetunes;
|
|
715
|
-
private initializeFilter;
|
|
716
721
|
/**
|
|
717
722
|
*
|
|
718
723
|
* This Method will add events to component (element, event, method, current reference)
|
|
@@ -727,363 +732,22 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
727
732
|
* @returns {void}.
|
|
728
733
|
*/
|
|
729
734
|
private unwireEvent;
|
|
730
|
-
private destroySubComponents;
|
|
731
|
-
private updateTheme;
|
|
732
|
-
private toPascalCase;
|
|
733
735
|
private createCanvas;
|
|
734
|
-
private createToolbar;
|
|
735
|
-
private createQuickAccessToolbar;
|
|
736
|
-
private createContextualToolbar;
|
|
737
|
-
private updateContextualToolbar;
|
|
738
|
-
private createBottomToolbar;
|
|
739
|
-
private initBottomToolbar;
|
|
740
|
-
private toolbarTemplateFn;
|
|
741
|
-
private quickAccessToolbarTemplateFn;
|
|
742
|
-
private templateParser;
|
|
743
|
-
private getLeftToolbarItem;
|
|
744
|
-
private getRightToolbarItem;
|
|
745
|
-
private getMainToolbarItem;
|
|
746
|
-
private getZoomToolbarItem;
|
|
747
|
-
private processToolbar;
|
|
748
|
-
private processSubToolbar;
|
|
749
|
-
private wireZoomBtnEvents;
|
|
750
|
-
private isToolbar;
|
|
751
|
-
private initToolbarItem;
|
|
752
|
-
private enableDisableToolbarBtn;
|
|
753
|
-
private createLeftToolbarControls;
|
|
754
|
-
private cropSelectedState;
|
|
755
|
-
private renderAnnotationBtn;
|
|
756
|
-
private renderCropBtn;
|
|
757
|
-
private renderTransformBtn;
|
|
758
|
-
private renderSaveBtn;
|
|
759
|
-
private cropSelect;
|
|
760
|
-
private transformSelect;
|
|
761
|
-
private resetZoom;
|
|
762
|
-
private performTransformation;
|
|
763
|
-
private updateTransform;
|
|
764
|
-
private getShapesToolbarItem;
|
|
765
|
-
private initShapesToolbarItem;
|
|
766
|
-
private createShapeColor;
|
|
767
|
-
private createShapeBtn;
|
|
768
|
-
private getTextToolbarItem;
|
|
769
|
-
private getFontFamilyItems;
|
|
770
|
-
private getFontSizeItems;
|
|
771
|
-
private initTextToolbarItem;
|
|
772
|
-
private createTextColor;
|
|
773
|
-
private pushActItemIntoObj;
|
|
774
|
-
private createTextBtn;
|
|
775
|
-
private getFontSizes;
|
|
776
|
-
private getTextAreaWidth;
|
|
777
|
-
private updateUndoRedoObj;
|
|
778
|
-
private updateObjColl;
|
|
779
|
-
private applyFontStyle;
|
|
780
|
-
private initZoomToolbarItem;
|
|
781
|
-
private refreshUndoRedoColl;
|
|
782
|
-
private applyPreviewFilter;
|
|
783
|
-
private contextualToolbarClicked;
|
|
784
|
-
private zoomInBtnClickHandler;
|
|
785
|
-
private zoomOutBtnClickHandler;
|
|
786
|
-
private zoomInBtnMouseDownHandler;
|
|
787
|
-
private zoomOutBtnMouseDownHandler;
|
|
788
|
-
private zoomBtnMouseUpHandler;
|
|
789
|
-
private defToolbarClicked;
|
|
790
|
-
private performCancel;
|
|
791
|
-
private applyShape;
|
|
792
|
-
private applyFreehandDraw;
|
|
793
|
-
private cancelFreehandDraw;
|
|
794
|
-
private openSlider;
|
|
795
|
-
private setTempFilterProperties;
|
|
796
|
-
private okBtn;
|
|
797
|
-
private getZeroZoomPointCollValue;
|
|
798
|
-
private getZeroZoomObjValue;
|
|
799
|
-
private updateCurrentUndoRedoColl;
|
|
800
|
-
private updateBrightnessFilter;
|
|
801
|
-
private isFreehandDrawIndex;
|
|
802
|
-
private deleteFreehandDraw;
|
|
803
|
-
private unselectBtn;
|
|
804
|
-
private callUndo;
|
|
805
|
-
private callRedo;
|
|
806
|
-
private refreshSlider;
|
|
807
|
-
private iterateObjColl;
|
|
808
|
-
private updateAdjustment;
|
|
809
|
-
private autoEnablePan;
|
|
810
|
-
private setTempFilterValue;
|
|
811
|
-
private getDefaultCurrentFilter;
|
|
812
|
-
private renderSlider;
|
|
813
|
-
private createSlider;
|
|
814
|
-
private getCurrAdjustmentValue;
|
|
815
|
-
private getFinetuneOption;
|
|
816
|
-
private setCurrAdjustmentValue;
|
|
817
|
-
private cancelPan;
|
|
818
|
-
private callMainToolbar;
|
|
819
|
-
private setCurrSelectionPoints;
|
|
820
|
-
private updatePannedRegion;
|
|
821
|
-
private updateObjAndFreeHandDrawColl;
|
|
822
|
-
private cancelItems;
|
|
823
|
-
private freehandDownHandler;
|
|
824
|
-
private freehandUpHandler;
|
|
825
|
-
private freehandMoveHandler;
|
|
826
|
-
private processPoint;
|
|
827
|
-
private calcCurveControlPoints;
|
|
828
|
-
private point;
|
|
829
|
-
private startDraw;
|
|
830
|
-
private pointVelocity;
|
|
831
|
-
private distanceTo;
|
|
832
|
-
private drawCurve;
|
|
833
|
-
private bezierLength;
|
|
834
|
-
private bezierPoint;
|
|
835
|
-
private drawArc;
|
|
836
|
-
private freehandRedraw;
|
|
837
|
-
private redrawImgWithObj;
|
|
838
|
-
private refreshToolbar;
|
|
839
|
-
private getAdjustmentToolbarItem;
|
|
840
|
-
private getFilterToolbarItem;
|
|
841
|
-
private getPenToolbarItem;
|
|
842
|
-
private initPenToolbarItem;
|
|
843
|
-
private createPenColor;
|
|
844
|
-
private createPenBtn;
|
|
845
|
-
private updateFreehandDrawColorChange;
|
|
846
|
-
private setPenStroke;
|
|
847
|
-
private getPenStroke;
|
|
848
|
-
private initAdjustmentToolbarItem;
|
|
849
|
-
private initFilterToolbarItem;
|
|
850
|
-
private getCurrentCanvasData;
|
|
851
|
-
private createCanvasFilter;
|
|
852
|
-
private callUpdateCurrentTransformedState;
|
|
853
|
-
private updateCurrentTransformedState;
|
|
854
|
-
private reverseTransformedState;
|
|
855
|
-
private currentTransformedState;
|
|
856
|
-
private iterateRotateFlipColl;
|
|
857
|
-
private setTransform;
|
|
858
|
-
private isObjInsideCropRegion;
|
|
859
|
-
private panFreehandDrawColl;
|
|
860
|
-
private panObjColl;
|
|
861
|
-
private cropObjColl;
|
|
862
|
-
private cropFreehandDrawColl;
|
|
863
|
-
private hoverFreehandraw;
|
|
864
|
-
private pointsHorizontalFlip;
|
|
865
|
-
private pointsVerticalFlip;
|
|
866
|
-
private flipFreehandrawColl;
|
|
867
|
-
private rotateFreehandDrawColl;
|
|
868
|
-
private updateCursorPointsForFreehandDrawing;
|
|
869
|
-
private zoomFreehandDrawColl;
|
|
870
|
-
private zoomX;
|
|
871
|
-
private zoomY;
|
|
872
|
-
private zoomObjColl;
|
|
873
|
-
private calcRatio;
|
|
874
|
-
private drawCustomSelection;
|
|
875
|
-
private clearOuterCanvas;
|
|
876
|
-
private cropCircle;
|
|
877
|
-
private updateCropObj;
|
|
878
|
-
private setCurrentObj;
|
|
879
|
-
private drawCropSelectionImage;
|
|
880
|
-
private cropImg;
|
|
881
|
-
private updateImageRatioForActObj;
|
|
882
|
-
private drawImgToCanvas;
|
|
883
|
-
private limitPan;
|
|
884
|
-
private updatePanPoints;
|
|
885
|
-
private setCurrentPanRegion;
|
|
886
|
-
private getCurrentPanRegion;
|
|
887
|
-
private drawPannImage;
|
|
888
|
-
private drawPannedImage;
|
|
889
|
-
private updateFlipPan;
|
|
890
|
-
private updateFlipActiveObj;
|
|
891
|
-
private resetPanPoints;
|
|
892
|
-
private flipCrop;
|
|
893
|
-
private rotateCrop;
|
|
894
|
-
private getCurrentCropState;
|
|
895
|
-
private isInitialRotate;
|
|
896
|
-
private updateRotatePanPoints;
|
|
897
|
-
private rotatePan;
|
|
898
|
-
private rotateZoom;
|
|
899
|
-
private drawZoomImgToCanvas;
|
|
900
|
-
private cropZoom;
|
|
901
|
-
private updateCanvas;
|
|
902
|
-
private imageOnLoad;
|
|
903
|
-
private refreshActiveObj;
|
|
904
|
-
private redrawText;
|
|
905
|
-
private setTextSelection;
|
|
906
|
-
private getCurrentObj;
|
|
907
|
-
private updateUndoRedoColl;
|
|
908
|
-
private fileSelect;
|
|
909
|
-
private findTextPoint;
|
|
910
|
-
private getStrokeWidth;
|
|
911
|
-
private updateToolbarItems;
|
|
912
|
-
private setTimer;
|
|
913
|
-
private targetTouches;
|
|
914
|
-
private calculateScale;
|
|
915
|
-
private getDistance;
|
|
916
|
-
private setXYPoints;
|
|
917
736
|
private touchStartHandler;
|
|
918
|
-
private getCurrentIndex;
|
|
919
|
-
private isShapeClick;
|
|
920
|
-
private isShapeTouch;
|
|
921
|
-
private isFreehandDrawTouch;
|
|
922
|
-
private selectFreehandDraw;
|
|
923
|
-
private closeContextualToolbar;
|
|
924
|
-
private applyObj;
|
|
925
|
-
private applyCurrShape;
|
|
926
737
|
private mouseDownEventHandler;
|
|
927
738
|
private mouseMoveEventHandler;
|
|
928
739
|
private mouseUpEventHandler;
|
|
929
|
-
private getSquarePointForFreehandDraw;
|
|
930
|
-
private getQuickAccessToolbarItem;
|
|
931
|
-
private renderQuickAccessToolbar;
|
|
932
|
-
private deleteItem;
|
|
933
740
|
private keyDownEventHandler;
|
|
934
741
|
private keyUpEventHandler;
|
|
935
742
|
private canvasMouseDownHandler;
|
|
936
743
|
private canvasMouseMoveHandler;
|
|
937
744
|
private canvasMouseUpHandler;
|
|
938
745
|
private handleScroll;
|
|
939
|
-
private performPointZoom;
|
|
940
|
-
private adjustPanning;
|
|
941
|
-
private drawZoomPanImage;
|
|
942
|
-
private textKeyDown;
|
|
943
746
|
private adjustToScreen;
|
|
944
747
|
private screenOrientation;
|
|
945
748
|
private windowResizeHandler;
|
|
946
|
-
private
|
|
947
|
-
private
|
|
948
|
-
private updatePreviousShapeSettings;
|
|
949
|
-
private zoomAction;
|
|
950
|
-
private getCurrentZoomFactor;
|
|
951
|
-
private disableZoomOutBtn;
|
|
952
|
-
private setZoomDimension;
|
|
953
|
-
private applyCurrActObj;
|
|
954
|
-
private updateTextFromTextArea;
|
|
955
|
-
private setTextBoxStylesToActObj;
|
|
956
|
-
private redrawActObj;
|
|
957
|
-
private setTextBoxPos;
|
|
958
|
-
private setTextBoxPoints;
|
|
959
|
-
private findTextTarget;
|
|
960
|
-
private renderTextArea;
|
|
961
|
-
private selectedText;
|
|
962
|
-
private setTextBoxHeight;
|
|
963
|
-
private setTextBoxWidth;
|
|
964
|
-
private setActivePoint;
|
|
965
|
-
private setDragWidth;
|
|
966
|
-
private setDragHeight;
|
|
967
|
-
private triggerShapeChange;
|
|
968
|
-
private updateActivePoint;
|
|
969
|
-
private updateArrowDirection;
|
|
970
|
-
private preventDraggingInvertly;
|
|
971
|
-
private preventTextDraggingInvertly;
|
|
972
|
-
private updateNWPoints;
|
|
973
|
-
private updateNPoints;
|
|
974
|
-
private updateNEPoints;
|
|
975
|
-
private updateWPoints;
|
|
976
|
-
private updateEPoints;
|
|
977
|
-
private updateSWPoints;
|
|
978
|
-
private updateSPoints;
|
|
979
|
-
private updateSEPoints;
|
|
980
|
-
private updateFontRatio;
|
|
981
|
-
private updateFontSize;
|
|
982
|
-
private preventInverseResize;
|
|
983
|
-
private getScaleRatio;
|
|
984
|
-
private getMaxText;
|
|
985
|
-
private setDragLimit;
|
|
986
|
-
private lineDraw;
|
|
987
|
-
private shapeCircle;
|
|
988
|
-
private drawOuterSelection;
|
|
989
|
-
private drawObject;
|
|
990
|
-
private updateActiveObject;
|
|
991
|
-
private drawShapeObj;
|
|
992
|
-
private shapeLine;
|
|
993
|
-
private shapeArrow;
|
|
994
|
-
private shapeText;
|
|
995
|
-
private updateActPoint;
|
|
996
|
-
private drawSquareLines;
|
|
997
|
-
private drawSelection;
|
|
998
|
-
private drawCenterCircles;
|
|
999
|
-
private findTarget;
|
|
1000
|
-
private findTargetObj;
|
|
1001
|
-
private getCurrentFlipState;
|
|
1002
|
-
private rotateDegree;
|
|
1003
|
-
private updateCursorStyles;
|
|
1004
|
-
private updateCursorStylesForArrow;
|
|
1005
|
-
private drawCropRatio;
|
|
1006
|
-
private setDragDirection;
|
|
1007
|
-
private updatePoints;
|
|
1008
|
-
private calcShapeRatio;
|
|
1009
|
-
private getScale;
|
|
1010
|
-
private calcMaxDimension;
|
|
1011
|
-
private setMaximumDimension;
|
|
1012
|
-
private setCursor;
|
|
1013
|
-
private setCursorForFreehandDrawing;
|
|
1014
|
-
private setCursorFromObj;
|
|
1015
|
-
private isInside;
|
|
1016
|
-
private refreshDropDownBtn;
|
|
1017
|
-
private downloadImg;
|
|
1018
|
-
private toSVGImg;
|
|
1019
|
-
private toBlobFn;
|
|
1020
|
-
private exportChangesToCanvas;
|
|
1021
|
-
private exportTransformedImage;
|
|
1022
|
-
private exportRotate;
|
|
1023
|
-
private exportHorizontalFlip;
|
|
1024
|
-
private exportVerticalFlip;
|
|
1025
|
-
private updateSaveContext;
|
|
1026
|
-
private addLetter;
|
|
1027
|
-
private updateFontStyles;
|
|
1028
|
-
private textFlipDegree;
|
|
1029
|
-
private rotateText;
|
|
1030
|
-
private redrawObj;
|
|
1031
|
-
private updateCurrentActiveObjPoint;
|
|
1032
|
-
private rotateObjColl;
|
|
1033
|
-
private redrawShape;
|
|
1034
|
-
private applyActObj;
|
|
1035
|
-
private destroyQuickAccessToolbar;
|
|
1036
|
-
private apply;
|
|
1037
|
-
private setCenterPoints;
|
|
1038
|
-
private updateTriangleRatio;
|
|
1039
|
-
private updateTrianglePoints;
|
|
1040
|
-
private setDimension;
|
|
1041
|
-
private updateUndoRedo;
|
|
1042
|
-
private drawShape;
|
|
1043
|
-
private drawShapeText;
|
|
1044
|
-
private updateShapeChangeEventArgs;
|
|
1045
|
-
private getObjDetails;
|
|
1046
|
-
private getFreehandDrawDetails;
|
|
1047
|
-
private isPointsInRange;
|
|
1048
|
-
private clearActObj;
|
|
1049
|
-
private applyPenDraw;
|
|
1050
|
-
private drawRotatedImage;
|
|
1051
|
-
private updateCurrSelectionPoint;
|
|
1052
|
-
private setClientTransformedDimension;
|
|
1053
|
-
private popForDefaultTransformedState;
|
|
1054
|
-
private popForDefaultFlipState;
|
|
1055
|
-
private popForDefaultRotateState;
|
|
1056
|
-
private alignRotateFlipColl;
|
|
1057
|
-
private updateFlipColl;
|
|
1058
|
-
private horizontalFlip;
|
|
1059
|
-
private verticalFlip;
|
|
1060
|
-
private updateFlipState;
|
|
1061
|
-
private setDestinationPoints;
|
|
1062
|
-
private rotatedFlip;
|
|
1063
|
-
private getFilterValue;
|
|
1064
|
-
private setFilterValue;
|
|
1065
|
-
private getSaturationFilterValue;
|
|
1066
|
-
private setSaturationFilterValue;
|
|
1067
|
-
private getBlackAndWhiteData;
|
|
1068
|
-
private setBrightness;
|
|
1069
|
-
private setContrast;
|
|
1070
|
-
private setHue;
|
|
1071
|
-
private setSaturation;
|
|
1072
|
-
private setOpacity;
|
|
1073
|
-
private setBlur;
|
|
1074
|
-
private setExposure;
|
|
1075
|
-
private setFilter;
|
|
1076
|
-
private renderImage;
|
|
1077
|
-
private updateTextBox;
|
|
1078
|
-
private drawNewSelection;
|
|
1079
|
-
private setDestPointsForFlipState;
|
|
1080
|
-
private performUndoDefaultAction;
|
|
1081
|
-
private setAdjustment;
|
|
1082
|
-
private updateFilter;
|
|
1083
|
-
private rotateImage;
|
|
1084
|
-
private flipImage;
|
|
1085
|
-
private componentToHex;
|
|
1086
|
-
private rgbToHex;
|
|
749
|
+
private notifyResetForAllModules;
|
|
750
|
+
private allowShape;
|
|
1087
751
|
/**
|
|
1088
752
|
* Clears the current selection performed in the image editor.
|
|
1089
753
|
*
|
|
@@ -1093,18 +757,20 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1093
757
|
/**
|
|
1094
758
|
* Crops an image based on the selection done in the image editor.
|
|
1095
759
|
*
|
|
760
|
+
* {% codeBlock src='image-editor/crop/index.md' %}{% endcodeBlock %}
|
|
761
|
+
*
|
|
1096
762
|
* @remarks
|
|
1097
763
|
* The selection can be done through programmatically using the 'select' method or through UI interactions.
|
|
1098
764
|
*
|
|
1099
765
|
* @returns {boolean}.
|
|
1100
766
|
*
|
|
1101
|
-
* {% codeBlock src='image-editor/crop/index.md' %}{% endcodeBlock %}
|
|
1102
|
-
*
|
|
1103
767
|
*/
|
|
1104
768
|
crop(): boolean;
|
|
1105
769
|
/**
|
|
1106
770
|
* Flips an image by horizontally or vertically in the image editor.
|
|
1107
771
|
*
|
|
772
|
+
* {% codeBlock src='image-editor/zoom/index.md' %}{% endcodeBlock %}
|
|
773
|
+
*
|
|
1108
774
|
* @param { Direction } direction - Specifies the direction to flip the image.
|
|
1109
775
|
* A horizontal direction for horizontal flipping and vertical direction for vertical flipping.
|
|
1110
776
|
*
|
|
@@ -1113,8 +779,6 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1113
779
|
*
|
|
1114
780
|
* @returns {void}.
|
|
1115
781
|
*
|
|
1116
|
-
* {% codeBlock src='image-editor/zoom/index.md' %}{% endcodeBlock %}
|
|
1117
|
-
*
|
|
1118
782
|
*/
|
|
1119
783
|
flip(direction: Direction): void;
|
|
1120
784
|
/**
|
|
@@ -1150,6 +814,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1150
814
|
/**
|
|
1151
815
|
* Rotate an image to clockwise and anti-clockwise.
|
|
1152
816
|
*
|
|
817
|
+
* {% codeBlock src='image-editor/rotate/index.md' %}{% endcodeBlock %}
|
|
818
|
+
*
|
|
1153
819
|
* @param {number} degree - Specifies a degree to rotate an image.
|
|
1154
820
|
* A positive integer value for clockwise and negative integer value for anti-clockwise rotation.
|
|
1155
821
|
*
|
|
@@ -1158,8 +824,6 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1158
824
|
*
|
|
1159
825
|
* @returns {boolean}.
|
|
1160
826
|
*
|
|
1161
|
-
* {% codeBlock src='image-editor/rotate/index.md' %}{% endcodeBlock %}
|
|
1162
|
-
*
|
|
1163
827
|
*/
|
|
1164
828
|
rotate(degree: number): boolean;
|
|
1165
829
|
/**
|
|
@@ -1177,6 +841,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1177
841
|
/**
|
|
1178
842
|
* Perform selection in an image editor. The selection helps to crop an image.
|
|
1179
843
|
*
|
|
844
|
+
* {% codeBlock src='image-editor/select/index.md' %}{% endcodeBlock %}
|
|
845
|
+
*
|
|
1180
846
|
* @param {string} type - Specifies the shape - circle / square / custom selection / pre-defined ratios.
|
|
1181
847
|
* @param {number} startX – Specifies the start x-coordinate point of the selection.
|
|
1182
848
|
* @param {number} startY – Specifies the start y-coordinate point of the selection.
|
|
@@ -1188,11 +854,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1188
854
|
*
|
|
1189
855
|
* @returns {void}.
|
|
1190
856
|
*
|
|
1191
|
-
* {% codeBlock src='image-editor/select/index.md' %}{% endcodeBlock %}
|
|
1192
|
-
*
|
|
1193
857
|
*/
|
|
1194
858
|
select(type: string, startX?: number, startY?: number, width?: number, height?: number): void;
|
|
1195
|
-
private updateSelectionInsert;
|
|
1196
859
|
/**
|
|
1197
860
|
* Enable or disable a freehand drawing option in an Image Editor.
|
|
1198
861
|
*
|
|
@@ -1240,6 +903,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1240
903
|
/**
|
|
1241
904
|
* Draw ellipse on an image.
|
|
1242
905
|
*
|
|
906
|
+
* {% codeBlock src='image-editor/ellipse/index.md' %}{% endcodeBlock %}
|
|
907
|
+
*
|
|
1243
908
|
* @param {number} x - Specifies x-coordinate of ellipse.
|
|
1244
909
|
* @param {number} y - Specifies y-coordinate of ellipse.
|
|
1245
910
|
* @param {number} radiusX - Specifies the radius x point for the ellipse.
|
|
@@ -1249,8 +914,6 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1249
914
|
* @param {string} fillColor - Specifies the fill color of the ellipse.
|
|
1250
915
|
* @returns {boolean}.
|
|
1251
916
|
*
|
|
1252
|
-
* {% codeBlock src='image-editor/ellipse/index.md' %}{% endcodeBlock %}
|
|
1253
|
-
*
|
|
1254
917
|
*/
|
|
1255
918
|
drawEllipse(x?: number, y?: number, radiusX?: number, radiusY?: number, strokeWidth?: number, strokeColor?: string, fillColor?: string): boolean;
|
|
1256
919
|
/**
|
|
@@ -1274,10 +937,20 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1274
937
|
* @param {number} endY - Specifies end point y-coordinates of the arrow.
|
|
1275
938
|
* @param {number} strokeWidth - Specifies the stroke width of arrow.
|
|
1276
939
|
* @param {string} strokeColor - Specifies the stroke color of arrow.
|
|
940
|
+
* @param {ArrowheadType} arrowStart – Specifies the type of arrowhead for start position. The default value is ‘None’.
|
|
941
|
+
* @param {ArrowheadType} arrowEnd – Specifies the type of arrowhead for end position. The default value is ‘SolidArrow’.
|
|
942
|
+
* @returns {boolean}.
|
|
943
|
+
*/
|
|
944
|
+
drawArrow(startX?: number, startY?: number, endX?: number, endY?: number, strokeWidth?: number, strokeColor?: string, arrowStart?: ArrowheadType, arrowEnd?: ArrowheadType): boolean;
|
|
945
|
+
/**
|
|
946
|
+
* Draw path on an image.
|
|
947
|
+
*
|
|
948
|
+
* @param {Point[]} pointColl – Specifies collection of start and end x, y-coordinates of path.
|
|
949
|
+
* @param {number} strokeWidth - Specifies the stroke width of path.
|
|
950
|
+
* @param {string} strokeColor - Specifies the stroke color of path.
|
|
1277
951
|
* @returns {boolean}.
|
|
1278
|
-
* @private
|
|
1279
952
|
*/
|
|
1280
|
-
|
|
953
|
+
drawPath(pointColl: Point[], strokeWidth?: number, strokeColor?: string): boolean;
|
|
1281
954
|
/**
|
|
1282
955
|
* Draw a rectangle on an image.
|
|
1283
956
|
*
|
|
@@ -1294,6 +967,8 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1294
967
|
/**
|
|
1295
968
|
* Draw a text on an image.
|
|
1296
969
|
*
|
|
970
|
+
* {% codeBlock src='image-editor/text/index.md' %}{% endcodeBlock %}
|
|
971
|
+
*
|
|
1297
972
|
* @param {number} x - Specifies x-coordinate of text.
|
|
1298
973
|
* @param {number} y - Specifies y-coordinate of text.
|
|
1299
974
|
* @param {string} text - Specifies the text to add on an image.
|
|
@@ -1304,40 +979,38 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1304
979
|
* @param {string} color - Specifies font color of the text.
|
|
1305
980
|
* @returns {boolean}.
|
|
1306
981
|
*
|
|
1307
|
-
* {% codeBlock src='image-editor/text/index.md' %}{% endcodeBlock %}
|
|
1308
|
-
*
|
|
1309
982
|
*/
|
|
1310
983
|
drawText(x?: number, y?: number, text?: string, fontFamily?: string, fontSize?: number, bold?: boolean, italic?: boolean, color?: string): boolean;
|
|
1311
984
|
/**
|
|
1312
985
|
* Select a shape based on the given shape id.
|
|
1313
986
|
* Use 'getShapeSettings' method to get the shape id which is then passed to perform selection.
|
|
1314
987
|
*
|
|
988
|
+
* {% codeBlock src='image-editor/selectShape/index.md' %}{% endcodeBlock %}
|
|
989
|
+
*
|
|
1315
990
|
* @param {string} id - Specifies the shape id to select a shape on an image.
|
|
1316
991
|
* @returns {boolean}.
|
|
1317
992
|
*
|
|
1318
|
-
* {% codeBlock src='image-editor/selectShape/index.md' %}{% endcodeBlock %}
|
|
1319
|
-
*
|
|
1320
993
|
*/
|
|
1321
994
|
selectShape(id: string): boolean;
|
|
1322
995
|
/**
|
|
1323
996
|
* Deletes a shape based on the given shape id.
|
|
1324
997
|
* Use 'getShapeSettings' method to get the shape id which is then passed to perform selection.
|
|
1325
998
|
*
|
|
999
|
+
* {% codeBlock src='image-editor/deleteShape/index.md' %}{% endcodeBlock %}
|
|
1000
|
+
*
|
|
1326
1001
|
* @param {string} id - Specifies the shape id to delete the shape on an image.
|
|
1327
1002
|
* @returns {void}.
|
|
1328
1003
|
*
|
|
1329
|
-
* {% codeBlock src='image-editor/deleteShape/index.md' %}{% endcodeBlock %}
|
|
1330
|
-
*
|
|
1331
1004
|
*/
|
|
1332
1005
|
deleteShape(id: string): void;
|
|
1333
1006
|
/**
|
|
1334
1007
|
* Get particular shapes details based on id of the shape which is drawn on an image editor.
|
|
1335
1008
|
*
|
|
1009
|
+
* {% codeBlock src='image-editor/getShapeSetting/index.md' %}{% endcodeBlock %}
|
|
1010
|
+
*
|
|
1336
1011
|
* @param {string} id - Specifies the shape id on an image.
|
|
1337
1012
|
* @returns {ShapeSettings}.
|
|
1338
1013
|
*
|
|
1339
|
-
* {% codeBlock src='image-editor/getShapeSetting/index.md' %}{% endcodeBlock %}
|
|
1340
|
-
*
|
|
1341
1014
|
*/
|
|
1342
1015
|
getShapeSetting(id: string): ShapeSettings;
|
|
1343
1016
|
/**
|
|
@@ -1400,599 +1073,228 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1400
1073
|
* A Dimension object containing the x, y, width, and height of an image.
|
|
1401
1074
|
*/
|
|
1402
1075
|
getImageDimension(): Dimension;
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
Png = "Png",
|
|
1412
|
-
/** The JPEG file type. */
|
|
1413
|
-
Jpeg = "Jpeg",
|
|
1414
|
-
/** The SVG file type. */
|
|
1415
|
-
Svg = "Svg"
|
|
1416
|
-
}
|
|
1417
|
-
/**
|
|
1418
|
-
* An enumeration representing the direction of an image editor operation.
|
|
1419
|
-
*
|
|
1420
|
-
* @enum {string}
|
|
1421
|
-
*/
|
|
1422
|
-
export declare enum Direction {
|
|
1423
|
-
/** The horizontal direction. */
|
|
1424
|
-
Horizontal = "Horizontal",
|
|
1425
|
-
/** The vertical direction. */
|
|
1426
|
-
Vertical = "Vertical"
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* An enumeration representing the type of shape to be added in the image editor.
|
|
1430
|
-
*
|
|
1431
|
-
* @enum {string}
|
|
1432
|
-
*/
|
|
1433
|
-
export declare enum ShapeType {
|
|
1434
|
-
/** A rectangle shape. */
|
|
1435
|
-
Rectangle = "Rectangle",
|
|
1436
|
-
/** An ellipse shape. */
|
|
1437
|
-
Ellipse = "Ellipse",
|
|
1438
|
-
/** A line shape. */
|
|
1439
|
-
Line = "Line",
|
|
1440
|
-
/** An arrow shape. */
|
|
1441
|
-
Arrow = "Arrow",
|
|
1442
|
-
/** A text shape. */
|
|
1443
|
-
Text = "Text",
|
|
1444
|
-
/** A freehand drawing shape. */
|
|
1445
|
-
FreehandDraw = "FreehandDraw"
|
|
1446
|
-
}
|
|
1447
|
-
/**
|
|
1448
|
-
* An enumeration representing the different ways to trigger zooming in the image editor.
|
|
1449
|
-
*
|
|
1450
|
-
* @aspNumberEnum
|
|
1451
|
-
*/
|
|
1452
|
-
export declare enum ZoomTrigger {
|
|
1453
|
-
/** Zooming triggered by mouse wheel. */
|
|
1454
|
-
MouseWheel = 1,
|
|
1455
|
-
/** Zooming triggered by pinch gesture. */
|
|
1456
|
-
Pinch = 2,
|
|
1457
|
-
/** Zooming triggered by command keys. */
|
|
1458
|
-
Commands = 4,
|
|
1459
|
-
/** Zooming triggered by toolbar button click. */
|
|
1460
|
-
Toolbar = 8
|
|
1461
|
-
}
|
|
1462
|
-
/**
|
|
1463
|
-
* An enum representing the available themes in the image editor.
|
|
1464
|
-
*/
|
|
1465
|
-
export declare enum Theme {
|
|
1466
|
-
/** The Bootstrap 5 theme. */
|
|
1467
|
-
Bootstrap5 = "Bootstrap5",
|
|
1468
|
-
/** The dark variant of the Bootstrap 5 theme. */
|
|
1469
|
-
Bootstrap5Dark = "Bootstrap5Dark",
|
|
1470
|
-
/** The Tailwind CSS theme. */
|
|
1471
|
-
Tailwind = "Tailwind",
|
|
1472
|
-
/** The dark variant of the Tailwind CSS theme. */
|
|
1473
|
-
TailwindDark = "TailwindDark",
|
|
1474
|
-
/** The Fluent UI theme. */
|
|
1475
|
-
Fluent = "Fluent",
|
|
1476
|
-
/** The dark variant of the Fluent UI theme. */
|
|
1477
|
-
FluentDark = "FluentDark",
|
|
1478
|
-
/** The Bootstrap 4 theme. */
|
|
1479
|
-
Bootstrap4 = "Bootstrap4",
|
|
1480
|
-
/** The Bootstrap theme. */
|
|
1481
|
-
Bootstrap = "Bootstrap",
|
|
1482
|
-
/** The dark variant of the Bootstrap theme. */
|
|
1483
|
-
BootstrapDark = "BootstrapDark",
|
|
1484
|
-
/** The Material Design theme. */
|
|
1485
|
-
Material = "Material",
|
|
1486
|
-
/** The dark variant of the Material Design theme. */
|
|
1487
|
-
MaterialDark = "MaterialDark",
|
|
1488
|
-
/** The Fabric theme. */
|
|
1489
|
-
Fabric = "Fabric",
|
|
1490
|
-
/** The dark variant of the Fabric theme. */
|
|
1491
|
-
FabricDark = "FabricDark",
|
|
1492
|
-
/** The high contrast theme. */
|
|
1493
|
-
Highcontrast = "Highcontrast"
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* An enum representing the available toolbar commands in the image editor.
|
|
1497
|
-
*/
|
|
1498
|
-
export declare enum ImageEditorCommand {
|
|
1499
|
-
Crop = "Crop",
|
|
1500
|
-
Transform = "Transform",
|
|
1501
|
-
Annotate = "Annotate",
|
|
1502
|
-
ZoomIn = "ZoomIn",
|
|
1503
|
-
ZoomOut = "ZoomOut",
|
|
1504
|
-
Open = "Open",
|
|
1505
|
-
Reset = "Reset",
|
|
1506
|
-
Save = "Save",
|
|
1507
|
-
Pan = "Pan",
|
|
1508
|
-
Move = "Move",
|
|
1509
|
-
Pen = "Pen",
|
|
1510
|
-
Line = "Line",
|
|
1511
|
-
Arrow = "Arrow",
|
|
1512
|
-
Rectangle = "Rectangle",
|
|
1513
|
-
Ellipse = "Ellipse",
|
|
1514
|
-
Text = "Text",
|
|
1515
|
-
CustomSelection = "CustomSelection",
|
|
1516
|
-
CircleSelection = "CircleSelection",
|
|
1517
|
-
SquareSelection = "SquareSelection",
|
|
1518
|
-
RatioSelection = "RatioSelection",
|
|
1519
|
-
RotateLeft = "RotateLeft",
|
|
1520
|
-
RotateRight = "RotateRight",
|
|
1521
|
-
FlipHorizontal = "FlipHorizontal",
|
|
1522
|
-
FlipVertical = "FlipVertical"
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* An enumeration of available image filter options.
|
|
1526
|
-
*
|
|
1527
|
-
* @remarks
|
|
1528
|
-
* These options can be used with the `applyImageFilter` method of the image editor control to apply filters to an image.
|
|
1529
|
-
*/
|
|
1530
|
-
export declare enum ImageFilterOption {
|
|
1531
|
-
/** Default filter */
|
|
1532
|
-
Default = "Default",
|
|
1533
|
-
/** Chrome filter */
|
|
1534
|
-
Chrome = "Chrome",
|
|
1535
|
-
/** Cold filter */
|
|
1536
|
-
Cold = "Cold",
|
|
1537
|
-
/** Warm filter */
|
|
1538
|
-
Warm = "Warm",
|
|
1539
|
-
/** Grayscale filter */
|
|
1540
|
-
Grayscale = "Grayscale",
|
|
1541
|
-
/** Sepia filter */
|
|
1542
|
-
Sepia = "Sepia",
|
|
1543
|
-
/** Invert filter */
|
|
1544
|
-
Invert = "Invert"
|
|
1545
|
-
}
|
|
1546
|
-
/**
|
|
1547
|
-
* An enumeration of available image finetune options.
|
|
1548
|
-
*
|
|
1549
|
-
* @remarks
|
|
1550
|
-
* These options can be used with the `finetuneImage` method of the image editor control to apply finetuning to an image.
|
|
1551
|
-
*/
|
|
1552
|
-
export declare enum ImageFinetuneOption {
|
|
1553
|
-
/** Adjust the brightness of the image */
|
|
1554
|
-
Brightness = "Brightness",
|
|
1555
|
-
/** Adjust the contrast of the image */
|
|
1556
|
-
Contrast = "Contrast",
|
|
1557
|
-
/** Adjust the hue of the image */
|
|
1558
|
-
Hue = "Hue",
|
|
1559
|
-
/** Adjust the saturation of the image */
|
|
1560
|
-
Saturation = "Saturation",
|
|
1561
|
-
/** Adjust the exposure of the image */
|
|
1562
|
-
Exposure = "Exposure",
|
|
1563
|
-
/** Adjust the opacity of the image */
|
|
1564
|
-
Opacity = "Opacity",
|
|
1565
|
-
/** Adjust the blur of the image */
|
|
1566
|
-
Blur = "Blur"
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* The Interface which contains the properties for zoom transition occur in the Image Editor.
|
|
1570
|
-
*/
|
|
1571
|
-
export interface ZoomEventArgs {
|
|
1076
|
+
private toolbarTemplateFn;
|
|
1077
|
+
private quickAccessToolbarTemplateFn;
|
|
1078
|
+
private templateParser;
|
|
1079
|
+
private getTextFromId;
|
|
1080
|
+
private getFinetuneOption;
|
|
1081
|
+
private setPenStroke;
|
|
1082
|
+
private updateFreehandDrawColorChange;
|
|
1083
|
+
private setInitialZoomState;
|
|
1572
1084
|
/**
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
* @remarks
|
|
1576
|
-
* The given value is a point object which has x and y coordinates.
|
|
1085
|
+
* Set the old item Transform item state.
|
|
1577
1086
|
*
|
|
1087
|
+
* @hidden
|
|
1088
|
+
* @returns {void}.
|
|
1578
1089
|
*/
|
|
1579
|
-
|
|
1090
|
+
updateCropTransformItems(): void;
|
|
1580
1091
|
/**
|
|
1581
|
-
*
|
|
1582
|
-
*
|
|
1583
|
-
* @remarks
|
|
1584
|
-
* The previous and current zoom factor is used for finding whether the performed zooming is a zoom in or zoom out.
|
|
1092
|
+
* Get the pascal case.
|
|
1585
1093
|
*
|
|
1094
|
+
* @param { string } str - Specifies the string to convert to pascal case.
|
|
1095
|
+
* @param { Object } obj - Specifies the string to convert to pascal case.
|
|
1096
|
+
* @hidden
|
|
1097
|
+
* @returns {string}.
|
|
1098
|
+
* A pascal case string.
|
|
1586
1099
|
*/
|
|
1587
|
-
|
|
1100
|
+
toPascalCase(str: string, obj?: Object): string;
|
|
1588
1101
|
/**
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
1591
|
-
* @remarks
|
|
1592
|
-
* The previous and current zoom factor is used for finding whether the performed zooming is a zoom in or zoom out.
|
|
1102
|
+
* Get the font sizes.
|
|
1593
1103
|
*
|
|
1104
|
+
* @hidden
|
|
1105
|
+
* @returns {DropDownButtonItemModel[]}.
|
|
1106
|
+
* A font size collections.
|
|
1594
1107
|
*/
|
|
1595
|
-
|
|
1108
|
+
getFontSizes(): DropDownButtonItemModel[];
|
|
1596
1109
|
/**
|
|
1597
|
-
*
|
|
1598
|
-
*/
|
|
1599
|
-
cancel: boolean;
|
|
1600
|
-
/**
|
|
1601
|
-
* Returns the type of zooming performed in the image editor.
|
|
1110
|
+
* Handles the OK button operation
|
|
1602
1111
|
*
|
|
1603
|
-
* @
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
* The value of this property will be updated each time a zoom operation is performed.
|
|
1607
|
-
* MouseWheel - It indicates the zooming performed using mouse wheel.
|
|
1608
|
-
* Pinch - It indicates that zooming is performed using pinch gestures on touch-enabled devices.
|
|
1609
|
-
* Commands - It indicates that zooming is performed by clicking the CTRL key and either the plus (+) or minus (-) buttons on the keyboard.
|
|
1610
|
-
* Toolbar - It indicates that zooming is performed using toolbar buttons.
|
|
1611
|
-
* By default, this property is set to 'Toolbar'.
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
*/
|
|
1615
|
-
zoomTrigger: string;
|
|
1616
|
-
}
|
|
1617
|
-
/**
|
|
1618
|
-
* The Interface which contains the properties for pan transition occur in the Image Editor.
|
|
1619
|
-
*/
|
|
1620
|
-
export interface PanEventArgs {
|
|
1621
|
-
/**
|
|
1622
|
-
* Returns the (x, y) point of panning started
|
|
1623
|
-
*/
|
|
1624
|
-
startPoint: Point;
|
|
1625
|
-
/**
|
|
1626
|
-
* Returns the (x, y) point to be panning ended.
|
|
1627
|
-
*/
|
|
1628
|
-
endPoint: Point;
|
|
1629
|
-
/**
|
|
1630
|
-
* Defines whether to cancel the panning action of image editor.
|
|
1112
|
+
* @param { boolean } isMouseDown - Specifies whether it is a mouse down.
|
|
1113
|
+
* @hidden
|
|
1114
|
+
* @returns {void}.
|
|
1631
1115
|
*/
|
|
1632
|
-
|
|
1633
|
-
}
|
|
1634
|
-
/**
|
|
1635
|
-
* The Interface which contains the properties for crop transition occur in the Image Editor.
|
|
1636
|
-
*/
|
|
1637
|
-
export interface CropEventArgs {
|
|
1116
|
+
okBtn(isMouseDown?: boolean): void;
|
|
1638
1117
|
/**
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1641
|
-
* @remarks
|
|
1642
|
-
* The start and end point is used get the cropping region in a image editor.
|
|
1118
|
+
* Set the temporary filter properties.
|
|
1643
1119
|
*
|
|
1120
|
+
* @hidden
|
|
1121
|
+
* @returns {void}.
|
|
1644
1122
|
*/
|
|
1645
|
-
|
|
1123
|
+
setTempFilterProperties(): void;
|
|
1646
1124
|
/**
|
|
1647
|
-
*
|
|
1648
|
-
*
|
|
1649
|
-
* @remarks
|
|
1650
|
-
* The start and end point is used get the cropping region in a image editor.
|
|
1125
|
+
* To crop the selection.
|
|
1651
1126
|
*
|
|
1127
|
+
* @hidden
|
|
1128
|
+
* @returns {void}.
|
|
1652
1129
|
*/
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* Defines whether to cancel the cropping action of image editor.
|
|
1656
|
-
*/
|
|
1657
|
-
cancel: boolean;
|
|
1658
|
-
}
|
|
1659
|
-
/**
|
|
1660
|
-
* The Interface which contains the properties for rotate transition in the Image Editor.
|
|
1661
|
-
*/
|
|
1662
|
-
export interface RotateEventArgs {
|
|
1663
|
-
/**
|
|
1664
|
-
* Returns the degree to be rotated.
|
|
1665
|
-
*/
|
|
1666
|
-
degree: number;
|
|
1667
|
-
/**
|
|
1668
|
-
* Defines whether to cancel the rotating action of image editor.
|
|
1669
|
-
*/
|
|
1670
|
-
cancel: boolean;
|
|
1671
|
-
}
|
|
1672
|
-
/**
|
|
1673
|
-
* The Interface which contains the properties for flip transition in the Image Editor.
|
|
1674
|
-
*/
|
|
1675
|
-
export interface FlipEventArgs {
|
|
1676
|
-
/**
|
|
1677
|
-
* Returns the direction(Horizontal and vertical) to be flipped.
|
|
1678
|
-
*/
|
|
1679
|
-
direction: string;
|
|
1680
|
-
/**
|
|
1681
|
-
* Defines the cancel option to cancel the flip action.
|
|
1682
|
-
*/
|
|
1683
|
-
cancel: boolean;
|
|
1684
|
-
}
|
|
1685
|
-
/**
|
|
1686
|
-
* The Interface which contains the properties for shape change in Image Editor.
|
|
1687
|
-
*/
|
|
1688
|
-
export interface ShapeChangeEventArgs {
|
|
1689
|
-
/**
|
|
1690
|
-
* Returns the name of the action.
|
|
1691
|
-
*/
|
|
1692
|
-
action?: string;
|
|
1693
|
-
/**
|
|
1694
|
-
* Returns the object of shape before moved, resized, or customized the UI.
|
|
1695
|
-
*/
|
|
1696
|
-
previousShapeSettings?: ShapeSettings;
|
|
1697
|
-
/**
|
|
1698
|
-
* Returns `the object of shape which is inserted or moved or deleted or resized or customized the UI.
|
|
1699
|
-
*/
|
|
1700
|
-
currentShapeSettings?: ShapeSettings;
|
|
1701
|
-
}
|
|
1702
|
-
/**
|
|
1703
|
-
* The Interface which contains the properties for Toolbar events.
|
|
1704
|
-
*/
|
|
1705
|
-
export interface ToolbarEventArgs {
|
|
1706
|
-
/**
|
|
1707
|
-
* Defines whether the to cancel the toolbar updating/refreshing action in the image editor.
|
|
1708
|
-
*/
|
|
1709
|
-
cancel?: boolean;
|
|
1710
|
-
/**
|
|
1711
|
-
* Returns the current toolbar type.
|
|
1712
|
-
*/
|
|
1713
|
-
toolbarType?: string;
|
|
1714
|
-
/**
|
|
1715
|
-
* Returns the current toolbar item.
|
|
1716
|
-
*/
|
|
1717
|
-
item?: ItemModel;
|
|
1130
|
+
cropSelectedState(): void;
|
|
1718
1131
|
/**
|
|
1719
|
-
*
|
|
1132
|
+
* Get the current canvas data.
|
|
1720
1133
|
*
|
|
1721
|
-
* @
|
|
1722
|
-
*
|
|
1723
|
-
*
|
|
1724
|
-
* The ItemModel values representing the object of custom toolbar items to be displayed.
|
|
1725
|
-
*
|
|
1726
|
-
*/
|
|
1727
|
-
toolbarItems?: (string | ItemModel)[];
|
|
1728
|
-
}
|
|
1729
|
-
/**
|
|
1730
|
-
* The Interface which contains the properties for opening the image.
|
|
1731
|
-
*/
|
|
1732
|
-
export interface OpenEventArgs {
|
|
1733
|
-
/**
|
|
1734
|
-
* Returns the file name of an image.
|
|
1735
|
-
*/
|
|
1736
|
-
fileName: string;
|
|
1737
|
-
/**
|
|
1738
|
-
* Returns the file type of an image.
|
|
1739
|
-
*/
|
|
1740
|
-
fileType: FileType;
|
|
1741
|
-
}
|
|
1742
|
-
/**
|
|
1743
|
-
* The Interface which contains the properties for saving the canvas as image.
|
|
1744
|
-
*/
|
|
1745
|
-
export interface SaveEventArgs {
|
|
1746
|
-
/**
|
|
1747
|
-
* Returns the file name of an image.
|
|
1748
|
-
*/
|
|
1749
|
-
fileName: string;
|
|
1750
|
-
/**
|
|
1751
|
-
* Returns the file type of an image.
|
|
1752
|
-
*/
|
|
1753
|
-
fileType: FileType;
|
|
1754
|
-
}
|
|
1755
|
-
/**
|
|
1756
|
-
* The Interface which contains the properties for before saving the canvas as image.
|
|
1757
|
-
*/
|
|
1758
|
-
export interface BeforeSaveEventArgs {
|
|
1759
|
-
/**
|
|
1760
|
-
* Defines whether the to cancel the saving action in the image editor.
|
|
1761
|
-
*/
|
|
1762
|
-
cancel: boolean;
|
|
1763
|
-
/**
|
|
1764
|
-
* Specifies the file name for an image.
|
|
1765
|
-
*/
|
|
1766
|
-
fileName: string;
|
|
1767
|
-
/**
|
|
1768
|
-
* Returns the file type for an image.
|
|
1769
|
-
*/
|
|
1770
|
-
fileType: FileType;
|
|
1771
|
-
}
|
|
1772
|
-
/**
|
|
1773
|
-
* The Interface which contains the properties for Point Object in the image editor.
|
|
1774
|
-
*
|
|
1775
|
-
*/
|
|
1776
|
-
export interface Point {
|
|
1777
|
-
/**
|
|
1778
|
-
* Returns the x position in the canvas.
|
|
1779
|
-
*/
|
|
1780
|
-
x: number;
|
|
1781
|
-
/**
|
|
1782
|
-
* Returns y position in the canvas.
|
|
1134
|
+
* @hidden
|
|
1135
|
+
* @returns {ImageData}.
|
|
1136
|
+
* An ImageData returns the current canvas image data object.
|
|
1783
1137
|
*/
|
|
1784
|
-
|
|
1138
|
+
getCurrentCanvasData(): ImageData;
|
|
1785
1139
|
/**
|
|
1786
|
-
*
|
|
1140
|
+
* To set current adjustment value
|
|
1787
1141
|
*
|
|
1788
|
-
* @
|
|
1142
|
+
* @param { string } type - Specifies the type of adjustment.
|
|
1143
|
+
* @param { number } value - Specifies the value to adjust.
|
|
1144
|
+
* @hidden
|
|
1145
|
+
* @returns {void}.
|
|
1789
1146
|
*/
|
|
1790
|
-
|
|
1147
|
+
setCurrAdjustmentValue(type: string, value: number): void;
|
|
1791
1148
|
/**
|
|
1792
|
-
*
|
|
1149
|
+
* Get the square point for path.
|
|
1793
1150
|
*
|
|
1794
|
-
* @
|
|
1151
|
+
* @param { SelectionPoint } obj - Specifies the points of path.
|
|
1152
|
+
* @hidden
|
|
1153
|
+
* @returns {ActivePoint}.
|
|
1154
|
+
* An ActivePoint object which returns the square point.
|
|
1795
1155
|
*/
|
|
1796
|
-
|
|
1156
|
+
getSquarePointForPath(obj: SelectionPoint): ActivePoint;
|
|
1797
1157
|
/**
|
|
1798
|
-
*
|
|
1158
|
+
* Get the SelectionType.
|
|
1799
1159
|
*
|
|
1800
|
-
* @
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* Interface for ShapeSettings in the Image Editor.
|
|
1806
|
-
*/
|
|
1807
|
-
export interface ShapeSettings {
|
|
1808
|
-
/**
|
|
1809
|
-
* Returns the id of the shape.
|
|
1810
|
-
*/
|
|
1811
|
-
id: string;
|
|
1812
|
-
/**
|
|
1813
|
-
* Returns the type of the shape.
|
|
1814
|
-
*/
|
|
1815
|
-
type: ShapeType;
|
|
1816
|
-
/**
|
|
1817
|
-
* Returns the start x position of the shape.
|
|
1818
|
-
*/
|
|
1819
|
-
startX: number;
|
|
1820
|
-
/**
|
|
1821
|
-
* Returns the start y position of the shape.
|
|
1822
|
-
*/
|
|
1823
|
-
startY: number;
|
|
1824
|
-
/**
|
|
1825
|
-
* Returns the width of the shape.
|
|
1826
|
-
*/
|
|
1827
|
-
width?: number;
|
|
1828
|
-
/**
|
|
1829
|
-
* Returns the height of the shape.
|
|
1830
|
-
*/
|
|
1831
|
-
height?: number;
|
|
1832
|
-
/**
|
|
1833
|
-
* Returns the stroke color of the shape.
|
|
1834
|
-
*/
|
|
1835
|
-
strokeColor?: string;
|
|
1836
|
-
/**
|
|
1837
|
-
* Returns the fill color of the shape.
|
|
1838
|
-
*/
|
|
1839
|
-
fillColor?: string;
|
|
1840
|
-
/**
|
|
1841
|
-
* Returns the stroke width of the shape.
|
|
1842
|
-
*/
|
|
1843
|
-
strokeWidth?: number;
|
|
1844
|
-
/**
|
|
1845
|
-
* Returns the radius of the ellipse shape.
|
|
1846
|
-
*/
|
|
1847
|
-
radius?: number;
|
|
1848
|
-
/**
|
|
1849
|
-
* Returns the length of the line or arrow shape.
|
|
1850
|
-
*/
|
|
1851
|
-
length?: number;
|
|
1852
|
-
/**
|
|
1853
|
-
* Returns the text content of the text.
|
|
1160
|
+
* @param { string } type - Specifies the SelectionType.
|
|
1161
|
+
* @hidden
|
|
1162
|
+
* @returns {string}.
|
|
1163
|
+
* An string which returns the SelectionType.
|
|
1854
1164
|
*/
|
|
1855
|
-
|
|
1856
|
-
/**
|
|
1857
|
-
*
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
* Returns the font style of the text.
|
|
1862
|
-
*/
|
|
1863
|
-
fontStyle?: string[];
|
|
1864
|
-
/**
|
|
1865
|
-
* Returns the font color of the text.
|
|
1866
|
-
*/
|
|
1867
|
-
color?: string;
|
|
1868
|
-
/**
|
|
1869
|
-
* Returns the points collection of freehand drawing.
|
|
1870
|
-
*/
|
|
1871
|
-
points?: Point[];
|
|
1872
|
-
}
|
|
1873
|
-
/**
|
|
1874
|
-
* Interface for filter option for the image.
|
|
1875
|
-
*/
|
|
1876
|
-
export interface ImageFilterEventArgs {
|
|
1877
|
-
/**
|
|
1878
|
-
* Specifies the when applying filter to an image.
|
|
1879
|
-
*/
|
|
1880
|
-
filter: ImageFilterOption;
|
|
1881
|
-
/**
|
|
1882
|
-
* Defines the cancel option to cancel the filter action.
|
|
1883
|
-
*/
|
|
1884
|
-
cancel: boolean;
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* Interface for fine tunes option for the image.
|
|
1888
|
-
*/
|
|
1889
|
-
export interface FinetuneEventArgs {
|
|
1890
|
-
/**
|
|
1891
|
-
* Specifies the type of fine tunes.
|
|
1892
|
-
*/
|
|
1893
|
-
finetune: ImageFinetuneOption;
|
|
1894
|
-
/**
|
|
1895
|
-
* Specifies the value of the fine tunes.
|
|
1896
|
-
*/
|
|
1897
|
-
value: number;
|
|
1898
|
-
/**
|
|
1899
|
-
* Defines the cancel option to cancel the fine tunes action.
|
|
1165
|
+
getSelectionType(type: string): string;
|
|
1166
|
+
/** Clears the context.
|
|
1167
|
+
*
|
|
1168
|
+
* @param { CanvasRenderingContext2D } ctx - Specifies the canvas context.
|
|
1169
|
+
* @hidden
|
|
1170
|
+
* @returns {void}.
|
|
1900
1171
|
*/
|
|
1901
|
-
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Interface that provides information to the click event in the Image Editor.
|
|
1905
|
-
*/
|
|
1906
|
-
export interface ImageEditorClickEventArgs {
|
|
1172
|
+
clearContext(ctx: CanvasRenderingContext2D): void;
|
|
1907
1173
|
/**
|
|
1908
|
-
*
|
|
1174
|
+
* Apply Arrow for start and end.
|
|
1175
|
+
*
|
|
1176
|
+
* @param { string } type - Specifies the start arrow or end arrow.
|
|
1177
|
+
* @param { string } id - Specifies the start arrow or end arrow item id.
|
|
1178
|
+
* @hidden
|
|
1179
|
+
* @returns {void}.
|
|
1909
1180
|
*/
|
|
1910
|
-
|
|
1911
|
-
}
|
|
1912
|
-
/**
|
|
1913
|
-
* Interface for quick access toolbar for the image.
|
|
1914
|
-
*
|
|
1915
|
-
* @private
|
|
1916
|
-
*/
|
|
1917
|
-
export interface QuickAccessToolbarEventArgs {
|
|
1181
|
+
updateArrow(type: string, id: string): void;
|
|
1918
1182
|
/**
|
|
1919
|
-
*
|
|
1920
|
-
*
|
|
1921
|
-
* @remarks
|
|
1922
|
-
* Set this property to `true` to cancel the opening action of the quick access toolbar.
|
|
1923
|
-
* By default, this property is set to `false`.
|
|
1183
|
+
* Apply Font style for text.
|
|
1924
1184
|
*
|
|
1185
|
+
* @param { string } id - Specifies the selected item id.
|
|
1186
|
+
* @hidden
|
|
1187
|
+
* @returns {void}.
|
|
1925
1188
|
*/
|
|
1926
|
-
|
|
1189
|
+
updateFontFamily(id: string): void;
|
|
1927
1190
|
/**
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
* @remarks
|
|
1931
|
-
* This property collection contains string and ItemModel values.
|
|
1932
|
-
* The string values representing the names of the built-in toolbar items to display.
|
|
1933
|
-
* The ItemModel values representing the object of custom toolbar items to display.
|
|
1191
|
+
* Apply Font size for text.
|
|
1934
1192
|
*
|
|
1193
|
+
* @param { string } text - Specifies the selected item text.
|
|
1194
|
+
* @hidden
|
|
1195
|
+
* @returns {void}.
|
|
1935
1196
|
*/
|
|
1936
|
-
|
|
1197
|
+
updateFontSize(text: string): void;
|
|
1937
1198
|
/**
|
|
1938
|
-
*
|
|
1199
|
+
* Apply Font color for text.
|
|
1200
|
+
*
|
|
1201
|
+
* @param { string } value - Specifies the selected color item value.
|
|
1202
|
+
* @hidden
|
|
1203
|
+
* @returns {void}.
|
|
1939
1204
|
*/
|
|
1940
|
-
|
|
1941
|
-
}
|
|
1942
|
-
/**
|
|
1943
|
-
* Interface for Dimension calculation in the imageEditor.
|
|
1944
|
-
*
|
|
1945
|
-
*/
|
|
1946
|
-
export interface Dimension {
|
|
1205
|
+
updateFontColor(value: string): void;
|
|
1947
1206
|
/**
|
|
1948
|
-
*
|
|
1207
|
+
* Apply Pen stroke width.
|
|
1208
|
+
*
|
|
1209
|
+
* @param { string } id - Specifies the selected item id.
|
|
1210
|
+
* @hidden
|
|
1211
|
+
* @returns {void}.
|
|
1949
1212
|
*/
|
|
1950
|
-
|
|
1213
|
+
updatePenStrokeWidth(id: string): void;
|
|
1951
1214
|
/**
|
|
1952
|
-
*
|
|
1215
|
+
* Apply Pen stroke color.
|
|
1216
|
+
*
|
|
1217
|
+
* @param { string } value - Specifies the selected color item value.
|
|
1218
|
+
* @hidden
|
|
1219
|
+
* @returns {void}.
|
|
1953
1220
|
*/
|
|
1954
|
-
|
|
1221
|
+
updatePenStrokeColor(value: string): void;
|
|
1955
1222
|
/**
|
|
1956
|
-
*
|
|
1223
|
+
* Apply Shape stroke width.
|
|
1224
|
+
*
|
|
1225
|
+
* @param { string } id - Specifies the selected item id.
|
|
1226
|
+
* @hidden
|
|
1227
|
+
* @returns {void}.
|
|
1957
1228
|
*/
|
|
1958
|
-
|
|
1229
|
+
updateStrokeWidth(id: string): void;
|
|
1959
1230
|
/**
|
|
1960
|
-
*
|
|
1231
|
+
* Apply Shape stroke color.
|
|
1232
|
+
*
|
|
1233
|
+
* @param { string } value - Specifies the selected color item value.
|
|
1234
|
+
* @hidden
|
|
1235
|
+
* @returns {void}.
|
|
1961
1236
|
*/
|
|
1962
|
-
|
|
1963
|
-
}
|
|
1964
|
-
/**
|
|
1965
|
-
* Interface for active object in the imageEditor.
|
|
1966
|
-
*
|
|
1967
|
-
* @private
|
|
1968
|
-
*/
|
|
1969
|
-
export interface ActivePoint {
|
|
1237
|
+
updateStrokeColor(value: string): void;
|
|
1970
1238
|
/**
|
|
1971
|
-
*
|
|
1239
|
+
* Apply Shape fill color.
|
|
1240
|
+
*
|
|
1241
|
+
* @param { string } value - Specifies the selected color item value.
|
|
1242
|
+
* @hidden
|
|
1243
|
+
* @returns {void}.
|
|
1972
1244
|
*/
|
|
1973
|
-
|
|
1245
|
+
updateFillColor(value: string): void;
|
|
1974
1246
|
/**
|
|
1975
|
-
*
|
|
1247
|
+
* Get pascalToSplitWords from string.
|
|
1248
|
+
*
|
|
1249
|
+
* @param { string } str - Specifies the word.
|
|
1250
|
+
* @hidden
|
|
1251
|
+
* @returns {string}.
|
|
1976
1252
|
*/
|
|
1977
|
-
|
|
1253
|
+
pascalToSplitWords(str: string): string;
|
|
1978
1254
|
/**
|
|
1979
|
-
*
|
|
1255
|
+
* Get Slider Value.
|
|
1256
|
+
*
|
|
1257
|
+
* @param { string } type - Finetune type.
|
|
1258
|
+
* @hidden
|
|
1259
|
+
* @returns {number}.
|
|
1980
1260
|
*/
|
|
1981
|
-
|
|
1261
|
+
getCurrAdjustmentValue(type: string): number;
|
|
1982
1262
|
/**
|
|
1983
|
-
*
|
|
1263
|
+
* Apply transformSelect.
|
|
1264
|
+
*
|
|
1265
|
+
* @param { string } type - Specifies the selected item text.
|
|
1266
|
+
* @hidden
|
|
1267
|
+
* @returns {void}.
|
|
1984
1268
|
*/
|
|
1985
|
-
|
|
1269
|
+
transformSelect(type: string): void;
|
|
1986
1270
|
/**
|
|
1987
|
-
*
|
|
1271
|
+
* Returns default filter.
|
|
1272
|
+
*
|
|
1273
|
+
* @hidden
|
|
1274
|
+
* @returns {string}.
|
|
1988
1275
|
*/
|
|
1989
|
-
|
|
1276
|
+
getDefaultFilter(): string;
|
|
1990
1277
|
/**
|
|
1991
|
-
*
|
|
1278
|
+
* To Initialize the component rendering
|
|
1279
|
+
*
|
|
1280
|
+
* @private
|
|
1281
|
+
* @param {HTMLCanvasElement} element - Specifies the canvas element.
|
|
1282
|
+
* @param {BlazorDotnetObject} dotnetRef - Specifies for blazor client to server communication.
|
|
1283
|
+
* @returns {void}
|
|
1992
1284
|
*/
|
|
1993
|
-
|
|
1285
|
+
initializeImageEditor(element: HTMLDivElement, dotnetRef?: BlazorDotnetObject): void;
|
|
1286
|
+
private prerender;
|
|
1287
|
+
private initializeZoomSettings;
|
|
1288
|
+
private initializeThemeColl;
|
|
1994
1289
|
/**
|
|
1995
|
-
*
|
|
1290
|
+
* Get the square point for path.
|
|
1291
|
+
*
|
|
1292
|
+
* @param { HTMLDivElement } element - Specifies element.
|
|
1293
|
+
* @param { string } type - Specifies the type.
|
|
1294
|
+
* @param { string } value - Specifies the value.
|
|
1295
|
+
* @hidden
|
|
1296
|
+
* @private
|
|
1297
|
+
* @returns {void}.
|
|
1996
1298
|
*/
|
|
1997
|
-
|
|
1299
|
+
updateToolbar(element: HTMLDivElement, type: string, value?: string): void;
|
|
1998
1300
|
}
|