@syncfusion/ej2-image-editor 22.2.5 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.2.5
3
+ * version : 22.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@22.1.39",
3
+ "_id": "@syncfusion/ej2-image-editor@22.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-QHAKhfObRJ43QYRhCsHC6B51AxKn+D6/UZN74quS+Ug7B7uX/b0QD3OiXWX+VyUqHP0EyvuEOzfOO8IceDYGWg==",
5
+ "_integrity": "sha512-6WPcvPi5XBy7XyIJ7KeheLKnK57kzOHblo7J6t0ZbBfgE/ASS8CXPeHLiVZzRmD/4B60w/brJm1AG6kUWfkyxA==",
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-22.1.39.tgz",
27
- "_shasum": "34c50cdf67aedf889f5b7414ab8983667172c4e9",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-22.2.8.tgz",
27
+ "_shasum": "60b9ce316cd35b0123adf204bc754c1c7fa2f53c",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~22.2.5",
36
- "@syncfusion/ej2-buttons": "~22.2.5",
37
- "@syncfusion/ej2-inputs": "~22.2.5",
38
- "@syncfusion/ej2-navigations": "~22.2.5",
39
- "@syncfusion/ej2-popups": "~22.2.5",
40
- "@syncfusion/ej2-splitbuttons": "~22.2.5"
35
+ "@syncfusion/ej2-base": "~22.2.9",
36
+ "@syncfusion/ej2-buttons": "~22.2.9",
37
+ "@syncfusion/ej2-inputs": "~22.2.9",
38
+ "@syncfusion/ej2-navigations": "~22.2.8",
39
+ "@syncfusion/ej2-popups": "~22.2.9",
40
+ "@syncfusion/ej2-splitbuttons": "~22.2.8"
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": "22.2.5",
70
+ "version": "22.2.9",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -3458,17 +3458,18 @@ var Selection = /** @class */ (function () {
3458
3458
  parent.activeObj = extend({}, activeObj, null, true);
3459
3459
  parent.textArea.value = obj.keyHistory;
3460
3460
  parent.textArea.style.display = 'block';
3461
- var strokeColor = obj.strokeSettings.strokeColor.split('(')[0] === 'rgb' ?
3461
+ var strokeColor = obj.strokeSettings && obj.strokeSettings.strokeColor ? obj.strokeSettings.strokeColor.split('(')[0] === 'rgb' ?
3462
3462
  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])) :
3463
- obj.strokeSettings.strokeColor;
3464
- if (strokeColor === '#ffffff') {
3463
+ obj.strokeSettings.strokeColor : null;
3464
+ if (strokeColor && strokeColor === '#ffffff') {
3465
3465
  strokeColor = '#fff';
3466
3466
  }
3467
- if (this.tempActiveObj.strokeSettings.strokeColor === '#ffffff') {
3467
+ if (this.tempActiveObj.strokeSettings && this.tempActiveObj.strokeSettings.strokeColor &&
3468
+ this.tempActiveObj.strokeSettings.strokeColor === '#ffffff') {
3468
3469
  this.tempActiveObj.strokeSettings.strokeColor = '#fff';
3469
3470
  }
3470
3471
  if (obj.keyHistory !== this.tempActiveObj.keyHistory ||
3471
- strokeColor !== this.tempActiveObj.strokeSettings.strokeColor ||
3472
+ (strokeColor && (strokeColor !== this.tempActiveObj.strokeSettings.strokeColor)) ||
3472
3473
  obj.textSettings.fontFamily !== this.tempActiveObj.textSettings.fontFamily ||
3473
3474
  Math.round(obj.textSettings.fontSize) !== Math.round(this.tempActiveObj.textSettings.fontSize) ||
3474
3475
  Math.round(obj.textSettings.fontRatio) !== Math.round(this.tempActiveObj.textSettings.fontRatio) ||
@@ -606,6 +606,7 @@ var Shape = /** @class */ (function () {
606
606
  parent.textArea.style.transform = '';
607
607
  parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
608
608
  }
609
+ this.refreshActiveObj();
609
610
  }
610
611
  else {
611
612
  this.applyActObj(isMouseDown);