@syncfusion/ej2-image-editor 31.2.2 → 31.2.5

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.
@@ -12296,6 +12296,29 @@ var Selection = /** @__PURE__ @class */ (function () {
12296
12296
  var cursor = parent.activeObj.shape && parent.activeObj.shape === 'text' ?
12297
12297
  parent.cursor : 'default';
12298
12298
  var tempCursor = parent.upperCanvas.style.cursor;
12299
+ var textArea = document.querySelector('#' + parent.element.id + '_textArea');
12300
+ if (textArea.style.display === 'block' || textArea.style.display === 'inline-block') {
12301
+ var isShapeUnderCursor = false;
12302
+ for (var i = 0; i < parent.objColl.length; i++) {
12303
+ var actObj = parent.objColl[i];
12304
+ if (actObj && actObj.shape && actObj.activePoint) {
12305
+ var activePoint_1 = actObj.activePoint;
12306
+ var startX = activePoint_1.startX;
12307
+ var startY = activePoint_1.startY;
12308
+ var endX = activePoint_1.endX;
12309
+ var endY = activePoint_1.endY;
12310
+ var radius = actObj.topLeftCircle && actObj.topLeftCircle.radius ? actObj.topLeftCircle.radius : 0;
12311
+ var isCursorWithinBounds = (x >= (startX - (radius * 2)) && x <= (endX + (radius * 2)) &&
12312
+ y >= (startY - (radius * 2)) && y <= (endY + (radius * 2)));
12313
+ if (isCursorWithinBounds) {
12314
+ isShapeUnderCursor = true;
12315
+ }
12316
+ }
12317
+ }
12318
+ if (isShapeUnderCursor) {
12319
+ parent.okBtn();
12320
+ }
12321
+ }
12299
12322
  if (parent.isResize) {
12300
12323
  this.performEnterAction(e);
12301
12324
  parent.upperCanvas.style.cursor = 'default';