@syncfusion/ej2-image-editor 24.1.44 → 24.1.45
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 +29 -17
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +29 -17
- 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/draw.js +10 -2
- package/src/image-editor/action/transform.js +1 -3
- package/src/image-editor/renderer/toolbar.js +18 -12
- package/styles/bootstrap-dark.css +21 -1
- package/styles/bootstrap.css +21 -1
- package/styles/bootstrap4.css +21 -1
- package/styles/bootstrap5-dark.css +21 -1
- package/styles/bootstrap5.css +21 -1
- package/styles/fabric-dark.css +21 -1
- package/styles/fabric.css +21 -1
- package/styles/fluent-dark.css +21 -1
- package/styles/fluent.css +21 -1
- package/styles/highcontrast-light.css +21 -1
- package/styles/highcontrast.css +21 -1
- package/styles/image-editor/_bootstrap-dark-definition.scss +2 -0
- package/styles/image-editor/_bootstrap-definition.scss +2 -0
- package/styles/image-editor/_bootstrap4-definition.scss +2 -0
- package/styles/image-editor/_bootstrap5-definition.scss +2 -0
- package/styles/image-editor/_fabric-dark-definition.scss +2 -0
- package/styles/image-editor/_fabric-definition.scss +2 -0
- package/styles/image-editor/_fluent-definition.scss +2 -0
- package/styles/image-editor/_highcontrast-definition.scss +2 -0
- package/styles/image-editor/_highcontrast-light-definition.scss +2 -0
- package/styles/image-editor/_layout.scss +29 -1
- package/styles/image-editor/_material-dark-definition.scss +3 -1
- package/styles/image-editor/_material-definition.scss +3 -1
- package/styles/image-editor/_material3-definition.scss +2 -0
- package/styles/image-editor/_tailwind-definition.scss +2 -0
- package/styles/image-editor/bootstrap-dark.css +21 -1
- package/styles/image-editor/bootstrap.css +21 -1
- package/styles/image-editor/bootstrap4.css +21 -1
- package/styles/image-editor/bootstrap5-dark.css +21 -1
- package/styles/image-editor/bootstrap5.css +21 -1
- package/styles/image-editor/fabric-dark.css +21 -1
- package/styles/image-editor/fabric.css +21 -1
- package/styles/image-editor/fluent-dark.css +21 -1
- package/styles/image-editor/fluent.css +21 -1
- package/styles/image-editor/highcontrast-light.css +21 -1
- package/styles/image-editor/highcontrast.css +21 -1
- package/styles/image-editor/material-dark.css +22 -2
- package/styles/image-editor/material.css +22 -2
- package/styles/image-editor/material3-dark.css +21 -1
- package/styles/image-editor/material3.css +21 -1
- package/styles/image-editor/tailwind-dark.css +21 -1
- package/styles/image-editor/tailwind.css +21 -1
- package/styles/material-dark.css +22 -2
- package/styles/material.css +22 -2
- package/styles/material3-dark.css +21 -1
- package/styles/material3.css +21 -1
- package/styles/tailwind-dark.css +21 -1
- package/styles/tailwind.css +21 -1
|
@@ -3634,11 +3634,19 @@ var Draw = /** @__PURE__ @class */ (function () {
|
|
|
3634
3634
|
if (!isBlazor()) {
|
|
3635
3635
|
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
3636
3636
|
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: eventargs });
|
|
3637
|
+
if (parent.activeObj.shape && parent.activeObj.shape === 'image') {
|
|
3638
|
+
parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
|
|
3639
|
+
}
|
|
3637
3640
|
}
|
|
3638
3641
|
else {
|
|
3639
3642
|
parent.updateToolbar(parent.element, 'imageLoaded');
|
|
3643
|
+
if (parent.activeObj.shape && parent.activeObj.shape === 'image') {
|
|
3644
|
+
parent.updateToolbar(parent.element, 'destroyQuickAccessToolbar');
|
|
3645
|
+
}
|
|
3640
3646
|
}
|
|
3641
3647
|
parent.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'cancel' } });
|
|
3648
|
+
parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
|
|
3649
|
+
this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
|
|
3642
3650
|
}
|
|
3643
3651
|
else {
|
|
3644
3652
|
if (isContextualToolbar && (!Browser.isDevice || (Browser.isDevice && !straightenObj['bool']))) {
|
|
@@ -5047,9 +5055,9 @@ var Draw = /** @__PURE__ @class */ (function () {
|
|
|
5047
5055
|
}
|
|
5048
5056
|
}
|
|
5049
5057
|
}
|
|
5050
|
-
var panX = (parent.lowerCanvas.clientWidth / 2) -
|
|
5058
|
+
var panX = (parent.lowerCanvas.clientWidth / 2) - (currObj.activePoint.startX +
|
|
5051
5059
|
(currObj.activePoint.width / 2));
|
|
5052
|
-
var panY = (parent.lowerCanvas.clientHeight / 2) -
|
|
5060
|
+
var panY = ((parent.lowerCanvas.clientHeight + 1) / 2) - (currObj.activePoint.startY +
|
|
5053
5061
|
(currObj.activePoint.height / 2));
|
|
5054
5062
|
if (isNullOrUndefined(parent.activeObj.shape)) {
|
|
5055
5063
|
parent.activeObj = extend({}, activeObj, {}, true);
|
|
@@ -19090,9 +19098,7 @@ var Transform = /** @__PURE__ @class */ (function () {
|
|
|
19090
19098
|
parent.notify('toolbar', { prop: 'performCropTransformClick', value: { shape: null } });
|
|
19091
19099
|
}
|
|
19092
19100
|
parent.setStraighten(degree, true);
|
|
19093
|
-
|
|
19094
|
-
parent.okBtn();
|
|
19095
|
-
}
|
|
19101
|
+
parent.okBtn();
|
|
19096
19102
|
};
|
|
19097
19103
|
return Transform;
|
|
19098
19104
|
}());
|
|
@@ -24376,7 +24382,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
24376
24382
|
this.createLeftToolbarControls();
|
|
24377
24383
|
var mToolbar = document.getElementById(id + '_toolbar');
|
|
24378
24384
|
if (toolbar_1) {
|
|
24379
|
-
this.toolbarHeight = mToolbar.
|
|
24385
|
+
this.toolbarHeight = mToolbar.clientHeight;
|
|
24380
24386
|
}
|
|
24381
24387
|
}
|
|
24382
24388
|
else {
|
|
@@ -24679,10 +24685,10 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
24679
24685
|
}
|
|
24680
24686
|
if (!isBlazor()) {
|
|
24681
24687
|
if (parent.toolbarTemplate) {
|
|
24682
|
-
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').
|
|
24688
|
+
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
|
|
24683
24689
|
}
|
|
24684
24690
|
else if (parent.element.querySelector('#' + parent.element.id + '_toolbar')) {
|
|
24685
|
-
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbar').
|
|
24691
|
+
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbar').clientHeight;
|
|
24686
24692
|
}
|
|
24687
24693
|
parent.toolbarHeight = this.toolbarHeight;
|
|
24688
24694
|
}
|
|
@@ -24693,7 +24699,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
24693
24699
|
cHt = cusWrapper.offsetHeight + 2;
|
|
24694
24700
|
}
|
|
24695
24701
|
var ht = parent.element.querySelector('#' + id + '_canvasWrapper').offsetHeight;
|
|
24696
|
-
contextualToolbarArea.style.top = this.toolbarHeight + ht - cHt + 'px';
|
|
24702
|
+
contextualToolbarArea.style.top = this.toolbarHeight + 1 + ht - cHt + 'px';
|
|
24697
24703
|
if (cType === 'straighten') {
|
|
24698
24704
|
parent.isStraightening = true;
|
|
24699
24705
|
var ctxToolbar = parent.element.querySelector('#' + id + '_contextualToolbarArea');
|
|
@@ -24710,7 +24716,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
24710
24716
|
}
|
|
24711
24717
|
}
|
|
24712
24718
|
else {
|
|
24713
|
-
contextualToolbarArea.style.top = this.toolbarHeight + 'px';
|
|
24719
|
+
contextualToolbarArea.style.top = this.toolbarHeight + 1 + 'px';
|
|
24714
24720
|
}
|
|
24715
24721
|
};
|
|
24716
24722
|
ToolbarModule.prototype.processToolbar = function (position) {
|
|
@@ -25534,8 +25540,8 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
25534
25540
|
}
|
|
25535
25541
|
var slider = parent.element.querySelector('#' + id + '_straightenSlider');
|
|
25536
25542
|
if ((isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.indexOf('Straightening') > -1))
|
|
25537
|
-
&& slider && slider.parentElement.
|
|
25538
|
-
this.toolbarHeight = parent.toolbarHeight = slider.parentElement.
|
|
25543
|
+
&& slider && slider.parentElement.clientHeight > this.toolbarHeight) {
|
|
25544
|
+
this.toolbarHeight = parent.toolbarHeight = slider.parentElement.clientHeight;
|
|
25539
25545
|
}
|
|
25540
25546
|
this.enableDisableTbrBtn();
|
|
25541
25547
|
parent.notify('transform', { prop: 'disableZoomOutBtn', value: { isZoomOut: true } });
|
|
@@ -28431,20 +28437,23 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
28431
28437
|
if (type === 'transparency') {
|
|
28432
28438
|
labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
28433
28439
|
id: id + '_labelWrapper',
|
|
28434
|
-
|
|
28435
|
-
|
|
28440
|
+
className: 'e-ie-finetune-slider-label',
|
|
28441
|
+
styles: Browser.isDevice ? 'position: absolute; top: 31%; left: calc(50% - 150px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
28442
|
+
: 'position: absolute; top: 31%; left: calc(50% - 220px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
28436
28443
|
}));
|
|
28437
28444
|
}
|
|
28438
28445
|
else {
|
|
28439
28446
|
labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
28440
28447
|
id: id + '_labelWrapper',
|
|
28441
|
-
|
|
28448
|
+
className: 'e-ie-finetune-slider-label',
|
|
28449
|
+
styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
|
|
28442
28450
|
: 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
28443
28451
|
}));
|
|
28444
28452
|
}
|
|
28445
28453
|
labelWrapper.textContent = this.l10n.getConstant(parent.toPascalCase(type === 'transparency' ? 'opacity' : type));
|
|
28446
28454
|
var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
|
|
28447
28455
|
id: id + '_sliderWrapper',
|
|
28456
|
+
className: 'e-ie-finetune-slider-wrap',
|
|
28448
28457
|
styles: 'position: absolute'
|
|
28449
28458
|
}));
|
|
28450
28459
|
var value = parent.getCurrAdjustmentValue(type);
|
|
@@ -28523,8 +28532,8 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
28523
28532
|
if (type === 'straighten' && Browser.isDevice) {
|
|
28524
28533
|
var sLabelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
28525
28534
|
id: id + '_sLabelWrapper',
|
|
28526
|
-
className: 'e-ie-straighten-value-span',
|
|
28527
|
-
styles: 'position: absolute; top:
|
|
28535
|
+
className: 'e-ie-straighten-value-span e-ie-finetune-value-span',
|
|
28536
|
+
styles: 'position: absolute; top: 31%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
28528
28537
|
}));
|
|
28529
28538
|
sLabelWrapper.innerHTML = parent.transform.straighten.toString() + '°';
|
|
28530
28539
|
sliderWrapper.parentElement.classList.add('e-straighten-slider');
|
|
@@ -28537,6 +28546,9 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
28537
28546
|
'position: absolute; top: 25%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
28538
28547
|
}));
|
|
28539
28548
|
sliderWrapper.parentElement.classList.add('e-finetune-slider');
|
|
28549
|
+
if (type === 'transparency' && Browser.isDevice) {
|
|
28550
|
+
sliderWrapper.parentElement.classList.add('e-ie-device-transparency-slider');
|
|
28551
|
+
}
|
|
28540
28552
|
this.updateFinetuneSpan(type);
|
|
28541
28553
|
}
|
|
28542
28554
|
};
|