@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.
- package/CHANGELOG.md +12 -0
- 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 +23 -4
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +23 -4
- 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/action/selection.js +5 -3
- package/src/image-editor/action/shape.d.ts +1 -0
- package/src/image-editor/action/shape.js +17 -1
- package/src/image-editor/base/image-editor.js +1 -0
- package/styles/bootstrap4.css +1 -1
- package/styles/image-editor/bootstrap4.css +1 -1
|
@@ -12437,8 +12437,8 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
12437
12437
|
actPoint.height = height;
|
|
12438
12438
|
actPoint.startX = (this.dragPoint.startX = (originalWidth - width) / 2) + arcRadius;
|
|
12439
12439
|
actPoint.startY = (this.dragPoint.startY = (originalHeight - height) / 2) + arcRadius;
|
|
12440
|
-
actPoint.endX =
|
|
12441
|
-
actPoint.endY =
|
|
12440
|
+
actPoint.endX = actPoint.startX + actPoint.width;
|
|
12441
|
+
actPoint.endY = actPoint.startY + actPoint.height;
|
|
12442
12442
|
if (actPoint.startX < destLeft && destLeft + destWidth > parent.lowerCanvas.clientWidth) {
|
|
12443
12443
|
actPoint.startX = destLeft;
|
|
12444
12444
|
actPoint.endX = actPoint.startX + width - arcRadius;
|
|
@@ -12923,7 +12923,9 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
12923
12923
|
}
|
|
12924
12924
|
if (!isInside) {
|
|
12925
12925
|
if (isNullOrUndefined(parent.activeObj.currIndex)) {
|
|
12926
|
-
|
|
12926
|
+
var shapeIDObj = { id: 'shape_' + (parent.objColl.length + 1) };
|
|
12927
|
+
parent.notify('shape', { prop: 'getNewShapeId', onPropertyChange: false, value: { obj: shapeIDObj } });
|
|
12928
|
+
parent.activeObj.currIndex = shapeIDObj['id'];
|
|
12927
12929
|
}
|
|
12928
12930
|
parent.notify('shape', { prop: 'updImgRatioForActObj', onPropertyChange: false });
|
|
12929
12931
|
if (parent.activeObj.horTopLine !== undefined && parent.activeObj.horTopLine.startX !== 0 && parent.activeObj.horTopLine.endX
|
|
@@ -13547,6 +13549,9 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
13547
13549
|
case 'setFlipState':
|
|
13548
13550
|
this.setFlipState(args.value['x'], args.value['y'], args.value['obj'], args.value['object']);
|
|
13549
13551
|
break;
|
|
13552
|
+
case 'getNewShapeId':
|
|
13553
|
+
args.value['obj']['id'] = this.getNewShapeId();
|
|
13554
|
+
break;
|
|
13550
13555
|
}
|
|
13551
13556
|
};
|
|
13552
13557
|
Shape.prototype.getModuleName = function () {
|
|
@@ -13937,6 +13942,7 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
13937
13942
|
parent.notify('selection', { prop: 'isShapeInserted', onPropertyChange: false, value: { bool: true } });
|
|
13938
13943
|
if (isBlazor()) {
|
|
13939
13944
|
parent.updateToolbar(parent.element, 'text');
|
|
13945
|
+
parent.getFontSizes();
|
|
13940
13946
|
}
|
|
13941
13947
|
else {
|
|
13942
13948
|
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
|
|
@@ -16006,7 +16012,7 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
16006
16012
|
}
|
|
16007
16013
|
if (!isActObj) {
|
|
16008
16014
|
if (isNullOrUndefined(parent.activeObj.currIndex)) {
|
|
16009
|
-
parent.activeObj.currIndex =
|
|
16015
|
+
parent.activeObj.currIndex = this.getNewShapeId();
|
|
16010
16016
|
}
|
|
16011
16017
|
this.updImgRatioForActObj();
|
|
16012
16018
|
var splitWords_1 = parent.activeObj.currIndex.split('_');
|
|
@@ -16042,6 +16048,17 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
16042
16048
|
}
|
|
16043
16049
|
}
|
|
16044
16050
|
};
|
|
16051
|
+
Shape.prototype.getNewShapeId = function () {
|
|
16052
|
+
var parent = this.parent;
|
|
16053
|
+
var value = parent.objColl.length + 1;
|
|
16054
|
+
for (var i = 0; i < parent.objColl.length; i++) {
|
|
16055
|
+
if (parent.objColl[i].currIndex === 'shape_' + value) {
|
|
16056
|
+
value++;
|
|
16057
|
+
i = -1;
|
|
16058
|
+
}
|
|
16059
|
+
}
|
|
16060
|
+
return 'shape_' + value;
|
|
16061
|
+
};
|
|
16045
16062
|
Shape.prototype.alignTextAreaIntoCanvas = function () {
|
|
16046
16063
|
var parent = this.parent;
|
|
16047
16064
|
var letters = parent.textArea.value;
|
|
@@ -16152,6 +16169,7 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
16152
16169
|
case 'text':
|
|
16153
16170
|
shapeDetails.text = obj.keyHistory;
|
|
16154
16171
|
shapeDetails.fontSize = obj.textSettings.fontSize;
|
|
16172
|
+
shapeDetails.fontFamily = obj.textSettings.fontFamily;
|
|
16155
16173
|
shapeDetails.color = obj.strokeSettings.strokeColor;
|
|
16156
16174
|
shapeDetails.fontStyle = [];
|
|
16157
16175
|
if (obj.textSettings.bold) {
|
|
@@ -21338,6 +21356,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
21338
21356
|
*
|
|
21339
21357
|
*/
|
|
21340
21358
|
ImageEditor.prototype.zoom = function (zoomFactor, zoomPoint) {
|
|
21359
|
+
this.isZoomBtnClick = true;
|
|
21341
21360
|
this.notify('transform', { prop: 'zoom', onPropertyChange: false,
|
|
21342
21361
|
value: { zoomFactor: zoomFactor, zoomPoint: zoomPoint } });
|
|
21343
21362
|
this.notify('draw', { prop: 'redrawDownScale' });
|