@syncfusion/ej2-image-editor 20.3.47

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 (131) hide show
  1. package/.eslintrc.json +244 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +63 -0
  3. package/.github/PULL_REQUEST_TEMPLATE/feature.md +39 -0
  4. package/CHANGELOG.md +18 -0
  5. package/README.md +6 -0
  6. package/dist/ej2-image-editor.umd.min.js +11 -0
  7. package/dist/ej2-image-editor.umd.min.js.map +1 -0
  8. package/dist/es6/ej2-image-editor.es2015.js +7511 -0
  9. package/dist/es6/ej2-image-editor.es2015.js.map +1 -0
  10. package/dist/es6/ej2-image-editor.es5.js +7550 -0
  11. package/dist/es6/ej2-image-editor.es5.js.map +1 -0
  12. package/dist/global/ej2-image-editor.min.js +11 -0
  13. package/dist/global/ej2-image-editor.min.js.map +1 -0
  14. package/dist/global/index.d.ts +14 -0
  15. package/helpers/e2e/imageEditorHelper.d.ts +37 -0
  16. package/helpers/e2e/imageEditorHelper.js +53 -0
  17. package/helpers/e2e/index.d.ts +1 -0
  18. package/helpers/e2e/index.js +8 -0
  19. package/helpers/e2e/querybuilderHelper.d.ts +37 -0
  20. package/image-editor.d.ts +4 -0
  21. package/image-editor.js +4 -0
  22. package/index.d.ts +4 -0
  23. package/index.js +4 -0
  24. package/license +10 -0
  25. package/package.json +74 -0
  26. package/src/global.js +1 -0
  27. package/src/image-editor/image-editor-model.d.ts +206 -0
  28. package/src/image-editor/image-editor.d.ts +961 -0
  29. package/src/image-editor/image-editor.js +7542 -0
  30. package/src/image-editor/index.d.ts +5 -0
  31. package/src/image-editor/index.js +4 -0
  32. package/src/index.d.ts +4 -0
  33. package/src/index.js +4 -0
  34. package/styles/bootstrap-dark.css +283 -0
  35. package/styles/bootstrap-dark.scss +1 -0
  36. package/styles/bootstrap.css +283 -0
  37. package/styles/bootstrap.scss +1 -0
  38. package/styles/bootstrap4.css +279 -0
  39. package/styles/bootstrap4.scss +1 -0
  40. package/styles/bootstrap5-dark.css +301 -0
  41. package/styles/bootstrap5-dark.scss +1 -0
  42. package/styles/bootstrap5.css +301 -0
  43. package/styles/bootstrap5.scss +1 -0
  44. package/styles/fabric-dark.css +283 -0
  45. package/styles/fabric-dark.scss +1 -0
  46. package/styles/fabric.css +283 -0
  47. package/styles/fabric.scss +1 -0
  48. package/styles/fluent-dark.css +290 -0
  49. package/styles/fluent-dark.scss +1 -0
  50. package/styles/fluent.css +290 -0
  51. package/styles/fluent.scss +1 -0
  52. package/styles/highcontrast-light.css +281 -0
  53. package/styles/highcontrast-light.scss +1 -0
  54. package/styles/highcontrast.css +281 -0
  55. package/styles/highcontrast.scss +1 -0
  56. package/styles/image-editor/_all.scss +2 -0
  57. package/styles/image-editor/_bootstrap-dark-definition.scss +10 -0
  58. package/styles/image-editor/_bootstrap-definition.scss +10 -0
  59. package/styles/image-editor/_bootstrap4-definition.scss +10 -0
  60. package/styles/image-editor/_bootstrap5-dark-definition.scss +1 -0
  61. package/styles/image-editor/_bootstrap5-definition.scss +10 -0
  62. package/styles/image-editor/_fabric-dark-definition.scss +10 -0
  63. package/styles/image-editor/_fabric-definition.scss +10 -0
  64. package/styles/image-editor/_fluent-dark-definition.scss +1 -0
  65. package/styles/image-editor/_fluent-definition.scss +10 -0
  66. package/styles/image-editor/_fusionnew-definition.scss +10 -0
  67. package/styles/image-editor/_highcontrast-definition.scss +10 -0
  68. package/styles/image-editor/_highcontrast-light-definition.scss +10 -0
  69. package/styles/image-editor/_layout.scss +204 -0
  70. package/styles/image-editor/_material-dark-definition.scss +10 -0
  71. package/styles/image-editor/_material-definition.scss +10 -0
  72. package/styles/image-editor/_material3-definition.scss +10 -0
  73. package/styles/image-editor/_tailwind-dark-definition.scss +1 -0
  74. package/styles/image-editor/_tailwind-definition.scss +10 -0
  75. package/styles/image-editor/_theme.scss +97 -0
  76. package/styles/image-editor/bootstrap-dark.css +283 -0
  77. package/styles/image-editor/bootstrap-dark.scss +12 -0
  78. package/styles/image-editor/bootstrap.css +283 -0
  79. package/styles/image-editor/bootstrap.scss +12 -0
  80. package/styles/image-editor/bootstrap4.css +279 -0
  81. package/styles/image-editor/bootstrap4.scss +12 -0
  82. package/styles/image-editor/bootstrap5-dark.css +301 -0
  83. package/styles/image-editor/bootstrap5-dark.scss +12 -0
  84. package/styles/image-editor/bootstrap5.css +301 -0
  85. package/styles/image-editor/bootstrap5.scss +12 -0
  86. package/styles/image-editor/fabric-dark.css +283 -0
  87. package/styles/image-editor/fabric-dark.scss +12 -0
  88. package/styles/image-editor/fabric.css +283 -0
  89. package/styles/image-editor/fabric.scss +12 -0
  90. package/styles/image-editor/fluent-dark.css +290 -0
  91. package/styles/image-editor/fluent-dark.scss +12 -0
  92. package/styles/image-editor/fluent.css +290 -0
  93. package/styles/image-editor/fluent.scss +12 -0
  94. package/styles/image-editor/highcontrast-light.css +281 -0
  95. package/styles/image-editor/highcontrast-light.scss +12 -0
  96. package/styles/image-editor/highcontrast.css +281 -0
  97. package/styles/image-editor/highcontrast.scss +12 -0
  98. package/styles/image-editor/icons/_bootstrap-dark.scss +218 -0
  99. package/styles/image-editor/icons/_bootstrap.scss +218 -0
  100. package/styles/image-editor/icons/_bootstrap4.scss +218 -0
  101. package/styles/image-editor/icons/_bootstrap5-dark.scss +1 -0
  102. package/styles/image-editor/icons/_bootstrap5.scss +224 -0
  103. package/styles/image-editor/icons/_fabric-dark.scss +218 -0
  104. package/styles/image-editor/icons/_fabric.scss +218 -0
  105. package/styles/image-editor/icons/_fluent-dark.scss +1 -0
  106. package/styles/image-editor/icons/_fluent.scss +224 -0
  107. package/styles/image-editor/icons/_fusionnew.scss +224 -0
  108. package/styles/image-editor/icons/_highcontrast-light.scss +218 -0
  109. package/styles/image-editor/icons/_highcontrast.scss +218 -0
  110. package/styles/image-editor/icons/_material-dark.scss +218 -0
  111. package/styles/image-editor/icons/_material.scss +218 -0
  112. package/styles/image-editor/icons/_material3.scss +230 -0
  113. package/styles/image-editor/icons/_tailwind-dark.scss +1 -0
  114. package/styles/image-editor/icons/_tailwind.scss +218 -0
  115. package/styles/image-editor/material-dark.css +299 -0
  116. package/styles/image-editor/material-dark.scss +12 -0
  117. package/styles/image-editor/material.css +299 -0
  118. package/styles/image-editor/material.scss +12 -0
  119. package/styles/image-editor/tailwind-dark.css +288 -0
  120. package/styles/image-editor/tailwind-dark.scss +12 -0
  121. package/styles/image-editor/tailwind.css +288 -0
  122. package/styles/image-editor/tailwind.scss +12 -0
  123. package/styles/material-dark.css +299 -0
  124. package/styles/material-dark.scss +1 -0
  125. package/styles/material.css +299 -0
  126. package/styles/material.scss +1 -0
  127. package/styles/tailwind-dark.css +288 -0
  128. package/styles/tailwind-dark.scss +1 -0
  129. package/styles/tailwind.css +288 -0
  130. package/styles/tailwind.scss +1 -0
  131. package/tslint.json +111 -0
