@syncfusion/ej2-image-editor 23.1.38 → 23.1.39

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 : 23.1.38
3
+ * version : 23.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@23.1.36",
3
+ "_id": "@syncfusion/ej2-image-editor@23.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-A6bph2XTzzn8GAjli/kAtAz4JPSrDYTzAQF6UOa0I+RqOKB3/w2/7CBmLNKlQVFd3I5nyY45z1M26X0ua0+48w==",
5
+ "_integrity": "sha512-uuXxNE5Haq0i5Nm7+59rT9+cSlFOZVkbVfRZaWoO8d3ZmCowMTc9JKJys+M7QS2VOfAl01wmwFkl0baHvKUoOA==",
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-23.1.36.tgz",
27
- "_shasum": "b13260748329c7b0412240bdd9714f2bbeb97281",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-23.1.38.tgz",
27
+ "_shasum": "9797d280c96410779d9338fe418f75e4ca993819",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
30
30
  "author": {
@@ -33,9 +33,9 @@
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~23.1.38",
36
- "@syncfusion/ej2-buttons": "~23.1.36",
36
+ "@syncfusion/ej2-buttons": "~23.1.39",
37
37
  "@syncfusion/ej2-inputs": "~23.1.38",
38
- "@syncfusion/ej2-navigations": "~23.1.36",
38
+ "@syncfusion/ej2-navigations": "~23.1.39",
39
39
  "@syncfusion/ej2-popups": "~23.1.38",
40
40
  "@syncfusion/ej2-splitbuttons": "~23.1.36"
41
41
  },
@@ -67,7 +67,7 @@
67
67
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
68
68
  },
69
69
  "typings": "index.d.ts",
70
- "version": "23.1.38",
70
+ "version": "23.1.39",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -3434,7 +3434,11 @@ var Draw = /** @class */ (function () {
3434
3434
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3435
3435
  filesData = fileData = args.filesData[0].rawFile;
3436
3436
  }
3437
- var fileExtension = fileData.name && fileData.name.split('.')[1].toLowerCase();
3437
+ var fileExtension = void 0;
3438
+ if (fileData.name) {
3439
+ var fileExtensionArray = fileData.name.split('.');
3440
+ fileExtension = fileExtensionArray[fileExtensionArray.length - 1].toLowerCase();
3441
+ }
3438
3442
  if (fileExtension && ['jpg', 'jpeg', 'png', 'svg'].indexOf(fileExtension) === -1) {
3439
3443
  this.errorLoading();
3440
3444
  return;
@@ -253,7 +253,7 @@ var FreehandDrawing = /** @class */ (function () {
253
253
  EventHandler.add(canvas, 'mousemove touchmove', this.freehandMoveHandler, this);
254
254
  var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
255
255
  startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
256
- strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
256
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.penStrokeWidth,
257
257
  points: null };
258
258
  var shapeChangingArgs = { action: 'draw-start', previousShapeSettings: shapeSettings,
259
259
  currentShapeSettings: shapeSettings };
@@ -310,7 +310,7 @@ var FreehandDrawing = /** @class */ (function () {
310
310
  currentText: null, previousFilter: null, isCircleCrop: null } });
311
311
  var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
312
312
  startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
313
- strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
313
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.penStrokeWidth,
314
314
  points: this.parent.pointColl[this.currFHDIdx].points };
315
315
  var shapeChangingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings,
316
316
  currentShapeSettings: shapeSettings };
@@ -331,6 +331,7 @@ var FreehandDrawing = /** @class */ (function () {
331
331
  y = e.touches[0].clientY - rect.top;
332
332
  }
333
333
  if (this.isFreehandDrawing) {
334
+ this.upperContext.fillStyle = this.parent.activeObj.strokeSettings.strokeColor;
334
335
  this.processPoint(x, y, false, this.upperContext);
335
336
  }
336
337
  };
