@threedddplus/logoeditor 0.0.64 → 0.0.66

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.
@@ -4609,7 +4609,6 @@ var initCanvas = function initCanvas() {
4609
4609
  getAllColors();
4610
4610
  };
4611
4611
  var onObjectMoving = function onObjectMoving(e) {
4612
- console.log("logoeditor on moving function", e);
4613
4612
  use3dddPlus.getState().updateModifaction(false);
4614
4613
  var obj = e.target;
4615
4614
  // if (
@@ -4701,14 +4700,14 @@ var initCanvas = function initCanvas() {
4701
4700
  return Math.abs(scaledObjCenterX - canvasCenterX) < threshold;
4702
4701
  }
4703
4702
  var horizontalLine = new fabric.fabric.Line([0, canv.height / 2, canv.height, canv.height / 2], {
4704
- stroke: "red",
4703
+ stroke: 'red',
4705
4704
  scaleX: 11,
4706
4705
  visible: false,
4707
4706
  selectable: false,
4708
4707
  type: 'line'
4709
4708
  });
4710
4709
  var verticalLine = new fabric.fabric.Line([canv.width / 2, 0, canv.width / 2, canv.width], {
4711
- stroke: "red",
4710
+ stroke: 'red',
4712
4711
  visible: false,
4713
4712
  selectable: false,
4714
4713
  type: 'line'
@@ -4829,13 +4828,14 @@ var initCanvas = function initCanvas() {
4829
4828
  }
4830
4829
 
4831
4830
  var removeItem = function removeItem(value) {
4832
- //@ts-ignore
4831
+ //@ts-ignore
4833
4832
  var index = use3dddPlus.getState().storeAllObject.findIndex(function (obj) {
4834
4833
  return obj.id === value.id;
4835
4834
  });
4836
4835
  if (index === -1 && value && value._objects && value._objects.length > 0) {
4836
+ var index = use3dddPlus.getState()
4837
4837
  //@ts-ignore
4838
- var index = use3dddPlus.getState().storeAllObject.indexOf(value._objects[0]);
4838
+ .storeAllObject.indexOf(value._objects[0]);
4839
4839
  }
4840
4840
  if (index > -1) {
4841
4841
  use3dddPlus.getState().storeAllObject.splice(index, 1);