@syncfusion/ej2-image-editor 20.3.56 → 20.4.40

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.
Files changed (62) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +5 -5
  3. package/README.md +65 -2
  4. package/dist/ej2-image-editor.umd.min.js +2 -2
  5. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es2015.js +6191 -4168
  7. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-image-editor.es5.js +2505 -474
  9. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  10. package/dist/global/ej2-image-editor.min.js +2 -2
  11. package/dist/global/ej2-image-editor.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +23 -24
  14. package/src/image-editor/image-editor-model.d.ts +114 -20
  15. package/src/image-editor/image-editor.d.ts +251 -33
  16. package/src/image-editor/image-editor.js +2505 -473
  17. package/styles/bootstrap-dark.css +36 -0
  18. package/styles/bootstrap.css +36 -0
  19. package/styles/bootstrap4.css +36 -0
  20. package/styles/bootstrap5-dark.css +36 -0
  21. package/styles/bootstrap5.css +36 -0
  22. package/styles/fabric-dark.css +36 -0
  23. package/styles/fabric.css +36 -0
  24. package/styles/fluent-dark.css +36 -0
  25. package/styles/fluent.css +36 -0
  26. package/styles/highcontrast-light.css +36 -0
  27. package/styles/highcontrast.css +36 -0
  28. package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
  29. package/styles/image-editor/_bootstrap-definition.scss +1 -0
  30. package/styles/image-editor/_bootstrap4-definition.scss +1 -0
  31. package/styles/image-editor/_bootstrap5-definition.scss +1 -0
  32. package/styles/image-editor/_fabric-dark-definition.scss +1 -0
  33. package/styles/image-editor/_fabric-definition.scss +1 -0
  34. package/styles/image-editor/_fluent-definition.scss +1 -0
  35. package/styles/image-editor/_fusionnew-definition.scss +1 -0
  36. package/styles/image-editor/_highcontrast-definition.scss +1 -0
  37. package/styles/image-editor/_highcontrast-light-definition.scss +1 -0
  38. package/styles/image-editor/_layout.scss +38 -0
  39. package/styles/image-editor/_material-dark-definition.scss +1 -0
  40. package/styles/image-editor/_material-definition.scss +1 -0
  41. package/styles/image-editor/_material3-definition.scss +1 -0
  42. package/styles/image-editor/_tailwind-definition.scss +1 -0
  43. package/styles/image-editor/_theme.scss +11 -0
  44. package/styles/image-editor/bootstrap-dark.css +36 -0
  45. package/styles/image-editor/bootstrap.css +36 -0
  46. package/styles/image-editor/bootstrap4.css +36 -0
  47. package/styles/image-editor/bootstrap5-dark.css +36 -0
  48. package/styles/image-editor/bootstrap5.css +36 -0
  49. package/styles/image-editor/fabric-dark.css +36 -0
  50. package/styles/image-editor/fabric.css +36 -0
  51. package/styles/image-editor/fluent-dark.css +36 -0
  52. package/styles/image-editor/fluent.css +36 -0
  53. package/styles/image-editor/highcontrast-light.css +36 -0
  54. package/styles/image-editor/highcontrast.css +36 -0
  55. package/styles/image-editor/material-dark.css +36 -0
  56. package/styles/image-editor/material.css +36 -0
  57. package/styles/image-editor/tailwind-dark.css +36 -0
  58. package/styles/image-editor/tailwind.css +36 -0
  59. package/styles/material-dark.css +36 -0
  60. package/styles/material.css +36 -0
  61. package/styles/tailwind-dark.css +36 -0
  62. package/styles/tailwind.css +36 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.56
3
+ * version : 20.4.40
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.50",
3
+ "_id": "@syncfusion/ej2-image-editor@20.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-GC3GXiioSuat7lNj1+alap+EKHpfZE82vt3zXFUkkLapiv6l0ANzbwAnyDgb26HhgtTw1eRSISKw3WFy2gJxXw==",
5
+ "_integrity": "sha512-qmD+rNyurwGSaTsEg87SGQDiy4gvGYVwnXVxEyuY5sjSSHXmRV21J33nFIOfrzx6an+GxUJfUwQ/0NPIFCnKwA==",
6
6
  "_location": "/@syncfusion/ej2-image-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-image-editor",
