@threedddplus/logoeditor 0.0.192 → 0.0.193

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