@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.
@@ -1823,7 +1823,7 @@ var toastMessages =
1823
1823
  return CustomToast('error', 'Not more than 8 colors allowed!', 9);
1824
1824
  },
1825
1825
  noIteminCanvas: function noIteminCanvas() {
1826
- return CustomToast('warning', 'No item in canvas to save', 10);
1826
+ return CustomToast('error', 'No item in canvas to save', 10);
1827
1827
  },
1828
1828
  fileSize: function fileSize() {
1829
1829
  return CustomToast('warning', 'We cannot process this file because it is larger than 25MB. Please decrease the size and try again.', 11);
@@ -4060,9 +4060,9 @@ var converterSlice = function converterSlice(set, get) {
4060
4060
  var canvas = (_canvasToLoad = canvasToLoad) != null ? _canvasToLoad : use3dddPlus.getState().popupCanv;
4061
4061
  var canvasWidth = canvas.width;
4062
4062
  var canvasHeight = canvas.height;
4063
- var val = 600;
4063
+ var val = 300;
4064
4064
  if ((loadedObject.width <= 200 || loadedObject.height <= 200) && (loadedObject.minX === -0 || loadedObject.minX)) {
4065
- val = 900;
4065
+ val = 600;
4066
4066
  }
4067
4067
  if (Math.ceil(loadedObject.width + loadedObject.left + 45) >= Math.floor(canvasWidth)) {
4068
4068
  loadedObject.scaleToWidth(val);
@@ -4187,7 +4187,7 @@ var converterSlice = function converterSlice(set, get) {
4187
4187
  lockMovementX: true,
4188
4188
  lockMovementY: true,
4189
4189
  //@ts-ignore
4190
- setControlVisible: false
4190
+ setControlVisible: true
4191
4191
  });
4192
4192
  // loadedObject.id = use3dddPlus.getState().guid();
4193
4193
  // loadedObject = new fabric.Group(objImage, options);
@@ -4266,6 +4266,7 @@ var converterSlice = function converterSlice(set, get) {
4266
4266
  });
4267
4267
  }
4268
4268
  });
4269
+ canvas.discardActiveObject();
4269
4270
  });
4270
4271
  };
4271
4272
  var getDesignConceptSVGData = function getDesignConceptSVGData(svgData) {
@@ -6749,10 +6750,7 @@ var PopUpCanvas = function PopUpCanvas() {
6749
6750
  window.addEventListener('click', removeColorPalatte);
6750
6751
  //FOR REMOVING COLOR
6751
6752
  popupCanv.on('mouse:down', function (event) {
6752
- popupCanv.discardActiveObject();
6753
- // Iterate through objects on the canvas and check if any intersect with the mouse click
6754
6753
  var removedColors = [];
6755
- use3dddPlus.getState().popUpCanvasUpdateModification(true);
6756
6754
  if (event.target.type !== "line") {
6757
6755
  removedColors.push(event.target.fill);
6758
6756
  popupCanv.remove(event.target);
@@ -6769,6 +6767,7 @@ var PopUpCanvas = function PopUpCanvas() {
6769
6767
  }
6770
6768
  });
6771
6769
  setDefaultColorFill(defaultColorsCopy);
6770
+ use3dddPlus.getState().popUpCanvasUpdateModification(true);
6772
6771
  });
6773
6772
  return function () {
6774
6773
  setHasUploadScreen(false);
@@ -12332,9 +12331,18 @@ var decorationData =
12332
12331
  icon: '',
12333
12332
  thumbnail: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/designs/mascot/SKLL001.svg',
12334
12333
  tags: 'Skulls'
12335
- },
12336
- // {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'},
12337
- {
12334
+ }, {
12335
+ id: 171,
12336
+ code: '',
12337
+ name: 'STAR003',
12338
+ description: '',
12339
+ type: 'design-style-mascots',
12340
+ linkedNodes: [77],
12341
+ threeD: true,
12342
+ icon: '',
12343
+ thumbnail: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/designs/mascot/STAR003.svg',
12344
+ tags: 'Ravens'
12345
+ }, {
12338
12346
  id: 172,
12339
12347
  code: '',
12340
12348
  name: 'TIGR003',