@threedddplus/logoeditor 0.0.105 → 0.0.106
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 +21 -7
- 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 +21 -7
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
@@ -2803,8 +2803,19 @@ var fabricSlice = function fabricSlice(set, get) {
|
|
2803
2803
|
defaultColorFillCopy: dcf
|
2804
2804
|
});
|
2805
2805
|
},
|
2806
|
+
// updateModifaction: (toSet) => {
|
2807
|
+
// if (toSet) {
|
2808
|
+
// get().storeHistory.push(get().applyColorFill());
|
2809
|
+
// }
|
2810
|
+
// },
|
2806
2811
|
updateModifaction: function updateModifaction(toSet) {
|
2807
2812
|
if (toSet) {
|
2813
|
+
if (get().count > 1 && get().storeHistory.length > 1) {
|
2814
|
+
for (var i = 1; i < get().count; i++) {
|
2815
|
+
get().storeHistory.pop();
|
2816
|
+
}
|
2817
|
+
get().count = 1;
|
2818
|
+
}
|
2808
2819
|
get().storeHistory.push(get().applyColorFill());
|
2809
2820
|
}
|
2810
2821
|
},
|
@@ -9380,10 +9391,10 @@ var Rightmenu = function Rightmenu() {
|
|
9380
9391
|
canvas.renderAll();
|
9381
9392
|
reduceFontSize();
|
9382
9393
|
canvas.renderAll();
|
9383
|
-
|
9394
|
+
use3dddPlus.getState().updateModifaction(true);
|
9384
9395
|
use3dddPlus.getState().forIconCapture();
|
9385
9396
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9386
|
-
case
|
9397
|
+
case 15:
|
9387
9398
|
case "end":
|
9388
9399
|
return _context4.stop();
|
9389
9400
|
}
|
@@ -9400,7 +9411,7 @@ var Rightmenu = function Rightmenu() {
|
|
9400
9411
|
if (currentSelection === 'path') {
|
9401
9412
|
textShapeChange(textSelected.shapeType, true);
|
9402
9413
|
}
|
9403
|
-
|
9414
|
+
use3dddPlus.getState().updateModifaction(true);
|
9404
9415
|
use3dddPlus.getState().forIconCapture();
|
9405
9416
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9406
9417
|
canvas.renderAll();
|
@@ -9509,7 +9520,8 @@ var Rightmenu = function Rightmenu() {
|
|
9509
9520
|
use3dddPlus.getState().forIconCapture();
|
9510
9521
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9511
9522
|
reduceFontSize();
|
9512
|
-
|
9523
|
+
use3dddPlus.getState().updateModifaction(true);
|
9524
|
+
case 11:
|
9513
9525
|
case "end":
|
9514
9526
|
return _context5.stop();
|
9515
9527
|
}
|
@@ -9561,7 +9573,7 @@ var Rightmenu = function Rightmenu() {
|
|
9561
9573
|
if (currentSelection === 'path') {
|
9562
9574
|
textShapeChange(textSelected.shapeType, true);
|
9563
9575
|
}
|
9564
|
-
|
9576
|
+
use3dddPlus.getState().updateModifaction(true);
|
9565
9577
|
use3dddPlus.getState().forIconCapture();
|
9566
9578
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9567
9579
|
canvas.renderAll();
|
@@ -9586,7 +9598,7 @@ var Rightmenu = function Rightmenu() {
|
|
9586
9598
|
if (currentSelection === 'path') {
|
9587
9599
|
textShapeChange(textSelected.shapeType, true);
|
9588
9600
|
}
|
9589
|
-
|
9601
|
+
use3dddPlus.getState().updateModifaction(true);
|
9590
9602
|
use3dddPlus.getState().forIconCapture();
|
9591
9603
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9592
9604
|
canvas.renderAll();
|
@@ -9599,13 +9611,13 @@ var Rightmenu = function Rightmenu() {
|
|
9599
9611
|
if (currentSelection === 'path') {
|
9600
9612
|
textShapeChange(textSelected.shapeType, true);
|
9601
9613
|
}
|
9602
|
-
// use3dddPlus.getState().updateModifaction(true);
|
9603
9614
|
use3dddPlus.getState().forIconCapture();
|
9604
9615
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9605
9616
|
var _brNew = textSelected.getBoundingRect();
|
9606
9617
|
if (_brNew.width + _brNew.left + 45 >= dublicateText.canvas.width || _brNew.height + _brNew.top >= dublicateText.canvas.height || _brNew.left < 0 || _brNew.top < 0) {
|
9607
9618
|
textSelected.charSpacing = oldCharSpacing;
|
9608
9619
|
}
|
9620
|
+
use3dddPlus.getState().updateModifaction(true);
|
9609
9621
|
canvas.renderAll();
|
9610
9622
|
if (textSelected.aCoords.tr.x > 480) {
|
9611
9623
|
return;
|
@@ -9638,6 +9650,7 @@ var Rightmenu = function Rightmenu() {
|
|
9638
9650
|
}
|
9639
9651
|
canvas.sendToBack(use3dddPlus.getState().verticalLine);
|
9640
9652
|
canvas.sendToBack(use3dddPlus.getState().horizontalLine);
|
9653
|
+
use3dddPlus.getState().updateModifaction(true);
|
9641
9654
|
};
|
9642
9655
|
var changeArr = function changeArr(arr, fromIndex, toIndex) {
|
9643
9656
|
var element = arr.splice(fromIndex, 1)[0];
|
@@ -9647,6 +9660,7 @@ var Rightmenu = function Rightmenu() {
|
|
9647
9660
|
var deleteElement = function deleteElement(item) {
|
9648
9661
|
canvas.remove(item);
|
9649
9662
|
canvas.requestRenderAll();
|
9663
|
+
use3dddPlus.getState().updateModifaction(true);
|
9650
9664
|
removeItem(item);
|
9651
9665
|
};
|
9652
9666
|
var removeItem = function removeItem(value) {
|