@syncfusion/ej2-image-editor 24.2.5 → 25.1.35

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +3 -43
  2. package/dist/ej2-image-editor.umd.min.js +2 -2
  3. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-image-editor.es2015.js +944 -1873
  5. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es5.js +976 -1922
  7. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  8. package/dist/global/ej2-image-editor.min.js +2 -2
  9. package/dist/global/ej2-image-editor.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +12 -12
  12. package/src/image-editor/action/crop.js +9 -45
  13. package/src/image-editor/action/draw.js +52 -207
  14. package/src/image-editor/action/export.js +6 -35
  15. package/src/image-editor/action/freehand-draw.js +26 -80
  16. package/src/image-editor/action/selection.js +122 -326
  17. package/src/image-editor/action/shape.js +130 -242
  18. package/src/image-editor/action/transform.d.ts +0 -1
  19. package/src/image-editor/action/transform.js +77 -289
  20. package/src/image-editor/action/undo-redo.js +32 -101
  21. package/src/image-editor/base/image-editor-model.d.ts +1 -1
  22. package/src/image-editor/base/image-editor.d.ts +51 -42
  23. package/src/image-editor/base/image-editor.js +304 -422
  24. package/src/image-editor/renderer/toolbar.d.ts +1 -0
  25. package/src/image-editor/renderer/toolbar.js +228 -185
  26. package/styles/bootstrap-dark.css +0 -12
  27. package/styles/bootstrap.css +0 -12
  28. package/styles/bootstrap4.css +0 -12
  29. package/styles/bootstrap5-dark.css +0 -12
  30. package/styles/bootstrap5.css +0 -12
  31. package/styles/fabric-dark.css +0 -12
  32. package/styles/fabric.css +0 -12
  33. package/styles/fluent-dark.css +0 -12
  34. package/styles/fluent.css +0 -12
  35. package/styles/highcontrast-light.css +0 -12
  36. package/styles/highcontrast.css +0 -12
  37. package/styles/image-editor/_bds-definition.scss +21 -0
  38. package/styles/image-editor/_bootstrap-dark-definition.scss +0 -1
  39. package/styles/image-editor/_bootstrap-definition.scss +0 -1
  40. package/styles/image-editor/_bootstrap4-definition.scss +0 -1
  41. package/styles/image-editor/_bootstrap5-definition.scss +0 -1
  42. package/styles/image-editor/_fabric-dark-definition.scss +0 -1
  43. package/styles/image-editor/_fabric-definition.scss +0 -1
  44. package/styles/image-editor/_fluent-definition.scss +0 -1
  45. package/styles/image-editor/_fusionnew-definition.scss +0 -1
  46. package/styles/image-editor/_highcontrast-definition.scss +0 -1
  47. package/styles/image-editor/_highcontrast-light-definition.scss +0 -1
  48. package/styles/image-editor/_layout.scss +2 -32
  49. package/styles/image-editor/_material-dark-definition.scss +0 -1
  50. package/styles/image-editor/_material-definition.scss +0 -1
  51. package/styles/image-editor/_material3-definition.scss +2 -3
  52. package/styles/image-editor/_tailwind-definition.scss +0 -1
  53. package/styles/image-editor/bootstrap-dark.css +0 -12
  54. package/styles/image-editor/bootstrap.css +0 -12
  55. package/styles/image-editor/bootstrap4.css +0 -12
  56. package/styles/image-editor/bootstrap5-dark.css +0 -12
  57. package/styles/image-editor/bootstrap5.css +0 -12
  58. package/styles/image-editor/fabric-dark.css +0 -12
  59. package/styles/image-editor/fabric.css +0 -12
  60. package/styles/image-editor/fluent-dark.css +0 -12
  61. package/styles/image-editor/fluent.css +0 -12
  62. package/styles/image-editor/highcontrast-light.css +0 -12
  63. package/styles/image-editor/highcontrast.css +0 -12
  64. package/styles/image-editor/icons/_bds.scss +411 -0
  65. package/styles/image-editor/material-dark.css +0 -12
  66. package/styles/image-editor/material.css +0 -12
  67. package/styles/image-editor/material3-dark.css +4 -25
  68. package/styles/image-editor/material3.css +4 -25
  69. package/styles/image-editor/tailwind-dark.css +2 -15
  70. package/styles/image-editor/tailwind.css +2 -15
  71. package/styles/material-dark.css +0 -12
  72. package/styles/material.css +0 -12
  73. package/styles/material3-dark.css +4 -25
  74. package/styles/material3.css +4 -25
  75. package/styles/tailwind-dark.css +2 -15
  76. package/styles/tailwind.css +2 -15
  77. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -63
  78. package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -39
