@syncfusion/ej2-image-editor 22.1.38 → 22.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.
@@ -536,6 +536,8 @@ var Crop = /** @__PURE__ @class */ (function () {
536
536
  };
537
537
  Crop.prototype.panToSelRangle = function (isReverse) {
538
538
  var parent = this.parent;
539
+ var obj = extend({}, parent.currSelectionPoint, null, true);
540
+ parent.currSelectionPoint = null;
539
541
  var panX = parent.transform.degree === 0 ?
540
542
  isReverse ? -parent.cropObj.totalPannedPoint.x : parent.cropObj.totalPannedPoint.x :
541
543
  isReverse ? -parent.cropObj.totalPannedClientPoint.x : parent.cropObj.totalPannedClientPoint.x;
@@ -552,6 +554,7 @@ var Crop = /** @__PURE__ @class */ (function () {
552
554
  parent.notify('transform', { prop: 'drawPannedImage', value: { xDiff: panX, yDiff: panY } });
553
555
  parent.panPoint.currentPannedPoint = { x: 0, y: 0 };
554
556
  }
557
+ parent.currSelectionPoint = obj;
555
558
  };
556
559
  Crop.prototype.cropCircle = function (context, isSave, isFlip) {
557
560
  var parent = this.parent;
@@ -5783,18 +5786,17 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
5783
5786
  if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
5784
5787
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
5785
5788
  parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
5786
- parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
5787
- parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
5789
+ parent.activeObj.strokeSettings.strokeColor = parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
5790
+ parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
5788
5791
  parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
5789
5792
  _this.freehandRedraw(_this.upperContext);
5790
- parent.updateToolbar(parent.element, 'imageLoaded');
5791
- parent.updateToolbar(parent.element, 'pen');
5793
+ parent.updateToolbar(parent.element, 'colorToolbar');
5792
5794
  });
5793
5795
  }
5794
5796
  else {
5795
5797
  parent.trigger('shapeChanging', shapeChangingArgs);
5796
- parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
5797
- parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
5798
+ parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
5799
+ parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
5798
5800
  parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
5799
5801
  this.freehandRedraw(this.upperContext);
5800
5802
  parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
@@ -11281,6 +11283,9 @@ var Shape = /** @__PURE__ @class */ (function () {
11281
11283
  isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
11282
11284
  parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
11283
11285
  }
11286
+ else {
11287
+ parent.updateToolbar(parent.element, 'text');
11288
+ }
11284
11289
  };
11285
11290
  Shape.prototype.initializeTextShape = function (text, fontFamily, fontSize, bold, italic, strokeColor) {
11286
11291
  var parent = this.parent;