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