@syncfusion/ej2-image-editor 21.1.37 → 21.1.41
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.
- package/CHANGELOG.md +18 -2
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +15 -0
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +15 -0
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/image-editor/image-editor.d.ts +1 -0
- package/src/image-editor/image-editor.js +15 -0
|
@@ -5095,6 +5095,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
|
|
|
5095
5095
|
this.activeObj.activePoint.height = this.activeObj.activePoint.endY - this.activeObj.activePoint.startY;
|
|
5096
5096
|
this.updateActiveObject(this.activeObj.activePoint, this.activeObj);
|
|
5097
5097
|
}
|
|
5098
|
+
this.updateSelectionInsert();
|
|
5098
5099
|
this.drawObject('duplicate', this.activeObj, null, null, true);
|
|
5099
5100
|
}
|
|
5100
5101
|
clearOuterCanvas(context) {
|
|
@@ -12792,6 +12793,13 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
|
|
|
12792
12793
|
width: width, height: width };
|
|
12793
12794
|
}
|
|
12794
12795
|
this.activeObj.shape = cropShape.toLowerCase();
|
|
12796
|
+
this.updateSelectionInsert();
|
|
12797
|
+
if (this.activeObj.activePoint.startX !== 0 || this.activeObj.activePoint.startY !== 0 ||
|
|
12798
|
+
this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) {
|
|
12799
|
+
points = { startX: this.activeObj.activePoint.startX, startY: this.activeObj.activePoint.startY,
|
|
12800
|
+
endX: this.activeObj.activePoint.endX, endY: this.activeObj.activePoint.endY,
|
|
12801
|
+
width: this.activeObj.activePoint.width, height: this.activeObj.activePoint.height };
|
|
12802
|
+
}
|
|
12795
12803
|
this.drawObject('duplicate', null, true, points);
|
|
12796
12804
|
}
|
|
12797
12805
|
}
|
|
@@ -13595,6 +13603,13 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
|
|
|
13595
13603
|
}
|
|
13596
13604
|
}
|
|
13597
13605
|
}
|
|
13606
|
+
updateSelectionInsert() {
|
|
13607
|
+
const shapeSettings = this.updatePreviousShapeSettings();
|
|
13608
|
+
const shapeChangingArgs = { action: 'insert', previousShapeSettings: shapeSettings,
|
|
13609
|
+
currentShapeSettings: shapeSettings };
|
|
13610
|
+
this.trigger('shapeChanging', shapeChangingArgs);
|
|
13611
|
+
this.updateShapeChangeEventArgs(shapeChangingArgs.currentShapeSettings);
|
|
13612
|
+
}
|
|
13598
13613
|
/**
|
|
13599
13614
|
* Enable or disable a freehand drawing option in an Image Editor.
|
|
13600
13615
|
*
|