@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.
@@ -3118,6 +3118,10 @@ var fabricSlice = function fabricSlice(set, get) {
3118
3118
  get().popupCanv.getObjects().forEach(function (obj) {
3119
3119
  if (obj.type === 'line') {
3120
3120
  get().popupCanv.remove(obj);
3121
+ } else {
3122
+ obj.set({
3123
+ perPixelTargetFind: true
3124
+ });
3121
3125
  }
3122
3126
  });
3123
3127
  var canvas = use3dddPlus.getState().popupCanv;
@@ -4244,9 +4248,6 @@ var converterSlice = function converterSlice(set, get) {
4244
4248
  (_use3dddPlus$getState2 = use3dddPlus.getState()) == null ? void 0 : (_use3dddPlus$getState3 = _use3dddPlus$getState2.popupCanv) == null ? void 0 : _use3dddPlus$getState3.add(rect);
4245
4249
  }
4246
4250
  }
4247
- /*loadedObject.set({
4248
- perPixelTargetFind: true ,
4249
- })*/
4250
4251
  canvas.add(loadedObject).renderAll();
4251
4252
  canvas.centerObject(loadedObject);
4252
4253
  canvas.setActiveObject(loadedObject);
@@ -4257,7 +4258,7 @@ var converterSlice = function converterSlice(set, get) {
4257
4258
  loading: false
4258
4259
  });
4259
4260
  use3dddPlus.getState().popUpCanvasUpdateModification(true);
4260
- var _objects = canvas.getActiveObjects();
4261
+ var _objects = canvas.getObjects();
4261
4262
  _objects.forEach(function (element) {
4262
4263
  if (element.type !== "line") {
4263
4264
  element.set({
@@ -6752,9 +6753,11 @@ var PopUpCanvas = function PopUpCanvas() {
6752
6753
  // Iterate through objects on the canvas and check if any intersect with the mouse click
6753
6754
  var removedColors = [];
6754
6755
  use3dddPlus.getState().popUpCanvasUpdateModification(true);
6755
- removedColors.push(event.target.fill);
6756
- popupCanv.remove(event.target);
6757
- popupCanv.renderAll();
6756
+ if (event.target.type !== "line") {
6757
+ removedColors.push(event.target.fill);
6758
+ popupCanv.remove(event.target);
6759
+ popupCanv.renderAll();
6760
+ }
6758
6761
  var defaultColorsCopy = defaultColorFillRef.current;
6759
6762
  removedColors.map(function (rc) {
6760
6763
  if (popupCanv.getObjects().filter(function (obj) {
@@ -6958,6 +6961,14 @@ var PopUpCanvas = function PopUpCanvas() {
6958
6961
  updated: dcf["default"]
6959
6962
  });
6960
6963
  }));
6964
+ var _objects = canvas.getObjects();
6965
+ _objects.forEach(function (element) {
6966
+ if (element.type === "path") {
6967
+ element.set({
6968
+ perPixelTargetFind: true
6969
+ });
6970
+ }
6971
+ });
6961
6972
  };
6962
6973
  var canvasZoomIn = function canvasZoomIn() {
6963
6974
  var newZoomLevel = zoomLevel + 0.1;