@@ -1,5 +1,5 @@
1
- import { Browser, EventHandler, extend, getComponent, isBlazor, isNullOrUndefined } from '@syncfusion/ej2-base';
2
- import { ZoomTrigger } from '../index';
1
+ import { Browser, EventHandler, extend, getComponent, isNullOrUndefined } from '@syncfusion/ej2-base';
2
+ import { ShapeType, ZoomTrigger } from '../index';
3
3
  var Selection = /** @class */ (function () {
4
4
  function Selection(parent) {
5
5
  this.diffPoint = { x: 0, y: 0 }; // updates resize points
@@ -76,7 +76,7 @@ var Selection = /** @class */ (function () {
76
76
  this.setActivePoint(args.value['startX'], args.value['startY']);
77
77
  break;
78
78
  case 'clearSelection':
79
- this.clearSelection();
79
+ this.clearSelection(args.value['resetCrop']);
80
80
  break;
81
81
  case 'calcShapeRatio':
82
82
  this.calcShapeRatio(args.value['x'], args.value['y'], args.value['imgWidth'], args.value['imgHeight']);
@@ -1107,15 +1107,7 @@ var Selection = /** @class */ (function () {
1107
1107
  if (splitWords !== undefined && splitWords[0] === 'crop') {
1108
1108
  this.isCropSelection = true;
1109
1109
  }
1110
- if (!this.isCropSelection && parent.eventType !== 'resize' && isBlazor() && parent.events && parent.events.onShapeResizeStart.hasDelegate === true) {
1111
- shapeResizingArgs.action = this.currentDrawingShape !== '' ? 'drawing' : 'resize-start';
1112
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1113
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShapeResizeStart', shapeResizingArgs, null).then(function (shapeResizingArgs) {
1114
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1115
- value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
1116
- });
1117
- }
1118
- else if (!this.isCropSelection) {
1110
+ if (!this.isCropSelection) {
1119
1111
  if (this.currentDrawingShape !== '') {
1120
1112
  shapeResizingArgs.action = 'drawing';
1121
1113
  }
@@ -1136,51 +1128,20 @@ var Selection = /** @class */ (function () {
1136
1128
  width: shapeResizingArgs.currentShapeSettings.width,
1137
1129
  height: shapeResizingArgs.currentShapeSettings.height } };
1138
1130
  this.selectionResizingArgs = selectionResizingArgs;
1139
- if (isBlazor() && isNullOrUndefined(parent.eventType) && parent.events &&
1140
- parent.events.onSelectionResizeStart.hasDelegate === true) {
1141
- selectionResizingArgs.action = 'resize-start';
1142
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1143
- parent.dotNetRef.invokeMethodAsync('SelectionEventAsync', 'OnSelectionResizeStart', selectionResizingArgs).then(function (selectionResizingArgs) {
1144
- parent.notify('shape', { prop: 'updSelChangeEventArgs', onPropertyChange: false,
1145
- value: { selectionSettings: selectionResizingArgs.currentSelectionSettings } });
1146
- });
1147
- }
1148
- else {
1149
- parent.trigger('selectionChanging', selectionResizingArgs);
1150
- parent.notify('shape', { prop: 'updSelChangeEventArgs', onPropertyChange: false,
1151
- value: { selectionSettings: selectionResizingArgs.currentSelectionSettings } });
1152
- }
1131
+ parent.trigger('selectionChanging', selectionResizingArgs);
1132
+ parent.notify('shape', { prop: 'updSelChangeEventArgs', onPropertyChange: false,
1133
+ value: { selectionSettings: selectionResizingArgs.currentSelectionSettings } });
1153
1134
  }
1154
1135
  }
1155
1136
  else if (type === 'mouse-down' || type === 'mouse-up') {
1156
- if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
1157
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1158
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeResizingArgs, null).then(function (shapeResizingArgs) {
1159
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1160
- value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
1161
- });
1162
- }
1163
- else {
1164
- parent.trigger('shapeChanging', shapeResizingArgs);
1165
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1166
- value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
1167
- }
1137
+ parent.trigger('shapeChanging', shapeResizingArgs);
1138
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1139
+ value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
1168
1140
  }
1169
1141
  else {
1170
- if (isBlazor() && isNullOrUndefined(parent.eventType) && parent.events &&
1171
- parent.events.onShapeDragStart.hasDelegate === true) {
1172
- shapeMovingArgs.action = 'drag-start';
1173
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1174
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShapeDragStart', shapeMovingArgs, null).then(function (shapeMovingArgs) {
1175
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1176
- value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
1177
- });
1178
- }
1179
- else {
1180
- parent.trigger('shapeChanging', shapeMovingArgs);
1181
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1182
- value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
1183
- }
1142
+ parent.trigger('shapeChanging', shapeMovingArgs);
1143
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
1144
+ value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
1184
1145
  }
1185
1146
  parent.eventType = type;
1186
1147
  };
@@ -2748,7 +2709,6 @@ var Selection = /** @class */ (function () {
2748
2709
  }
2749
2710
  };
