@threedddplus/logoeditor 0.0.188 → 0.0.189

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.
@@ -14619,8 +14619,8 @@ var SaveDesign = function SaveDesign(_ref) {
14619
14619
  canvas.requestRenderAll();
14620
14620
  group.clone(function (clonedGroup) {
14621
14621
  var boundingRect = clonedGroup.getBoundingRect();
14622
- var paddedWidth = boundingRect.width + 2 * padding;
14623
- var paddedHeight = boundingRect.height + 2 * padding;
14622
+ var paddedWidth = boundingRect.width + 4 * padding;
14623
+ var paddedHeight = boundingRect.height + 6 * padding;
14624
14624
  tempCanvas.setWidth(paddedWidth);
14625
14625
  tempCanvas.setHeight(paddedHeight);
14626
14626
  clonedGroup.left = padding + boundingRect.left;
@@ -14631,6 +14631,7 @@ var SaveDesign = function SaveDesign(_ref) {
14631
14631
  clonedGroup.setCoords();
14632
14632
  tempCanvas.requestRenderAll();
14633
14633
  var dataURL = tempCanvas.toDataURL();
14634
+ console.log("Image--->", dataURL);
14634
14635
  tempCanvas.clear();
14635
14636
  tempCanvas.dispose();
14636
14637
  clonedGroup = null;
@@ -14648,17 +14649,18 @@ var SaveDesign = function SaveDesign(_ref) {
14648
14649
  return selectAllCanvasObjects();
14649
14650
  case 3:
14650
14651
  dataURL = _context.sent;
14651
- _context.next = 9;
14652
+ console.log();
14653
+ _context.next = 10;
14652
14654
  break;
14653
- case 6:
14654
- _context.prev = 6;
14655
+ case 7:
14656
+ _context.prev = 7;
14655
14657
  _context.t0 = _context["catch"](0);
14656
14658
  console.error('Error capturing canvas objects:', _context.t0);
14657
- case 9:
14659
+ case 10:
14658
14660
  case "end":
14659
14661
  return _context.stop();
14660
14662
  }
14661
- }, _callee, null, [[0, 6]]);
14663
+ }, _callee, null, [[0, 7]]);
14662
14664
  }))();
14663
14665
  canvasData = use3dddPlus.getState().applyColorFill(); // dataURL = canvas.toDataURL();
14664
14666
  // looping through the text shape objects & taking out text data to inject in the canvas json data & save