@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
package/dist/logoeditor.esm.js
CHANGED
@@ -2795,8 +2795,19 @@ var fabricSlice = function fabricSlice(set, get) {
|
|
2795
2795
|
defaultColorFillCopy: dcf
|
2796
2796
|
});
|
2797
2797
|
},
|
2798
|
+
// updateModifaction: (toSet) => {
|
2799
|
+
// if (toSet) {
|
2800
|
+
// get().storeHistory.push(get().applyColorFill());
|
2801
|
+
// }
|
2802
|
+
// },
|
2798
2803
|
updateModifaction: function updateModifaction(toSet) {
|
2799
2804
|
if (toSet) {
|
2805
|
+
if (get().count > 1 && get().storeHistory.length > 1) {
|
2806
|
+
for (var i = 1; i < get().count; i++) {
|
2807
|
+
get().storeHistory.pop();
|
2808
|
+
}
|
2809
|
+
get().count = 1;
|
2810
|
+
}
|
2800
2811
|
get().storeHistory.push(get().applyColorFill());
|
2801
2812
|
}
|
2802
2813
|
},
|
@@ -9372,10 +9383,10 @@ var Rightmenu = function Rightmenu() {
|
|
9372
9383
|
canvas.renderAll();
|
9373
9384
|
reduceFontSize();
|
9374
9385
|
canvas.renderAll();
|
9375
|
-
|
9386
|
+
use3dddPlus.getState().updateModifaction(true);
|
9376
9387
|
use3dddPlus.getState().forIconCapture();
|
9377
9388
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9378
|
-
case
|
9389
|
+
case 15:
|
9379
9390
|
case "end":
|
9380
9391
|
return _context4.stop();
|
9381
9392
|
}
|
@@ -9392,7 +9403,7 @@ var Rightmenu = function Rightmenu() {
|
|
9392
9403
|
if (currentSelection === 'path') {
|
9393
9404
|
textShapeChange(textSelected.shapeType, true);
|
9394
9405
|
}
|
9395
|
-
|
9406
|
+
use3dddPlus.getState().updateModifaction(true);
|
9396
9407
|
use3dddPlus.getState().forIconCapture();
|
9397
9408
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9398
9409
|
canvas.renderAll();
|
@@ -9501,7 +9512,8 @@ var Rightmenu = function Rightmenu() {
|
|
9501
9512
|
use3dddPlus.getState().forIconCapture();
|
9502
9513
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9503
9514
|
reduceFontSize();
|
9504
|
-
|
9515
|
+
use3dddPlus.getState().updateModifaction(true);
|
9516
|
+
case 11:
|
9505
9517
|
case "end":
|
9506
9518
|
return _context5.stop();
|
9507
9519
|
}
|
@@ -9553,7 +9565,7 @@ var Rightmenu = function Rightmenu() {
|
|
9553
9565
|
if (currentSelection === 'path') {
|
9554
9566
|
textShapeChange(textSelected.shapeType, true);
|
9555
9567
|
}
|
9556
|
-
|
9568
|
+
use3dddPlus.getState().updateModifaction(true);
|
9557
9569
|
use3dddPlus.getState().forIconCapture();
|
9558
9570
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9559
9571
|
canvas.renderAll();
|
@@ -9578,7 +9590,7 @@ var Rightmenu = function Rightmenu() {
|
|
9578
9590
|
if (currentSelection === 'path') {
|
9579
9591
|
textShapeChange(textSelected.shapeType, true);
|
9580
9592
|
}
|
9581
|
-
|
9593
|
+
use3dddPlus.getState().updateModifaction(true);
|
9582
9594
|
use3dddPlus.getState().forIconCapture();
|
9583
9595
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9584
9596
|
canvas.renderAll();
|
@@ -9591,13 +9603,13 @@ var Rightmenu = function Rightmenu() {
|
|
9591
9603
|
if (currentSelection === 'path') {
|
9592
9604
|
textShapeChange(textSelected.shapeType, true);
|
9593
9605
|
}
|
9594
|
-
// use3dddPlus.getState().updateModifaction(true);
|
9595
9606
|
use3dddPlus.getState().forIconCapture();
|
9596
9607
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
9597
9608
|
var _brNew = textSelected.getBoundingRect();
|
9598
9609
|
if (_brNew.width + _brNew.left + 45 >= dublicateText.canvas.width || _brNew.height + _brNew.top >= dublicateText.canvas.height || _brNew.left < 0 || _brNew.top < 0) {
|
9599
9610
|
textSelected.charSpacing = oldCharSpacing;
|
9600
9611
|
}
|
9612
|
+
use3dddPlus.getState().updateModifaction(true);
|
9601
9613
|
canvas.renderAll();
|
9602
9614
|
if (textSelected.aCoords.tr.x > 480) {
|
9603
9615
|
return;
|
@@ -9630,6 +9642,7 @@ var Rightmenu = function Rightmenu() {
|
|
9630
9642
|
}
|
9631
9643
|
canvas.sendToBack(use3dddPlus.getState().verticalLine);
|
9632
9644
|
canvas.sendToBack(use3dddPlus.getState().horizontalLine);
|
9645
|
+
use3dddPlus.getState().updateModifaction(true);
|
9633
9646
|
};
|
9634
9647
|
var changeArr = function changeArr(arr, fromIndex, toIndex) {
|
9635
9648
|
var element = arr.splice(fromIndex, 1)[0];
|
@@ -9639,6 +9652,7 @@ var Rightmenu = function Rightmenu() {
|
|
9639
9652
|
var deleteElement = function deleteElement(item) {
|
9640
9653
|
canvas.remove(item);
|
9641
9654
|
canvas.requestRenderAll();
|
9655
|
+
use3dddPlus.getState().updateModifaction(true);
|
9642
9656
|
removeItem(item);
|
9643
9657
|
};
|
9644
9658
|
var removeItem = function removeItem(value) {
|