@syncfusion/ej2-image-editor 24.1.45 → 24.1.46

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 : 24.1.45
3
+ * version : 24.1.46
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@24.1.44",
3
+ "_id": "@syncfusion/ej2-image-editor@24.1.45",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-W2VCeuMZRU4WP2BwfpPHF6O6Z0Bff5uCM4U0jWrezd8DQPM4EhOv0EtmzH7eeBnxQNccdBhNXH9H0nB/Txf1Jw==",
5
+ "_integrity": "sha512-L6K4uBYzGVCFUOgvEBYTgJFZXd2YDqvFlb+hy0geiD7n9JJ2i0FRE2XOzIT0MLBYc6RTuprudJGQgyu0kaKViw==",
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-24.1.44.tgz",
27
- "_shasum": "657a8d93d69ff858081ecc60981be7987f93ec89",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-24.1.45.tgz",
27
+ "_shasum": "4e8eb2b7fb3f41116f67093c42aedf64ad3e2ad4",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
30
30
  "author": {
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~24.1.42",
36
- "@syncfusion/ej2-buttons": "~24.1.45",
35
+ "@syncfusion/ej2-base": "~24.1.46",
36
+ "@syncfusion/ej2-buttons": "~24.1.46",
37
37
  "@syncfusion/ej2-inputs": "~24.1.45",
38
- "@syncfusion/ej2-navigations": "~24.1.41",
39
- "@syncfusion/ej2-popups": "~24.1.44",
40
- "@syncfusion/ej2-splitbuttons": "~24.1.45"
38
+ "@syncfusion/ej2-navigations": "~24.1.46",
39
+ "@syncfusion/ej2-popups": "~24.1.46",
40
+ "@syncfusion/ej2-splitbuttons": "~24.1.46"
41
41
  },
42
42
  "deprecated": false,
43
43
  "description": "Essential JS 2 ImageEditor",