2750
2711
  Selection.prototype.mouseDownEventHandler = function (e) {
2751
- var _this = this;
2752
2712
  var parent = this.parent;
2753
2713
  this.mouseDown = e.currentTarget === parent.lowerCanvas || e.currentTarget === parent.upperCanvas ?
2754
2714
  'canvas' : '';
@@ -2774,16 +2734,8 @@ var Selection = /** @class */ (function () {
2774
2734
  this.dragCanvas = parent.togglePan = true;
2775
2735
  }
2776
2736
  var imageEditorClickEventArgs = { point: this.setXYPoints(e) };
2777
- if (isBlazor() && parent.events && parent.events.clicked.hasDelegate === true) {
2778
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
2779
- parent.dotNetRef.invokeMethodAsync('ClickEventAsync', 'click', imageEditorClickEventArgs).then(function (imageEditorClickEventArgs) {
2780
- _this.clickEvent(imageEditorClickEventArgs, e);
2781
- });
2782
- }
2783
- else {
2784
- parent.trigger('click', imageEditorClickEventArgs);
2785
- this.clickEvent(imageEditorClickEventArgs, e);
2786
- }
2737
+ parent.trigger('click', imageEditorClickEventArgs);
2738
+ this.clickEvent(imageEditorClickEventArgs, e);
2787
2739
  };
2788
2740
  Selection.prototype.getImagePoints = function (x, y) {
2789
2741
  var parent = this.parent;
@@ -2889,13 +2841,8 @@ var Selection = /** @class */ (function () {
2889
2841
  }
2890
2842
  }
2891
2843
  if (!isShape && !parent.togglePen && !this.isCropSelection) {
2892
- if (!isBlazor()) {
2893
- parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
2894
- parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
2895
- }
2896
- else if (parent.isImageLoaded) {
2897
- parent.updateToolbar(parent.element, 'imageLoaded', 'okBtnClick');
2898
- }
2844
+ parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
2845
+ parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
2899
2846
  }
2900
2847
  if (this.dragCanvas && this.isPan && (parent.cursor === 'grab' || this.isTouch)
2901
2848
  && !isShape && !isFreehandDraw && !parent.togglePen) {
@@ -2911,9 +2858,7 @@ var Selection = /** @class */ (function () {
2911
2858
  if (this.isFhdEditing) {
2912
2859
  parent.notify('freehand-draw', { prop: 'applyFhd', onPropertyChange: false });
2913
2860
  this.isFhdCustomized = false;
2914
- if (!isBlazor()) {
2915
- parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
2916
- }
2861
+ parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
2917
2862
  }
2918
2863
  var shape = parent.activeObj.shape;
2919
2864
  var shapeColl = ['rectangle', 'ellipse', 'line', 'arrow', 'path', 'text', 'image'];
@@ -2921,13 +2866,8 @@ var Selection = /** @class */ (function () {
2921
2866
  parent.notify('shape', { prop: 'redrawActObj', onPropertyChange: false,
2922
2867
  value: { x: null, y: null, isMouseDown: null } });
2923
2868
  parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
2924
- if (!isBlazor()) {
2925
- parent.notify('toolbar', { prop: 'setCurrentToolbar', value: { type: 'main' } });
2926
- parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
2927
- }
2928
- else {
2929
- parent.updateToolbar(parent.element, 'imageLoaded');
2930
- }
2869
+ parent.notify('toolbar', { prop: 'setCurrentToolbar', value: { type: 'main' } });
2870
+ parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
2931
2871
  }
2932
2872
  this.canvasMouseDownHandler(e);
2933
2873
  }
@@ -2976,13 +2916,7 @@ var Selection = /** @class */ (function () {
2976
2916
  parent.notify('freehand-draw', { prop: 'selectFhd', value: { type: 'ok' } });
2977
2917
  parent.notify('freehand-draw', { prop: 'hoverFhd', onPropertyChange: false,
2978
2918
  value: { strokeColor: null, strokeWidth: null } });
2979
- if (!isBlazor()) {
2980
- parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: true } });
2981
- }
2982
- else {
2983
- parent.updateToolbar(parent.element, 'pen');
2984
- parent.updateToolbar(parent.element, 'quickAccessToolbar', 'pen');
2985
- }
2919
+ parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: true } });
2986
2920
  }
