@syncfusion/ej2-image-editor 25.1.35 → 25.1.37
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 +8 -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 +20 -52
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +20 -52
- 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 +8 -8
- package/src/image-editor/action/shape.js +3 -0
- package/src/image-editor/action/transform.js +3 -2
- package/src/image-editor/action/undo-redo.d.ts +0 -1
- package/src/image-editor/action/undo-redo.js +0 -26
- package/src/image-editor/base/image-editor.js +14 -2
- package/src/image-editor/renderer/toolbar.js +0 -22
- package/styles/image-editor/_layout.scss +3 -0
- package/styles/image-editor/material3-dark.css +1 -0
- package/styles/image-editor/material3.css +1 -0
- package/styles/image-editor/tailwind-dark.css +1 -0
- package/styles/image-editor/tailwind.css +1 -0
- package/styles/material3-dark.css +1 -0
- package/styles/material3.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-image-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-image-editor@
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@25.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-5qgANXLk/5NEFF8XAN6BInARWPl05THFM9omABEmDd1S+LGIftOn17KlJVHymHA0wQM0sR3ySb1FGgunvOyfNA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-image-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-image-editor",
|
|
24
24
|
"/@syncfusion/ej2-vue-image-editor"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.35.tgz",
|
|
27
|
+
"_shasum": "6f29e792a5be807112e90420e9d09ae40534ea77",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
36
36
|
"@syncfusion/ej2-buttons": "~25.1.35",
|
|
37
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
|
37
|
+
"@syncfusion/ej2-inputs": "~25.1.37",
|
|
38
|
+
"@syncfusion/ej2-navigations": "~25.1.37",
|
|
39
39
|
"@syncfusion/ej2-popups": "~25.1.35",
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~25.1.
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~25.1.37"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 ImageEditor",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
|
|
68
68
|
},
|
|
69
69
|
"typings": "index.d.ts",
|
|
70
|
-
"version": "25.1.
|
|
70
|
+
"version": "25.1.37",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -711,6 +711,8 @@ var Shape = /** @class */ (function () {
|
|
|
711
711
|
endX: parent.activeObj.activePoint.startX + parent.activeObj.activePoint.width,
|
|
712
712
|
endY: parent.activeObj.activePoint.startY + parent.activeObj.activePoint.height,
|
|
713
713
|
width: selectionSettings.width, height: selectionSettings.height };
|
|
714
|
+
parent.activeObj.activePoint.endX = parent.activeObj.activePoint.startX + parent.activeObj.activePoint.width;
|
|
715
|
+
parent.activeObj.activePoint.endY = parent.activeObj.activePoint.startY + parent.activeObj.activePoint.height;
|
|
714
716
|
};
|
|
715
717
|
Shape.prototype.updateShapeChangeEventArgs = function (shapeSettings) {
|
|
716
718
|
var parent = this.parent;
|
|
@@ -769,6 +771,7 @@ var Shape = /** @class */ (function () {
|
|
|
769
771
|
if (shapeSettings.degree) {
|
|
770
772
|
parent.activeObj.rotatedAngle = shapeSettings.degree * (Math.PI / 180);
|
|
771
773
|
}
|
|
774
|
+
this.updateFontRatio(parent.activeObj);
|
|
772
775
|
break;
|
|
773
776
|
case 'rectangle':
|
|
774
777
|
case 'image':
|
|
@@ -1586,8 +1586,9 @@ var Transform = /** @class */ (function () {
|
|
|
1586
1586
|
toolbarHeight = obj['toolbarHeight'];
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1589
|
+
var ctxTbarArea = parent.element.querySelector('#' + parent.element.id + '_contextualToolbarArea');
|
|
1590
|
+
if (Browser.isDevice && straightenObj['bool'] && ctxTbarArea) {
|
|
1591
|
+
cxtTbarHeight = ctxTbarArea.clientHeight;
|
|
1591
1592
|
}
|
|
1592
1593
|
parent.notify('toolbar', { prop: 'setToolbarHeight', value: { height: toolbarHeight } });
|
|
1593
1594
|
if (Browser.isDevice) {
|
|
@@ -753,32 +753,6 @@ var UndoRedo = /** @class */ (function () {
|
|
|
753
753
|
parent.notify('filter', { prop: 'setAdjustmentValue', onPropertyChange: false, value: { adjustmentValue: this.lowerContext.filter } });
|
|
754
754
|
parent.currObjType.isCustomCrop = false;
|
|
755
755
|
};
|
|
756
|
-
UndoRedo.prototype.getImageAction = function (operation) {
|
|
757
|
-
if (['brightness', 'contrast', 'saturation', 'opacity', 'blur', 'hue'].indexOf(operation) !== -1) {
|
|
758
|
-
return 'FinetuneApplied';
|
|
759
|
-
}
|
|
760
|
-
else if (['chrome', 'cold', 'warm', 'grayscale', 'blackandwhite', 'sepia', 'invert'].indexOf(operation) !== -1) {
|
|
761
|
-
return 'FilterApplied';
|
|
762
|
-
}
|
|
763
|
-
else if (operation === 'frame') {
|
|
764
|
-
return 'FrameApplied';
|
|
765
|
-
}
|
|
766
|
-
else if (operation === 'resize') {
|
|
767
|
-
return 'ImageResized';
|
|
768
|
-
}
|
|
769
|
-
else if (['deleteFreehandDrawing', 'deleteObj'].indexOf(operation) !== -1) {
|
|
770
|
-
return 'ShapeDeleted';
|
|
771
|
-
}
|
|
772
|
-
else if (operation === 'crop') {
|
|
773
|
-
return 'Cropped';
|
|
774
|
-
}
|
|
775
|
-
else if (['shapeInsert', 'freehanddraw', 'freehand-draw'].indexOf(operation) !== -1) {
|
|
776
|
-
return 'ShapeInserted';
|
|
777
|
-
}
|
|
778
|
-
else {
|
|
779
|
-
return 'ShapeCustomized';
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
756
|
UndoRedo.prototype.updateUrc = function (operation, previousObj, previousObjColl, previousPointColl, previousSelPointColl, previousCropObj, previousText, currentText, previousFilter, isCircleCrop) {
|
|
783
757
|
var parent = this.parent;
|
|
784
758
|
if (parent.isResize || this.isPreventing) {
|
|
@@ -539,7 +539,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
539
539
|
ImageEditor.prototype.createDropUploader = function () {
|
|
540
540
|
var _this = this;
|
|
541
541
|
var uploadObj = new Uploader({
|
|
542
|
-
dropArea:
|
|
542
|
+
dropArea: this.element.getElementsByClassName('e-canvas-wrapper')[0],
|
|
543
543
|
allowedExtensions: '.jpg, .jpeg, .png,.svg',
|
|
544
544
|
multiple: false,
|
|
545
545
|
selected: function (args) {
|
|
@@ -825,7 +825,8 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
825
825
|
ImageEditor.prototype.notifyResetForAllModules = function () {
|
|
826
826
|
var modules = this.requiredModules();
|
|
827
827
|
for (var i = 0; i < modules.length; i++) {
|
|
828
|
-
|
|
828
|
+
var module = modules[i].member;
|
|
829
|
+
this.notify(module === 'toolbar-module' ? 'toolbar' : module, { prop: 'reset', onPropertyChange: false });
|
|
829
830
|
}
|
|
830
831
|
};
|
|
831
832
|
ImageEditor.prototype.allowShape = function (x, y) {
|
|
@@ -1644,8 +1645,19 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
1644
1645
|
this.notify('shape', { prop: 'selectShape', onPropertyChange: false, value: { id: setting.id, obj: obj } });
|
|
1645
1646
|
this.notify('selection', { prop: 'getFreehandDrawEditing', onPropertyChange: false, value: { obj: freehandObj } });
|
|
1646
1647
|
if (obj['isSelected']) {
|
|
1648
|
+
var tempFontSize = this.activeObj.textSettings.fontSize;
|
|
1647
1649
|
this.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
|
|
1648
1650
|
value: { shapeSettings: setting } });
|
|
1651
|
+
if (this.activeObj.shape === 'text' && tempFontSize) {
|
|
1652
|
+
var diff = this.activeObj.textSettings.fontSize - tempFontSize;
|
|
1653
|
+
if (diff !== 0) {
|
|
1654
|
+
this.activeObj.activePoint.height += diff;
|
|
1655
|
+
this.activeObj.activePoint.startY -= (diff / 2);
|
|
1656
|
+
this.activeObj.activePoint.endY += (diff / 2);
|
|
1657
|
+
this.notify('draw', { prop: 'updateActiveObject', onPropertyChange: false, value: { actPoint: this.activeObj.activePoint, obj: this.activeObj,
|
|
1658
|
+
isMouseMove: null, x: null, y: null } });
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1649
1661
|
var activeObj = extend({}, this.activeObj, {}, true);
|
|
1650
1662
|
this.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
|
|
1651
1663
|
this.notify('draw', { prop: 'render-image', value: { isMouseWheel: null, isPreventClearRect: null, isFrame: null } });
|
|
@@ -252,12 +252,6 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
252
252
|
case 'setSelectedFreehandColor':
|
|
253
253
|
this.selFhdColor = args.value['color'];
|
|
254
254
|
break;
|
|
255
|
-
case 'getCurrentFilter':
|
|
256
|
-
args.value['obj']['currentFilter'] = parent.currentFilter;
|
|
257
|
-
break;
|
|
258
|
-
case 'setCurrentFilter':
|
|
259
|
-
parent.currentFilter = args.value['filter'];
|
|
260
|
-
break;
|
|
261
255
|
case 'setInitialAdjustmentValue':
|
|
262
256
|
parent.initialAdjustmentValue = args.value['value'];
|
|
263
257
|
break;
|
|
@@ -279,9 +273,6 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
279
273
|
case 'refreshSlider':
|
|
280
274
|
this.refreshSlider();
|
|
281
275
|
break;
|
|
282
|
-
case 'renderSlider':
|
|
283
|
-
this.renderSlider(args.value['type']);
|
|
284
|
-
break;
|
|
285
276
|
case 'getCurrAdjustmentValue':
|
|
286
277
|
parent.getCurrAdjustmentValue(args.value['type']);
|
|
287
278
|
break;
|
|
@@ -291,18 +282,6 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
291
282
|
case 'refreshShapeDrawing':
|
|
292
283
|
this.refreshShapeDrawing();
|
|
293
284
|
break;
|
|
294
|
-
case 'getCropToolbar':
|
|
295
|
-
args.value['obj']['isCropToolbar'] = parent.isCropToolbar;
|
|
296
|
-
break;
|
|
297
|
-
case 'getPrevCurrSelectionPoint':
|
|
298
|
-
args.value['obj']['prevCurrSelectionPoint'] = parent.prevCurrSelectionPoint;
|
|
299
|
-
break;
|
|
300
|
-
case 'setPrevCurrSelectionPoint':
|
|
301
|
-
parent.prevCurrSelectionPoint = args.value['point'];
|
|
302
|
-
break;
|
|
303
|
-
case 'updateCropTransformItems':
|
|
304
|
-
parent.updateCropTransformItems();
|
|
305
|
-
break;
|
|
306
285
|
case 'setEnableDisableUndoRedo':
|
|
307
286
|
this.preventEnableDisableUr = args.value['isPrevent'];
|
|
308
287
|
break;
|
|
@@ -353,7 +332,6 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
353
332
|
};
|
|
354
333
|
ToolbarModule.prototype.reset = function () {
|
|
355
334
|
var parent = this.parent;
|
|
356
|
-
this.defToolbarItems = [];
|
|
357
335
|
this.toolbarHeight = 46;
|
|
358
336
|
parent.prevCurrSelectionPoint = null;
|
|
359
337
|
this.zoomBtnHold = null;
|
|
@@ -512,6 +512,9 @@
|
|
|
512
512
|
|
|
513
513
|
.e-ie-finetune-slider-wrap {
|
|
514
514
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
515
|
+
@if $skin-name == 'Material3' or $skin-name == 'tailwind' {
|
|
516
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
517
|
+
}
|
|
515
518
|
}
|
|
516
519
|
|
|
517
520
|
.e-transparency-slider-wrap {
|
|
@@ -605,6 +605,7 @@
|
|
|
605
605
|
|
|
606
606
|
.e-ie-finetune-slider-wrap {
|
|
607
607
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
608
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
608
609
|
}
|
|
609
610
|
|
|
610
611
|
.e-transparency-slider-wrap {
|
|
@@ -661,6 +661,7 @@
|
|
|
661
661
|
|
|
662
662
|
.e-ie-finetune-slider-wrap {
|
|
663
663
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
664
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
.e-transparency-slider-wrap {
|
|
@@ -536,6 +536,7 @@
|
|
|
536
536
|
|
|
537
537
|
.e-ie-finetune-slider-wrap {
|
|
538
538
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
.e-transparency-slider-wrap {
|
|
@@ -536,6 +536,7 @@
|
|
|
536
536
|
|
|
537
537
|
.e-ie-finetune-slider-wrap {
|
|
538
538
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
.e-transparency-slider-wrap {
|
|
@@ -605,6 +605,7 @@
|
|
|
605
605
|
|
|
606
606
|
.e-ie-finetune-slider-wrap {
|
|
607
607
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
608
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
608
609
|
}
|
|
609
610
|
|
|
610
611
|
.e-transparency-slider-wrap {
|
package/styles/material3.css
CHANGED
|
@@ -661,6 +661,7 @@
|
|
|
661
661
|
|
|
662
662
|
.e-ie-finetune-slider-wrap {
|
|
663
663
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
664
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
.e-transparency-slider-wrap {
|
package/styles/tailwind-dark.css
CHANGED
|
@@ -536,6 +536,7 @@
|
|
|
536
536
|
|
|
537
537
|
.e-ie-finetune-slider-wrap {
|
|
538
538
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
.e-transparency-slider-wrap {
|
package/styles/tailwind.css
CHANGED
|
@@ -536,6 +536,7 @@
|
|
|
536
536
|
|
|
537
537
|
.e-ie-finetune-slider-wrap {
|
|
538
538
|
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
.e-transparency-slider-wrap {
|