@@ -1068,7 +1069,7 @@ var FreehandDrawing = /** @class */ (function () {
1068
1069
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1069
1070
  parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
1070
1071
  parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
1071
- parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
1072
+ _this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
1072
1073
  if (_this.fhdSelID) {
1073
1074
  parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
1074
1075
  parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
@@ -1084,7 +1085,7 @@ var FreehandDrawing = /** @class */ (function () {
1084
1085
  else {
1085
1086
  parent.trigger('shapeChanging', shapeChangingArgs);
1086
1087
  parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
1087
- parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
1088
+ this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
1088
1089
  if (this.fhdSelID) {
1089
1090
  parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
1090
1091
  parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
@@ -122,7 +122,34 @@ export declare enum ImageEditorCommand {
122
122
  RotateLeft = "RotateLeft",
123
123
  RotateRight = "RotateRight",
124
124
  FlipHorizontal = "FlipHorizontal",
125
- FlipVertical = "FlipVertical"
125
+ FlipVertical = "FlipVertical",
126
+ Undo = "Undo",
127
+ Redo = "Redo",
128
+ None = "None",
129
+ Mat = "Mat",
130
+ Bevel = "Bevel",
131
+ Inset = "Inset",
132
+ Hook = "Hook",
133
+ Finetune = "Finetune",
134
+ Filter = "Filter",
135
+ Frame = "Frame",
136
+ Resize = "Resize",
137
+ HorizontalFlip = "HorizontalFlip",
138
+ VerticalFlip = "VerticalFlip",
139
+ Brightness = "Brightness",
140
+ Contrast = "Contrast",
141
+ Hue = "Hue",
142
+ Saturation = "Saturation",
143
+ Opacity = "Opacity",
144
+ Blur = "Blur",
145
+ Exposure = "Exposure",
146
+ Default = "Default",
147
+ Chrome = "Chrome",
148
+ Cold = "Cold",
149
+ Warm = "Warm",
150
+ Grayscale = "Grayscale",
151
+ Sepia = "Sepia",
152
+ Invert = "Invert"
126
153
  }
127
154
  /**
128
155
  * An enumeration of available image filter options.
@@ -129,6 +129,33 @@ export var ImageEditorCommand;
129
129
  ImageEditorCommand["RotateRight"] = "RotateRight";
130
130
  ImageEditorCommand["FlipHorizontal"] = "FlipHorizontal";
131
131
  ImageEditorCommand["FlipVertical"] = "FlipVertical";
132
+ ImageEditorCommand["Undo"] = "Undo";
133
+ ImageEditorCommand["Redo"] = "Redo";
134
+ ImageEditorCommand["None"] = "None";
135
+ ImageEditorCommand["Mat"] = "Mat";
136
+ ImageEditorCommand["Bevel"] = "Bevel";
137
+ ImageEditorCommand["Inset"] = "Inset";
138
+ ImageEditorCommand["Hook"] = "Hook";
139
+ ImageEditorCommand["Finetune"] = "Finetune";
140
+ ImageEditorCommand["Filter"] = "Filter";
141
+ ImageEditorCommand["Frame"] = "Frame";
142
+ ImageEditorCommand["Resize"] = "Resize";
143
+ ImageEditorCommand["HorizontalFlip"] = "HorizontalFlip";
144
+ ImageEditorCommand["VerticalFlip"] = "VerticalFlip";
145
+ ImageEditorCommand["Brightness"] = "Brightness";
146
+ ImageEditorCommand["Contrast"] = "Contrast";
147
+ ImageEditorCommand["Hue"] = "Hue";
148
+ ImageEditorCommand["Saturation"] = "Saturation";
149
+ ImageEditorCommand["Opacity"] = "Opacity";
150
+ ImageEditorCommand["Blur"] = "Blur";
151
+ ImageEditorCommand["Exposure"] = "Exposure";
152
+ ImageEditorCommand["Default"] = "Default";
153
+ ImageEditorCommand["Chrome"] = "Chrome";
154
+ ImageEditorCommand["Cold"] = "Cold";
155
+ ImageEditorCommand["Warm"] = "Warm";
156
+ ImageEditorCommand["Grayscale"] = "Grayscale";
157
+ ImageEditorCommand["Sepia"] = "Sepia";
158
+ ImageEditorCommand["Invert"] = "Invert";
132
159
  })(ImageEditorCommand || (ImageEditorCommand = {}));
133
160
  /**
134
161
  * An enumeration of available image filter options.