2987
2921
  else if (indexObj['freehandSelectedIndex']) {
2988
2922
  parent.okBtn();
@@ -3003,13 +2937,18 @@ var Selection = /** @class */ (function () {
3003
2937
  if (qbArea) {
3004
2938
  qbArea.style.display = 'none';
3005
2939
  }
3006
- }
3007
- if (!isBlazor()) {
3008
- var isPenDraw = parent.togglePen;
3009
- parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
3010
- if (isPenDraw) {
3011
- parent.freehandDraw(true);
3012
- }
2940
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2941
+ var point = parent.pointColl[indexObj['freehandSelectedIndex']];
2942
+ var shapeSettings = { id: 'pen_' + (indexObj['freehandSelectedIndex'] + 1), type: ShapeType.FreehandDraw,
2943
+ startX: point.points[0].x, startY: point.points[0].y, strokeColor: point.strokeColor,
2944
+ strokeWidth: point.strokeWidth, points: point.points, opacity: point.opacity };
2945
+ var shapeChangedArgs = { action: 'apply', currentShapeSettings: extend({}, shapeSettings, {}, true) };
2946
+ parent.trigger('shapeChange', shapeChangedArgs);
2947
+ }
2948
+ var isPenDraw = parent.togglePen;
2949
+ parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
2950
+ if (isPenDraw) {
2951
+ parent.freehandDraw(true);
3013
2952
  }
3014
2953
  this.isFhdEditing = false;
3015
2954
  if (isLineArrow) {
@@ -3243,54 +3182,6 @@ var Selection = /** @class */ (function () {
3243
3182
  if (splitWords !== undefined && splitWords[0] === 'crop') {
3244
3183
  isCropSelection = true;
3245
3184
  }
3246
- if (isBlazor() && parent.eventType) {
3247
- if (parent.eventType === 'pan') {
3248
- if (parent.events && parent.events.onPanEnd.hasDelegate === true) {
3249
- parent.dotNetRef.invokeMethodAsync('PanEventAsync', 'OnPanEnd', parent.panEventArgs);
3250
- }
3251
- }
3252
- else if (parent.eventType === 'resize') {
3253
- if (!this.isCropSelection && parent.events && parent.events.onShapeResizeEnd.hasDelegate === true) {
3254
- this.shapeResizingArgs.currentShapeSettings = this.updatePrevShapeSettings();
3255
- this.shapeResizingArgs.action = this.currentDrawingShape !== '' ? 'drawing' : 'resize-end';
3256
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3257
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShapeResizeEnd', this.shapeResizingArgs, null).then(function (shapeResizingArgs) {
3258
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
3259
- value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
3260
- });
3261
- }
3262
- else if (this.shapeResizingArgs && this.selectionResizingArgs && parent.events &&
3263
- parent.events.onSelectionResizeEnd.hasDelegate === true) {
3264
- var currentSelectionSettings = { type: parent.activeObj.shape,
3265
- startX: this.shapeResizingArgs.currentShapeSettings.startX,
3266
- startY: this.shapeResizingArgs.currentShapeSettings.startY,
3267
- width: this.shapeResizingArgs.currentShapeSettings.width,
3268
- height: this.shapeResizingArgs.currentShapeSettings.height };
3269
- this.selectionResizingArgs.currentSelectionSettings = currentSelectionSettings;
3270
- this.selectionResizingArgs.action = 'resize-end';
3271
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3272
- parent.dotNetRef.invokeMethodAsync('SelectionEventAsync', 'OnSelectionResizeEnd', this.selectionResizingArgs).then(function (selectionResizingArgs) {
3273
- parent.notify('shape', { prop: 'updateSelectionChangeEventArgs', onPropertyChange: false,
3274
- value: { selectionSettings: selectionResizingArgs.currentSelectionSettings } });
3275
- });
3276
- }
3277
- }
3278
- else {
3279
- if (this.shapeMovingArgs && parent.events && parent.events.onShapeDragEnd.hasDelegate === true) {
3280
- this.shapeMovingArgs.currentShapeSettings = this.updatePrevShapeSettings();
3281
- this.shapeMovingArgs.action = 'drag-end';
3282
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3283
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShapeDragEnd', this.shapeMovingArgs, null).then(function (shapeMovingArgs) {
3284
- parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
3285
- value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
3286
- });
3287
- }
3288
- }
3289
- this.shapeResizingArgs = null;
3290
- this.shapeMovingArgs = null;
3291
- parent.panEventArgs = null;
3292
- parent.eventType = null;
3293
- }
3294
3185
  if (this.currentDrawingShape === 'path') {
3295
3186
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3296
3187
  var elem = e.srcElement;
@@ -3364,9 +3255,7 @@ var Selection = /** @class */ (function () {
3364
3255
  if (!this.isFhdEditing) {
3365
3256
  this.applyCurrActObj(x, y);
3366
3257
  parent.currObjType.isResize = false;
3367
- if (!isBlazor()) {
3368
- parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
3369
- }
3258
+ parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
3370
3259
  }
3371
3260
  }
3372
3261
  if (parent.activeObj) {
@@ -3382,37 +3271,26 @@ var Selection = /** @class */ (function () {
3382
3271
  isCropSelection_1 = true;
3383
3272
  }
3384
3273
  var shape = parent.activeObj.shape;
3385
- if (!isBlazor()) {
3386
- var shapeColl = ['rectangle', 'ellipse', 'line', 'arrow', 'path'];
3387
- if (shapeColl.indexOf(shape) > -1) {
3388
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'shapes',
3389
- isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3390
- }
3391
- else if (shape === 'text') {
3392
- if (parent.textArea.style.display === 'none') {
3393
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
3394
- isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3395
- }
3396
- }
3397
- else if (this.isFhdEditing) {
3398
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
3274
+ var shapeColl = ['rectangle', 'ellipse', 'line', 'arrow', 'path'];
3275
+ if (shapeColl.indexOf(shape) > -1) {
3276
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'shapes',
3277
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3278
+ }
3279
+ else if (shape === 'text') {
3280
+ if (parent.textArea.style.display === 'none') {
3281
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
3399
3282
  isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3400
3283
  }
3401
- else if (!isCropSelection_1) {
3402
- var eventargs = { type: 'main', isApplyBtn: null, isCropping: false, isZooming: null };
3403
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: eventargs });
3404
- }
3405
- parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
3406
3284
  }
3407
- else {
3408
- var shapeColl = ['rectangle', 'ellipse', 'line', 'arrow', 'path', 'image'];
3409
- if (shapeColl.indexOf(shape) > -1) {
3410
- parent.updateToolbar(parent.element, parent.activeObj.shape);
3411
- }
3412
- else if (parent.activeObj.shape === 'text' && parent.textArea.style.display === 'none') {
3413
- parent.updateToolbar(parent.element, 'text');
3414
- }
3285
+ else if (this.isFhdEditing) {
3286
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
3287
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3415
3288
  }
3289
+ else if (!isCropSelection_1) {
3290
+ var eventargs = { type: 'main', isApplyBtn: null, isCropping: false, isZooming: null };
3291
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: eventargs });
3292
+ }
3293
+ parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
3416
3294
  }
3417
3295
  }
3418
3296
  if (parent.activeObj.shape !== undefined) {
@@ -3424,24 +3302,15 @@ var Selection = /** @class */ (function () {
3424
3302
  if (parent.activeObj.shape && !isCropSelection && e.currentTarget === parent.upperCanvas &&
3425
3303
  parent.textArea.style.display === 'none') {
3426
3304
  if (parent.activeObj.shape === 'text') {
3427
- if (!isBlazor()) {
3428
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
3429
- isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3430
- }
3305
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'text',
3306
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3431
3307
  }
3432
3308
  else {
3433
- if (!isBlazor()) {
3434
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'shapes',
3435
- isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3436
- }
3437
- }
3438
- if (!isBlazor()) {
3439
- parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
3440
- parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: null } });
3441
- }
3442
- else {
3443
- parent.updateToolbar(parent.element, 'quickAccessToolbar', parent.activeObj.shape);
3309
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'shapes',
3310
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
3444
3311
  }
3312
+ parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
3313
+ parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: null } });
3445
3314
  }
