@syncfusion/ej2-image-editor 31.2.2 → 31.2.10

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 : 31.2.2
3
+ * version : 31.2.10
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-image-editor",
3
- "version": "31.2.2",
3
+ "version": "31.2.10",
4
4
  "description": "Essential JS 2 ImageEditor",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,12 +8,12 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-image-editor.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~31.2.2",
12
- "@syncfusion/ej2-buttons": "~31.2.2",
13
- "@syncfusion/ej2-dropdowns": "~31.2.2",
14
- "@syncfusion/ej2-inputs": "~31.2.2",
15
- "@syncfusion/ej2-navigations": "~31.2.2",
16
- "@syncfusion/ej2-popups": "~31.2.2",
11
+ "@syncfusion/ej2-base": "~31.2.5",
12
+ "@syncfusion/ej2-buttons": "~31.2.3",
13
+ "@syncfusion/ej2-dropdowns": "~31.2.5",
14
+ "@syncfusion/ej2-inputs": "~31.2.10",
15
+ "@syncfusion/ej2-navigations": "~31.2.5",
16
+ "@syncfusion/ej2-popups": "~31.2.5",
17
17
  "@syncfusion/ej2-splitbuttons": "~31.2.2"
18
18
  },
19
19
  "devDependencies": {},
@@ -3274,6 +3274,29 @@ var Selection = /** @class */ (function () {
3274
3274
  var cursor = parent.activeObj.shape && parent.activeObj.shape === 'text' ?
3275
3275
  parent.cursor : 'default';
3276
3276
  var tempCursor = parent.upperCanvas.style.cursor;
3277
+ var textArea = document.querySelector('#' + parent.element.id + '_textArea');
3278
+ if (textArea.style.display === 'block' || textArea.style.display === 'inline-block') {
3279
+ var isShapeUnderCursor = false;
3280
+ for (var i = 0; i < parent.objColl.length; i++) {
3281
+ var actObj = parent.objColl[i];
3282
+ if (actObj && actObj.shape && actObj.activePoint) {
3283
+ var activePoint_1 = actObj.activePoint;
3284
+ var startX = activePoint_1.startX;
3285
+ var startY = activePoint_1.startY;
3286
+ var endX = activePoint_1.endX;
3287
+ var endY = activePoint_1.endY;
3288
+ var radius = actObj.topLeftCircle && actObj.topLeftCircle.radius ? actObj.topLeftCircle.radius : 0;
3289
+ var isCursorWithinBounds = (x >= (startX - (radius * 2)) && x <= (endX + (radius * 2)) &&
3290
+ y >= (startY - (radius * 2)) && y <= (endY + (radius * 2)));
3291
+ if (isCursorWithinBounds) {
3292
+ isShapeUnderCursor = true;
3293
+ }
3294
+ }
3295
+ }
3296
+ if (isShapeUnderCursor) {
3297
+ parent.okBtn();
3298
+ }
3299
+ }
3277
3300
  if (parent.isResize) {
3278
3301
  this.performEnterAction(e);
3279
3302
  parent.upperCanvas.style.cursor = 'default';
@@ -711,10 +711,11 @@ var Shape = /** @class */ (function () {
711
711
  parent.activeObj.textSettings.text = text || parent.activeObj.textSettings.text;
712
712
  parent.activeObj.textSettings.fontFamily = fontFamily || parent.activeObj.textSettings.fontFamily;
713
713
  parent.activeObj.textSettings.fontSize = fontSize || parent.activeObj.textSettings.fontSize;
714
- parent.activeObj.textSettings.bold = bold || parent.activeObj.textSettings.bold;
715
- parent.activeObj.textSettings.italic = italic || parent.activeObj.textSettings.italic;
716
- parent.activeObj.textSettings.underline = underline || parent.activeObj.textSettings.underline;
717
- parent.activeObj.textSettings.strikethrough = strikethrough || parent.activeObj.textSettings.strikethrough;
714
+ parent.activeObj.textSettings.bold = !isNullOrUndefined(bold) ? bold : parent.activeObj.textSettings.bold;
715
+ parent.activeObj.textSettings.italic = !isNullOrUndefined(italic) ? italic : parent.activeObj.textSettings.italic;
716
+ parent.activeObj.textSettings.underline = !isNullOrUndefined(underline) ? underline : parent.activeObj.textSettings.underline;
717
+ parent.activeObj.textSettings.strikethrough = !isNullOrUndefined(strikethrough) ?
718
+ strikethrough : parent.activeObj.textSettings.strikethrough;
718
719
  parent.activeObj.strokeSettings.outlineColor = outlineColor || parent.activeObj.strokeSettings.outlineColor;
719
720
  parent.activeObj.strokeSettings.outlineWidth = outlineWidth || parent.activeObj.strokeSettings.outlineWidth;
720
721
  };