@threedddplus/logoeditor 0.0.196 → 0.0.198

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.
@@ -5443,11 +5443,13 @@ var initCanvas = function initCanvas() {
5443
5443
  use3dddPlus.getState().fabricCanvas.traverse(function (node) {
5444
5444
  if (node.type === 'text' || node.type === 'path') {
5445
5445
  if (node.fill && (node.fill === 'rgb(0,0,0)' || node.fill === '#000' || node.fill === '#000000')) {
5446
- node.set({
5447
- fill: '#040404'
5448
- });
5446
+ use3dddPlus.getState().fabricCanvas.remove(node);
5447
+ // node.set({
5448
+ // fill: '#ffff00',
5449
+ // });
5449
5450
  }
5450
5451
  }
5452
+
5451
5453
  if (node.stroke && node.type !== 'line' && node.strokeWidth !== 0 && node.stroke !== '' && !colors.includes(node.stroke) && node.stroke !== 'rgb(0,0,0)') {
5452
5454
  colors.push(node.stroke);
5453
5455
  }
@@ -8449,7 +8451,7 @@ var Layers = function Layers(_ref) {
8449
8451
  }, React.createElement("img", {
8450
8452
  className: "rounded-lg p-2 " + (item.text ? 'object-contain' : ''),
8451
8453
  style: {
8452
- height: 'auto',
8454
+ height: '100%',
8453
8455
  width: 'auto',
8454
8456
  margin: 'auto'
8455
8457
  },
@@ -9176,11 +9178,11 @@ var Properties = function Properties(_ref2) {
9176
9178
  return textShapeChange(textSelected.shapeType, true);
9177
9179
  case 9:
9178
9180
  state = use3dddPlus.getState();
9181
+ state.updateModifaction(true);
9179
9182
  state.forIconCapture();
9180
- textSelected.icon = state.iconImage;
9183
+ textSelected.icon = use3dddPlus.getState().iconImage;
9181
9184
  canvas.requestRenderAll();
9182
9185
  reduceFontSize();
9183
- state.updateModifaction(true);
9184
9186
  case 15:
9185
9187
  case "end":
9186
9188
  return _context3.stop();
@@ -9204,7 +9206,7 @@ var Properties = function Properties(_ref2) {
9204
9206
  var state = use3dddPlus.getState();
9205
9207
  state.updateModifaction(true);
9206
9208
  state.forIconCapture();
9207
- textSelected.icon = state.iconImage;
9209
+ textSelected.icon = use3dddPlus.getState().iconImage;
9208
9210
  canvas.requestRenderAll();
9209
9211
  };
9210
9212
  var textOutlineHandler = function textOutlineHandler(e) {
@@ -9228,7 +9230,7 @@ var Properties = function Properties(_ref2) {
9228
9230
  var state = use3dddPlus.getState();
9229
9231
  state.updateModifaction(true);
9230
9232
  state.forIconCapture();
9231
- activeText.icon = state.iconImage;
9233
+ activeText.icon = use3dddPlus.getState().iconImage;
9232
9234
  activeText.canvas.requestRenderAll();
9233
9235
  }
9234
9236
  };