@syncfusion/ej2-image-editor 20.3.48 → 20.3.56

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.48
3
+ * version : 20.3.56
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.47",
3
+ "_id": "@syncfusion/ej2-image-editor@20.3.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Q62yo/sQO5+omyPnSjFaUTf9jOEPjzBURoZEtIr2TZKIgSumJhofZcN80i/Lq8cJOGAQixaIANZIcZV2tn2Wng==",
5
+ "_integrity": "sha512-GC3GXiioSuat7lNj1+alap+EKHpfZE82vt3zXFUkkLapiv6l0ANzbwAnyDgb26HhgtTw1eRSISKw3WFy2gJxXw==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.3.47.tgz",
27
- "_shasum": "92f90ea59cb20e1aa045767d9da0ff40b10f584f",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-20.3.50.tgz",
27
+ "_shasum": "d3a275b9552ab924a714250cea4033a379403075",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
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.3.48",
36
- "@syncfusion/ej2-buttons": "~20.3.48",
37
- "@syncfusion/ej2-inputs": "~20.3.47",
38
- "@syncfusion/ej2-navigations": "~20.3.48",
39
- "@syncfusion/ej2-popups": "~20.3.48",
40
- "@syncfusion/ej2-splitbuttons": "~20.3.47"
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"
41
41
  },
42
42
  "deprecated": false,
43
43
  "description": "Essential JS 2 ImageEditor",
@@ -69,6 +69,6 @@
69
69
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
70
70
  },
71
71
  "typings": "index.d.ts",
72
- "version": "20.3.48",
72
+ "version": "20.3.56",
73
73
  "sideEffects": false
74
74
  }
