@threedddplus/logoeditor 0.0.191 → 0.0.192

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.
@@ -14552,7 +14552,7 @@ var SaveDesign = function SaveDesign(_ref) {
14552
14552
  while (1) switch (_context2.prev = _context2.next) {
14553
14553
  case 0:
14554
14554
  if (isSaving) {
14555
- _context2.next = 31;
14555
+ _context2.next = 33;
14556
14556
  break;
14557
14557
  }
14558
14558
  if (checkValidations()) {
@@ -14662,7 +14662,10 @@ var SaveDesign = function SaveDesign(_ref) {
14662
14662
  }
14663
14663
  }, _callee, null, [[0, 7]]);
14664
14664
  }))();
14665
- canvasData = use3dddPlus.getState().applyColorFill(); // dataURL = canvas.toDataURL();
14665
+ canvasData = use3dddPlus.getState().applyColorFill();
14666
+ fabric.Object.prototype.controls.settingControl.visible = false;
14667
+ fabric.Object.prototype.controls.deleteControl.visible = false;
14668
+ // dataURL = canvas.toDataURL();
14666
14669
  // looping through the text shape objects & taking out text data to inject in the canvas json data & save
14667
14670
  pathTextsKeys = Object.keys(pathTextsData);
14668
14671
  for (i = 0; i < pathTextsKeys.length; i++) {
@@ -14675,9 +14678,9 @@ var SaveDesign = function SaveDesign(_ref) {
14675
14678
  }
14676
14679
  }
14677
14680
  dataCh = JSON.stringify(canvasData);
14678
- _context2.next = 17;
14681
+ _context2.next = 19;
14679
14682
  return uploadLogoConfig(dataCh, use3dddPlus.getState().customerId);
14680
- case 17:
14683
+ case 19:
14681
14684
  S3UrlPath = _context2.sent;
14682
14685
  canvasSvg = canvas.toSVG();
14683
14686
  closeModal('', false, '', {});
@@ -14722,14 +14725,16 @@ var SaveDesign = function SaveDesign(_ref) {
14722
14725
  setIsSaving(false);
14723
14726
  console.log('ERROR in Save Logo:', ex);
14724
14727
  });
14725
- case 31:
14728
+ case 33:
14726
14729
  use3dddPlus.setState({
14727
14730
  logoName: ''
14728
14731
  });
14729
14732
  use3dddPlus.setState({
14730
14733
  logoTag: []
14731
14734
  });
14732
- case 33:
14735
+ fabric.Object.prototype.controls.settingControl.visible = true;
14736
+ fabric.Object.prototype.controls.deleteControl.visible = true;
14737
+ case 37:
14733
14738
  case "end":
14734
14739
  return _context2.stop();
14735
14740
  }