@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.
@@ -14560,7 +14560,7 @@ var SaveDesign = function SaveDesign(_ref) {
14560
14560
  while (1) switch (_context2.prev = _context2.next) {
14561
14561
  case 0:
14562
14562
  if (isSaving) {
14563
- _context2.next = 31;
14563
+ _context2.next = 33;
14564
14564
  break;
14565
14565
  }
14566
14566
  if (checkValidations()) {
@@ -14670,7 +14670,10 @@ var SaveDesign = function SaveDesign(_ref) {
14670
14670
  }
14671
14671
  }, _callee, null, [[0, 7]]);
14672
14672
  }))();
14673
- canvasData = use3dddPlus.getState().applyColorFill(); // dataURL = canvas.toDataURL();
14673
+ canvasData = use3dddPlus.getState().applyColorFill();
14674
+ fabric.fabric.Object.prototype.controls.settingControl.visible = false;
14675
+ fabric.fabric.Object.prototype.controls.deleteControl.visible = false;
14676
+ // dataURL = canvas.toDataURL();
14674
14677
  // looping through the text shape objects & taking out text data to inject in the canvas json data & save
14675
14678
  pathTextsKeys = Object.keys(pathTextsData);
14676
14679
  for (i = 0; i < pathTextsKeys.length; i++) {
@@ -14683,9 +14686,9 @@ var SaveDesign = function SaveDesign(_ref) {
14683
14686
  }
14684
14687
  }
14685
14688
  dataCh = JSON.stringify(canvasData);
14686
- _context2.next = 17;
14689
+ _context2.next = 19;
14687
14690
  return uploadLogoConfig(dataCh, use3dddPlus.getState().customerId);
14688
- case 17:
14691
+ case 19:
14689
14692
  S3UrlPath = _context2.sent;
14690
14693
  canvasSvg = canvas.toSVG();
14691
14694
  closeModal('', false, '', {});
@@ -14730,14 +14733,16 @@ var SaveDesign = function SaveDesign(_ref) {
14730
14733
  setIsSaving(false);
14731
14734
  console.log('ERROR in Save Logo:', ex);
14732
14735
  });
14733
- case 31:
14736
+ case 33:
14734
14737
  use3dddPlus.setState({
14735
14738
  logoName: ''
14736
14739
  });
14737
14740
  use3dddPlus.setState({
14738
14741
  logoTag: []
14739
14742
  });
14740
- case 33:
14743
+ fabric.fabric.Object.prototype.controls.settingControl.visible = true;
14744
+ fabric.fabric.Object.prototype.controls.deleteControl.visible = true;
14745
+ case 37:
14741
14746
  case "end":
14742
14747
  return _context2.stop();
14743
14748
  }