@@ -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": "24.1.45",
70
+ "version": "24.1.46",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -4153,8 +4153,8 @@ var Selection = /** @class */ (function () {
4153
4153
  actPoint.height = height;
4154
4154
  actPoint.startX = (this.dragPoint.startX = (originalWidth - width) / 2) + arcRadius;
4155
4155
  actPoint.startY = (this.dragPoint.startY = (originalHeight - height) / 2) + arcRadius;
4156
- actPoint.endX = ((originalWidth - width) / 2 + width) - arcRadius;
4157
- actPoint.endY = ((originalHeight - height) / 2 + height) - arcRadius;
4156
+ actPoint.endX = actPoint.startX + actPoint.width;
4157
+ actPoint.endY = actPoint.startY + actPoint.height;
4158
4158
  if (actPoint.startX < destLeft && destLeft + destWidth > parent.lowerCanvas.clientWidth) {
4159
4159
  actPoint.startX = destLeft;
4160
4160
  actPoint.endX = actPoint.startX + width - arcRadius;
@@ -4639,7 +4639,9 @@ var Selection = /** @class */ (function () {
4639
4639
  }
4640
4640
  if (!isInside) {
4641
4641
  if (isNullOrUndefined(parent.activeObj.currIndex)) {
4642
- parent.activeObj.currIndex = 'shape_' + (parent.objColl.length + 1);
4642
+ var shapeIDObj = { id: 'shape_' + (parent.objColl.length + 1) };
4643
+ parent.notify('shape', { prop: 'getNewShapeId', onPropertyChange: false, value: { obj: shapeIDObj } });
4644
+ parent.activeObj.currIndex = shapeIDObj['id'];
4643
4645
  }
4644
4646
  parent.notify('shape', { prop: 'updImgRatioForActObj', onPropertyChange: false });
4645
4647
  if (parent.activeObj.horTopLine !== undefined && parent.activeObj.horTopLine.startX !== 0 && parent.activeObj.horTopLine.endX
@@ -89,6 +89,7 @@ export declare class Shape {
89
89
  private clearActObj;
90
90
  private refreshActiveObj;
91
91
  private applyActObj;
92
+ private getNewShapeId;
92
93
  private alignTextAreaIntoCanvas;
93
94
  private transformTextArea;
94
95
  private getTextAreaWidth;
@@ -249,6 +249,9 @@ var Shape = /** @class */ (function () {
249
249
  case 'setFlipState':
250
250
  this.setFlipState(args.value['x'], args.value['y'], args.value['obj'], args.value['object']);
251
251
  break;
252
+ case 'getNewShapeId':
253
+ args.value['obj']['id'] = this.getNewShapeId();
254
+ break;
252
255
  }
253
256
  };
254
257
  Shape.prototype.getModuleName = function () {
@@ -639,6 +642,7 @@ var Shape = /** @class */ (function () {
639
642
  parent.notify('selection', { prop: 'isShapeInserted', onPropertyChange: false, value: { bool: true } });
640
643
  if (isBlazor()) {
641
644
  parent.updateToolbar(parent.element, 'text');
645
+ parent.getFontSizes();
642
646
  }
643
647
  else {
644
648
  parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
@@ -2708,7 +2712,7 @@ var Shape = /** @class */ (function () {
2708
2712
  }
2709
2713
  if (!isActObj) {
2710
2714
  if (isNullOrUndefined(parent.activeObj.currIndex)) {
2711
- parent.activeObj.currIndex = 'shape_' + (parent.objColl.length + 1);
2715
+ parent.activeObj.currIndex = this.getNewShapeId();
2712
2716
  }
2713
2717
  this.updImgRatioForActObj();
2714
2718
  var splitWords_1 = parent.activeObj.currIndex.split('_');
@@ -2744,6 +2748,17 @@ var Shape = /** @class */ (function () {
2744
2748
  }
2745
2749
  }
2746
2750
  };
2751
+ Shape.prototype.getNewShapeId = function () {
2752
+ var parent = this.parent;
2753
+ var value = parent.objColl.length + 1;
2754
+ for (var i = 0; i < parent.objColl.length; i++) {
2755
+ if (parent.objColl[i].currIndex === 'shape_' + value) {
2756
+ value++;
2757
+ i = -1;
2758
+ }
2759
+ }
2760
+ return 'shape_' + value;
2761
+ };
2747
2762
  Shape.prototype.alignTextAreaIntoCanvas = function () {
2748
2763
  var parent = this.parent;
2749
2764
  var letters = parent.textArea.value;
@@ -2854,6 +2869,7 @@ var Shape = /** @class */ (function () {
2854
2869
  case 'text':
2855
2870
  shapeDetails.text = obj.keyHistory;
2856
2871
  shapeDetails.fontSize = obj.textSettings.fontSize;
2872
+ shapeDetails.fontFamily = obj.textSettings.fontFamily;
2857
2873
  shapeDetails.color = obj.strokeSettings.strokeColor;
2858
2874
  shapeDetails.fontStyle = [];
2859
2875
  if (obj.textSettings.bold) {
@@ -1203,6 +1203,7 @@ var ImageEditor = /** @class */ (function (_super) {
1203
1203
  *
1204
1204
  */
1205
1205
  ImageEditor.prototype.zoom = function (zoomFactor, zoomPoint) {
1206
+ this.isZoomBtnClick = true;
1206
1207
  this.notify('transform', { prop: 'zoom', onPropertyChange: false,
1207
1208
  value: { zoomFactor: zoomFactor, zoomPoint: zoomPoint } });
1208
1209
  this.notify('draw', { prop: 'redrawDownScale' });
@@ -585,7 +585,7 @@
585
585
  color: #fff;
586
586
  }
587
587
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:focus {
588
- background: #6c757d;
588
+ background: #5b636a;
589
589
  box-shadow: none;
590
590
  color: #fff;
591
591
  }
@@ -585,7 +585,7 @@
585
585
  color: #fff;
586
586
  }
587
587
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:focus {
588
- background: #6c757d;
588
+ background: #5b636a;
589
589
  box-shadow: none;
590
590
  color: #fff;
591
591
  }