@syncfusion/ej2-image-editor 22.2.8 → 22.2.9
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/.eslintrc.json +260 -0
- package/CHANGELOG.md +8 -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 +7 -5
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +7 -5
- 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 +9 -9
- package/src/image-editor/action/selection.js +6 -5
- package/src/image-editor/action/shape.js +1 -0
- package/tslint.json +111 -0
|
@@ -9718,17 +9718,18 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
9718
9718
|
parent.activeObj = extend({}, activeObj, null, true);
|
|
9719
9719
|
parent.textArea.value = obj.keyHistory;
|
|
9720
9720
|
parent.textArea.style.display = 'block';
|
|
9721
|
-
var strokeColor = obj.strokeSettings.strokeColor.split('(')[0] === 'rgb' ?
|
|
9721
|
+
var strokeColor = obj.strokeSettings && obj.strokeSettings.strokeColor ? obj.strokeSettings.strokeColor.split('(')[0] === 'rgb' ?
|
|
9722
9722
|
this.rgbToHex(parseFloat(obj.strokeSettings.strokeColor.split('(')[1].split(',')[0]), parseFloat(obj.strokeSettings.strokeColor.split('(')[1].split(',')[1]), parseFloat(obj.strokeSettings.strokeColor.split('(')[1].split(',')[2])) :
|
|
9723
|
-
obj.strokeSettings.strokeColor;
|
|
9724
|
-
if (strokeColor === '#ffffff') {
|
|
9723
|
+
obj.strokeSettings.strokeColor : null;
|
|
9724
|
+
if (strokeColor && strokeColor === '#ffffff') {
|
|
9725
9725
|
strokeColor = '#fff';
|
|
9726
9726
|
}
|
|
9727
|
-
if (this.tempActiveObj.strokeSettings.strokeColor
|
|
9727
|
+
if (this.tempActiveObj.strokeSettings && this.tempActiveObj.strokeSettings.strokeColor &&
|
|
9728
|
+
this.tempActiveObj.strokeSettings.strokeColor === '#ffffff') {
|
|
9728
9729
|
this.tempActiveObj.strokeSettings.strokeColor = '#fff';
|
|
9729
9730
|
}
|
|
9730
9731
|
if (obj.keyHistory !== this.tempActiveObj.keyHistory ||
|
|
9731
|
-
strokeColor !== this.tempActiveObj.strokeSettings.strokeColor ||
|
|
9732
|
+
(strokeColor && (strokeColor !== this.tempActiveObj.strokeSettings.strokeColor)) ||
|
|
9732
9733
|
obj.textSettings.fontFamily !== this.tempActiveObj.textSettings.fontFamily ||
|
|
9733
9734
|
Math.round(obj.textSettings.fontSize) !== Math.round(this.tempActiveObj.textSettings.fontSize) ||
|
|
9734
9735
|
Math.round(obj.textSettings.fontRatio) !== Math.round(this.tempActiveObj.textSettings.fontRatio) ||
|
|
@@ -11412,6 +11413,7 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
11412
11413
|
parent.textArea.style.transform = '';
|
|
11413
11414
|
parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
|
|
11414
11415
|
}
|
|
11416
|
+
this.refreshActiveObj();
|
|
11415
11417
|
}
|
|
11416
11418
|
else {
|
|
11417
11419
|
this.applyActObj(isMouseDown);
|