@threedddplus/logoeditor 0.0.132 → 0.0.134

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.
@@ -3109,6 +3109,10 @@ var fabricSlice = function fabricSlice(set, get) {
3109
3109
  get().popupCanv.getObjects().forEach(function (obj) {
3110
3110
  if (obj.type === 'line') {
3111
3111
  get().popupCanv.remove(obj);
3112
+ } else {
3113
+ obj.set({
3114
+ perPixelTargetFind: true
3115
+ });
3112
3116
  }
3113
3117
  });
3114
3118
  var canvas = use3dddPlus.getState().popupCanv;
@@ -4235,9 +4239,6 @@ var converterSlice = function converterSlice(set, get) {
4235
4239
  (_use3dddPlus$getState2 = use3dddPlus.getState()) == null ? void 0 : (_use3dddPlus$getState3 = _use3dddPlus$getState2.popupCanv) == null ? void 0 : _use3dddPlus$getState3.add(rect);
4236
4240
  }
4237
4241
  }
4238
- /*loadedObject.set({
4239
- perPixelTargetFind: true ,
4240
- })*/
4241
4242
  canvas.add(loadedObject).renderAll();
4242
4243
  canvas.centerObject(loadedObject);
4243
4244
  canvas.setActiveObject(loadedObject);
@@ -4248,7 +4249,7 @@ var converterSlice = function converterSlice(set, get) {
4248
4249
  loading: false
4249
4250
  });
4250
4251
  use3dddPlus.getState().popUpCanvasUpdateModification(true);
4251
- var _objects = canvas.getActiveObjects();
4252
+ var _objects = canvas.getObjects();
4252
4253
  _objects.forEach(function (element) {
4253
4254
  if (element.type !== "line") {
4254
4255
  element.set({
@@ -6743,9 +6744,11 @@ var PopUpCanvas = function PopUpCanvas() {
6743
6744
  // Iterate through objects on the canvas and check if any intersect with the mouse click
6744
6745
  var removedColors = [];
6745
6746
  use3dddPlus.getState().popUpCanvasUpdateModification(true);
6746
- removedColors.push(event.target.fill);
6747
- popupCanv.remove(event.target);
6748
- popupCanv.renderAll();
6747
+ if (event.target.type !== "line") {
6748
+ removedColors.push(event.target.fill);
6749
+ popupCanv.remove(event.target);
6750
+ popupCanv.renderAll();
6751
+ }
6749
6752
  var defaultColorsCopy = defaultColorFillRef.current;
6750
6753
  removedColors.map(function (rc) {
6751
6754
  if (popupCanv.getObjects().filter(function (obj) {
@@ -6949,6 +6952,14 @@ var PopUpCanvas = function PopUpCanvas() {
6949
6952
  updated: dcf["default"]
6950
6953
  });
6951
6954
  }));
6955
+ var _objects = canvas.getObjects();
6956
+ _objects.forEach(function (element) {
6957
+ if (element.type === "path") {
6958
+ element.set({
6959
+ perPixelTargetFind: true
6960
+ });
6961
+ }
6962
+ });
6952
6963
  };
6953
6964
  var canvasZoomIn = function canvasZoomIn() {
6954
6965
  var newZoomLevel = zoomLevel + 0.1;