24
24
  "/@syncfusion/ej2-vue-image-editor"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.3.50.tgz",
27
- "_shasum": "d3a275b9552ab924a714250cea4033a379403075",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.4.38.tgz",
27
+ "_shasum": "0e045a664e6e4c477c8dd1b736c36df40153ebcd",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~20.3.56",
36
- "@syncfusion/ej2-buttons": "~20.3.56",
37
- "@syncfusion/ej2-inputs": "~20.3.56",
38
- "@syncfusion/ej2-navigations": "~20.3.56",
39
- "@syncfusion/ej2-popups": "~20.3.56",
40
- "@syncfusion/ej2-splitbuttons": "~20.3.56"
35
+ "@syncfusion/ej2-base": "~20.4.40",
36
+ "@syncfusion/ej2-buttons": "~20.4.40",
37
+ "@syncfusion/ej2-inputs": "~20.4.40",
38
+ "@syncfusion/ej2-navigations": "~20.4.40",
39
+ "@syncfusion/ej2-popups": "~20.4.40",
40
+ "@syncfusion/ej2-splitbuttons": "~20.4.40"
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
- "javascript imageeditor",
60
- "typescript imageeditor",
61
- "imageeditor"
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,7 @@
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.3.56",
73
- "sideEffects": false
70
+ "version": "20.4.40",
71
+ "sideEffects": false,
72
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls"
74
73
  }
@@ -1,5 +1,61 @@
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,FileOpenEventArgs,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
+ *
12
+ * @default null
13
+ */
14
+ brightness?: ImageFinetuneValue;
15
+
16
+ /**
17
+ * Specifies the contrast level image.
18
+ *
19
+ * @default null
20
+ */
21
+ contrast?: ImageFinetuneValue;
22
+
23
+ /**
24
+ * Specifies the hue level image.
25
+ *
26
+ * @default null
27
+ */
28
+ hue?: ImageFinetuneValue;
29
+
30
+ /**
31
+ * Specifies the saturation level image.
32
+ *
33
+ * @default null
34
+ */
35
+ saturation?: ImageFinetuneValue;
36
+
37
+ /**
38
+ * Specifies the exposure level image.
39
+ *
40
+ * @default null
41
+ */
42
+ exposure?: ImageFinetuneValue;
43
+
44
+ /**
45
+ * Specifies the opacity level image.
46
+ *
47
+ * @default null
48
+ */
49
+ opacity?: ImageFinetuneValue;
50
+
51
+ /**
52
+ * Specifies the blur level image.
53
+ *
54
+ * @default null
55
+ */
56
+ blur?: ImageFinetuneValue;
57
+
58
+ }
3
59
 
4
60
  /**
5
61
  * Interface for a class ImageEditor
@@ -8,7 +64,8 @@ export interface ImageEditorModel {
8
64
 
9
65
  /**
10
66
  * Defines class/multiple classes separated by a space for customizing Image Editor UI.
11
- * default ''
67
+ *
68
+ * @default ''
12
69
  ```html
13
70
  * <div id='imageeditor'></div>
14
71
  * ```
@@ -23,25 +80,28 @@ export interface ImageEditorModel {
23
80
 
24
81
  /**
25
82
  * Specifies whether the Image Editor is disabled.
26
- * default false
83
+ *
84
+ * @default false
27
85
  */
28
86
  disabled?: boolean;
29
87
 
30
88
  /**
31
89
  * Specifies the height of the Image Editor.
32
- * default '100%'
90
+ *
91
+ * @default '100%'
33
92
  */
34
93
  height?: string;
35
94
 