@@ -1,4 +1,4 @@
1
- import { NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
1
+ import { NotifyPropertyChanges, INotifyPropertyChanged, Property, addClass, removeClass, extend } from '@syncfusion/ej2-base';
2
2
  import {Theme,ImageEditorCommands,SaveEventArgs,BeforeSaveEventArgs,ZoomEventArgs,PanEventArgs,CropEventArgs,RotateEventArgs,FlipEventArgs,ShapeChangeEventArgs,ToolbarEventArgs} from "./image-editor";
3
3
 
4
4
  /**
@@ -105,6 +105,99 @@ export interface ImageEditorModel {
105
105
  */
106
106
  width?: string;
107
107
 
108
+ /**
109
+ * Gets or sets the background color of the component.
110
+ * The background color of the component that accepts hex value, rgb and text (like 'red'). The default value is ''.
111
+ *
112
+ * @default ''
113
+ * @private
114
+ */
115
+ backgroundColor?: string;
116
+
117
+ /**
118
+ * Gets or sets the background image for the component.
119
+ * An image that used to fill the background of the component. The default value is ''.
120
+ *
121
+ * @default ''
122
+ * @private
123
+ */
124
+ backgroundImage?: string;
125
+
126
+ /**
127
+ * Gets or sets whether to prevent the interaction in signature component.
128
+ * True, if the signature component is read only state where the user interaction is prevented. The default value is false.
129
+ *
130
+ * @default false
131
+ * @private
132
+ */
133
+ isReadOnly?: boolean;
134
+
135
+ /**
136
+ * Gets or sets whether to save the signature along with Background Color and background Image while saving.
137
+ * True, if signature component to save with background. The default value is true.
138
+ *
139
+ * @default true
140
+ * @private
141
+ */
142
+ saveWithBackground?: boolean;
143
+
144
+ /**
145
+ * Gets or sets the stroke color of the signature.
146
+ * The color of the signature stroke that accepts hex value, rgb and text (like 'red'). The default value is "#000000".
147
+ *
148
+ * @default '#000000'
149
+ * @private
150
+ */
151
+ strokeColor?: string;
152
+
153
+ /**
154
+ * Gets or sets the minimum stroke width for signature.
155
+ * The signature component calculates stroke width based on Velocity, MinStrokeWidth and MaxStrokeWidth.
156
+ * The minimum width of stroke. The default value is 0.5.
157
+ *
158
+ * @default 0.5
159
+ * @private
160
+ */
161
+ minStrokeWidth?: number;
162
+
163
+ /**
164
+ * Gets or sets the maximum stroke width for signature.
165
+ * The signature component calculates stroke width based on Velocity, MinStrokeWidth and MaxStrokeWidth.
166
+ * The maximum width of stroke. The default value is 2.0.
167
+ *
168
+ * @default 2
169
+ * @private
170
+ */
171
+ maxStrokeWidth?: number;
172
+
173
+ /**
174
+ * Gets or sets the velocity to calculate the stroke thickness based on the pressure of the contact on the digitizer surface.
175
+ * The Signature component calculates stroke thickness based on Velocity, MinStrokeWidth and MaxStrokeWidth.
176
+ * The default value is 0.7.
177
+ *
178
+ * @default 0.7
179
+ * @private
180
+ */
181
+ velocity?: number;
182
+
183
+ /**
184
+ * Specifies the Signature in RTL mode that displays the content in the right-to-left direction.
185
+ *
186
+ * @default false
187
+ * @private
188
+ */
189
+ enableRtl?: boolean;
190
+
191
+ /**
192
+ * Gets or sets whether to persist component's state between page reloads.
193
+ * True, if the component's state persistence is enabled. The default value is false.
194
+ * Component's property will be stored in browser local storage to persist component's state when page reloads.
195
+ *
196
+ * @default false
197
+ * @private
198
+ */
199
+ enablePersistence?: boolean;
200
+
108
201
  /**
109
202
  * Triggers before an image is saved.
110
203
  *
@@ -183,6 +183,95 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
183
183
  * default 100%
184
184
  */
185
185
  width: string;
186
+ /**
187
+ * Gets or sets the background color of the component.
188
+ * The background color of the component that accepts hex value, rgb and text (like 'red'). The default value is ''.
189
+ *
190
+ * @default ''
191
+ * @private
192
+ */
193
+ backgroundColor: string;
194
+ /**
195
+ * Gets or sets the background image for the component.
196
+ * An image that used to fill the background of the component. The default value is ''.
197
+ *
198
+ * @default ''
199
+ * @private
200
+ */
201
+ backgroundImage: string;
202
+ /**
203
+ * Gets or sets whether to prevent the interaction in signature component.
204
+ * True, if the signature component is read only state where the user interaction is prevented. The default value is false.
205
+ *
206
+ * @default false
207
+ * @private
208
+ */
209
+ isReadOnly: boolean;
210
+ /**
211
+ * Gets or sets whether to save the signature along with Background Color and background Image while saving.
212
+ * True, if signature component to save with background. The default value is true.
213
+ *
214
+ * @default true
215
+ * @private
216
+ */
217
+ saveWithBackground: boolean;
218
+ /**
219
+ * Gets or sets the stroke color of the signature.
220
+ * The color of the signature stroke that accepts hex value, rgb and text (like 'red'). The default value is "#000000".
221
+ *
222
+ * @default '#000000'
223
+ * @private
224
+ */
225
+ strokeColor: string;
226
+ /**
227
+ * Gets or sets the minimum stroke width for signature.
228
+ * The signature component calculates stroke width based on Velocity, MinStrokeWidth and MaxStrokeWidth.
229
+ * The minimum width of stroke. The default value is 0.5.
230
+ *
231
+ * @default 0.5
232
+ * @private
233
+ */
234
+ minStrokeWidth: number;
235
+ /**
236
+ * Gets or sets the maximum stroke width for signature.
237
+ * The signature component calculates stroke width based on Velocity, MinStrokeWidth and MaxStrokeWidth.
238
+ * The maximum width of stroke. The default value is 2.0.
239
+ *
240
+ * @default 2
241
+ * @private
242
+ */
243
+ maxStrokeWidth: number;
244
+ /**
245
+ * Gets or sets the velocity to calculate the stroke thickness based on the pressure of the contact on the digitizer surface.
246
+ * The Signature component calculates stroke thickness based on Velocity, MinStrokeWidth and MaxStrokeWidth.
247
+ * The default value is 0.7.
248
+ *
249
+ * @default 0.7
250
+ * @private
251
+ */
252
+ velocity: number;
253
+ /**
254
+ * Specifies the Signature in RTL mode that displays the content in the right-to-left direction.
255
+ *
256
+ * @default false
257
+ * @private
258
+ */
259
+ enableRtl: boolean;
260
+ /**
261
+ * Gets or sets whether to persist component's state between page reloads.
262
+ * True, if the component's state persistence is enabled. The default value is false.
263
+ * Component's property will be stored in browser local storage to persist component's state when page reloads.
264
+ *
265
+ * @default false
266
+ * @private
267
+ */
268
+ enablePersistence: boolean;
269
+ /**
270
+ * Gets or sets the last signature url to maintain the persist state.
271
+ *
272
+ * @private
273
+ */
274
+ signatureValue: string;
186
275
  /**
187
276
  * Triggers before an image is saved.
188
277
  *
@@ -325,6 +414,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
325
414
  * @returns {void}.
326
415
  */
327
416
  private unwireEvent;
417
+ private destroySubComponents;
328
418
  private updateTheme;
329
419
  private toPascalCase;
330
420
  private createCanvas;
@@ -474,6 +564,7 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
474
564
  private drawPen;
475
565
  private getObjDetails;
476
566
  private isPointsInRange;
567
+ private rotateMultiple;
477
568
  /**
478
569
  * Clear a current selection.
479
570
  *
@@ -562,9 +653,18 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
562
653
  *
563
654
  * @param {boolean} value - Specifies a value whether enable or disable freehand drawing.
564
655
  *
565
- * @returns {void}.
656
+ * @returns {void}.
657
+ * @private
566
658
  */
567
659
  freeHandDraw(value: boolean): void;
660
+ /**
661
+ * Enable or disable a freehand drawing in an Image Editor.
662
+ *
663
+ * @param {boolean} value - Specifies a value whether enable or disable freehand drawing.
664
+ *
665
+ * @returns {void}.
666
+ */
667
+ freehandDraw(value: boolean): void;
568
668
  /**
569
669
  * Enable or disable a panning on the Image Editor.
570
670
  *
@@ -733,6 +833,101 @@ export declare class ImageEditor extends SignatureBase implements INotifyPropert
733
833
  * @returns {void}.
734
834
  */
735
835
  update(): void;
836
+ /**
837
+ * To check whether the undo collection is empty or not.
838
+ *
839
+ * @returns {boolean}.
840
+ * @private
841
+ */
842
+ canUndo(): boolean;
843
+ /**
844
+ * To check whether the redo collection is empty or not.
845
+ *
846
+ * @returns {boolean}.
847
+ * @private
848
+ */
849
+ canRedo(): boolean;
850
+ /**
851
+ * Erases all the signature strokes signed by user.
852
+ *
853
+ * @returns {void}.
854
+ * @private
855
+ */
856
+ clear(): void;
857
+ /**
858
+ * To draw the signature based on the given text, with the font family and font size.
859
+ *
860
+ * @param {string} text - specify text to be drawn as signature.
861
+ * @param {string} fontFamily - specify font family of a signature.
862
+ * @param {number} fontSize - specify font size of a signature.
863
+ *
864
+ * @returns {void}.
865
+ * @private
866
+ */
867
+ draw(text: string, fontFamily?: string, fontSize?: number): void;
868
+ /**
869
+ * To get the signature as Blob.
870
+ *
871
+ * @param {string} url - specify the url/base 64 string to get blob of the signature.
872
+ * @returns {Blob}.
873
+ * @private
874
+ */
875
+ getBlob(url: string): Blob;
876
+ /**
877
+ * To check whether the signature is empty or not.
878
+ *
879
+ * @returns {boolean}.
880
+ * @private
881
+ */
882
+ isEmpty(): boolean;
883
+ /**
884
+ * To load the signature with the given base 64 string, height and width.
885
+ *
886
+ * @param {string} signature - specify the url/base 64 string to be drawn as signature.
887
+ * @param {number} width - specify the width of the loaded signature image.
888
+ * @param {number} height - specify the height of the loaded signature image.
889
+ * @returns {void}.
890
+ * @private
891
+ */
892
+ load(signature: string, width?: number, height?: number): void;
893
+ /**
894
+ * Undo the last user action.
895
+ *
896
+ * @returns {void}.
897
+ * @private
898
+ */
899
+ undo(): void;
900
+ /**
901
+ * Redo the last user action.
902
+ *
903
+ * @returns {void}.
904
+ * @private
905
+ */
906
+ redo(): void;
907
+ /**
908
+ * To save the signature with the given file type and file name.
909
+ *
910
+ * @param {SignatureFileType} type - specify type of the file to be saved a signature.
911
+ * @param {string} fileName - specify name of the file to be saved a signature.
912
+ *
913
+ * @returns {void}.
914
+ * @private
915
+ */
916
+ save(type?: FileType, fileName?: string): void;
917
+ /**
918
+ * To save the signature as Blob.
919
+ *
920
+ * @returns {Blob}.
921
+ * @private
922
+ */
923
+ saveAsBlob(): Blob;
924
+ /**
925
+ * Returns the persistence data for component.
926
+ *
927
+ * @returns any.
928
+ * @private
929
+ */
930
+ getLocalData(): any;
736
931
  }
737
932
  /**
738
933
  * Defines the Image Editor file type.