@threedddplus/logoeditor 0.0.130 → 0.0.132
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 +14 -22
- 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 +14 -22
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -4235,6 +4235,9 @@ var converterSlice = function converterSlice(set, get) {
|
|
4235
4235
|
(_use3dddPlus$getState2 = use3dddPlus.getState()) == null ? void 0 : (_use3dddPlus$getState3 = _use3dddPlus$getState2.popupCanv) == null ? void 0 : _use3dddPlus$getState3.add(rect);
|
4236
4236
|
}
|
4237
4237
|
}
|
4238
|
+
/*loadedObject.set({
|
4239
|
+
perPixelTargetFind: true ,
|
4240
|
+
})*/
|
4238
4241
|
canvas.add(loadedObject).renderAll();
|
4239
4242
|
canvas.centerObject(loadedObject);
|
4240
4243
|
canvas.setActiveObject(loadedObject);
|
@@ -4245,6 +4248,14 @@ var converterSlice = function converterSlice(set, get) {
|
|
4245
4248
|
loading: false
|
4246
4249
|
});
|
4247
4250
|
use3dddPlus.getState().popUpCanvasUpdateModification(true);
|
4251
|
+
var _objects = canvas.getActiveObjects();
|
4252
|
+
_objects.forEach(function (element) {
|
4253
|
+
if (element.type !== "line") {
|
4254
|
+
element.set({
|
4255
|
+
perPixelTargetFind: true
|
4256
|
+
});
|
4257
|
+
}
|
4258
|
+
});
|
4248
4259
|
});
|
4249
4260
|
};
|
4250
4261
|
var getDesignConceptSVGData = function getDesignConceptSVGData(svgData) {
|
@@ -6729,31 +6740,12 @@ var PopUpCanvas = function PopUpCanvas() {
|
|
6729
6740
|
//FOR REMOVING COLOR
|
6730
6741
|
popupCanv.on('mouse:down', function (event) {
|
6731
6742
|
popupCanv.discardActiveObject();
|
6732
|
-
var pointer = popupCanv.getPointer(event.e);
|
6733
|
-
console.log(event.target.fill);
|
6734
|
-
var target = popupCanv.findTarget(event.e, true);
|
6735
|
-
if (target.type !== "line") {
|
6736
|
-
console.log('Object selected:', target.type);
|
6737
|
-
target.bringToFront();
|
6738
|
-
} else {
|
6739
|
-
console.log('No object selected at', pointer);
|
6740
|
-
}
|
6741
|
-
// console.log('MOUSE-CLICK-->',mouseClick);
|
6742
6743
|
// Iterate through objects on the canvas and check if any intersect with the mouse click
|
6743
6744
|
var removedColors = [];
|
6744
6745
|
use3dddPlus.getState().popUpCanvasUpdateModification(true);
|
6745
|
-
|
6746
|
-
popupCanv.
|
6747
|
-
|
6748
|
-
//@ts-ignore
|
6749
|
-
if (obj.containsPoint(pointer) && !color) {
|
6750
|
-
removedColors.push(obj.fill);
|
6751
|
-
popupCanv.remove(obj);
|
6752
|
-
popupCanv.renderAll();
|
6753
|
-
color = obj.fill;
|
6754
|
-
}
|
6755
|
-
}
|
6756
|
-
});
|
6746
|
+
removedColors.push(event.target.fill);
|
6747
|
+
popupCanv.remove(event.target);
|
6748
|
+
popupCanv.renderAll();
|
6757
6749
|
var defaultColorsCopy = defaultColorFillRef.current;
|
6758
6750
|
removedColors.map(function (rc) {
|
6759
6751
|
if (popupCanv.getObjects().filter(function (obj) {
|