@syncfusion/ej2-image-editor 20.3.50 → 20.4.38
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 +16 -1
- package/CHANGELOG.md +6 -0
- package/README.md +65 -2
- 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 +2639 -623
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +2676 -652
- 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 +22 -24
- package/src/image-editor/image-editor-model.d.ts +102 -19
- package/src/image-editor/image-editor.d.ts +232 -31
- package/src/image-editor/image-editor.js +2676 -651
- package/styles/bootstrap-dark.css +36 -0
- package/styles/bootstrap.css +36 -0
- package/styles/bootstrap4.css +36 -0
- package/styles/bootstrap5-dark.css +36 -0
- package/styles/bootstrap5.css +36 -0
- package/styles/fabric-dark.css +36 -0
- package/styles/fabric.css +36 -0
- package/styles/fluent-dark.css +36 -0
- package/styles/fluent.css +36 -0
- package/styles/highcontrast-light.css +36 -0
- package/styles/highcontrast.css +36 -0
- package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
- package/styles/image-editor/_bootstrap-definition.scss +1 -0
- package/styles/image-editor/_bootstrap4-definition.scss +1 -0
- package/styles/image-editor/_bootstrap5-definition.scss +1 -0
- package/styles/image-editor/_fabric-dark-definition.scss +1 -0
- package/styles/image-editor/_fabric-definition.scss +1 -0
- package/styles/image-editor/_fluent-definition.scss +1 -0
- package/styles/image-editor/_fusionnew-definition.scss +1 -0
- package/styles/image-editor/_highcontrast-definition.scss +1 -0
- package/styles/image-editor/_highcontrast-light-definition.scss +1 -0
- package/styles/image-editor/_layout.scss +38 -0
- package/styles/image-editor/_material-dark-definition.scss +1 -0
- package/styles/image-editor/_material-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +1 -0
- package/styles/image-editor/_tailwind-definition.scss +1 -0
- package/styles/image-editor/_theme.scss +11 -0
- package/styles/image-editor/bootstrap-dark.css +36 -0
- package/styles/image-editor/bootstrap-dark.scss +1 -0
- package/styles/image-editor/bootstrap.css +36 -0
- package/styles/image-editor/bootstrap.scss +1 -0
- package/styles/image-editor/bootstrap4.css +36 -0
- package/styles/image-editor/bootstrap4.scss +1 -0
- package/styles/image-editor/bootstrap5-dark.css +36 -0
- package/styles/image-editor/bootstrap5-dark.scss +1 -0
- package/styles/image-editor/bootstrap5.css +36 -0
- package/styles/image-editor/bootstrap5.scss +1 -0
- package/styles/image-editor/fabric-dark.css +36 -0
- package/styles/image-editor/fabric-dark.scss +1 -0
- package/styles/image-editor/fabric.css +36 -0
- package/styles/image-editor/fabric.scss +1 -0
- package/styles/image-editor/fluent-dark.css +36 -0
- package/styles/image-editor/fluent-dark.scss +1 -0
- package/styles/image-editor/fluent.css +36 -0
- package/styles/image-editor/fluent.scss +1 -0
- package/styles/image-editor/highcontrast-light.css +36 -0
- package/styles/image-editor/highcontrast-light.scss +1 -0
- package/styles/image-editor/highcontrast.css +36 -0
- package/styles/image-editor/highcontrast.scss +1 -0
- package/styles/image-editor/material-dark.css +36 -0
- package/styles/image-editor/material-dark.scss +1 -0
- package/styles/image-editor/material.css +36 -0
- package/styles/image-editor/material.scss +1 -0
- package/styles/image-editor/tailwind-dark.css +36 -0
- package/styles/image-editor/tailwind-dark.scss +1 -0
- package/styles/image-editor/tailwind.css +36 -0
- package/styles/image-editor/tailwind.scss +1 -0
- package/styles/material-dark.css +36 -0
- package/styles/material.css +36 -0
- package/styles/tailwind-dark.css +36 -0
- package/styles/tailwind.css +36 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-image-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-image-editor@20.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@20.5.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-5ifN1vR2eDXYloC2I91m7z6BGK/5hOKQxX9FjA2AGnu/EMCEuRd46k/G6v97y9G2tFfK06NzJxTBftRzJoVjbQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-image-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-image-editor",
|
|
24
24
|
"/@syncfusion/ej2-vue-image-editor"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.5.2.tgz",
|
|
27
|
+
"_shasum": "52c3e2411c696fa6b06398a8651f55b6eb18ef8c",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
|
-
"_where": "/jenkins/workspace/automation_release_19.1.0.1
|
|
29
|
+
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
31
31
|
"name": "Syncfusion Inc."
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~20.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~20.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~20.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~20.
|
|
39
|
-
"@syncfusion/ej2-popups": "~20.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~20.
|
|
35
|
+
"@syncfusion/ej2-base": "~20.4.38",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~20.4.38",
|
|
37
|
+
"@syncfusion/ej2-inputs": "~20.4.38",
|
|
38
|
+
"@syncfusion/ej2-navigations": "~20.4.38",
|
|
39
|
+
"@syncfusion/ej2-popups": "~20.4.38",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~20.4.38"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 ImageEditor",
|
|
@@ -46,19 +46,17 @@
|
|
|
46
46
|
"keywords": [
|
|
47
47
|
"ej2",
|
|
48
48
|
"syncfusion",
|
|
49
|
-
"web-components",
|
|
50
|
-
"javascript",
|
|
51
|
-
"typescript",
|
|
52
|
-
"image-editor",
|
|
53
|
-
"ej2-image-editor",
|
|
54
|
-
"ej2-imageeditor",
|
|
55
|
-
"js image-editor",
|
|
56
|
-
"js image-editor",
|
|
57
|
-
"image editor js",
|
|
58
49
|
"image editor",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
50
|
+
"photo editor",
|
|
51
|
+
"photo viewer",
|
|
52
|
+
"javascript image editor",
|
|
53
|
+
"typescript image editor",
|
|
54
|
+
"syncfusion image editor",
|
|
55
|
+
"imageeditor",
|
|
56
|
+
"image manipulation tool",
|
|
57
|
+
"canvas image editor",
|
|
58
|
+
"web image editor",
|
|
59
|
+
"image editing software"
|
|
62
60
|
],
|
|
63
61
|
"license": "SEE LICENSE IN license",
|
|
64
62
|
"main": "./dist/ej2-image-editor.umd.min.js",
|
|
@@ -69,6 +67,6 @@
|
|
|
69
67
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
|
|
70
68
|
},
|
|
71
69
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "20.
|
|
70
|
+
"version": "20.4.38",
|
|
73
71
|
"sideEffects": false
|
|
74
72
|
}
|
|
@@ -1,5 +1,54 @@
|
|
|
1
|
-
import { NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
2
|
-
import {Theme,ImageEditorCommands,SaveEventArgs,BeforeSaveEventArgs,ZoomEventArgs,PanEventArgs,CropEventArgs,RotateEventArgs,FlipEventArgs,ShapeChangeEventArgs,ToolbarEventArgs} from "./image-editor";
|
|
1
|
+
import { NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
|
|
2
|
+
import {ImageFinetuneValue,Theme,ImageEditorCommands,SaveEventArgs,BeforeSaveEventArgs,ZoomEventArgs,PanEventArgs,CropEventArgs,RotateEventArgs,FlipEventArgs,ShapeChangeEventArgs,ToolbarEventArgs,ImageFilterEventArgs,FinetuneEventArgs} from "./image-editor";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface for a class FinetuneSettings
|
|
6
|
+
*/
|
|
7
|
+
export interface FinetuneSettingsModel {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the brightness level of image.
|
|
11
|
+
* @default null
|
|
12
|
+
*/
|
|
13
|
+
brightness?: ImageFinetuneValue;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the contrast level image.
|
|
17
|
+
* @default null
|
|
18
|
+
*/
|
|
19
|
+
contrast?: ImageFinetuneValue;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the hue level image.
|
|
23
|
+
* @default null
|
|
24
|
+
*/
|
|
25
|
+
hue?: ImageFinetuneValue;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the saturation level image.
|
|
29
|
+
* @default null
|
|
30
|
+
*/
|
|
31
|
+
saturation?: ImageFinetuneValue;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the exposure level image.
|
|
35
|
+
* @default null
|
|
36
|
+
*/
|
|
37
|
+
exposure?: ImageFinetuneValue;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the opacity level image.
|
|
41
|
+
* @default null
|
|
42
|
+
*/
|
|
43
|
+
opacity?: ImageFinetuneValue;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the blur level image.
|
|
47
|
+
* @default null
|
|
48
|
+
*/
|
|
49
|
+
blur?: ImageFinetuneValue;
|
|
50
|
+
|
|
51
|
+
}
|
|
3
52
|
|
|
4
53
|
/**
|
|
5
54
|
* Interface for a class ImageEditor
|
|
@@ -8,7 +57,7 @@ export interface ImageEditorModel {
|
|
|
8
57
|
|
|
9
58
|
/**
|
|
10
59
|
* Defines class/multiple classes separated by a space for customizing Image Editor UI.
|
|
11
|
-
* default ''
|
|
60
|
+
* @default ''
|
|
12
61
|
```html
|
|
13
62
|
* <div id='imageeditor'></div>
|
|
14
63
|
* ```
|
|
@@ -23,25 +72,26 @@ export interface ImageEditorModel {
|
|
|
23
72
|
|
|
24
73
|
/**
|
|
25
74
|
* Specifies whether the Image Editor is disabled.
|
|
26
|
-
* default false
|
|
75
|
+
* @default false
|
|
27
76
|
*/
|
|
28
77
|
disabled?: boolean;
|
|
29
78
|
|
|
30
79
|
/**
|
|
31
80
|
* Specifies the height of the Image Editor.
|
|
32
|
-
* default '100%'
|
|
81
|
+
* @default '100%'
|
|
33
82
|
*/
|
|
34
83
|
height?: string;
|
|
35
84
|
|
|
36
85
|
/**
|
|
37
86
|
* Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
|
|
38
87
|
* The property supports all the built-in themes of Syncfusion.
|
|
39
|
-
*
|
|
88
|
+
*
|
|
40
89
|
* @isenumeration true
|
|
41
90
|
* @default Theme.Bootstrap5
|
|
42
91
|
* @asptype Theme
|
|
43
|
-
*
|
|
92
|
+
*
|
|
44
93
|
*/
|
|
94
|
+
|
|
45
95
|
theme?: string | Theme;
|
|
46
96
|
|
|
47
97
|
/**
|
|
@@ -49,17 +99,16 @@ export interface ImageEditorModel {
|
|
|
49
99
|
* If the property is defined as empty collection, the toolbar will not be rendered.
|
|
50
100
|
* Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
|
|
51
101
|
* The preconfigured toolbar commands are
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* default null
|
|
102
|
+
* Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
|
|
103
|
+
* 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.
|
|
104
|
+
* Transform: helps to rotate and flip an image.
|
|
105
|
+
* ZoomIn: performs zoom-in an image.
|
|
106
|
+
* ZoomOut: performs zoom-out an image.
|
|
107
|
+
* Pan: performs panning once zoomed an image.
|
|
108
|
+
* Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
|
|
109
|
+
* Save: save the modified image.
|
|
110
|
+
* Open: open an image to perform editing.
|
|
111
|
+
* Reset: reset the modification and restore the original image.
|
|
63
112
|
```html
|
|
64
113
|
* <div id='imageeditor'></div>
|
|
65
114
|
* ```
|
|
@@ -101,7 +150,7 @@ export interface ImageEditorModel {
|
|
|
101
150
|
|
|
102
151
|
/**
|
|
103
152
|
* Specifies the width of the Image Editor.
|
|
104
|
-
* default 100%
|
|
153
|
+
* @default '100%'
|
|
105
154
|
*/
|
|
106
155
|
width?: string;
|
|
107
156
|
|
|
@@ -198,6 +247,26 @@ export interface ImageEditorModel {
|
|
|
198
247
|
*/
|
|
199
248
|
enablePersistence?: boolean;
|
|
200
249
|
|
|
250
|
+
/**
|
|
251
|
+
* It can be done using the filter property of the canvas. The following fine tunes can be supported.
|
|
252
|
+
* 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.
|
|
253
|
+
* 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.
|
|
254
|
+
* 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.
|
|
255
|
+
* 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.
|
|
256
|
+
* Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
|
|
257
|
+
* 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.
|
|
258
|
+
* Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
finetuneSettings?: FinetuneSettingsModel;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Gets or sets the last signature url to maintain the persist state.
|
|
265
|
+
*
|
|
266
|
+
* @private
|
|
267
|
+
*/
|
|
268
|
+
signatureValue?: string;
|
|
269
|
+
|
|
201
270
|
/**
|
|
202
271
|
* Triggers before an image is saved.
|
|
203
272
|
*
|
|
@@ -296,4 +365,18 @@ export interface ImageEditorModel {
|
|
|
296
365
|
*/
|
|
297
366
|
toolbarItemClicked?: EmitType<ClickEventArgs>
|
|
298
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Triggers when applying filter to an image.
|
|
370
|
+
*
|
|
371
|
+
* @event imageFiltering
|
|
372
|
+
*/
|
|
373
|
+
imageFiltering?: EmitType<ImageFilterEventArgs>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Triggers when applying fine tune to an image.
|
|
377
|
+
*
|
|
378
|
+
* @event fineTuneValueChanging
|
|
379
|
+
*/
|
|
380
|
+
fineTuneValueChanging?: EmitType<FinetuneEventArgs>
|
|
381
|
+
|
|
299
382
|
}
|