@@ -0,0 +1,14 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 20.3.47
4
+ * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
10
+ import * as _imageeditor from '@syncfusion/ej2-image-editor';
11
+
12
+ export declare namespace ej {
13
+ const imageeditor: typeof _imageeditor;
14
+ }
@@ -0,0 +1,37 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ /**
3
+ * E2E test helpers for Image Editor to easily interact and the test the component
4
+ */
5
+ export declare class ImageEditorHelper extends TestHelper {
6
+ id: string;
7
+ wrapperFn: Function;
8
+ /**
9
+ * Initialize the Image Editor E2E helpers
10
+ * @param id Element id of the Image Editor element
11
+ * @param wrapperFn Pass the wrapper function
12
+ * @return Image Editor any
13
+ */
14
+ constructor(id: string, wrapperFn: Function);
15
+ /**
16
+ * Used to get the root element of the Image Editor component.
17
+ * @return Element
18
+ */
19
+ getElement(): any;
20
+ /**
21
+ * The setModel method is used to set values for the property. It will accepts two arguments.
22
+ * @param property - Specifies the name of the property whose value has to be updated.
23
+ * @param value - Specifies the corresponding value to the property.
24
+ */
25
+ setModel(property: any, value: any): any;
26
+ /**
27
+ * The getModel method is used to return value for the property.
28
+ * @param property - Specifies the name of the property.
29
+ */
30
+ getModel(property: any): any;
31
+ /**
32
+ * The invoke method is used to access the public methods available in Image Editor control.
33
+ * @param fName - Specifies the method name of the Image Editor control.
34
+ * @param args - Specifies the arguments. This is optional.
35
+ */
36
+ invoke(fName: any, args?: any): any;
37
+ }
@@ -0,0 +1,53 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var ImageEditorHelper = (function (_super) {
18
+ __extends(ImageEditorHelper, _super);
19
+ function ImageEditorHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
26
+ }
27
+ ImageEditorHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ ImageEditorHelper.prototype.setModel = function (property, value) {
31
+ var cy;
32
+ return cy.get('#' + this.id).then(function (ele) {
33
+ return ele[0].ej2_instances[0][property] = value;
34
+ });
35
+ };
36
+ ImageEditorHelper.prototype.getModel = function (property) {
37
+ var cy;
38
+ return cy.get('#' + this.id).then(function (ele) {
39
+ return ele[0].ej2_instances[0][property];
40
+ });
41
+ };
42
+ ImageEditorHelper.prototype.invoke = function (fName, args) {
43
+ if (args === void 0) { args = []; }
44
+ var cy;
45
+ return cy.get('#' + this.id).then(function (ele) {
46
+ var inst = ele[0].ej2_instances[0];
47
+ return inst[fName].apply(inst, args);
48
+ });
49
+ };
50
+ return ImageEditorHelper;
51
+ }(e2e_1.TestHelper));
52
+ exports.ImageEditorHelper = ImageEditorHelper;
53
+ });
@@ -0,0 +1 @@
1
+ export * from './imageEditorHelper';
@@ -0,0 +1,8 @@
1
+ define(["require", "exports", "./imageEditorHelper"], function (require, exports, imageEditorHelper_1) {
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ __export(imageEditorHelper_1);
8
+ });
@@ -0,0 +1,37 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ /**
3
+ * E2E test helpers for QueryBuilder to easily interact and the test the component
4
+ */
5
+ export declare class QueryBuilderHelper extends TestHelper {
6
+ id: string;
7
+ wrapperFn: Function;
8
+ /**
9
+ * Initialize the Querybuilder E2E helpers
10
+ * @param id Element id of the Querybuilder element
11
+ * @param wrapperFn Pass the wrapper function
12
+ * @return Querybuilder any
13
+ */
14
+ constructor(id: string, wrapperFn: Function);
15
+ /**
16
+ * Used to get the root element of the Querybuilder component.
17
+ * @return Element
18
+ */
19
+ getElement(): any;
20
+ /**
21
+ * The setModel method is used to set values for the property. It will accepts two arguments.
22
+ * @param property - Specifies the name of the property whose value has to be updated.
23
+ * @param value - Specifies the corresponding value to the property.
24
+ */
25
+ setModel(property: any, value: any): any;
26
+ /**
27
+ * The getModel method is used to return value for the property.
28
+ * @param property - Specifies the name of the property.
29
+ */
30
+ getModel(property: any): any;
31
+ /**
32
+ * The invoke method is used to access the public methods available in Querybuilder control.
33
+ * @param fName - Specifies the method name of the Querybuilder control.
34
+ * @param args - Specifies the arguments. This is optional.
35
+ */
36
+ invoke(fName: any, args?: any): any;
37
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * image-editor
3
+ */
4
+ export * from './src/image-editor/index';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * image-editor
3
+ */
4
+ export * from './src/image-editor/index';
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * index
3
+ */
4
+ export * from './src/index';
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * index
3
+ */
4
+ export * from './src/index';
package/license ADDED
@@ -0,0 +1,10 @@
1
+ Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
+
3
+ To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
+
5
+ Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
+
7
+ Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
+
9
+ The Syncfusion license that contains the terms and conditions can be found at
10
+ https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "_from": "@syncfusion/ej2-image-editor@*",
3
+ "_id": "@syncfusion/ej2-image-editor@20.2.52",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-XXA7tsh8G5fSVsWD0gq2hx3oqzU/y+RmufrctYIqDbPBxjoeOnMkH2N8cSp27i/lp1LOhjtMPB8uWqQsBIeNdA==",
6
+ "_location": "/@syncfusion/ej2-image-editor",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-image-editor@*",
12
+ "name": "@syncfusion/ej2-image-editor",
13
+ "escapedName": "@syncfusion%2fej2-image-editor",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-image-editor",
23
+ "/@syncfusion/ej2-react-image-editor",
24
+ "/@syncfusion/ej2-vue-image-editor"
25
+ ],
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.2.52.tgz",
27
+ "_shasum": "bc48db2256ebc59e271c1506bea6f38c63c2870d",
28
+ "_spec": "@syncfusion/ej2-image-editor@*",
29
+ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
+ "author": {
31
+ "name": "Syncfusion Inc."
32
+ },
33
+ "bundleDependencies": false,
34
+ "dependencies": {
35
+ "@syncfusion/ej2-base": "~20.3.47",
36
+ "@syncfusion/ej2-buttons": "~20.3.47",
37
+ "@syncfusion/ej2-inputs": "~20.3.47",
38
+ "@syncfusion/ej2-navigations": "~20.3.47",
39
+ "@syncfusion/ej2-popups": "~20.3.47",
40
+ "@syncfusion/ej2-splitbuttons": "~20.3.47"
41
+ },
42
+ "deprecated": false,
43
+ "description": "Essential JS 2 ImageEditor",
44
+ "devDependencies": {},
45
+ "es2015": "./dist/es6/ej2-image-editor.es5.js",
46
+ "keywords": [
47
+ "ej2",
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
+ "image editor",
59
+ "javascript imageeditor",
60
+ "typescript imageeditor",
61
+ "imageeditor"
62
+ ],
63
+ "license": "SEE LICENSE IN license",
64
+ "main": "./dist/ej2-image-editor.umd.min.js",
65
+ "module": "./index.js",
66
+ "name": "@syncfusion/ej2-image-editor",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
70
+ },
71
+ "typings": "index.d.ts",
72
+ "version": "20.3.47",
73
+ "sideEffects": false
74
+ }
package/src/global.js ADDED
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1,206 @@
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";
3
+
4
+ /**
5
+ * Interface for a class ImageEditor
6
+ */
7
+ export interface ImageEditorModel {
8
+
9
+ /**
10
+ * Defines class/multiple classes separated by a space for customizing Image Editor UI.
11
+ * default ''
12
+ ```html
13
+ * <div id='imageeditor'></div>
14
+ * ```
15
+ * ```typescript
16
+ * <script>
17
+ * var imageObj = new ImageEditor({cssClass: 'e-custom-img-editor'});
18
+ * imageObj.appendTo("#imageeditor");
19
+ * </script>
20
+ * ```
21
+ */
22
+ cssClass?: string;
23
+
24
+ /**
25
+ * Specifies whether the Image Editor is disabled.
26
+ * default false
27
+ */
28
+ disabled?: boolean;
29
+
30
+ /**
31
+ * Specifies the height of the Image Editor.
32
+ * default '100%'
33
+ */
34
+ height?: string;
35
+
36
+ /**
37
+ * Specifies the theme of the Image Editor. The shape selection appearance will be decided based on this property.
38
+ * The property supports all the built-in themes of Syncfusion.
39
+ * default 'Bootstrap5'
40
+ * @isenumeration true
41
+ * @default Theme.Bootstrap5
42
+ * @asptype Theme
43
+ *
44
+ */
45
+ theme?: string | Theme;
46
+
47
+ /**
48
+ * Specifies the toolbar items to perform UI interactions. It accepts both string[] and ItemModel[] to configure its toolbar items.
49
+ * If the property is defined as empty collection, the toolbar will not be rendered.
50
+ * Suppose the property is not defined in control, an image editor’s toolbar will be rendered with preconfigured toolbar commands.
51
+ * 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
63
+ ```html
64
+ * <div id='imageeditor'></div>
65
+ * ```
66
+ * ```typescript
67
+ * <script>
68
+ * var imageObj = new ImageEditor({
69
+ * toolbar[Crop, ZoomIn, ZoomOut, Transform, {text: 'Custom'}]
70
+ * });
71
+ * imageObj.appendTo("#imageeditor");
72
+ * </script>
73
+ * ```
74
+ */
75
+ toolbar?: (string | ImageEditorCommands | ItemModel)[];
76
+
77
+ /**
78
+ * Specifies template to the Image Editor Toolbar.
79
+ * If you want to customize the entire toolbar in own way by using this property.
80
+ * The property is depending on ‘toolbar’.
81
+ *
82
+ * @default null
83
+ ```html
84
+ * <div id='imageeditor'></div>
85
+ * ```
86
+ * ```typescript
87
+ * <script>
88
+ * var imageObj = new ImageEditor({
89
+ * toolbarTemplate: '#toolbarTemplate'
90
+ * });
91
+ * imageObj.appendTo("#imageeditor");
92
+ * </script>
93
+ * <script id="toolbarTemplate" type="text/x-template">
94
+ * <div class = 'e-toolbar'>
95
+ * <button id= 'dltbtn'></button>
96
+ * </div>
97
+ * </script>
98
+ * ```
99
+ */
100
+ toolbarTemplate?: string;
101
+
102
+ /**
103
+ * Specifies the width of the Image Editor.
104
+ * default 100%
105
+ */
106
+ width?: string;
107
+
108
+ /**
109
+ * Triggers before an image is saved.
110
+ *
111
+ * @event beforeSave
112
+ */
113
+ beforeSave?: EmitType<BeforeSaveEventArgs>;
114
+
115
+ /**
116
+ * Triggers once the component rendering is completed.
117
+ *
118
+ * @event created
119
+ */
120
+ created?: EmitType<Event>
121
+
122
+ /**
123
+ * Triggers once the component is destroyed with its elements and bound events.
124
+ *
125
+ * @event destroyed
126
+ */
127
+ destroyed?: EmitType<Event>
128
+
129
+ /**
130
+ * Triggers while zooming an image.
131
+ *
132
+ * @event zooming
133
+ */
134
+ zooming?: EmitType<ZoomEventArgs>
135
+
136
+ /**
137
+ * Triggers while panning an image.
138
+ *
139
+ * @event panning
140
+ */
141
+ panning?: EmitType<PanEventArgs>
142
+
143
+ /**
144
+ * Triggers while cropping an image.
145
+ *
146
+ * @event cropping
147
+ */
148
+ cropping?: EmitType<CropEventArgs>
149
+
150
+ /**
151
+ * Triggers while rotating an image.
152
+ *
153
+ * @event rotating
154
+ */
155
+ rotating?: EmitType<RotateEventArgs>
156
+
157
+ /**
158
+ * Triggers while flipping an image.
159
+ *
160
+ * @event flipping
161
+ */
162
+ flipping?: EmitType<FlipEventArgs>
163
+
164
+ /**
165
+ * Triggers while changing shapes in an image.
166
+ *
167
+ * @event shapeChanging
168
+ */
169
+ shapeChanging?: EmitType<ShapeChangeEventArgs>
170
+
171
+ /**
172
+ * Triggers once an image is opened.
173
+ *
174
+ * @event fileOpened
175
+ */
176
+ fileOpened?: EmitType<OpenEventArgs>
177
+
178
+ /**
179
+ * Triggers once an image is saved.
180
+ *
181
+ * @event saved
182
+ */
183
+ saved?: EmitType<SaveEventArgs>;
184
+
185
+ /**
186
+ * Triggers once the toolbar is created.
187
+ *
188
+ * @event toolbarCreated
189
+ */
190
+ toolbarCreated?: EmitType<ToolbarEventArgs>
191
+
192
+ /**
193
+ * Triggers while updating/refreshing the toolbar
194
+ *
195
+ * @event toolbarUpdating
196
+ */
197
+ toolbarUpdating?: EmitType<ToolbarEventArgs>
198
+
199
+ /**
200
+ * Triggers once the toolbar item is clicked.
201
+ *
202
+ * @event toolbarItemClicked
203
+ */
204
+ toolbarItemClicked?: EmitType<ClickEventArgs>
205
+
206
+ }