3446
3315
  if (parent.togglePen && e.currentTarget === parent.upperCanvas) {
3447
3316
  parent.notify('freehand-draw', { prop: 'freehandUpHandler', onPropertyChange: false,
@@ -3864,7 +3733,6 @@ var Selection = /** @class */ (function () {
3864
3733
  EventHandler.remove(parent.upperCanvas, 'touchmove', this.mouseMoveEventHandler);
3865
3734
  };
3866
3735
  Selection.prototype.keyDownEventHandler = function (e) {
3867
- var _this = this;
3868
3736
  var parent = this.parent;
3869
3737
  if (e.ctrlKey && (e.key === '+' || e.key === '-')) {
3870
3738
  e.preventDefault();
@@ -3874,16 +3742,8 @@ var Selection = /** @class */ (function () {
3874
3742
  var beforeSave = { fileName: obj['fileName'], fileType: obj['fileType'], cancel: false };
3875
3743
  switch (e.key) {
3876
3744
  case (e.ctrlKey && 's'):
3877
- if (isBlazor() && parent.events && parent.events.saving.hasDelegate === true) {
3878
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3879
- parent.dotNetRef.invokeMethodAsync('BeforeSaveEventAsync', 'BeforeSave', beforeSave).then(function (args) {
3880
- _this.beforeSaveEvent(args, e);
3881
- });
3882
- }
3883
- else {
3884
- parent.trigger('beforeSave', beforeSave);
3885
- this.beforeSaveEvent(beforeSave, e);
3886
- }
3745
+ parent.trigger('beforeSave', beforeSave);
3746
+ this.beforeSaveEvent(beforeSave, e);
3887
3747
  break;
3888
3748
  case (e.ctrlKey && 'z'):
3889
3749
  if (parent.allowUndoRedo) {
@@ -3964,37 +3824,21 @@ var Selection = /** @class */ (function () {
3964
3824
  parent.notify('transform', { prop: 'resize', value: { width: point.x, height: point.y, isAspectRatio: false } });
3965
3825
  }
3966
3826
  }
3967
- if (isBlazor()) {
3968
- var aspectRatioHeight = this.parent.element.querySelector('.e-ie-toolbar-e-resize-height-input .e-textbox');
3969
- var aspectRatioWidth = this.parent.element.querySelector('.e-ie-toolbar-e-resize-width-input .e-textbox');
3970
- if ((blrAspRatElem && blrAspRatElem.classList.contains('e-hidden'))) {
3971
- if (aspectRatioHeight && aspectRatioHeight.value === "") {
3972
- aspectRatioHeight.value = aspectRatioHeight.placeholder;
3973
- aspectRatioHeight.value = aspectRatioHeight.placeholder;
3974
- }
3975
- if (aspectRatioWidth && aspectRatioWidth.value === "") {
3976
- aspectRatioWidth.value = aspectRatioWidth.placeholder;
3977
- aspectRatioWidth.value = aspectRatioWidth.placeholder;
3827
+ var aspectRatioHeight = parent.element.querySelector('#' + parent.element.id + '_resizeHeight');
3828
+ var aspectRatioWidth = parent.element.querySelector('#' + parent.element.id + '_resizeWidth');
3829
+ if (isNullOrUndefined(aspectRatioElement)) {
3830
+ if (aspectRatioHeight) {
3831
+ var elem = getComponent(aspectRatioHeight, 'numerictextbox');
3832
+ if (aspectRatioHeight && aspectRatioHeight.value === '') {
3833
+ elem.value = parseFloat(elem.placeholder);
3834
+ aspectRatioHeight.value = elem.placeholder + 'px';
3978
3835
  }
3979
3836
  }
3980
- }
3981
- else {
3982
- var aspectRatioHeight = parent.element.querySelector('#' + parent.element.id + '_resizeHeight');
3983
- var aspectRatioWidth = parent.element.querySelector('#' + parent.element.id + '_resizeWidth');
3984
- if (isNullOrUndefined(aspectRatioElement)) {
3985
- if (aspectRatioHeight) {
3986
- var elem = getComponent(aspectRatioHeight, 'numerictextbox');
3987
- if (aspectRatioHeight && aspectRatioHeight.value === '') {
3988
- elem.value = parseFloat(elem.placeholder);
3989
- aspectRatioHeight.value = elem.placeholder + 'px';
3990
- }
3991
- }
3992
- if (aspectRatioWidth) {
3993
- var elem = getComponent(aspectRatioWidth, 'numerictextbox');
3994
- if (aspectRatioWidth && aspectRatioWidth.value === '') {
3995
- elem.value = parseFloat(elem.placeholder);
3996
- aspectRatioWidth.value = elem.placeholder + 'px';
3997
- }
3837
+ if (aspectRatioWidth) {
3838
+ var elem = getComponent(aspectRatioWidth, 'numerictextbox');
3839
+ if (aspectRatioWidth && aspectRatioWidth.value === '') {
3840
+ elem.value = parseFloat(elem.placeholder);
3841
+ aspectRatioWidth.value = elem.placeholder + 'px';
3998
3842
  }
3999
3843
  }
4000
3844
  }
@@ -4015,7 +3859,7 @@ var Selection = /** @class */ (function () {
4015
3859
  var bool = false;
4016
3860
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4017
3861
  var target = e.target;
4018
- if ((target.id === this.parent.element.id + '_ok' || target.id === '') && !isBlazor()) {
3862
+ if (target.id === this.parent.element.id + '_ok' || target.id === '') {
4019
3863
  bool = true;
4020
3864
  }
4021
3865
  return bool;
@@ -4051,9 +3895,7 @@ var Selection = /** @class */ (function () {
4051
3895
  e.preventDefault();
4052
3896
  if (!parent.isCropTab && (parent.activeObj.shape && parent.activeObj.shape.split('-')[0] !== 'crop')) {
4053
3897
  parent.okBtn();
4054
- if (!isBlazor()) {
4055
- parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
4056
- }
3898
+ parent.notify('toolbar', { prop: 'close-contextual-toolbar', onPropertyChange: false });
4057
3899
  }
4058
3900
  var type = '';
4059
3901
  if (e.type === 'mousewheel' && (parent.zoomSettings.zoomTrigger & ZoomTrigger.MouseWheel) === ZoomTrigger.MouseWheel) {
@@ -4101,18 +3943,23 @@ var Selection = /** @class */ (function () {
4101
3943
  parent.textArea.setAttribute('rows', this.textRow.toString());
4102
3944
  this.isInitialTextEdited = false;
4103
3945
  };
4104
- Selection.prototype.clearSelection = function () {
3946
+ Selection.prototype.clearSelection = function (resetCrop) {
4105
3947
  var parent = this.parent;
4106
3948
  if (!parent.disabled && parent.isImageLoaded) {
4107
- parent.togglePen = false;
4108
- parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
4109
- this.dragElement = '';
4110
- this.dragPoint.startX = this.dragPoint.startY = this.dragPoint.endX = this.dragPoint.endY = 0;
4111
- parent.currObjType.shape = '';
4112
- this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
4113
- parent.currObjType.isActiveObj = true;
4114
- parent.currObjType.isCustomCrop = false;
4115
- parent.upperCanvas.style.cursor = parent.cursor = 'default';
3949
+ if (resetCrop) {
3950
+ parent.notify('draw', { prop: 'performCancel', value: { isContextualToolbar: null } });
3951
+ }
3952
+ else {
3953
+ parent.togglePen = false;
3954
+ parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
3955
+ this.dragElement = '';
3956
+ this.dragPoint.startX = this.dragPoint.startY = this.dragPoint.endX = this.dragPoint.endY = 0;
3957
+ parent.currObjType.shape = '';
3958
+ this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
3959
+ parent.currObjType.isActiveObj = true;
3960
+ parent.currObjType.isCustomCrop = false;
3961
+ parent.upperCanvas.style.cursor = parent.cursor = 'default';
3962
+ }
4116
3963
  }
4117
3964
  };
4118
3965
  Selection.prototype.setDragDirection = function (width, height) {
@@ -4248,7 +4095,6 @@ var Selection = /** @class */ (function () {
4248
4095
  }
4249
4096
  };
4250
4097
  Selection.prototype.findTargetObj = function (x, y, isCrop) {
4251
- var _this = this;
4252
4098
  var parent = this.parent;
4253
4099
  var isShape = false;
4254
4100
  if (parent.objColl.length !== 0 && !parent.currObjType.isCustomCrop && !isCrop) {
@@ -4408,11 +4254,11 @@ var Selection = /** @class */ (function () {
4408
4254
  var tempTextSettings = extend({}, parent.activeObj.textSettings, {}, true);
4409
4255
  parent.notify('draw', { prop: 'setTempTextSettings', onPropertyChange: false, value: { tempTextSettings: tempTextSettings } });
4410
4256
  var shapeSettings = this.updatePrevShapeSettings();
4411
- var shapeChangingArgs_1 = { cancel: false, action: 'select', previousShapeSettings: shapeSettings,
4257
+ var shapeChangingArgs = { cancel: false, action: 'select', previousShapeSettings: shapeSettings,
4412
4258
  currentShapeSettings: shapeSettings };
4413
4259
  if (parent.activeObj.shape === 'line' || parent.activeObj.shape === 'arrow') {
4414
- shapeChangingArgs_1.currentShapeSettings.width = parent.activeObj.activePoint.endX - parent.activeObj.activePoint.startX;
4415
- shapeChangingArgs_1.currentShapeSettings.height = parent.activeObj.activePoint.endY - parent.activeObj.activePoint.startY;
4260
+ shapeChangingArgs.currentShapeSettings.width = parent.activeObj.activePoint.endX - parent.activeObj.activePoint.startX;
4261
+ shapeChangingArgs.currentShapeSettings.height = parent.activeObj.activePoint.endY - parent.activeObj.activePoint.startY;
4416
4262
  }
4417
4263
  this.isCropSelection = false;
4418
4264
  var splitWords = void 0;
@@ -4422,59 +4268,30 @@ var Selection = /** @class */ (function () {
4422
4268
  if (splitWords !== undefined && splitWords[0] === 'crop') {
4423
4269
  this.isCropSelection = true;
4424
4270
  }
4425
- if (!this.isCropSelection && isBlazor() && isNullOrUndefined(parent.eventType) &&
4426
- parent.events && parent.events.shapeChanging.hasDelegate === true) {
4427
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4428
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs_1, null).then(function (shapeChangingArgs) {
4429
- _this.shapeEvent(shapeChangingArgs);
4430
- });
4431
- }
4432
- else if (!this.isCropSelection) {
4433
- parent.trigger('shapeChanging', shapeChangingArgs_1);
4434
- this.shapeEvent(shapeChangingArgs_1);
4271
+ if (!this.isCropSelection) {
4272
+ parent.trigger('shapeChanging', shapeChangingArgs);
4273
+ this.shapeEvent(shapeChangingArgs);
4435
4274
  }
4436
4275
  else {
4437
- var selectionChangingArgs = { action: shapeChangingArgs_1.action,
4276
+ var selectionChangingArgs = { action: shapeChangingArgs.action,
4438
4277
  previousSelectionSettings: { type: parent.getSelectionType(parent.activeObj.shape),
4439
- startX: shapeChangingArgs_1.previousShapeSettings.startX,
4440
- startY: shapeChangingArgs_1.previousShapeSettings.startY,
4441
- width: shapeChangingArgs_1.previousShapeSettings.width,
4442
- height: shapeChangingArgs_1.previousShapeSettings.height },
4278
+ startX: shapeChangingArgs.previousShapeSettings.startX,
4279
+ startY: shapeChangingArgs.previousShapeSettings.startY,
4280
+ width: shapeChangingArgs.previousShapeSettings.width,
4281
+ height: shapeChangingArgs.previousShapeSettings.height },
4443
4282
  currentSelectionSettings: { type: parent.getSelectionType(parent.activeObj.shape),
4444
- startX: shapeChangingArgs_1.currentShapeSettings.startX,
4445
- startY: shapeChangingArgs_1.currentShapeSettings.startY,
4446
- width: shapeChangingArgs_1.currentShapeSettings.width,
4447
- height: shapeChangingArgs_1.currentShapeSettings.height } };
4448
- if (isBlazor() && parent.events && parent.events.onSelectionResizeStart.hasDelegate === true) {
4449
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4450
- parent.dotNetRef.invokeMethodAsync('SelectionEventAsync', 'OnSelectionResizeStart', selectionChangingArgs).then(function (selectionChangingArgs) {
4451
- shapeChangingArgs_1.currentShapeSettings.startX = selectionChangingArgs.currentSelectionSettings.startX;
4452
- shapeChangingArgs_1.currentShapeSettings.startY = selectionChangingArgs.currentSelectionSettings.startY;
4453
- shapeChangingArgs_1.currentShapeSettings.width = selectionChangingArgs.currentSelectionSettings.width;
4454
- shapeChangingArgs_1.currentShapeSettings.height = selectionChangingArgs.currentSelectionSettings.height;
4455
- _this.shapeEvent(shapeChangingArgs_1);
4456
- });
4457
- }
4458
- else {
4459
- parent.trigger('selectionChanging', selectionChangingArgs);
4460
- shapeChangingArgs_1.currentShapeSettings.startX = selectionChangingArgs.currentSelectionSettings.startX;
4461
- shapeChangingArgs_1.currentShapeSettings.startY = selectionChangingArgs.currentSelectionSettings.startY;
4462
- shapeChangingArgs_1.currentShapeSettings.width = selectionChangingArgs.currentSelectionSettings.width;
4463
- shapeChangingArgs_1.currentShapeSettings.height = selectionChangingArgs.currentSelectionSettings.height;
4464
- this.shapeEvent(shapeChangingArgs_1);
4465
- }
4283
+ startX: shapeChangingArgs.currentShapeSettings.startX,
4284
+ startY: shapeChangingArgs.currentShapeSettings.startY,
4285
+ width: shapeChangingArgs.currentShapeSettings.width,
4286
+ height: shapeChangingArgs.currentShapeSettings.height } };
4287
+ parent.trigger('selectionChanging', selectionChangingArgs);
4288
+ shapeChangingArgs.currentShapeSettings.startX = selectionChangingArgs.currentSelectionSettings.startX;
4289
+ shapeChangingArgs.currentShapeSettings.startY = selectionChangingArgs.currentSelectionSettings.startY;
4290
+ shapeChangingArgs.currentShapeSettings.width = selectionChangingArgs.currentSelectionSettings.width;
4291
+ shapeChangingArgs.currentShapeSettings.height = selectionChangingArgs.currentSelectionSettings.height;
4292
+ this.shapeEvent(shapeChangingArgs);
4466
4293
  }
4467
4294
  isShape = true;
4468
- if (isBlazor()) {
4469
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4470
- var tempCursor = parent.upperCanvas.style.cursor;
4471
- this.setCursor(x, y);
4472
- if (shapeChangingArgs_1.action === 'select' && parent.upperCanvas.style.cursor === 'move') {
4473
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4474
- parent.getShapeValue(parent.activeObj.shape);
4475
- }
4476
- parent.upperCanvas.style.cursor = tempCursor;
4477
- }
4478
4295
  }
4479
4296
  }
4480
4297
  return isShape;
@@ -4695,9 +4512,7 @@ var Selection = /** @class */ (function () {
4695
4512
  value: { context: this.lowerContext, isSave: null, isFlip: null } });
4696
4513
  }
4697
4514
  }
4698
- if (!isBlazor()) {
4699
- parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4700
- }
4515
+ parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4701
4516
  }
4702
4517
  };
4703
4518
  Selection.prototype.getCurrentFlipState = function () {
@@ -4804,12 +4619,7 @@ var Selection = /** @class */ (function () {
4804
4619
  parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
4805
4620
  this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
4806
4621
  parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null } });
4807
- if (!isBlazor()) {
4808
- parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4809
- }
4810
- else {
4811
- parent.updateToolbar(parent.element, 'imageLoaded');
4812
- }
4622
+ parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4813
4623
  }
4814
4624
  else if (parent.activeObj.shape) {
4815
4625
  parent.objColl.push(parent.activeObj);
@@ -4829,15 +4639,8 @@ var Selection = /** @class */ (function () {
4829
4639
  shapeChangingArgs = { cancel: false, action: 'delete', previousShapeSettings: previousShapeSettings, currentShapeSettings: null };
4830
4640
  parent.notify('shape', { prop: 'setKeyHistory', onPropertyChange: false, value: { keyHistory: '' } });
4831
4641
  parent.clearSelection();
4832
- if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
4833
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs, null);
4834
- }
4835
- else {
4836
- parent.trigger('shapeChanging', shapeChangingArgs);
4837
- if (!isBlazor()) {
4838
- parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4839
- }
4840
- }
4642
+ parent.trigger('shapeChanging', shapeChangingArgs);
4643
+ parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
4841
4644
  if (!isNullOrUndefined(prevObj.objColl[prevObj.objColl.length - 1].currIndex)) {
4842
4645
  parent.notify('undo-redo', { prop: 'updateUndoRedoColl', onPropertyChange: false,
4843
4646
  value: { operation: 'deleteObj', previousObj: prevObj, previousObjColl: this.tempObjColl,
@@ -4867,6 +4670,11 @@ var Selection = /** @class */ (function () {
4867
4670
  Selection.prototype.updatePrevShapeSettings = function (obj) {
4868
4671
  var parent = this.parent;
4869
4672
  var fontStyle = [];
4673
+ if (isNullOrUndefined(parent.activeObj.currIndex)) {
4674
+ var shapeIDObj = { id: 'shape_' + (parent.objColl.length + 1) };
4675
+ parent.notify('shape', { prop: 'getNewShapeId', onPropertyChange: false, value: { obj: shapeIDObj } });
4676
+ parent.activeObj.currIndex = shapeIDObj['id'];
4677
+ }
4870
4678
  if (parent.activeObj.shape === 'text' && parent.activeObj.textSettings) {
4871
4679
  if (parent.activeObj.textSettings.bold) {
4872
4680
  fontStyle.push('bold');
@@ -4998,14 +4806,8 @@ var Selection = /** @class */ (function () {
4998
4806
  var width;
4999
4807
  var widthElement;
5000
4808
  var heightElement;
5001
- if (isBlazor()) {
5002
- widthElement = elem.querySelector('.e-ie-toolbar-e-resize-width-input .e-textbox');
5003
- heightElement = elem.querySelector('.e-ie-toolbar-e-resize-height-input .e-textbox');
5004
- }
5005
- else {
5006
- widthElement = elem.querySelector('#' + elem.id + '_resizeWidth');
5007
- heightElement = elem.querySelector('#' + elem.id + '_resizeHeight');
5008
- }
4809
+ widthElement = elem.querySelector('#' + elem.id + '_resizeWidth');
4810
+ heightElement = elem.querySelector('#' + elem.id + '_resizeHeight');
5009
4811
  if (widthElement && heightElement) {
5010
4812
  var heightString = heightElement.value.replace(/,/g, '');
5011
4813
  var widthString = widthElement.value.replace(/,/g, '');
@@ -5028,14 +4830,8 @@ var Selection = /** @class */ (function () {
5028
4830
  var isValue = true;
5029
4831
  var widthElement;
5030
4832
  var heightElement;
5031
- if (!isBlazor()) {
5032
- widthElement = this.parent.element.querySelector('#' + this.parent.element.id + '_resizeWidth');
5033
- heightElement = this.parent.element.querySelector('#' + this.parent.element.id + '_resizeHeight');
5034
- }
5035
- else {
5036
- widthElement = this.parent.element.querySelector('.e-ie-toolbar-e-resize-width-input .e-textbox');
5037
- heightElement = this.parent.element.querySelector('.e-ie-toolbar-e-resize-height-input .e-textbox');
5038
- }
4833
+ widthElement = this.parent.element.querySelector('#' + this.parent.element.id + '_resizeWidth');
4834
+ heightElement = this.parent.element.querySelector('#' + this.parent.element.id + '_resizeHeight');
5039
4835
  if (widthElement && heightElement) {
5040
4836
  if (heightElement.value.replace(/,/g, '') === '' && widthElement.value.replace(/,/g, '') === '') {
5041
4837
  isValue = false;