@syncfusion/ej2-image-editor 20.4.51 → 21.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +1 -0
- package/CHANGELOG.md +55 -5
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +20032 -11350
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +20027 -11313
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/image-editor/action/crop.d.ts +36 -0
- package/src/image-editor/action/crop.js +829 -0
- package/src/image-editor/action/draw.d.ts +125 -0
- package/src/image-editor/action/draw.js +3263 -0
- package/src/image-editor/action/export.d.ts +23 -0
- package/src/image-editor/action/export.js +364 -0
- package/src/image-editor/action/filter.d.ts +35 -0
- package/src/image-editor/action/filter.js +699 -0
- package/src/image-editor/action/freehand-draw.d.ts +61 -0
- package/src/image-editor/action/freehand-draw.js +1015 -0
- package/src/image-editor/action/index.d.ts +9 -0
- package/src/image-editor/action/index.js +9 -0
- package/src/image-editor/action/selection.d.ts +139 -0
- package/src/image-editor/action/selection.js +4518 -0
- package/src/image-editor/action/shape.d.ts +94 -0
- package/src/image-editor/action/shape.js +2745 -0
- package/src/image-editor/action/transform.d.ts +67 -0
- package/src/image-editor/action/transform.js +1859 -0
- package/src/image-editor/action/undo-redo.d.ts +43 -0
- package/src/image-editor/action/undo-redo.js +800 -0
- package/src/image-editor/base/enum.d.ts +189 -0
- package/src/image-editor/base/enum.js +198 -0
- package/src/image-editor/base/image-editor-model.d.ts +626 -0
- package/src/image-editor/base/image-editor.d.ts +1300 -0
- package/src/image-editor/base/image-editor.js +2270 -0
- package/src/image-editor/base/index.d.ts +4 -0
- package/src/image-editor/base/index.js +2 -0
- package/src/image-editor/base/interface.d.ts +1128 -0
- package/src/image-editor/base/interface.js +1 -0
- package/src/image-editor/index.d.ts +3 -5
- package/src/image-editor/index.js +3 -4
- package/src/image-editor/renderer/index.d.ts +1 -0
- package/src/image-editor/renderer/index.js +1 -0
- package/src/image-editor/renderer/toolbar.d.ts +105 -0
- package/src/image-editor/renderer/toolbar.js +3018 -0
- package/styles/bootstrap-dark.css +79 -8
- package/styles/bootstrap.css +79 -8
- package/styles/bootstrap4.css +79 -8
- package/styles/bootstrap5-dark.css +81 -11
- package/styles/bootstrap5.css +81 -11
- package/styles/fabric-dark.css +79 -8
- package/styles/fabric.css +79 -8
- package/styles/fluent-dark.css +79 -8
- package/styles/fluent.css +79 -8
- package/styles/highcontrast-light.css +81 -10
- package/styles/highcontrast.css +82 -10
- package/styles/image-editor/_highcontrast-definition.scss +1 -1
- package/styles/image-editor/_highcontrast-light-definition.scss +1 -1
- package/styles/image-editor/_layout.scss +28 -18
- package/styles/image-editor/_material3-dark-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +10 -10
- package/styles/image-editor/_theme.scss +11 -6
- package/styles/image-editor/bootstrap-dark.css +79 -8
- package/styles/image-editor/bootstrap.css +79 -8
- package/styles/image-editor/bootstrap4.css +79 -8
- package/styles/image-editor/bootstrap5-dark.css +81 -11
- package/styles/image-editor/bootstrap5.css +81 -11
- package/styles/image-editor/fabric-dark.css +79 -8
- package/styles/image-editor/fabric.css +79 -8
- package/styles/image-editor/fluent-dark.css +79 -8
- package/styles/image-editor/fluent.css +79 -8
- package/styles/image-editor/highcontrast-light.css +81 -10
- package/styles/image-editor/highcontrast.css +82 -10
- package/styles/image-editor/icons/_bootstrap-dark.scss +132 -0
- package/styles/image-editor/icons/_bootstrap.scss +132 -0
- package/styles/image-editor/icons/_bootstrap4.scss +132 -0
- package/styles/image-editor/icons/_bootstrap5.scss +132 -0
- package/styles/image-editor/icons/_fabric-dark.scss +132 -0
- package/styles/image-editor/icons/_fabric.scss +132 -0
- package/styles/image-editor/icons/_fluent.scss +132 -0
- package/styles/image-editor/icons/_fusionnew.scss +132 -0
- package/styles/image-editor/icons/_highcontrast-light.scss +132 -0
- package/styles/image-editor/icons/_highcontrast.scss +132 -0
- package/styles/image-editor/icons/_material-dark.scss +132 -0
- package/styles/image-editor/icons/_material.scss +132 -0
- package/styles/image-editor/icons/_material3-dark.scss +1 -0
- package/styles/image-editor/icons/_material3.scss +133 -1
- package/styles/image-editor/icons/_tailwind.scss +132 -0
- package/styles/image-editor/material-dark.css +79 -16
- package/styles/image-editor/material.css +79 -11
- package/styles/image-editor/material3-dark.css +453 -0
- package/styles/image-editor/material3-dark.scss +14 -0
- package/styles/image-editor/material3.css +509 -0
- package/styles/image-editor/material3.scss +14 -0
- package/styles/image-editor/tailwind-dark.css +79 -8
- package/styles/image-editor/tailwind.css +79 -8
- package/styles/material-dark.css +79 -16
- package/styles/material.css +79 -11
- package/styles/material3-dark.css +453 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +509 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +79 -8
- package/styles/tailwind.css +79 -8
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/src/image-editor/image-editor-model.d.ts +0 -331
- package/src/image-editor/image-editor.d.ts +0 -1428
- package/src/image-editor/image-editor.js +0 -12849
package/styles/tailwind.css
CHANGED
|
@@ -71,6 +71,66 @@
|
|
|
71
71
|
.e-image-editor .e-fill.e-template .e-caret::before {
|
|
72
72
|
content: "\e783";
|
|
73
73
|
}
|
|
74
|
+
.e-image-editor .e-custom::before {
|
|
75
|
+
content: "\e8a9";
|
|
76
|
+
}
|
|
77
|
+
.e-image-editor .e-circle::before {
|
|
78
|
+
content: "\e7ca";
|
|
79
|
+
}
|
|
80
|
+
.e-image-editor .e-square::before {
|
|
81
|
+
content: "\e8aa";
|
|
82
|
+
}
|
|
83
|
+
.e-image-editor .e-custom-a::before {
|
|
84
|
+
content: "\e8ab";
|
|
85
|
+
}
|
|
86
|
+
.e-image-editor .e-custom-b::before {
|
|
87
|
+
content: "\e8ac";
|
|
88
|
+
}
|
|
89
|
+
.e-image-editor .e-custom-c::before {
|
|
90
|
+
content: "\e8ad";
|
|
91
|
+
}
|
|
92
|
+
.e-image-editor .e-custom-d::before {
|
|
93
|
+
content: "\e8ae";
|
|
94
|
+
}
|
|
95
|
+
.e-image-editor .e-custom-e::before {
|
|
96
|
+
content: "\e8af";
|
|
97
|
+
}
|
|
98
|
+
.e-image-editor .e-horizontal-flip::before {
|
|
99
|
+
content: "\e8a3";
|
|
100
|
+
}
|
|
101
|
+
.e-image-editor .e-vertical-flip::before {
|
|
102
|
+
content: "\e8a4";
|
|
103
|
+
}
|
|
104
|
+
.e-image-editor .e-clock-wise::before {
|
|
105
|
+
content: "\e8a6";
|
|
106
|
+
}
|
|
107
|
+
.e-image-editor .e-anti-clock-wise::before {
|
|
108
|
+
content: "\e8a5";
|
|
109
|
+
}
|
|
110
|
+
.e-image-editor .e-rectangle::before {
|
|
111
|
+
content: "\e723";
|
|
112
|
+
}
|
|
113
|
+
.e-image-editor .e-circle::before {
|
|
114
|
+
content: "\e7ca";
|
|
115
|
+
}
|
|
116
|
+
.e-image-editor .e-triangle::before {
|
|
117
|
+
content: "\e89c";
|
|
118
|
+
}
|
|
119
|
+
.e-image-editor .e-line::before {
|
|
120
|
+
content: "\e819";
|
|
121
|
+
}
|
|
122
|
+
.e-image-editor .e-add-text::before {
|
|
123
|
+
content: "\e82e";
|
|
124
|
+
}
|
|
125
|
+
.e-image-editor .e-free-pen::before {
|
|
126
|
+
content: "\e7db";
|
|
127
|
+
}
|
|
128
|
+
.e-image-editor .e-arrow::before {
|
|
129
|
+
content: "\e669";
|
|
130
|
+
}
|
|
131
|
+
.e-image-editor .e-path::before {
|
|
132
|
+
content: "\e931";
|
|
133
|
+
}
|
|
74
134
|
|
|
75
135
|
.e-dropdown-popup.e-image-popup .e-custom::before {
|
|
76
136
|
content: "\e8a9";
|
|
@@ -129,6 +189,17 @@
|
|
|
129
189
|
.e-dropdown-popup.e-image-popup .e-add-text::before {
|
|
130
190
|
content: "\e82e";
|
|
131
191
|
}
|
|
192
|
+
.e-dropdown-popup.e-image-popup .e-arrow::before {
|
|
193
|
+
content: "\e669";
|
|
194
|
+
}
|
|
195
|
+
.e-dropdown-popup.e-image-popup .e-path::before {
|
|
196
|
+
content: "\e931";
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.e-ie-toolbar-upload-div.e-hide,
|
|
200
|
+
.e-ie-toolbar-upload-btn.e-hide {
|
|
201
|
+
display: none;
|
|
202
|
+
}
|
|
132
203
|
|
|
133
204
|
.e-device.e-image-editor .e-img-font-style.e-template {
|
|
134
205
|
margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
@@ -233,7 +304,7 @@
|
|
|
233
304
|
.e-image-editor .e-toolbar-area + .e-canvas-wrapper {
|
|
234
305
|
border-top: 1px solid #e5e7eb;
|
|
235
306
|
}
|
|
236
|
-
.e-image-editor .e-canvas-wrapper .e-textarea {
|
|
307
|
+
.e-image-editor .e-toolbar-area + .e-canvas-wrapper .e-textarea {
|
|
237
308
|
line-height: initial !important; /* stylelint-disable-line declaration-no-important */
|
|
238
309
|
}
|
|
239
310
|
.e-image-editor .e-bottom-toolbar {
|
|
@@ -252,11 +323,11 @@
|
|
|
252
323
|
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item {
|
|
253
324
|
height: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
254
325
|
}
|
|
255
|
-
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item .filterwrapper {
|
|
326
|
+
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item .filter-wrapper {
|
|
256
327
|
border: 2px solid transparent;
|
|
257
328
|
height: 100px;
|
|
258
329
|
}
|
|
259
|
-
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filterwrapper {
|
|
330
|
+
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filter-wrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filter-wrapper {
|
|
260
331
|
border-top: 2px solid;
|
|
261
332
|
}
|
|
262
333
|
.e-image-editor .e-contextual-toolbar-wrapper .e-slider-container {
|
|
@@ -272,7 +343,7 @@
|
|
|
272
343
|
border-top: 1px solid #e5e7eb;
|
|
273
344
|
border-bottom: 1px solid #e5e7eb;
|
|
274
345
|
}
|
|
275
|
-
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filterwrapper {
|
|
346
|
+
.e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filterwrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item:hover .filter-wrapper, .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item.e-selected .filter-wrapper {
|
|
276
347
|
border-color: #e5e7eb;
|
|
277
348
|
}
|
|
278
349
|
.e-image-editor .e-toolbar .e-toolbar-items .e-tbar-btn.e-btn .e-icons {
|
|
@@ -285,24 +356,24 @@
|
|
|
285
356
|
background: inherit;
|
|
286
357
|
border: none;
|
|
287
358
|
margin-top: 2px;
|
|
288
|
-
background
|
|
359
|
+
background: #f3f4f6;
|
|
289
360
|
color: #6b7280;
|
|
290
361
|
}
|
|
291
362
|
.e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
|
|
292
363
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
293
364
|
}
|
|
294
365
|
.e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:hover {
|
|
295
|
-
background
|
|
366
|
+
background: #f3f4f6;
|
|
296
367
|
box-shadow: none;
|
|
297
368
|
color: #374151;
|
|
298
369
|
}
|
|
299
370
|
.e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:focus {
|
|
300
|
-
background
|
|
371
|
+
background: #f3f4f6;
|
|
301
372
|
box-shadow: none;
|
|
302
373
|
color: #374151;
|
|
303
374
|
}
|
|
304
375
|
.e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
|
|
305
|
-
background
|
|
376
|
+
background: #e5e7eb;
|
|
306
377
|
box-shadow: none;
|
|
307
378
|
color: #374151;
|
|
308
379
|
}
|
package/GitLeaksReport.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[]
|
package/gitleaks-ci/gitleaks
DELETED
|
Binary file
|
package/gitleaks-ci.tar.gz
DELETED
|
Binary file
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
2
|
-
import {ImageFinetuneValue,Theme,ImageEditorCommands,SaveEventArgs,BeforeSaveEventArgs,ZoomEventArgs,PanEventArgs,CropEventArgs,RotateEventArgs,FlipEventArgs,ShapeChangeEventArgs,OpenEventArgs,ToolbarEventArgs,ImageFilterEventArgs,FinetuneEventArgs} from "./image-editor";
|
|
3
|
-
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for a class FinetuneSettings
|
|
7
|
-
*/
|
|
8
|
-
export interface FinetuneSettingsModel {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the brightness level of image.
|
|
12
|
-
*
|
|
13
|
-
* @default null
|
|
14
|
-
*/
|
|
15
|
-
brightness?: ImageFinetuneValue;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the contrast level image.
|
|
19
|
-
*
|
|
20
|
-
* @default null
|
|
21
|
-
*/
|
|
22
|
-
contrast?: ImageFinetuneValue;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Specifies the hue level image.
|
|
26
|
-
*
|
|
27
|
-
* @default null
|
|
28
|
-
*/
|
|
29
|
-
hue?: ImageFinetuneValue;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the saturation level image.
|
|
33
|
-
*
|
|
34
|
-
* @default null
|
|
35
|
-
*/
|
|
36
|
-
saturation?: ImageFinetuneValue;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the exposure level image.
|
|
40
|
-
*
|
|
41
|
-
* @default null
|
|
42
|
-
*/
|
|
43
|
-
exposure?: ImageFinetuneValue;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the opacity level image.
|
|
47
|
-
*
|
|
48
|
-
* @default null
|
|
49
|
-
*/
|
|
50
|
-
opacity?: ImageFinetuneValue;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the blur level image.
|
|
54
|
-
*
|
|
55
|
-
* @default null
|
|
56
|
-
*/
|
|
57
|
-
blur?: ImageFinetuneValue;
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Interface for a class ImageEditor
|
|
63
|
-
*/
|
|
64
|
-
export interface ImageEditorModel extends ComponentModel{
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Defines class/multiple classes separated by a space for customizing Image Editor UI.
|
|
68
|
-
*
|
|
69
|
-
* @default ''
|
|
70
|
-
```html
|
|
71
|
-
* <div id='imageeditor'></div>
|
|
72
|
-
* ```
|
|
73
|
-
* ```typescript
|
|
74
|
-
* <script>
|
|
75
|
-
* var imageObj = new ImageEditor({cssClass: 'e-custom-img-editor'});
|
|
76
|
-
* imageObj.appendTo("#imageeditor");
|
|
77
|
-
* </script>
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
cssClass?: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Specifies whether the Image Editor is disabled.
|
|
84
|
-
*
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
disabled?: boolean;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the height of the Image Editor.
|
|
91
|
-
*
|
|
92
|
-
* @default '100%'
|
|
93
|
-
*/
|
|
94
|
-
height?: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
|
|
98
|
-
* The property supports all the built-in themes of Syncfusion.
|
|
99
|
-
* default 'Bootstrap5'
|
|
100
|
-
*
|
|
101
|
-
* @isenumeration true
|
|
102
|
-
* @default Theme.Bootstrap5
|
|
103
|
-
* @asptype Theme
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
theme?: string | Theme;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Specifies the toolbar items to perform UI interactions. It accepts both string[] and ItemModel[] to configure its toolbar items.
|
|
110
|
-
* If the property is defined as empty collection, the toolbar will not be rendered.
|
|
111
|
-
* Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
|
|
112
|
-
* The preconfigured toolbar commands are
|
|
113
|
-
* Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
|
|
114
|
-
* Annotate: help to insert a shape on image that supports rectangle, ellipse, line, text and freehand drawing with resize, drag and drop, and customize its appearance.
|
|
115
|
-
* Transform: helps to rotate and flip an image.
|
|
116
|
-
* ZoomIn: performs zoom-in an image.
|
|
117
|
-
* ZoomOut: performs zoom-out an image.
|
|
118
|
-
* Pan: performs panning once zoomed an image.
|
|
119
|
-
* Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
|
|
120
|
-
* Save: save the modified image.
|
|
121
|
-
* Open: open an image to perform editing.
|
|
122
|
-
* Reset: reset the modification and restore the original image.
|
|
123
|
-
*
|
|
124
|
-
* @default null
|
|
125
|
-
```html
|
|
126
|
-
* <div id='imageeditor'></div>
|
|
127
|
-
* ```
|
|
128
|
-
* ```typescript
|
|
129
|
-
* <script>
|
|
130
|
-
* var imageObj = new ImageEditor({
|
|
131
|
-
* toolbar[Crop, ZoomIn, ZoomOut, Transform, {text: 'Custom'}]
|
|
132
|
-
* });
|
|
133
|
-
* imageObj.appendTo("#imageeditor");
|
|
134
|
-
* </script>
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
|
-
toolbar?: (string | ImageEditorCommands | ItemModel)[];
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Specifies template to the Image Editor Toolbar.
|
|
141
|
-
* If you want to customize the entire toolbar in own way by using this property.
|
|
142
|
-
* The property is depending on ‘toolbar’.
|
|
143
|
-
*
|
|
144
|
-
* @default null
|
|
145
|
-
```html
|
|
146
|
-
* <div id='imageeditor'></div>
|
|
147
|
-
* ```
|
|
148
|
-
* ```typescript
|
|
149
|
-
* <script>
|
|
150
|
-
* var imageObj = new ImageEditor({
|
|
151
|
-
* toolbarTemplate: '#toolbarTemplate'
|
|
152
|
-
* });
|
|
153
|
-
* imageObj.appendTo("#imageeditor");
|
|
154
|
-
* </script>
|
|
155
|
-
* <script id="toolbarTemplate" type="text/x-template">
|
|
156
|
-
* <div class = 'e-toolbar'>
|
|
157
|
-
* <button id= 'dltbtn'></button>
|
|
158
|
-
* </div>
|
|
159
|
-
* </script>
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
toolbarTemplate?: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Specifies the width of the Image Editor.
|
|
166
|
-
*
|
|
167
|
-
* @default '100%'
|
|
168
|
-
*/
|
|
169
|
-
width?: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Specifies whether to perform undo / redo operation.
|
|
173
|
-
*
|
|
174
|
-
* @default false
|
|
175
|
-
* @private
|
|
176
|
-
*/
|
|
177
|
-
allowUndoRedo?: boolean;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Gets or sets whether to prevent the interaction in signature component.
|
|
181
|
-
* True, if the signature component is read only state where the user interaction is prevented. The default value is false.
|
|
182
|
-
*
|
|
183
|
-
* @default false
|
|
184
|
-
* @private
|
|
185
|
-
*/
|
|
186
|
-
isReadOnly?: boolean;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Specifies the Signature in RTL mode that displays the content in the right-to-left direction.
|
|
190
|
-
*
|
|
191
|
-
* @default false
|
|
192
|
-
* @private
|
|
193
|
-
*/
|
|
194
|
-
enableRtl?: boolean;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Gets or sets whether to persist component's state between page reloads.
|
|
198
|
-
* True, if the component's state persistence is enabled. The default value is false.
|
|
199
|
-
* Component's property will be stored in browser local storage to persist component's state when page reloads.
|
|
200
|
-
*
|
|
201
|
-
* @default false
|
|
202
|
-
* @private
|
|
203
|
-
*/
|
|
204
|
-
enablePersistence?: boolean;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* It can be done using the filter property of the canvas. The following fine tunes can be supported.
|
|
208
|
-
* Brightness: The intensity of the primary colors grows with increased brightness, but the color itself does not change. It can be done by changing brightness and opacity property.
|
|
209
|
-
* Contrast: The contrast of an image refers to the difference between the light pixels and dark pixels. Low contrast images contain either a narrow range of colors while high contrast images have bright highlights and dark shadows. It can be done by changing contrast property.
|
|
210
|
-
* Hue: Hue distinguishes one color from another and is described using common color names such as green, blue, red, yellow, etc. Value refers to the lightness or darkness of a color. It can be controlled by hue-rotate property.
|
|
211
|
-
* Saturation: If saturation increases, colors appear sharper or purer. As saturation decreases, colors appear more washed-out or faded. It can be controlled by saturation and brightness property.
|
|
212
|
-
* Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
|
|
213
|
-
* 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.
|
|
214
|
-
* Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
finetuneSettings?: FinetuneSettingsModel;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Triggers before an image is saved.
|
|
221
|
-
*
|
|
222
|
-
* @event beforeSave
|
|
223
|
-
*/
|
|
224
|
-
beforeSave?: EmitType<BeforeSaveEventArgs>;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Triggers once the component rendering is completed.
|
|
228
|
-
*
|
|
229
|
-
* @event created
|
|
230
|
-
*/
|
|
231
|
-
created?: EmitType<Event>
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Triggers once the component is destroyed with its elements and bound events.
|
|
235
|
-
*
|
|
236
|
-
* @event destroyed
|
|
237
|
-
*/
|
|
238
|
-
destroyed?: EmitType<Event>
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Triggers while zooming an image.
|
|
242
|
-
*
|
|
243
|
-
* @event zooming
|
|
244
|
-
*/
|
|
245
|
-
zooming?: EmitType<ZoomEventArgs>
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Triggers while panning an image.
|
|
249
|
-
*
|
|
250
|
-
* @event panning
|
|
251
|
-
*/
|
|
252
|
-
panning?: EmitType<PanEventArgs>
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Triggers while cropping an image.
|
|
256
|
-
*
|
|
257
|
-
* @event cropping
|
|
258
|
-
*/
|
|
259
|
-
cropping?: EmitType<CropEventArgs>
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Triggers while rotating an image.
|
|
263
|
-
*
|
|
264
|
-
* @event rotating
|
|
265
|
-
*/
|
|
266
|
-
rotating?: EmitType<RotateEventArgs>
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Triggers while flipping an image.
|
|
270
|
-
*
|
|
271
|
-
* @event flipping
|
|
272
|
-
*/
|
|
273
|
-
flipping?: EmitType<FlipEventArgs>
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Triggers while changing shapes in an image.
|
|
277
|
-
*
|
|
278
|
-
* @event shapeChanging
|
|
279
|
-
*/
|
|
280
|
-
shapeChanging?: EmitType<ShapeChangeEventArgs>
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Triggers once an image is opened.
|
|
284
|
-
*
|
|
285
|
-
* @event fileOpened
|
|
286
|
-
*/
|
|
287
|
-
fileOpened?: EmitType<OpenEventArgs>
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Triggers once an image is saved.
|
|
291
|
-
*
|
|
292
|
-
* @event saved
|
|
293
|
-
*/
|
|
294
|
-
saved?: EmitType<SaveEventArgs>;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Triggers once the toolbar is created.
|
|
298
|
-
*
|
|
299
|
-
* @event toolbarCreated
|
|
300
|
-
*/
|
|
301
|
-
toolbarCreated?: EmitType<ToolbarEventArgs>
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Triggers while updating/refreshing the toolbar
|
|
305
|
-
*
|
|
306
|
-
* @event toolbarUpdating
|
|
307
|
-
*/
|
|
308
|
-
toolbarUpdating?: EmitType<ToolbarEventArgs>
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Triggers once the toolbar item is clicked.
|
|
312
|
-
*
|
|
313
|
-
* @event toolbarItemClicked
|
|
314
|
-
*/
|
|
315
|
-
toolbarItemClicked?: EmitType<ClickEventArgs>
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Triggers when applying filter to an image.
|
|
319
|
-
*
|
|
320
|
-
* @event imageFiltering
|
|
321
|
-
*/
|
|
322
|
-
imageFiltering?: EmitType<ImageFilterEventArgs>;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Triggers when applying fine tune to an image.
|
|
326
|
-
*
|
|
327
|
-
* @event finetuneValueChanging
|
|
328
|
-
*/
|
|
329
|
-
finetuneValueChanging?: EmitType<FinetuneEventArgs>
|
|
330
|
-
|
|
331
|
-
}
|