@threedddplus/logoeditor 0.0.189 → 0.0.190

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.
@@ -5286,10 +5286,13 @@ var initCanvas = function initCanvas() {
5286
5286
  verticalLine: verticalLine
5287
5287
  });
5288
5288
  var deleteImg = document.createElement('img');
5289
+ deleteImg.crossOrigin = 'anonymous';
5289
5290
  deleteImg.src = 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/icons/delete.png';
5290
5291
  var rotateImg = document.createElement('img');
5292
+ rotateImg.crossOrigin = 'anonymous';
5291
5293
  rotateImg.src = 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/icons/rotate.png';
5292
5294
  var settingImg = document.createElement('img');
5295
+ settingImg.crossOrigin = 'anonymous';
5293
5296
  settingImg.src = 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/icons/settings.png';
5294
5297
  fabric.fabric.Object.prototype.objectCaching = false;
5295
5298
  fabric.fabric.Object.prototype.transparentCorners = false;
@@ -5436,8 +5439,8 @@ var initCanvas = function initCanvas() {
5436
5439
  }
5437
5440
  var colors = [];
5438
5441
  use3dddPlus.getState().fabricCanvas.traverse(function (node) {
5439
- if (node.type === "text" || node.type === "path") {
5440
- if (node.fill && (node.fill === 'rgb(0,0,0)' || node.fill === "#000" || node.fill === "#000000")) {
5442
+ if (node.type === 'text' || node.type === 'path') {
5443
+ if (node.fill && (node.fill === 'rgb(0,0,0)' || node.fill === '#000' || node.fill === '#000000')) {
5441
5444
  node.set({
5442
5445
  fill: '#040404'
5443
5446
  });