@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.
- package/dist/logoeditor.cjs.development.js +10 -8
- package/dist/logoeditor.cjs.development.js.map +1 -1
- package/dist/logoeditor.cjs.production.min.js +1 -1
- package/dist/logoeditor.cjs.production.min.js.map +1 -1
- package/dist/logoeditor.esm.js +10 -8
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
@@ -5451,11 +5451,13 @@ var initCanvas = function initCanvas() {
|
|
5451
5451
|
use3dddPlus.getState().fabricCanvas.traverse(function (node) {
|
5452
5452
|
if (node.type === 'text' || node.type === 'path') {
|
5453
5453
|
if (node.fill && (node.fill === 'rgb(0,0,0)' || node.fill === '#000' || node.fill === '#000000')) {
|
5454
|
-
|
5455
|
-
|
5456
|
-
|
5454
|
+
use3dddPlus.getState().fabricCanvas.remove(node);
|
5455
|
+
// node.set({
|
5456
|
+
// fill: '#ffff00',
|
5457
|
+
// });
|
5457
5458
|
}
|
5458
5459
|
}
|
5460
|
+
|
5459
5461
|
if (node.stroke && node.type !== 'line' && node.strokeWidth !== 0 && node.stroke !== '' && !colors.includes(node.stroke) && node.stroke !== 'rgb(0,0,0)') {
|
5460
5462
|
colors.push(node.stroke);
|
5461
5463
|
}
|
@@ -8457,7 +8459,7 @@ var Layers = function Layers(_ref) {
|
|
8457
8459
|
}, React__default.createElement("img", {
|
8458
8460
|
className: "rounded-lg p-2 " + (item.text ? 'object-contain' : ''),
|
8459
8461
|
style: {
|
8460
|
-
height: '
|
8462
|
+
height: '100%',
|
8461
8463
|
width: 'auto',
|
8462
8464
|
margin: 'auto'
|
8463
8465
|
},
|
@@ -9184,11 +9186,11 @@ var Properties = function Properties(_ref2) {
|
|
9184
9186
|
return textShapeChange(textSelected.shapeType, true);
|
9185
9187
|
case 9:
|
9186
9188
|
state = use3dddPlus.getState();
|
9189
|
+
state.updateModifaction(true);
|
9187
9190
|
state.forIconCapture();
|
9188
|
-
textSelected.icon =
|
9191
|
+
textSelected.icon = use3dddPlus.getState().iconImage;
|
9189
9192
|
canvas.requestRenderAll();
|
9190
9193
|
reduceFontSize();
|
9191
|
-
state.updateModifaction(true);
|
9192
9194
|
case 15:
|
9193
9195
|
case "end":
|
9194
9196
|
return _context3.stop();
|
@@ -9212,7 +9214,7 @@ var Properties = function Properties(_ref2) {
|
|
9212
9214
|
var state = use3dddPlus.getState();
|
9213
9215
|
state.updateModifaction(true);
|
9214
9216
|
state.forIconCapture();
|
9215
|
-
textSelected.icon =
|
9217
|
+
textSelected.icon = use3dddPlus.getState().iconImage;
|
9216
9218
|
canvas.requestRenderAll();
|
9217
9219
|
};
|
9218
9220
|
var textOutlineHandler = function textOutlineHandler(e) {
|
@@ -9236,7 +9238,7 @@ var Properties = function Properties(_ref2) {
|
|
9236
9238
|
var state = use3dddPlus.getState();
|
9237
9239
|
state.updateModifaction(true);
|
9238
9240
|
state.forIconCapture();
|
9239
|
-
activeText.icon =
|
9241
|
+
activeText.icon = use3dddPlus.getState().iconImage;
|
9240
9242
|
activeText.canvas.requestRenderAll();
|
9241
9243
|
}
|
9242
9244
|
};
|