@syncfusion/ej2-image-editor 30.2.5 → 31.1.17
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/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 +7 -39
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +7 -39
- 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/dist/ts/image-editor/action/crop.d.ts +44 -0
- package/dist/ts/image-editor/action/crop.ts +867 -0
- package/dist/ts/image-editor/action/draw.d.ts +187 -0
- package/dist/ts/image-editor/action/draw.ts +4924 -0
- package/dist/ts/image-editor/action/export.d.ts +29 -0
- package/dist/ts/image-editor/action/export.ts +509 -0
- package/dist/ts/image-editor/action/filter.d.ts +48 -0
- package/dist/ts/image-editor/action/filter.ts +872 -0
- package/dist/ts/image-editor/action/freehand-draw.d.ts +68 -0
- package/dist/ts/image-editor/action/freehand-draw.ts +1135 -0
- package/dist/ts/image-editor/action/index.d.ts +9 -0
- package/dist/ts/image-editor/action/index.ts +9 -0
- package/dist/ts/image-editor/action/selection.d.ts +178 -0
- package/dist/ts/image-editor/action/selection.ts +5241 -0
- package/dist/ts/image-editor/action/shape.d.ts +130 -0
- package/dist/ts/image-editor/action/shape.ts +3917 -0
- package/dist/ts/image-editor/action/transform.d.ts +77 -0
- package/dist/ts/image-editor/action/transform.ts +2008 -0
- package/dist/ts/image-editor/action/undo-redo.d.ts +52 -0
- package/dist/ts/image-editor/action/undo-redo.ts +1169 -0
- package/dist/ts/image-editor/base/enum.d.ts +277 -0
- package/dist/ts/image-editor/base/enum.ts +288 -0
- package/dist/ts/image-editor/base/image-editor-model.d.ts +770 -0
- package/dist/ts/image-editor/base/image-editor.d.ts +1928 -0
- package/dist/ts/image-editor/base/image-editor.ts +5496 -0
- package/dist/ts/image-editor/base/index.d.ts +4 -0
- package/dist/ts/image-editor/base/index.ts +4 -0
- package/dist/ts/image-editor/base/interface.d.ts +1637 -0
- package/dist/ts/image-editor/base/interface.ts +1709 -0
- package/dist/ts/image-editor/index.d.ts +3 -0
- package/dist/ts/image-editor/index.ts +3 -0
- package/dist/ts/image-editor/renderer/index.d.ts +1 -0
- package/dist/ts/image-editor/renderer/index.ts +1 -0
- package/dist/ts/image-editor/renderer/toolbar.d.ts +171 -0
- package/dist/ts/image-editor/renderer/toolbar.ts +6356 -0
- package/dist/ts/index.d.ts +4 -0
- package/dist/ts/index.ts +4 -0
- package/package.json +47 -15
- package/src/image-editor/action/export.js +1 -1
- package/src/image-editor/action/freehand-draw.d.ts +0 -1
- package/src/image-editor/action/freehand-draw.js +3 -25
- package/src/image-editor/action/undo-redo.js +3 -13
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum representing the file types supported by the image editor.
|
|
3
|
+
*
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum FileType {
|
|
7
|
+
/** The PNG file type. */
|
|
8
|
+
Png = "Png",
|
|
9
|
+
/** The JPEG file type. */
|
|
10
|
+
Jpeg = "Jpeg",
|
|
11
|
+
/** The SVG file type. */
|
|
12
|
+
Svg = "Svg",
|
|
13
|
+
/** The WebP file type. */
|
|
14
|
+
WebP = "WebP",
|
|
15
|
+
/** The BMP file type. */
|
|
16
|
+
Bmp = "Bmp"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An enumeration representing the direction of an image editor operation.
|
|
20
|
+
*
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
export declare enum Direction {
|
|
24
|
+
/** The horizontal direction. */
|
|
25
|
+
Horizontal = "Horizontal",
|
|
26
|
+
/** The vertical direction. */
|
|
27
|
+
Vertical = "Vertical"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* An enumeration representing the type of shape to be added in the image editor.
|
|
31
|
+
*
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export declare enum ShapeType {
|
|
35
|
+
/** A rectangle shape. */
|
|
36
|
+
Rectangle = "Rectangle",
|
|
37
|
+
/** An ellipse shape. */
|
|
38
|
+
Ellipse = "Ellipse",
|
|
39
|
+
/** A line shape. */
|
|
40
|
+
Line = "Line",
|
|
41
|
+
/** An arrow shape. */
|
|
42
|
+
Arrow = "Arrow",
|
|
43
|
+
/** A path shape. */
|
|
44
|
+
Path = "Path",
|
|
45
|
+
/** A text shape. */
|
|
46
|
+
Text = "Text",
|
|
47
|
+
/** A freehand drawing shape. */
|
|
48
|
+
FreehandDraw = "FreehandDraw",
|
|
49
|
+
/** An Image shape. */
|
|
50
|
+
Image = "Image"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* An enumeration representing the different ways to trigger zooming in the image editor.
|
|
54
|
+
*
|
|
55
|
+
* @aspNumberEnum
|
|
56
|
+
*/
|
|
57
|
+
export declare enum ZoomTrigger {
|
|
58
|
+
/** Zooming triggered by mouse wheel. */
|
|
59
|
+
MouseWheel = 1,
|
|
60
|
+
/** Zooming triggered by pinch gesture. */
|
|
61
|
+
Pinch = 2,
|
|
62
|
+
/** Zooming triggered by command keys. */
|
|
63
|
+
Commands = 4,
|
|
64
|
+
/** Zooming triggered by toolbar button click. */
|
|
65
|
+
Toolbar = 8
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* * An enum representing the available themes in the image editor.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum Theme {
|
|
71
|
+
/** The Bootstrap 5 theme. */
|
|
72
|
+
Bootstrap5 = "Bootstrap5",
|
|
73
|
+
/** The dark variant of the Bootstrap 5 theme. */
|
|
74
|
+
Bootstrap5Dark = "Bootstrap5Dark",
|
|
75
|
+
/** The Tailwind CSS theme. */
|
|
76
|
+
Tailwind = "Tailwind",
|
|
77
|
+
/** The dark variant of the Tailwind CSS theme. */
|
|
78
|
+
TailwindDark = "TailwindDark",
|
|
79
|
+
/** The Fluent UI theme. */
|
|
80
|
+
Fluent = "Fluent",
|
|
81
|
+
/** The dark variant of the Fluent UI theme. */
|
|
82
|
+
FluentDark = "FluentDark",
|
|
83
|
+
/** The Bootstrap 4 theme. */
|
|
84
|
+
Bootstrap4 = "Bootstrap4",
|
|
85
|
+
/** The Bootstrap theme. */
|
|
86
|
+
Bootstrap = "Bootstrap",
|
|
87
|
+
/** The dark variant of the Bootstrap theme. */
|
|
88
|
+
BootstrapDark = "BootstrapDark",
|
|
89
|
+
/** The Material Design theme. */
|
|
90
|
+
Material = "Material",
|
|
91
|
+
/** The dark variant of the Material Design theme. */
|
|
92
|
+
MaterialDark = "MaterialDark",
|
|
93
|
+
/** The Fabric theme. */
|
|
94
|
+
Fabric = "Fabric",
|
|
95
|
+
/** The dark variant of the Fabric theme. */
|
|
96
|
+
FabricDark = "FabricDark",
|
|
97
|
+
/** The high contrast theme. */
|
|
98
|
+
Highcontrast = "Highcontrast",
|
|
99
|
+
/** The Fluent 2.0 UI theme. */
|
|
100
|
+
Fluent2 = "Fluent2",
|
|
101
|
+
/** The dark variant of the Fluent 2.0 UI theme. */
|
|
102
|
+
Fluent2Dark = "Fluent2Dark",
|
|
103
|
+
/** The Tailwind 3 UI theme. */
|
|
104
|
+
Tailwind3 = "Tailwind3",
|
|
105
|
+
/** The dark variant of the Tailwind 3 UI theme. */
|
|
106
|
+
Tailwind3Dark = "Tailwind3Dark"
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* An enum representing the available toolbar commands in the image editor.
|
|
110
|
+
*/
|
|
111
|
+
export declare enum ImageEditorCommand {
|
|
112
|
+
Crop = "Crop",
|
|
113
|
+
Transform = "Transform",
|
|
114
|
+
Annotate = "Annotate",
|
|
115
|
+
ZoomIn = "ZoomIn",
|
|
116
|
+
ZoomOut = "ZoomOut",
|
|
117
|
+
Open = "Open",
|
|
118
|
+
Reset = "Reset",
|
|
119
|
+
Save = "Save",
|
|
120
|
+
Pan = "Pan",
|
|
121
|
+
Move = "Move",
|
|
122
|
+
Pen = "Pen",
|
|
123
|
+
Line = "Line",
|
|
124
|
+
Arrow = "Arrow",
|
|
125
|
+
Path = "Path",
|
|
126
|
+
Rectangle = "Rectangle",
|
|
127
|
+
Image = "Image",
|
|
128
|
+
Ellipse = "Ellipse",
|
|
129
|
+
Text = "Text",
|
|
130
|
+
CustomSelection = "CustomSelection",
|
|
131
|
+
CircleSelection = "CircleSelection",
|
|
132
|
+
SquareSelection = "SquareSelection",
|
|
133
|
+
RatioSelection = "RatioSelection",
|
|
134
|
+
RotateLeft = "RotateLeft",
|
|
135
|
+
RotateRight = "RotateRight",
|
|
136
|
+
FlipHorizontal = "FlipHorizontal",
|
|
137
|
+
FlipVertical = "FlipVertical",
|
|
138
|
+
Undo = "Undo",
|
|
139
|
+
Redo = "Redo",
|
|
140
|
+
None = "None",
|
|
141
|
+
Mat = "Mat",
|
|
142
|
+
Bevel = "Bevel",
|
|
143
|
+
Inset = "Inset",
|
|
144
|
+
Hook = "Hook",
|
|
145
|
+
Finetune = "Finetune",
|
|
146
|
+
Filter = "Filter",
|
|
147
|
+
Frame = "Frame",
|
|
148
|
+
Resize = "Resize",
|
|
149
|
+
HorizontalFlip = "HorizontalFlip",
|
|
150
|
+
VerticalFlip = "VerticalFlip",
|
|
151
|
+
Brightness = "Brightness",
|
|
152
|
+
Contrast = "Contrast",
|
|
153
|
+
Hue = "Hue",
|
|
154
|
+
Saturation = "Saturation",
|
|
155
|
+
Opacity = "Opacity",
|
|
156
|
+
Blur = "Blur",
|
|
157
|
+
Exposure = "Exposure",
|
|
158
|
+
Default = "Default",
|
|
159
|
+
Chrome = "Chrome",
|
|
160
|
+
Cold = "Cold",
|
|
161
|
+
Warm = "Warm",
|
|
162
|
+
Grayscale = "Grayscale",
|
|
163
|
+
Sepia = "Sepia",
|
|
164
|
+
Invert = "Invert",
|
|
165
|
+
Straightening = "Straightening"
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* An enumeration of available image filter options.
|
|
169
|
+
*
|
|
170
|
+
* @remarks
|
|
171
|
+
* These options can be used with the `applyImageFilter` method of the image editor control to apply filters to an image.
|
|
172
|
+
*/
|
|
173
|
+
export declare enum ImageFilterOption {
|
|
174
|
+
/** Default filter */
|
|
175
|
+
Default = "Default",
|
|
176
|
+
/** Chrome filter */
|
|
177
|
+
Chrome = "Chrome",
|
|
178
|
+
/** Cold filter */
|
|
179
|
+
Cold = "Cold",
|
|
180
|
+
/** Warm filter */
|
|
181
|
+
Warm = "Warm",
|
|
182
|
+
/** Grayscale filter */
|
|
183
|
+
Grayscale = "Grayscale",
|
|
184
|
+
/** Sepia filter */
|
|
185
|
+
Sepia = "Sepia",
|
|
186
|
+
/** Invert filter */
|
|
187
|
+
Invert = "Invert"
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* An enumeration of available image finetune options.
|
|
191
|
+
*
|
|
192
|
+
* @remarks
|
|
193
|
+
* These options can be used with the `finetuneImage` method of the image editor control to apply finetuning to an image.
|
|
194
|
+
*/
|
|
195
|
+
export declare enum ImageFinetuneOption {
|
|
196
|
+
/** Adjust the brightness of the image */
|
|
197
|
+
Brightness = "Brightness",
|
|
198
|
+
/** Adjust the contrast of the image */
|
|
199
|
+
Contrast = "Contrast",
|
|
200
|
+
/** Adjust the hue of the image */
|
|
201
|
+
Hue = "Hue",
|
|
202
|
+
/** Adjust the saturation of the image */
|
|
203
|
+
Saturation = "Saturation",
|
|
204
|
+
/** Adjust the exposure of the image */
|
|
205
|
+
Exposure = "Exposure",
|
|
206
|
+
/** Adjust the opacity of the image */
|
|
207
|
+
Opacity = "Opacity",
|
|
208
|
+
/** Adjust the blur of the image */
|
|
209
|
+
Blur = "Blur"
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Specifies the type of arrowhead should be drawn.
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
export declare enum ArrowheadType {
|
|
216
|
+
/** Indicates no arrowhead should be drawn. */
|
|
217
|
+
None = "None",
|
|
218
|
+
/** Indicates a normal triangle-shaped arrowhead should be drawn. */
|
|
219
|
+
Arrow = "Arrow",
|
|
220
|
+
/** Indicates a solid triangle-shaped arrowhead should be drawn. */
|
|
221
|
+
SolidArrow = "SolidArrow",
|
|
222
|
+
/** Indicates a circular-shaped arrowhead should be drawn. */
|
|
223
|
+
Circle = "Circle",
|
|
224
|
+
/** Indicates a solid circular-shaped arrowhead should be drawn. */
|
|
225
|
+
SolidCircle = "SolidCircle",
|
|
226
|
+
/** Indicates a square-shaped arrowhead should be drawn. */
|
|
227
|
+
Square = "Square",
|
|
228
|
+
/** Indicates a solid square-shaped arrowhead should be drawn. */
|
|
229
|
+
SolidSquare = "SolidSquare",
|
|
230
|
+
/** Indicates a bar shaped arrowhead should be drawn. */
|
|
231
|
+
Bar = "Bar"
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* An enumeration of available frame options.
|
|
235
|
+
*
|
|
236
|
+
* @remarks
|
|
237
|
+
* These options can be used with the `drawFrame` method of the image editor control to draw frames on an image.
|
|
238
|
+
*/
|
|
239
|
+
export declare enum FrameType {
|
|
240
|
+
/** Represents a no frame. */
|
|
241
|
+
None = "None",
|
|
242
|
+
/** Represents a mat frame. */
|
|
243
|
+
Mat = "Mat",
|
|
244
|
+
/** Represents a bevel frame. */
|
|
245
|
+
Bevel = "Bevel",
|
|
246
|
+
/** Represents a line frame. */
|
|
247
|
+
Line = "Line",
|
|
248
|
+
/** Represents an inset frame. */
|
|
249
|
+
Inset = "Inset",
|
|
250
|
+
/** Represents a hook frame. */
|
|
251
|
+
Hook = "Hook"
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* An enumeration of available line options.
|
|
255
|
+
*
|
|
256
|
+
* @remarks
|
|
257
|
+
* These options can be used with the `drawFrame` method of the image editor control to draw frames on an image.
|
|
258
|
+
*/
|
|
259
|
+
export declare enum FrameLineStyle {
|
|
260
|
+
/** Represents a solid line. */
|
|
261
|
+
Solid = "Solid",
|
|
262
|
+
/** Represents a dashed line. */
|
|
263
|
+
Dashed = "Dashed",
|
|
264
|
+
/** Represents a dotted line. */
|
|
265
|
+
Dotted = "Dotted"
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* An enumeration representing the type of redaction to be added in the image editor.
|
|
269
|
+
*
|
|
270
|
+
* @enum {string}
|
|
271
|
+
*/
|
|
272
|
+
export declare enum RedactType {
|
|
273
|
+
/** Represents a blur redaction. */
|
|
274
|
+
Blur = "Blur",
|
|
275
|
+
/** Represents a pixelate redaction. */
|
|
276
|
+
Pixelate = "Pixelate"
|
|
277
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum representing the file types supported by the image editor.
|
|
3
|
+
*
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
export enum FileType {
|
|
7
|
+
/** The PNG file type. */
|
|
8
|
+
Png = 'Png',
|
|
9
|
+
/** The JPEG file type. */
|
|
10
|
+
Jpeg = 'Jpeg',
|
|
11
|
+
/** The SVG file type. */
|
|
12
|
+
Svg = 'Svg',
|
|
13
|
+
/** The WebP file type. */
|
|
14
|
+
WebP = 'WebP',
|
|
15
|
+
/** The BMP file type. */
|
|
16
|
+
Bmp = 'Bmp'
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An enumeration representing the direction of an image editor operation.
|
|
21
|
+
*
|
|
22
|
+
* @enum {string}
|
|
23
|
+
*/
|
|
24
|
+
export enum Direction {
|
|
25
|
+
/** The horizontal direction. */
|
|
26
|
+
Horizontal = 'Horizontal',
|
|
27
|
+
/** The vertical direction. */
|
|
28
|
+
Vertical = 'Vertical'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* An enumeration representing the type of shape to be added in the image editor.
|
|
33
|
+
*
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
export enum ShapeType {
|
|
37
|
+
/** A rectangle shape. */
|
|
38
|
+
Rectangle = 'Rectangle',
|
|
39
|
+
/** An ellipse shape. */
|
|
40
|
+
Ellipse = 'Ellipse',
|
|
41
|
+
/** A line shape. */
|
|
42
|
+
Line = 'Line',
|
|
43
|
+
/** An arrow shape. */
|
|
44
|
+
Arrow = 'Arrow',
|
|
45
|
+
/** A path shape. */
|
|
46
|
+
Path = 'Path',
|
|
47
|
+
/** A text shape. */
|
|
48
|
+
Text = 'Text',
|
|
49
|
+
/** A freehand drawing shape. */
|
|
50
|
+
FreehandDraw = 'FreehandDraw',
|
|
51
|
+
/** An Image shape. */
|
|
52
|
+
Image = 'Image'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* An enumeration representing the different ways to trigger zooming in the image editor.
|
|
57
|
+
*
|
|
58
|
+
* @aspNumberEnum
|
|
59
|
+
*/
|
|
60
|
+
export enum ZoomTrigger {
|
|
61
|
+
/** Zooming triggered by mouse wheel. */
|
|
62
|
+
MouseWheel = 1 << 0,
|
|
63
|
+
/** Zooming triggered by pinch gesture. */
|
|
64
|
+
Pinch = 1 << 1,
|
|
65
|
+
/** Zooming triggered by command keys. */
|
|
66
|
+
Commands = 1 << 2,
|
|
67
|
+
/** Zooming triggered by toolbar button click. */
|
|
68
|
+
Toolbar = 1 << 3
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* * An enum representing the available themes in the image editor.
|
|
73
|
+
*/
|
|
74
|
+
export enum Theme {
|
|
75
|
+
/** The Bootstrap 5 theme. */
|
|
76
|
+
Bootstrap5 = 'Bootstrap5',
|
|
77
|
+
/** The dark variant of the Bootstrap 5 theme. */
|
|
78
|
+
Bootstrap5Dark = 'Bootstrap5Dark',
|
|
79
|
+
/** The Tailwind CSS theme. */
|
|
80
|
+
Tailwind = 'Tailwind',
|
|
81
|
+
/** The dark variant of the Tailwind CSS theme. */
|
|
82
|
+
TailwindDark = 'TailwindDark',
|
|
83
|
+
/** The Fluent UI theme. */
|
|
84
|
+
Fluent = 'Fluent',
|
|
85
|
+
/** The dark variant of the Fluent UI theme. */
|
|
86
|
+
FluentDark = 'FluentDark',
|
|
87
|
+
/** The Bootstrap 4 theme. */
|
|
88
|
+
Bootstrap4 = 'Bootstrap4',
|
|
89
|
+
/** The Bootstrap theme. */
|
|
90
|
+
Bootstrap = 'Bootstrap',
|
|
91
|
+
/** The dark variant of the Bootstrap theme. */
|
|
92
|
+
BootstrapDark = 'BootstrapDark',
|
|
93
|
+
/** The Material Design theme. */
|
|
94
|
+
Material = 'Material',
|
|
95
|
+
/** The dark variant of the Material Design theme. */
|
|
96
|
+
MaterialDark = 'MaterialDark',
|
|
97
|
+
/** The Fabric theme. */
|
|
98
|
+
Fabric = 'Fabric',
|
|
99
|
+
/** The dark variant of the Fabric theme. */
|
|
100
|
+
FabricDark = 'FabricDark',
|
|
101
|
+
/** The high contrast theme. */
|
|
102
|
+
Highcontrast = 'Highcontrast',
|
|
103
|
+
/** The Fluent 2.0 UI theme. */
|
|
104
|
+
Fluent2 = 'Fluent2',
|
|
105
|
+
/** The dark variant of the Fluent 2.0 UI theme. */
|
|
106
|
+
Fluent2Dark = 'Fluent2Dark',
|
|
107
|
+
/** The Tailwind 3 UI theme. */
|
|
108
|
+
Tailwind3 = 'Tailwind3',
|
|
109
|
+
/** The dark variant of the Tailwind 3 UI theme. */
|
|
110
|
+
Tailwind3Dark = 'Tailwind3Dark'
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* An enum representing the available toolbar commands in the image editor.
|
|
115
|
+
*/
|
|
116
|
+
export enum ImageEditorCommand {
|
|
117
|
+
Crop = 'Crop',
|
|
118
|
+
Transform = 'Transform',
|
|
119
|
+
Annotate = 'Annotate',
|
|
120
|
+
ZoomIn = 'ZoomIn',
|
|
121
|
+
ZoomOut = 'ZoomOut',
|
|
122
|
+
Open = 'Open',
|
|
123
|
+
Reset = 'Reset',
|
|
124
|
+
Save = 'Save',
|
|
125
|
+
Pan = 'Pan',
|
|
126
|
+
Move = 'Move',
|
|
127
|
+
Pen = 'Pen',
|
|
128
|
+
Line = 'Line',
|
|
129
|
+
Arrow = 'Arrow',
|
|
130
|
+
Path = 'Path',
|
|
131
|
+
Rectangle = 'Rectangle',
|
|
132
|
+
Image = 'Image',
|
|
133
|
+
Ellipse = 'Ellipse',
|
|
134
|
+
Text = 'Text',
|
|
135
|
+
CustomSelection = 'CustomSelection',
|
|
136
|
+
CircleSelection = 'CircleSelection',
|
|
137
|
+
SquareSelection = 'SquareSelection',
|
|
138
|
+
RatioSelection = 'RatioSelection',
|
|
139
|
+
RotateLeft = 'RotateLeft',
|
|
140
|
+
RotateRight = 'RotateRight',
|
|
141
|
+
FlipHorizontal = 'FlipHorizontal',
|
|
142
|
+
FlipVertical = 'FlipVertical',
|
|
143
|
+
Undo = 'Undo',
|
|
144
|
+
Redo = 'Redo',
|
|
145
|
+
None = 'None',
|
|
146
|
+
Mat = 'Mat',
|
|
147
|
+
Bevel = 'Bevel',
|
|
148
|
+
Inset = 'Inset',
|
|
149
|
+
Hook = 'Hook',
|
|
150
|
+
Finetune = 'Finetune',
|
|
151
|
+
Filter = 'Filter',
|
|
152
|
+
Frame = 'Frame',
|
|
153
|
+
Resize = 'Resize',
|
|
154
|
+
HorizontalFlip = 'HorizontalFlip',
|
|
155
|
+
VerticalFlip = 'VerticalFlip',
|
|
156
|
+
Brightness = 'Brightness',
|
|
157
|
+
Contrast = 'Contrast',
|
|
158
|
+
Hue = 'Hue',
|
|
159
|
+
Saturation = 'Saturation',
|
|
160
|
+
Opacity = 'Opacity',
|
|
161
|
+
Blur = 'Blur',
|
|
162
|
+
Exposure = 'Exposure',
|
|
163
|
+
Default = 'Default',
|
|
164
|
+
Chrome = 'Chrome',
|
|
165
|
+
Cold = 'Cold',
|
|
166
|
+
Warm = 'Warm',
|
|
167
|
+
Grayscale = 'Grayscale',
|
|
168
|
+
Sepia = 'Sepia',
|
|
169
|
+
Invert = 'Invert',
|
|
170
|
+
Straightening = 'Straightening',
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* An enumeration of available image filter options.
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* These options can be used with the `applyImageFilter` method of the image editor control to apply filters to an image.
|
|
178
|
+
*/
|
|
179
|
+
export enum ImageFilterOption {
|
|
180
|
+
/** Default filter */
|
|
181
|
+
Default = 'Default',
|
|
182
|
+
/** Chrome filter */
|
|
183
|
+
Chrome = 'Chrome',
|
|
184
|
+
/** Cold filter */
|
|
185
|
+
Cold = 'Cold',
|
|
186
|
+
/** Warm filter */
|
|
187
|
+
Warm = 'Warm',
|
|
188
|
+
/** Grayscale filter */
|
|
189
|
+
Grayscale = 'Grayscale',
|
|
190
|
+
/** Sepia filter */
|
|
191
|
+
Sepia = 'Sepia',
|
|
192
|
+
/** Invert filter */
|
|
193
|
+
Invert = 'Invert'
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* An enumeration of available image finetune options.
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* These options can be used with the `finetuneImage` method of the image editor control to apply finetuning to an image.
|
|
201
|
+
*/
|
|
202
|
+
export enum ImageFinetuneOption {
|
|
203
|
+
/** Adjust the brightness of the image */
|
|
204
|
+
Brightness = 'Brightness',
|
|
205
|
+
/** Adjust the contrast of the image */
|
|
206
|
+
Contrast = 'Contrast',
|
|
207
|
+
/** Adjust the hue of the image */
|
|
208
|
+
Hue = 'Hue',
|
|
209
|
+
/** Adjust the saturation of the image */
|
|
210
|
+
Saturation = 'Saturation',
|
|
211
|
+
/** Adjust the exposure of the image */
|
|
212
|
+
Exposure = 'Exposure',
|
|
213
|
+
/** Adjust the opacity of the image */
|
|
214
|
+
Opacity = 'Opacity',
|
|
215
|
+
/** Adjust the blur of the image */
|
|
216
|
+
Blur = 'Blur'
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Specifies the type of arrowhead should be drawn.
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
export enum ArrowheadType {
|
|
224
|
+
/** Indicates no arrowhead should be drawn. */
|
|
225
|
+
None = 'None',
|
|
226
|
+
/** Indicates a normal triangle-shaped arrowhead should be drawn. */
|
|
227
|
+
Arrow = 'Arrow',
|
|
228
|
+
/** Indicates a solid triangle-shaped arrowhead should be drawn. */
|
|
229
|
+
SolidArrow = 'SolidArrow',
|
|
230
|
+
/** Indicates a circular-shaped arrowhead should be drawn. */
|
|
231
|
+
Circle = 'Circle',
|
|
232
|
+
/** Indicates a solid circular-shaped arrowhead should be drawn. */
|
|
233
|
+
SolidCircle = 'SolidCircle',
|
|
234
|
+
/** Indicates a square-shaped arrowhead should be drawn. */
|
|
235
|
+
Square = 'Square',
|
|
236
|
+
/** Indicates a solid square-shaped arrowhead should be drawn. */
|
|
237
|
+
SolidSquare = 'SolidSquare',
|
|
238
|
+
/** Indicates a bar shaped arrowhead should be drawn. */
|
|
239
|
+
Bar = 'Bar'
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* An enumeration of available frame options.
|
|
244
|
+
*
|
|
245
|
+
* @remarks
|
|
246
|
+
* These options can be used with the `drawFrame` method of the image editor control to draw frames on an image.
|
|
247
|
+
*/
|
|
248
|
+
export enum FrameType {
|
|
249
|
+
/** Represents a no frame. */
|
|
250
|
+
None = 'None',
|
|
251
|
+
/** Represents a mat frame. */
|
|
252
|
+
Mat = 'Mat',
|
|
253
|
+
/** Represents a bevel frame. */
|
|
254
|
+
Bevel = 'Bevel',
|
|
255
|
+
/** Represents a line frame. */
|
|
256
|
+
Line = 'Line',
|
|
257
|
+
/** Represents an inset frame. */
|
|
258
|
+
Inset = 'Inset',
|
|
259
|
+
/** Represents a hook frame. */
|
|
260
|
+
Hook = 'Hook'
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* An enumeration of available line options.
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* These options can be used with the `drawFrame` method of the image editor control to draw frames on an image.
|
|
268
|
+
*/
|
|
269
|
+
export enum FrameLineStyle {
|
|
270
|
+
/** Represents a solid line. */
|
|
271
|
+
Solid = 'Solid',
|
|
272
|
+
/** Represents a dashed line. */
|
|
273
|
+
Dashed = 'Dashed',
|
|
274
|
+
/** Represents a dotted line. */
|
|
275
|
+
Dotted = 'Dotted'
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* An enumeration representing the type of redaction to be added in the image editor.
|
|
280
|
+
*
|
|
281
|
+
* @enum {string}
|
|
282
|
+
*/
|
|
283
|
+
export enum RedactType {
|
|
284
|
+
/** Represents a blur redaction. */
|
|
285
|
+
Blur = 'Blur',
|
|
286
|
+
/** Represents a pixelate redaction. */
|
|
287
|
+
Pixelate = 'Pixelate'
|
|
288
|
+
}
|