36
95
  /**
37
96
  * Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
38
97
  * The property supports all the built-in themes of Syncfusion.
39
- * default 'Bootstrap5'
98
+ *
40
99
  * @isenumeration true
41
100
  * @default Theme.Bootstrap5
42
101
  * @asptype Theme
43
- *
102
+ *
44
103
  */
104
+
45
105
  theme?: string | Theme;
46
106
 
47
107
  /**
@@ -49,17 +109,16 @@ export interface ImageEditorModel {
49
109
  * If the property is defined as empty collection, the toolbar will not be rendered.
50
110
  * Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
51
111
  * The preconfigured toolbar commands are
52
- * Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
53
- * 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.
54
- * Transform: helps to rotate and flip an image.
55
- * ZoomIn: performs zoom-in an image.
56
- * ZoomOut: performs zoom-out an image.
57
- * Pan: performs panning once zoomed an image.
58
- * Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
59
- * Save: save the modified image.
60
- * Open: open an image to perform editing.
61
- * Reset: reset the modification and restore the original image.
62
- * default null
112
+ * Crop: helps to crop an image as ellipse, square, various ratio aspects, custom selection with resize, drag and drop.
113
+ * 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.
114
+ * Transform: helps to rotate and flip an image.
115
+ * ZoomIn: performs zoom-in an image.
116
+ * ZoomOut: performs zoom-out an image.
117
+ * Pan: performs panning once zoomed an image.
118
+ * Move: disable the pan action and move to perform other actions such as insert a shape, transform, and more.
119
+ * Save: save the modified image.
120
+ * Open: open an image to perform editing.
121
+ * Reset: reset the modification and restore the original image.
63
122
  ```html
64
123
  * <div id='imageeditor'></div>
65
124
  * ```
@@ -101,7 +160,8 @@ export interface ImageEditorModel {
101
160
 
102
161
  /**
103
162
  * Specifies the width of the Image Editor.
104
- * default 100%
163
+ *
164
+ * @default '100%'
105
165
  */
106
166
  width?: string;
107
167
 
@@ -198,6 +258,26 @@ export interface ImageEditorModel {
198
258
  */
199
259
  enablePersistence?: boolean;
200
260
 
261
+ /**
262
+ * It can be done using the filter property of the canvas. The following fine tunes can be supported.
263
+ * 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.
264
+ * 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.
265
+ * 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.
266
+ * 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.
267
+ * Exposure: If exposure increases, intensity of light appears brighter. As exposure decreases, intensity of light decreases. Exposure can be controlled by brightness property.
268
+ * 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.
269
+ * Blur : Adjusting the blur can make an image unfocused or unclear. Blur can be controlled by blur property.
270
+ *
271
+ */
272
+ finetuneSettings?: FinetuneSettingsModel;
273
+
274
+ /**
275
+ * Gets or sets the last signature url to maintain the persist state.
276
+ *
277
+ * @private
278
+ */
279
+ signatureValue?: string;
280
+
201
281
  /**
202
282
  * Triggers before an image is saved.
203
283
  *
@@ -266,7 +346,7 @@ export interface ImageEditorModel {
266
346
  *
267
347
  * @event fileOpened
268
348
  */
269
- fileOpened?: EmitType<OpenEventArgs>
349
+ fileOpened?: EmitType<FileOpenEventArgs>
270
350
 
271
351
  /**
272
352
  * Triggers once an image is saved.
@@ -296,4 +376,18 @@ export interface ImageEditorModel {
296
376
  */
297
377
  toolbarItemClicked?: EmitType<ClickEventArgs>
298
378
 
379
+ /**
380
+ * Triggers when applying filter to an image.
381
+ *
382
+ * @event imageFiltering
383
+ */
384
+ imageFiltering?: EmitType<ImageFilterEventArgs>;
385
+
386
+ /**
387
+ * Triggers when applying fine tune to an image.
388
+ *
389
+ * @event fineTuneValueChanging
390
+ */
391
+ fineTuneValueChanging?: EmitType<FinetuneEventArgs>
392
+
299
393
  }