@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.
@@ -14611,8 +14611,8 @@ var SaveDesign = function SaveDesign(_ref) {
14611
14611
  canvas.requestRenderAll();
14612
14612
  group.clone(function (clonedGroup) {
14613
14613
  var boundingRect = clonedGroup.getBoundingRect();
14614
- var paddedWidth = boundingRect.width + 2 * padding;
14615
- var paddedHeight = boundingRect.height + 2 * padding;
14614
+ var paddedWidth = boundingRect.width + 4 * padding;
14615
+ var paddedHeight = boundingRect.height + 6 * padding;
14616
14616
  tempCanvas.setWidth(paddedWidth);
14617
14617
  tempCanvas.setHeight(paddedHeight);
14618
14618
  clonedGroup.left = padding + boundingRect.left;
@@ -14623,6 +14623,7 @@ var SaveDesign = function SaveDesign(_ref) {
14623
14623
  clonedGroup.setCoords();
14624
14624
  tempCanvas.requestRenderAll();
14625
14625
  var dataURL = tempCanvas.toDataURL();
14626
+ console.log("Image--->", dataURL);
14626
14627
  tempCanvas.clear();
14627
14628
  tempCanvas.dispose();
14628
14629
  clonedGroup = null;
@@ -14640,17 +14641,18 @@ var SaveDesign = function SaveDesign(_ref) {
14640
14641
  return selectAllCanvasObjects();
14641
14642
  case 3:
14642
14643
  dataURL = _context.sent;
14643
- _context.next = 9;
14644
+ console.log();
14645
+ _context.next = 10;
14644
14646
  break;
14645
- case 6:
14646
- _context.prev = 6;
14647
+ case 7:
14648
+ _context.prev = 7;
14647
14649
  _context.t0 = _context["catch"](0);
14648
14650
  console.error('Error capturing canvas objects:', _context.t0);
14649
- case 9:
14651
+ case 10:
14650
14652
  case "end":
14651
14653
  return _context.stop();
14652
14654
  }
14653
- }, _callee, null, [[0, 6]]);
14655
+ }, _callee, null, [[0, 7]]);
14654
14656
  }))();
14655
14657
  canvasData = use3dddPlus.getState().applyColorFill(); // dataURL = canvas.toDataURL();
14656
14658
  // looping through the text shape objects & taking out text data to inject in the canvas json data & save