@syncfusion/ej2-image-editor 25.1.37 → 25.1.39

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.
@@ -7036,6 +7036,9 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
7036
7036
  case 'reset':
7037
7037
  this.reset();
7038
7038
  break;
7039
+ case 'triggerShapeChanging':
7040
+ this.triggerShapeChanging(args.value['shapeChangingArgs']);
7041
+ break;
7039
7042
  }
7040
7043
  };
7041
7044
  FreehandDrawing.prototype.updateFhdPvtVar = function () {
@@ -14988,6 +14991,7 @@ var Shape = /** @__PURE__ @class */ (function () {
14988
14991
  var shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
14989
14992
  currentShapeSettings: shapeSettings };
14990
14993
  parent.trigger('shapeChanging', shapeChangingArgs);
14994
+ isSelect = isSelect ? isSelect : isSelected;
14991
14995
  this.drawShapeImageEvent(shapeChangingArgs, isSelect);
14992
14996
  if (parent.isPublicMethod && !isSelected) {
14993
14997
  parent.notify('undo-redo', { prop: 'updateUndoRedo', onPropertyChange: false });
@@ -16276,7 +16280,7 @@ var Transform = /** @__PURE__ @class */ (function () {
16276
16280
  this.resetZoom();
16277
16281
  break;
16278
16282
  case 'pan':
16279
- this.pan(args.value['value']);
16283
+ this.pan(args.value['value'], args.value['x'], args.value['y']);
16280
16284
  break;
16281
16285
  case 'zoom':
16282
16286
  this.zoom(args.value['zoomFactor'], args.value['zoomPoint']);
@@ -17289,12 +17293,12 @@ var Transform = /** @__PURE__ @class */ (function () {
17289
17293
  parent.notify('selection', { prop: 'getPanDown', onPropertyChange: false, value: { obj: obj } });
17290
17294
  var panEventArgs = { startPoint: obj['panDown'], endPoint: this.panMove, cancel: false };
17291
17295
  parent.trigger('panning', panEventArgs);
17292
- this.panEvent(panEventArgs, xDiff, yDiff);
17293
- };
17294
- Transform.prototype.panEvent = function (panEventArgs, xDiff, yDiff) {
17295
17296
  if (panEventArgs.cancel) {
17296
17297
  return;
17297
17298
  }
17299
+ this.panEvent(xDiff, yDiff);
17300
+ };
17301
+ Transform.prototype.panEvent = function (xDiff, yDiff, isPanMethod) {
17298
17302
  var parent = this.parent;
17299
17303
  var isObjCreated = false;
17300
17304
  if (parent.activeObj.shape && parent.activeObj.shape === 'shape') {
@@ -17332,8 +17336,13 @@ var Transform = /** @__PURE__ @class */ (function () {
17332
17336
  }
17333
17337
  if (parent.transform.degree === 0) {
17334
17338
  var point = void 0;
17335
- if (isNullOrUndefined(xDiff) && isNullOrUndefined(yDiff)) {
17336
- point = this.updatePanPoints();
17339
+ if ((isNullOrUndefined(xDiff) && isNullOrUndefined(yDiff)) || isPanMethod) {
17340
+ if (isPanMethod) {
17341
+ point = this.updatePanPoints(xDiff, yDiff);
17342
+ }
17343
+ else {
17344
+ point = this.updatePanPoints();
17345
+ }
17337
17346
  }
17338
17347
  else {
17339
17348
  point = { x: xDiff, y: yDiff };
@@ -17354,8 +17363,13 @@ var Transform = /** @__PURE__ @class */ (function () {
17354
17363
  else {
17355
17364
  var tempFlipState = parent.transform.currFlipState;
17356
17365
  parent.isCropTab = true;
17357
- if (isNullOrUndefined(xDiff) && isNullOrUndefined(yDiff)) {
17358
- parent.panPoint.currentPannedPoint = this.updatePanPoints();
17366
+ if ((isNullOrUndefined(xDiff) && isNullOrUndefined(yDiff)) || isPanMethod) {
17367
+ if (isPanMethod) {
17368
+ parent.panPoint.currentPannedPoint = this.updatePanPoints(xDiff, yDiff);
17369
+ }
17370
+ else {
17371
+ parent.panPoint.currentPannedPoint = this.updatePanPoints();
17372
+ }
17359
17373
  }
17360
17374
  else {
17361
17375
  parent.panPoint.currentPannedPoint = { x: xDiff, y: yDiff };
@@ -17642,7 +17656,7 @@ var Transform = /** @__PURE__ @class */ (function () {
17642
17656
  parent.notify('draw', { prop: 'updateActiveObject', onPropertyChange: false, value: { actPoint: actPoint,
17643
17657
  obj: parent.activeObj, isMouseMove: null, x: null, y: null } });
17644
17658
  };
17645
- Transform.prototype.pan = function (value) {
17659
+ Transform.prototype.pan = function (value, x, y) {
17646
17660
  var parent = this.parent;
17647
17661
  if (!parent.disabled && parent.isImageLoaded) {
17648
17662
  if (value) {
@@ -17652,6 +17666,18 @@ var Transform = /** @__PURE__ @class */ (function () {
17652
17666
  parent.notify('selection', { prop: 'setDragCanvas', value: { bool: true } });
17653
17667
  parent.lowerCanvas.style.cursor = parent.upperCanvas.style.cursor = parent.cursor = 'grab';
17654
17668
  parent.notify('selection', { prop: 'setPanDown', onPropertyChange: false, value: { panDown: null } });
17669
+ if (x || y) {
17670
+ x = x ? x : 0;
17671
+ y = y ? y : 0;
17672
+ if (isNullOrUndefined(this.panMove)) {
17673
+ this.panMove = { x: x, y: y };
17674
+ }
17675
+ if (isNullOrUndefined(this.tempPanMove)) {
17676
+ this.tempPanMove = { x: this.panMove.x, y: this.panMove.y };
17677
+ }
17678
+ this.panEvent(x, y, true);
17679
+ this.tempPanMove = null;
17680
+ }
17655
17681
  }
17656
17682
  else {
17657
17683
  parent.togglePan = parent.currObjType.isCustomCrop = false;
@@ -17966,6 +17992,9 @@ var Transform = /** @__PURE__ @class */ (function () {
17966
17992
  var cxtTbar = parent.element.querySelector('#' + parent.element.id + '_contextualToolbarArea');
17967
17993
  canvasMaxHeight -= cxtTbar ? cxtTbar.clientHeight : 0;
17968
17994
  }
17995
+ if (!isImgShape && parent.element.clientHeight === 0) {
17996
+ canvasMaxHeight = 0;
17997
+ }
17969
17998
  if (isNullOrUndefined(isImgShape)) {
17970
17999
  if (canvasMaxWidth > 30) {
17971
18000
  canvasMaxWidth -= 30;
@@ -18002,7 +18031,7 @@ var Transform = /** @__PURE__ @class */ (function () {
18002
18031
  }
18003
18032
  return { width: cssMaxWidth, height: cssMaxHeight };
18004
18033
  };
18005
- Transform.prototype.updatePanPoints = function () {
18034
+ Transform.prototype.updatePanPoints = function (x, y) {
18006
18035
  var parent = this.parent;
18007
18036
  var tempActObj = extend({}, parent.activeObj, {}, true);
18008
18037
  var tempDestLeft = parent.img.destLeft;
@@ -18012,6 +18041,10 @@ var Transform = /** @__PURE__ @class */ (function () {
18012
18041
  }
18013
18042
  var xDiff = this.panMove.x - this.tempPanMove.x;
18014
18043
  var yDiff = this.panMove.y - this.tempPanMove.y;
18044
+ if (x || y) {
18045
+ xDiff = x;
18046
+ yDiff = y;
18047
+ }
18015
18048
  parent.img.destLeft += xDiff;
18016
18049
  parent.img.destTop += yDiff;
18017
18050
  this.limitPan();
@@ -20516,14 +20549,16 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20516
20549
  * Enable or disable a panning on the Image Editor.
20517
20550
  *
20518
20551
  * @param {boolean} value - Specifies a value whether enable or disable panning.
20552
+ * @param {number} x - Optional, Specifies a value to pan the image horizontally.
20553
+ * @param {number} y - Optional, Specifies a value to pan the image vertically.
20519
20554
  *
20520
20555
  * @remarks
20521
20556
  * This option will take into effect once the image's visibility is hidden when zooming an image or selection has been performed.
20522
20557
  *
20523
20558
  * @returns {void}.
20524
20559
  */
20525
- ImageEditor.prototype.pan = function (value) {
20526
- this.notify('transform', { prop: 'pan', onPropertyChange: false, value: { value: value } });
20560
+ ImageEditor.prototype.pan = function (value, x, y) {
20561
+ this.notify('transform', { prop: 'pan', onPropertyChange: false, value: { value: value, x: x, y: y } });
20527
20562
  };
20528
20563
  /**
20529
20564
  * Zoom in or out on a point in the image editor.
@@ -21505,7 +21540,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
21505
21540
  this.notify('toolbar', { prop: 'destroy-qa-toolbar' });
21506
21541
  this.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'ok' } });
21507
21542
  }
21508
- else if ((this.activeObj.activePoint.width !== 0 && this.activeObj.activePoint.height !== 0) ||
21543
+ else if ((this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) ||
21509
21544
  (this.activeObj.shape === 'path' && this.activeObj.pointColl.length > 0)) {
21510
21545
  if (this.activeObj.shape === 'image') {
21511
21546
  this.notify('draw', { prop: 'setImageApply', onPropertyChange: false, value: { bool: true } });
@@ -21666,6 +21701,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
21666
21701
  * An string which returns the SelectionType.
21667
21702
  */
21668
21703
  ImageEditor.prototype.getSelectionType = function (type) {
21704
+ type = type === 'crop-custom' ? 'CropCustom' : type;
21669
21705
  var typeToSelectionType = { 'CropCustom': 'Custom', 'CropSquare': 'Square', 'CropCircle': 'Circle',
21670
21706
  'Crop3:2': '3:2', 'Crop4:3': '4:3', 'Crop5:4': '5:4', 'Crop7:5': '7:5', 'Crop16:9': '16:9',
21671
21707
  'Crop2:3': '2:3', 'Crop3:4': '3:4', 'Crop4:5': '4:5', 'Crop5:7': '5:7', 'Crop9:16': '9:16' };
@@ -24211,6 +24247,10 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24211
24247
  this.parent.showDialogPopup();
24212
24248
  }
24213
24249
  };
24250
+ ToolbarModule.prototype.triggerTbarClickEvent = function (args) {
24251
+ var clickEvent = { item: args.item, originalEvent: args.event };
24252
+ this.parent.trigger('toolbarItemClicked', clickEvent);
24253
+ };
24214
24254
  ToolbarModule.prototype.renderAnnotationBtn = function (isContextualToolbar) {
24215
24255
  var _this = this;
24216
24256
  var parent = this.parent;
@@ -24300,6 +24340,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24300
24340
  }
24301
24341
  },
24302
24342
  select: function (args) {
24343
+ _this.triggerTbarClickEvent(args);
24303
24344
  parent.okBtn();
24304
24345
  var isCropSelection = false;
24305
24346
  var splitWords;
@@ -24320,6 +24361,9 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24320
24361
  }
24321
24362
  var obj = { currentFreehandDrawIndex: null };
24322
24363
  parent.notify('freehand-draw', { prop: 'getCurrentFreehandDrawIndex', value: { obj: obj } });
24364
+ var prevObj = { shapeSettingsObj: {} };
24365
+ var shapeSettings;
24366
+ var shapeChangingArgs;
24323
24367
  drpDownBtn.iconCss = 'e-icons ' + _this.getCurrentShapeIcon(args.item.id);
24324
24368
  switch (args.item.id) {
24325
24369
  case 'pen':
@@ -24327,6 +24371,12 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24327
24371
  parent.notify('draw', { prop: 'setTempCurrentFreehandDrawIndex', value: { tempCurrentFreehandDrawIndex: obj['currentFreehandDrawIndex'] } });
24328
24372
  _this.currentToolbar = 'pen';
24329
24373
  parent.freeHandDraw(true);
24374
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: prevObj } });
24375
+ shapeSettings = prevObj['shapeSettingsObj'];
24376
+ shapeSettings.type = ShapeType.FreehandDraw;
24377
+ shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
24378
+ currentShapeSettings: shapeSettings };
24379
+ parent.notify('freehand-draw', { prop: 'triggerShapeChanging', value: { shapeChangingArgs: shapeChangingArgs } });
24330
24380
  break;
24331
24381
  case 'text':
24332
24382
  _this.currentToolbar = 'text';
@@ -24336,12 +24386,22 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24336
24386
  _this.currentToolbar = 'shapes';
24337
24387
  parent.element.querySelector('#' + id + '_fileUpload').click();
24338
24388
  break;
24339
- default:
24389
+ case 'ellipse':
24390
+ case 'arrow':
24391
+ case 'line':
24392
+ case 'rectangle':
24393
+ case 'path':
24340
24394
  _this.currentToolbar = 'shapes';
24341
24395
  _this.setInitialShapeSettings(args);
24342
24396
  parent.notify('selection', { prop: 'annotate', value: { shape: args.item.id } });
24343
24397
  parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'shapes',
24344
24398
  isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
24399
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: prevObj } });
24400
+ shapeSettings = prevObj['shapeSettingsObj'];
24401
+ shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
24402
+ currentShapeSettings: shapeSettings };
24403
+ parent.trigger('shapeChanging', shapeChangingArgs);
24404
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', value: { shapeSettings: shapeChangingArgs.currentShapeSettings } });
24345
24405
  break;
24346
24406
  }
24347
24407
  _this.updateToolbarItems();
@@ -24447,6 +24507,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24447
24507
  },
24448
24508
  items: items,
24449
24509
  select: function (args) {
24510
+ _this.triggerTbarClickEvent(args);
24450
24511
  _this.cropSelect(args);
24451
24512
  drpDownBtn.iconCss = 'e-icons ' + _this.getCurrentShapeIcon('crop-' + args.item.id);
24452
24513
  drpDownBtn.content = Browser.isDevice ? null : parent.toPascalCase(args.item.id);
@@ -24457,6 +24518,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24457
24518
  drpDownBtn.appendTo('#' + parent.element.id + '_cropBtn');
24458
24519
  };
24459
24520
  ToolbarModule.prototype.renderTransformBtn = function () {
24521
+ var _this = this;
24460
24522
  var parent = this.parent;
24461
24523
  var items = [];
24462
24524
  if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.indexOf('RotateLeft') > -1)) {
@@ -24481,12 +24543,17 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24481
24543
  elem.style.display = 'block';
24482
24544
  }
24483
24545
  },
24484
- items: items, select: parent.transformSelect.bind(this),
24546
+ items: items,
24547
+ select: function (args) {
24548
+ _this.triggerTbarClickEvent(args);
24549
+ parent.transformSelect.bind(_this);
24550
+ },
24485
24551
  iconCss: 'e-icons e-transform', cssClass: 'e-image-popup'
24486
24552
  });
24487
24553
  drpDownBtn.appendTo('#' + parent.element.id + '_transformBtn');
24488
24554
  };
24489
24555
  ToolbarModule.prototype.renderSaveBtn = function () {
24556
+ var _this = this;
24490
24557
  var parent = this.parent;
24491
24558
  var id = parent.element.id;
24492
24559
  var saveItems = [
@@ -24499,6 +24566,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24499
24566
  // Initialize the DropDownButton component.
24500
24567
  var saveDrpDownBtn = new DropDownButton({ items: saveItems, cssClass: 'e-caret-hide e-image-popup', iconCss: 'e-icons e-save',
24501
24568
  select: function (args) {
24569
+ _this.triggerTbarClickEvent(args);
24502
24570
  parent.export(args.item.text);
24503
24571
  parent.isChangesSaved = true;
24504
24572
  parent.notify('draw', { prop: 'redrawDownScale' });
@@ -24936,6 +25004,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24936
25004
  }
24937
25005
  };
24938
25006
  ToolbarModule.prototype.createShapeBtn = function (items) {
25007
+ var _this = this;
24939
25008
  var parent = this.parent;
24940
25009
  var id = parent.element.id;
24941
25010
  if (items.indexOf('strokeWidth') > -1) {
@@ -24974,6 +25043,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24974
25043
  }
24975
25044
  },
24976
25045
  select: function (args) {
25046
+ _this.triggerTbarClickEvent(args);
24977
25047
  spanElem_1.textContent = args.item.text;
24978
25048
  parent.updateStrokeWidth(args.item.id);
24979
25049
  if (Browser.isDevice) {
@@ -24997,6 +25067,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24997
25067
  }
24998
25068
  };
24999
25069
  ToolbarModule.prototype.createStartBtn = function () {
25070
+ var _this = this;
25000
25071
  var parent = this.parent;
25001
25072
  var id = parent.element.id;
25002
25073
  var strokeWidthItems = [
@@ -25030,6 +25101,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25030
25101
  }
25031
25102
  },
25032
25103
  select: function (args) {
25104
+ _this.triggerTbarClickEvent(args);
25033
25105
  spanElem.textContent = args.item.text;
25034
25106
  parent.updateArrow('startArrow', args.item.id);
25035
25107
  }
@@ -25038,6 +25110,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25038
25110
  drpDownBtn.appendTo('#' + id + '_startBtn');
25039
25111
  };
25040
25112
  ToolbarModule.prototype.createEndBtn = function () {
25113
+ var _this = this;
25041
25114
  var parent = this.parent;
25042
25115
  var id = parent.element.id;
25043
25116
  var strokeWidthItems = [
@@ -25071,6 +25144,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25071
25144
  }
25072
25145
  },
25073
25146
  select: function (args) {
25147
+ _this.triggerTbarClickEvent(args);
25074
25148
  spanElem.textContent = args.item.text;
25075
25149
  parent.updateArrow('endArrow', args.item.id);
25076
25150
  }
@@ -25269,6 +25343,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25269
25343
  }
25270
25344
  };
25271
25345
  ToolbarModule.prototype.createTextBtn = function (items) {
25346
+ var _this = this;
25272
25347
  var parent = this.parent;
25273
25348
  var id = parent.element.id;
25274
25349
  if (items.indexOf('fontFamily') > -1) {
@@ -25309,6 +25384,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25309
25384
  }
25310
25385
  },
25311
25386
  select: function (args) {
25387
+ _this.triggerTbarClickEvent(args);
25312
25388
  spanElem_2.textContent = args.item.text;
25313
25389
  if (Browser.isDevice) {
25314
25390
  spanElem_2.setAttribute('style', 'font-family:' + args.item.id);
@@ -25337,6 +25413,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25337
25413
  args.element.querySelector('[aria-label *= ' + '"' + activeBtn + '"' + ']').classList.add('e-selected-btn');
25338
25414
  },
25339
25415
  select: function (args) {
25416
+ _this.triggerTbarClickEvent(args);
25340
25417
  fontSizeSpanElem_1.textContent = args.item.text;
25341
25418
  parent.updateFontSize(args.item.text);
25342
25419
  }
@@ -25770,6 +25847,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25770
25847
  parent.element.querySelector('.e-template.e-pen-stroke-color').appendChild(parent.createElement('input', {
25771
25848
  id: id + '_pen_stroke'
25772
25849
  }));
25850
+ var presentVal = parent.activeObj.strokeSettings.strokeColor;
25773
25851
  var penColor = new ColorPicker({
25774
25852
  modeSwitcher: false, value: '#fff',
25775
25853
  showButtons: false, mode: 'Palette', cssClass: 'e-pen-color',
@@ -25795,6 +25873,9 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25795
25873
  }, '#' + id + '_penColorBtn');
25796
25874
  penColor.inline = true;
25797
25875
  penColor.value = penColor.getValue(parent.activeObj.strokeSettings.strokeColor, 'rgba');
25876
+ if (penColor.value === 'null') {
25877
+ penColor.value = presentVal;
25878
+ }
25798
25879
  var obj = { tempFreeHandDrawEditingStyles: null };
25799
25880
  parent.notify('freehand-draw', { prop: 'getTempFreeHandDrawEditingStyles', value: { obj: obj } });
25800
25881
  var indexObj = { freehandSelectedIndex: null };
@@ -25811,6 +25892,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25811
25892
  }
25812
25893
  };
25813
25894
  ToolbarModule.prototype.createPenBtn = function (items) {
25895
+ var _this = this;
25814
25896
  var parent = this.parent;
25815
25897
  var id = parent.element.id;
25816
25898
  var strokeWidthItems = [
@@ -25843,6 +25925,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
25843
25925
  args.element.querySelector('[aria-label = ' + '"' + activeBtn + '"' + ']').classList.add('e-selected-btn');
25844
25926
  },
25845
25927
  select: function (args) {
25928
+ _this.triggerTbarClickEvent(args);
25846
25929
  spanElem_3.textContent = args.item.text;
25847
25930
  parent.updatePenStrokeWidth(args.item.id);
25848
25931
  if (Browser.isDevice) {
@@ -26122,6 +26205,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26122
26205
  parent.element.querySelector('.e-stroke.e-template .e-dropdownbtn-preview').style.background = parent.frameObj.color;
26123
26206
  };
26124
26207
  ToolbarModule.prototype.createFrameSize = function () {
26208
+ var _this = this;
26125
26209
  var parent = this.parent;
26126
26210
  var prevFrameSettings;
26127
26211
  var obj = { frameChangeEventArgs: null };
@@ -26152,6 +26236,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26152
26236
  }
26153
26237
  },
26154
26238
  select: function (args) {
26239
+ _this.triggerTbarClickEvent(args);
26155
26240
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26156
26241
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26157
26242
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),
@@ -26197,6 +26282,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26197
26282
  drpDownBtn.appendTo('#' + id + '_frameSizeBtn');
26198
26283
  };
26199
26284
  ToolbarModule.prototype.createFrameInset = function () {
26285
+ var _this = this;
26200
26286
  var parent = this.parent;
26201
26287
  var prevFrameSettings;
26202
26288
  var obj = { frameChangeEventArgs: null };
@@ -26227,6 +26313,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26227
26313
  }
26228
26314
  },
26229
26315
  select: function (args) {
26316
+ _this.triggerTbarClickEvent(args);
26230
26317
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26231
26318
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26232
26319
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),
@@ -26272,6 +26359,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26272
26359
  drpDownBtn.appendTo('#' + id + '_frameInsetBtn');
26273
26360
  };
26274
26361
  ToolbarModule.prototype.createFrameOffset = function () {
26362
+ var _this = this;
26275
26363
  var parent = this.parent;
26276
26364
  var prevFrameSettings;
26277
26365
  var obj = { frameChangeEventArgs: null };
@@ -26302,6 +26390,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26302
26390
  }
26303
26391
  },
26304
26392
  select: function (args) {
26393
+ _this.triggerTbarClickEvent(args);
26305
26394
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26306
26395
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26307
26396
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),
@@ -26347,6 +26436,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26347
26436
  drpDownBtn.appendTo('#' + id + '_frameOffsetBtn');
26348
26437
  };
26349
26438
  ToolbarModule.prototype.createFrameRadius = function () {
26439
+ var _this = this;
26350
26440
  var parent = this.parent;
26351
26441
  var prevFrameSettings;
26352
26442
  var obj = { frameChangeEventArgs: null };
@@ -26378,6 +26468,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26378
26468
  }
26379
26469
  },
26380
26470
  select: function (args) {
26471
+ _this.triggerTbarClickEvent(args);
26381
26472
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26382
26473
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26383
26474
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),
@@ -26423,6 +26514,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26423
26514
  drpDownBtn.appendTo('#' + id + '_frameRadiusBtn');
26424
26515
  };
26425
26516
  ToolbarModule.prototype.createFrameAmount = function () {
26517
+ var _this = this;
26426
26518
  var parent = this.parent;
26427
26519
  var prevFrameSettings;
26428
26520
  var obj = { frameChangeEventArgs: null };
@@ -26453,6 +26545,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26453
26545
  }
26454
26546
  },
26455
26547
  select: function (args) {
26548
+ _this.triggerTbarClickEvent(args);
26456
26549
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26457
26550
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26458
26551
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),
@@ -26498,6 +26591,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26498
26591
  drpDownBtn.appendTo('#' + id + '_frameAmountBtn');
26499
26592
  };
26500
26593
  ToolbarModule.prototype.createFrameBorder = function () {
26594
+ var _this = this;
26501
26595
  var parent = this.parent;
26502
26596
  var prevFrameSettings;
26503
26597
  var obj = { frameChangeEventArgs: null };
@@ -26526,6 +26620,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
26526
26620
  }
26527
26621
  },
26528
26622
  select: function (args) {
26623
+ _this.triggerTbarClickEvent(args);
26529
26624
  prevFrameSettings = { type: parent.toPascalCase(parent.frameObj.type), color: parent.frameObj.color,
26530
26625
  gradientColor: parent.frameObj.gradientColor, size: parent.frameObj.size, inset: parent.frameObj.inset,
26531
26626
  offset: parent.frameObj.offset, borderRadius: parent.frameObj.radius, frameLineStyle: parent.toPascalCase(parent.frameObj.border),