@threedddplus/logoeditor 0.0.134 → 0.0.136

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.
@@ -1814,7 +1814,7 @@ var toastMessages =
1814
1814
  return CustomToast('error', 'Not more than 8 colors allowed!', 9);
1815
1815
  },
1816
1816
  noIteminCanvas: function noIteminCanvas() {
1817
- return CustomToast('warning', 'No item in canvas to save', 10);
1817
+ return CustomToast('error', 'No item in canvas to save', 10);
1818
1818
  },
1819
1819
  fileSize: function fileSize() {
1820
1820
  return CustomToast('warning', 'We cannot process this file because it is larger than 25MB. Please decrease the size and try again.', 11);
@@ -4051,9 +4051,9 @@ var converterSlice = function converterSlice(set, get) {
4051
4051
  var canvas = (_canvasToLoad = canvasToLoad) != null ? _canvasToLoad : use3dddPlus.getState().popupCanv;
4052
4052
  var canvasWidth = canvas.width;
4053
4053
  var canvasHeight = canvas.height;
4054
- var val = 600;
4054
+ var val = 300;
4055
4055
  if ((loadedObject.width <= 200 || loadedObject.height <= 200) && (loadedObject.minX === -0 || loadedObject.minX)) {
4056
- val = 900;
4056
+ val = 600;
4057
4057
  }
4058
4058
  if (Math.ceil(loadedObject.width + loadedObject.left + 45) >= Math.floor(canvasWidth)) {
4059
4059
  loadedObject.scaleToWidth(val);
@@ -4178,7 +4178,7 @@ var converterSlice = function converterSlice(set, get) {
4178
4178
  lockMovementX: true,
4179
4179
  lockMovementY: true,
4180
4180
  //@ts-ignore
4181
- setControlVisible: false
4181
+ setControlVisible: true
4182
4182
  });
4183
4183
  // loadedObject.id = use3dddPlus.getState().guid();
4184
4184
  // loadedObject = new fabric.Group(objImage, options);
@@ -4257,6 +4257,7 @@ var converterSlice = function converterSlice(set, get) {
4257
4257
  });
4258
4258
  }
4259
4259
  });
4260
+ canvas.discardActiveObject();
4260
4261
  });
4261
4262
  };
4262
4263
  var getDesignConceptSVGData = function getDesignConceptSVGData(svgData) {
@@ -6740,10 +6741,7 @@ var PopUpCanvas = function PopUpCanvas() {
6740
6741
  window.addEventListener('click', removeColorPalatte);
6741
6742
  //FOR REMOVING COLOR
6742
6743
  popupCanv.on('mouse:down', function (event) {
6743
- popupCanv.discardActiveObject();
6744
- // Iterate through objects on the canvas and check if any intersect with the mouse click
6745
6744
  var removedColors = [];
6746
- use3dddPlus.getState().popUpCanvasUpdateModification(true);
6747
6745
  if (event.target.type !== "line") {
6748
6746
  removedColors.push(event.target.fill);
6749
6747
  popupCanv.remove(event.target);
@@ -6760,6 +6758,7 @@ var PopUpCanvas = function PopUpCanvas() {
6760
6758
  }
6761
6759
  });
6762
6760
  setDefaultColorFill(defaultColorsCopy);
6761
+ use3dddPlus.getState().popUpCanvasUpdateModification(true);
6763
6762
  });
6764
6763
  return function () {
6765
6764
  setHasUploadScreen(false);
@@ -12323,9 +12322,18 @@ var decorationData =
12323
12322
  icon: '',
12324
12323
  thumbnail: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/designs/mascot/SKLL001.svg',
12325
12324
  tags: 'Skulls'
12326
- },
12327
- // {id:171, code:'',name:'STAR003', description:'', type:'design-style-mascots', linkedNodes:[77], threeD:true,icon:'',thumbnail:'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/designs/mascot/STAR003.svg',tags:'Ravens'},
12328
- {
12325
+ }, {
12326
+ id: 171,
12327
+ code: '',
12328
+ name: 'STAR003',
12329
+ description: '',
12330
+ type: 'design-style-mascots',
12331
+ linkedNodes: [77],
12332
+ threeD: true,
12333
+ icon: '',
12334
+ thumbnail: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/designs/mascot/STAR003.svg',
12335
+ tags: 'Ravens'
12336
+ }, {
12329
12337
  id: 172,
12330
12338
  code: '',
12331
12339
  name: 'TIGR003',