@threedddplus/logoeditor 0.0.121 → 0.0.122
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.
- package/dist/components/Rightmenu/constants.d.ts +1 -0
- package/dist/logoeditor.cjs.development.js +106 -71
- package/dist/logoeditor.cjs.development.js.map +1 -1
- package/dist/logoeditor.cjs.production.min.js +1 -1
- package/dist/logoeditor.cjs.production.min.js.map +1 -1
- package/dist/logoeditor.esm.js +106 -71
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -2
package/dist/logoeditor.esm.js
CHANGED
@@ -2988,18 +2988,18 @@ var fabricSlice = function fabricSlice(set, get) {
|
|
2988
2988
|
filterValue: event
|
2989
2989
|
});
|
2990
2990
|
if (event === 'All') {
|
2991
|
-
get().setFilteredMascots(get().availableMascots
|
2992
|
-
|
2993
|
-
|
2991
|
+
get().setFilteredMascots(get().availableMascots
|
2992
|
+
// get().availableMascots.map((item) => item.thumbnail)
|
2993
|
+
);
|
2994
2994
|
} else {
|
2995
2995
|
var filteredData = get().availableMascots.filter(function (item) {
|
2996
2996
|
return item.tags.includes(event);
|
2997
2997
|
});
|
2998
|
-
get().setFilteredMascots(filteredData
|
2999
|
-
|
3000
|
-
}));
|
2998
|
+
get().setFilteredMascots(filteredData);
|
2999
|
+
// get().setFilteredMascots(filteredData.map((item) => item.thumbnail));
|
3001
3000
|
}
|
3002
3001
|
},
|
3002
|
+
|
3003
3003
|
filterValue: '',
|
3004
3004
|
displayProductColor: false,
|
3005
3005
|
setDisplayProductColor: function setDisplayProductColor() {
|
@@ -3954,6 +3954,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
3954
3954
|
if (canvasToLoad === void 0) {
|
3955
3955
|
canvasToLoad = use3dddPlus.getState().popupCanv;
|
3956
3956
|
}
|
3957
|
+
// console.log("svgstr\n",svgstr , 'color-VAL\n',colorValue ,'canvas\n' ,canvasToLoad);
|
3957
3958
|
fabric.loadSVGFromString(
|
3958
3959
|
//@ts-ignore
|
3959
3960
|
new String(svgstr), function (objects, options) {
|
@@ -3975,6 +3976,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
3975
3976
|
node = item;
|
3976
3977
|
}
|
3977
3978
|
});
|
3979
|
+
console.log(node, path);
|
3978
3980
|
if (node && path) {
|
3979
3981
|
var _resItem$node$childre, _resItem$node$childre2;
|
3980
3982
|
var fontSize = (_resItem$node$childre = resItem.node.children[0]) == null ? void 0 : (_resItem$node$childre2 = _resItem$node$childre.getAttribute('font-size')) == null ? void 0 : _resItem$node$childre2.replace('px', '');
|
@@ -4358,12 +4360,14 @@ var converterSlice = function converterSlice(set, get) {
|
|
4358
4360
|
if (convert === void 0) {
|
4359
4361
|
convert = true;
|
4360
4362
|
}
|
4363
|
+
console.log("ext\n", ext);
|
4361
4364
|
// use3dddPlus.setState({ uploadImageModalDisplay: true });
|
4362
4365
|
use3dddPlus.setState({
|
4363
4366
|
loading: true
|
4364
4367
|
});
|
4365
4368
|
if (convert) {
|
4366
4369
|
if (isSVG) {
|
4370
|
+
console.log("entering into fileupload-->");
|
4367
4371
|
var reader = new FileReader();
|
4368
4372
|
reader.onload = function (e) {
|
4369
4373
|
use3dddPlus.setState({
|
@@ -4373,6 +4377,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
4373
4377
|
};
|
4374
4378
|
reader.readAsText(data);
|
4375
4379
|
} else {
|
4380
|
+
console.log("entering INTO ImageTracer-->");
|
4376
4381
|
ImageTracer.imageToSVG(data, function (svgstr) {
|
4377
4382
|
use3dddPlus.setState({
|
4378
4383
|
imageData: svgstr
|
@@ -4381,6 +4386,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
4381
4386
|
}, ext && (ext.toLowerCase() === 'jpg' || ext.toLowerCase() === 'jpeg') ? optionpresets.jpg : ext.toLowerCase() === 'png' ? optionpresets.png : optionpresets["default"]);
|
4382
4387
|
}
|
4383
4388
|
} else {
|
4389
|
+
console.log("entering iINTO PROCESSIMAGE--->");
|
4384
4390
|
processImage(data, 8);
|
4385
4391
|
}
|
4386
4392
|
},
|
@@ -6801,36 +6807,19 @@ var PopUpCanvas = function PopUpCanvas() {
|
|
6801
6807
|
popupCanvas: popupCanvas
|
6802
6808
|
});
|
6803
6809
|
popupCanvas.setActiveObject(sel);
|
6804
|
-
// {
|
6805
|
-
// _objects: sel._objects.filter((obj) => obj.type !== 'line'),
|
6806
|
-
// }
|
6807
|
-
// popupCanvas.remove(...popupCanvas.getObjects());
|
6808
6810
|
popupCanvas.requestRenderAll();
|
6809
6811
|
var clipboard;
|
6810
6812
|
popupCanvas.getActiveObject().clone(function (cloned) {
|
6811
6813
|
clipboard = cloned;
|
6812
|
-
// });
|
6813
|
-
// if (clipboard.type === 'activeSelection') {
|
6814
|
-
// clipboard.canvas = canvas;
|
6815
|
-
// const objs = [];
|
6816
|
-
// clipboard.forEachObject(function (obj) {
|
6817
|
-
// objs.push(obj);
|
6818
|
-
// });
|
6819
|
-
// const alltogetherObj = new fabric.Group(objs, {});
|
6820
|
-
// canvas.centerObject(alltogetherObj);
|
6821
|
-
// canvas.add(alltogetherObj);
|
6822
|
-
// canvas.setActiveObject(alltogetherObj);
|
6823
|
-
// alltogetherObj.setCoords();
|
6824
|
-
// use3dddPlus.getState().forStoringAllObject(alltogetherObj); //for pushing the data into array for layers
|
6825
|
-
// } else {
|
6826
|
-
// canvas.add(clipboard);
|
6827
|
-
// }
|
6828
|
-
// canvas.requestRenderAll();
|
6829
|
-
// popupCanvas.clear();
|
6830
6814
|
if (clipboard && clipboard.type === 'activeSelection') {
|
6831
6815
|
clipboard.canvas = canvas;
|
6832
6816
|
var objs = [];
|
6833
6817
|
clipboard.forEachObject(function (obj) {
|
6818
|
+
if (!obj.id) {
|
6819
|
+
obj.set({
|
6820
|
+
id: use3dddPlus.getState().guid()
|
6821
|
+
});
|
6822
|
+
}
|
6834
6823
|
objs.push(obj);
|
6835
6824
|
});
|
6836
6825
|
var alltogetherObj = new fabric.Group(objs, {});
|
@@ -6839,7 +6828,8 @@ var PopUpCanvas = function PopUpCanvas() {
|
|
6839
6828
|
canvas.setActiveObject(alltogetherObj);
|
6840
6829
|
alltogetherObj.set({
|
6841
6830
|
//@ts-ignore
|
6842
|
-
colorFill: use3dddPlus.getState().colorFill
|
6831
|
+
colorFill: use3dddPlus.getState().colorFill,
|
6832
|
+
id: use3dddPlus.getState().guid()
|
6843
6833
|
});
|
6844
6834
|
alltogetherObj.setCoords();
|
6845
6835
|
use3dddPlus.getState().forStoringAllObject(alltogetherObj); //for pushing the data into array for layers
|
@@ -7327,7 +7317,7 @@ var PopUpCanvas = function PopUpCanvas() {
|
|
7327
7317
|
}));
|
7328
7318
|
};
|
7329
7319
|
|
7330
|
-
// import
|
7320
|
+
// import axios from 'axios';
|
7331
7321
|
var UploadLogo = function UploadLogo() {
|
7332
7322
|
var _useState = useState(null),
|
7333
7323
|
setSelectedFile = _useState[1];
|
@@ -7351,7 +7341,7 @@ var UploadLogo = function UploadLogo() {
|
|
7351
7341
|
|
7352
7342
|
var svgConverter = /*#__PURE__*/function () {
|
7353
7343
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
7354
|
-
var ext, tiffData, aiToSvg, formData, response
|
7344
|
+
var ext, tiffData, aiToSvg, formData, response;
|
7355
7345
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
7356
7346
|
while (1) switch (_context.prev = _context.next) {
|
7357
7347
|
case 0:
|
@@ -7365,7 +7355,7 @@ var UploadLogo = function UploadLogo() {
|
|
7365
7355
|
break;
|
7366
7356
|
}
|
7367
7357
|
imageToSVG(data, ext, true);
|
7368
|
-
_context.next =
|
7358
|
+
_context.next = 27;
|
7369
7359
|
break;
|
7370
7360
|
case 6:
|
7371
7361
|
if (!(ext === 'tif' || ext === 'tiff')) {
|
@@ -7377,14 +7367,13 @@ var UploadLogo = function UploadLogo() {
|
|
7377
7367
|
case 9:
|
7378
7368
|
tiffData = _context.sent;
|
7379
7369
|
imageToSVG(tiffData, ext);
|
7380
|
-
_context.next =
|
7370
|
+
_context.next = 27;
|
7381
7371
|
break;
|
7382
7372
|
case 13:
|
7383
7373
|
if (!(ext === 'ai' || ext === 'pdf')) {
|
7384
7374
|
_context.next = 21;
|
7385
7375
|
break;
|
7386
7376
|
}
|
7387
|
-
// console.log(loadImageFromURL);
|
7388
7377
|
use3dddPlus.setState({
|
7389
7378
|
loading: true
|
7390
7379
|
});
|
@@ -7392,7 +7381,6 @@ var UploadLogo = function UploadLogo() {
|
|
7392
7381
|
return aiConvert(data);
|
7393
7382
|
case 17:
|
7394
7383
|
aiToSvg = _context.sent;
|
7395
|
-
// console.log(aiToSvg)
|
7396
7384
|
fetch(aiToSvg.s3_file_url + '?timestamp=' + Date.now()).then(function (response) {
|
7397
7385
|
return response.text();
|
7398
7386
|
}).then(function (svgText) {
|
@@ -7403,41 +7391,44 @@ var UploadLogo = function UploadLogo() {
|
|
7403
7391
|
loading: false
|
7404
7392
|
});
|
7405
7393
|
});
|
7406
|
-
_context.next =
|
7394
|
+
_context.next = 27;
|
7407
7395
|
break;
|
7408
7396
|
case 21:
|
7409
|
-
// const imageBuffer = await sharp(data)
|
7410
|
-
// .resize(300, 300) // Resize the image to 300x300 pixels
|
7411
|
-
// .toBuffer();
|
7412
|
-
// const imaeBlob = new Blob([imageBuffer], { type: 'image/png' });
|
7413
|
-
// let objectURL = URL.createObjectURL(data);
|
7414
7397
|
formData = new FormData();
|
7415
7398
|
formData.append('image', data);
|
7416
|
-
|
7417
|
-
|
7418
|
-
|
7399
|
+
/* axios({
|
7400
|
+
url: "https://vectorizer.ai/api/v1/vectorize",
|
7401
|
+
method: "POST",
|
7402
|
+
headers :{
|
7403
|
+
user: 'vks34swmmj4s8wg',
|
7404
|
+
pass: 'f9ivolvk1mc5khc7ja53bp2rst5d4cuk5q02oqfoj3mn1ag3sig2',
|
7405
|
+
},
|
7406
|
+
data: formData,
|
7407
|
+
})
|
7408
|
+
.then((res) => {console.log(res);})
|
7409
|
+
.catch((err) => {console.log(err)});*/
|
7410
|
+
_context.next = 25;
|
7411
|
+
return fetch('https://vectorizer.ai/api/v1/vectorize', {
|
7419
7412
|
method: 'POST',
|
7413
|
+
headers: {
|
7414
|
+
user: 'vks34swmmj4s8wg',
|
7415
|
+
pass: 'f9ivolvk1mc5khc7ja53bp2rst5d4cuk5q02oqfoj3mn1ag3sig2'
|
7416
|
+
},
|
7420
7417
|
body: formData
|
7421
7418
|
});
|
7422
|
-
case
|
7419
|
+
case 25:
|
7423
7420
|
response = _context.sent;
|
7424
|
-
if (
|
7425
|
-
|
7426
|
-
|
7421
|
+
if (response.ok) {
|
7422
|
+
console.log(response);
|
7423
|
+
// const blob = await response.blob();
|
7424
|
+
// const imageUrl = URL.createObjectURL(blob);
|
7425
|
+
// imageToSVG(imageUrl, ext);
|
7426
|
+
} else {
|
7427
|
+
alert('Failed to process the image');
|
7427
7428
|
}
|
7428
|
-
|
7429
|
-
return response.blob();
|
7430
|
-
case 30:
|
7431
|
-
blob = _context.sent;
|
7432
|
-
imageUrl = URL.createObjectURL(blob); // setProcessedImage(imageUrl);
|
7433
|
-
imageToSVG(imageUrl, ext);
|
7434
|
-
_context.next = 36;
|
7435
|
-
break;
|
7436
|
-
case 35:
|
7437
|
-
alert('Failed to process the image');
|
7438
|
-
case 36:
|
7429
|
+
case 27:
|
7439
7430
|
setSelectedFile(null);
|
7440
|
-
case
|
7431
|
+
case 28:
|
7441
7432
|
case "end":
|
7442
7433
|
return _context.stop();
|
7443
7434
|
}
|
@@ -8370,81 +8361,107 @@ var Layers = function Layers(_ref) {
|
|
8370
8361
|
|
8371
8362
|
var fontFamilies = [{
|
8372
8363
|
name: 'Accel',
|
8364
|
+
label: 'Accel',
|
8373
8365
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/accelerator_richardson.woff'
|
8374
8366
|
}, {
|
8375
8367
|
name: 'Athletic Block',
|
8368
|
+
label: 'Athletic Block',
|
8376
8369
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/athletic.ttf'
|
8377
8370
|
}, {
|
8378
8371
|
name: 'Ballpark',
|
8372
|
+
label: 'Ballpark',
|
8379
8373
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/ballpark.TTF'
|
8380
8374
|
}, {
|
8381
8375
|
name: 'BebasKai',
|
8376
|
+
label: 'BebasKai',
|
8382
8377
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/BebasKai.otf'
|
8383
8378
|
}, {
|
8384
8379
|
name: 'Beton CG ExtraBold',
|
8380
|
+
label: 'Beton CG ExtraBold',
|
8385
8381
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/Beton_CG_ExtraBold_Regular.otf'
|
8386
8382
|
}, {
|
8387
8383
|
name: 'Brush Script',
|
8384
|
+
label: 'Brush Script',
|
8388
8385
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/brush-script-3.ttf'
|
8389
8386
|
}, {
|
8390
8387
|
name: 'Century',
|
8388
|
+
label: 'Century',
|
8391
8389
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/richcent.woff'
|
8392
8390
|
}, {
|
8393
8391
|
name: 'City Block',
|
8392
|
+
label: 'City Block',
|
8394
8393
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/cityb.woff'
|
8395
8394
|
}, {
|
8396
8395
|
name: 'Condensed Block',
|
8396
|
+
label: 'Condensed Block',
|
8397
8397
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/aoalpha0.woff'
|
8398
8398
|
}, {
|
8399
8399
|
name: 'Copper',
|
8400
|
+
label: 'Copper',
|
8400
8401
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/copgothb.woff'
|
8401
8402
|
}, {
|
8402
8403
|
name: 'Euro Block',
|
8404
|
+
label: 'Euro Block',
|
8403
8405
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/handgotb.woff'
|
8404
8406
|
}, {
|
8405
8407
|
name: 'Full Block',
|
8408
|
+
label: 'Full Block',
|
8406
8409
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/full_block.woff'
|
8407
8410
|
}, {
|
8408
8411
|
name: 'Heritage',
|
8412
|
+
label: 'Heritage',
|
8409
8413
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/bebaskai-regular.woff'
|
8410
8414
|
}, {
|
8411
8415
|
name: 'LakesightPersonalUseOnly',
|
8416
|
+
label: 'Lakesight',
|
8412
8417
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/SocietyEditor_Personal_Use.ttf'
|
8413
8418
|
}, {
|
8414
8419
|
name: 'Machine',
|
8420
|
+
label: 'Machine',
|
8415
8421
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/machinen.woff'
|
8416
8422
|
}, {
|
8417
8423
|
name: 'Magento',
|
8424
|
+
label: 'Magento',
|
8418
8425
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/magnetob.woff'
|
8419
8426
|
}, {
|
8420
8427
|
name: 'Niramit Extrabold',
|
8428
|
+
label: 'Niramit',
|
8421
8429
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/Niramit-Bold.ttf'
|
8422
8430
|
}, {
|
8423
8431
|
name: 'Plain',
|
8432
|
+
label: 'Plain',
|
8424
8433
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/plain.woff'
|
8425
8434
|
}, {
|
8426
8435
|
name: 'Pro Block',
|
8436
|
+
label: 'Pro Block',
|
8427
8437
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/pro_block.woff'
|
8428
8438
|
}, {
|
8429
8439
|
name: 'Puff',
|
8440
|
+
label: 'Puff',
|
8430
8441
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/new.woff'
|
8431
8442
|
}, {
|
8432
8443
|
name: 'SocietyEditorPersonalUse',
|
8444
|
+
label: 'Society',
|
8433
8445
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/SocietyEditor_Personal_Use.ttf'
|
8434
8446
|
}, {
|
8435
8447
|
name: 'Square',
|
8448
|
+
label: 'Square',
|
8436
8449
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/sqr721be.woff'
|
8437
8450
|
}, {
|
8438
|
-
name: '
|
8451
|
+
name: 'Swiss721BT-BoldCondensed',
|
8452
|
+
label: 'Swiss Condensed',
|
8439
8453
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/swz721bc.woff'
|
8440
8454
|
}, {
|
8441
8455
|
name: 'Tiffany',
|
8456
|
+
label: 'Tiffany',
|
8442
8457
|
src: 'https://storage.googleapis.com/3ddplusgcp/logoEditor/assets/fonts/tiffany.woff'
|
8443
8458
|
}, {
|
8444
8459
|
name: 'Times',
|
8460
|
+
label: 'Times',
|
8445
8461
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/timesrich.woff'
|
8446
8462
|
}, {
|
8447
8463
|
name: 'Uni Script',
|
8464
|
+
label: 'Uni Script',
|
8448
8465
|
src: 'https://storage.googleapis.com/3ddplusgcp/richardson-customizer/fonts/scrpjet2.woff'
|
8449
8466
|
}];
|
8450
8467
|
var textShapes = [{
|
@@ -8549,7 +8566,7 @@ var TextProperties = function TextProperties(_ref) {
|
|
8549
8566
|
}, fontFamilies.map(function (list) {
|
8550
8567
|
return React.createElement(React.Fragment, null, React.createElement("option", {
|
8551
8568
|
value: list.name
|
8552
|
-
}, list.
|
8569
|
+
}, list.label));
|
8553
8570
|
})), React.createElement("div", {
|
8554
8571
|
className: "uppercase font-bold text-sm mb-[8.5px]"
|
8555
8572
|
}, "Style"), React.createElement("div", {
|
@@ -8948,7 +8965,9 @@ var Properties = function Properties(_ref2) {
|
|
8948
8965
|
while (1) switch (_context3.prev = _context3.next) {
|
8949
8966
|
case 0:
|
8950
8967
|
fontFamily = e.target.value;
|
8951
|
-
textSelected.set(
|
8968
|
+
textSelected.set({
|
8969
|
+
'fontFamily': fontFamily
|
8970
|
+
});
|
8952
8971
|
textSelected.set({
|
8953
8972
|
text: textInfo,
|
8954
8973
|
charSpacing: 0
|
@@ -10205,7 +10224,7 @@ var Rightmenu = function Rightmenu() {
|
|
10205
10224
|
use3dddPlus.setState({
|
10206
10225
|
showCrossSave: true
|
10207
10226
|
});
|
10208
|
-
if (canvas.getObjects().length >
|
10227
|
+
if (canvas.getObjects().length > 2) {
|
10209
10228
|
var hasTransparent = allColor.includes('transparent');
|
10210
10229
|
var colorCount = hasTransparent ? allColor.length - 1 : allColor.length;
|
10211
10230
|
if (colorCount < 9) {
|
@@ -14121,9 +14140,7 @@ var AddMascot = function AddMascot() {
|
|
14121
14140
|
});
|
14122
14141
|
});
|
14123
14142
|
use3dddPlus.getState().setAvailableMascots(availableMascots);
|
14124
|
-
use3dddPlus.getState().setFilteredMascots(availableMascots
|
14125
|
-
return item.thumbnail;
|
14126
|
-
}));
|
14143
|
+
use3dddPlus.getState().setFilteredMascots(availableMascots);
|
14127
14144
|
}, []);
|
14128
14145
|
return React.createElement(React.Fragment, null, React.createElement("div", {
|
14129
14146
|
className: "bg-[#F7F7F7] absolute z-100 w-[90%] h-full pr-[56px]"
|
@@ -14165,16 +14182,16 @@ var AddMascot = function AddMascot() {
|
|
14165
14182
|
boxShadow: '0px 0px 6px #98989829'
|
14166
14183
|
},
|
14167
14184
|
onClick: function onClick() {
|
14168
|
-
return stockLogoHandler(logo);
|
14185
|
+
return stockLogoHandler(logo.thumbnail);
|
14169
14186
|
}
|
14170
14187
|
}, React.createElement(CardMedia, {
|
14171
|
-
src: logo,
|
14188
|
+
src: logo.thumbnail,
|
14172
14189
|
imageClass: "h-full m-[15px] mb-0"
|
14173
14190
|
}), React.createElement(CardBody, {
|
14174
14191
|
bodyClass: "p-2.5"
|
14175
14192
|
}, React.createElement(CardTitle, {
|
14176
14193
|
titleClass: "text-[11px] uppercase flex justify-center",
|
14177
|
-
name:
|
14194
|
+
name: logo.name
|
14178
14195
|
})));
|
14179
14196
|
}) : 'No Stock Logos')))), loading && React.createElement(Loader, null));
|
14180
14197
|
};
|
@@ -14393,6 +14410,13 @@ var SaveDesign = function SaveDesign(_ref) {
|
|
14393
14410
|
console.log('ERROR in Save Logo:', ex);
|
14394
14411
|
});
|
14395
14412
|
case 30:
|
14413
|
+
use3dddPlus.setState({
|
14414
|
+
logoName: ''
|
14415
|
+
});
|
14416
|
+
use3dddPlus.setState({
|
14417
|
+
logoTag: []
|
14418
|
+
});
|
14419
|
+
case 32:
|
14396
14420
|
case "end":
|
14397
14421
|
return _context.stop();
|
14398
14422
|
}
|
@@ -14749,6 +14773,9 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
14749
14773
|
var _useState = useState([]),
|
14750
14774
|
fontFamilies = _useState[0],
|
14751
14775
|
setFontFamilies = _useState[1];
|
14776
|
+
useEffect(function () {
|
14777
|
+
setSelectedStepper(stepperId);
|
14778
|
+
}, [stepperId]);
|
14752
14779
|
useEffect(function () {
|
14753
14780
|
setSelectedStepper(stepperId);
|
14754
14781
|
if (stepperId === undefined) {
|
@@ -14770,7 +14797,15 @@ var LogoEditor = function LogoEditor(_ref) {
|
|
14770
14797
|
})["catch"](function (error) {
|
14771
14798
|
return console.error('Error fetching font families:', error);
|
14772
14799
|
});
|
14773
|
-
}, [
|
14800
|
+
}, [
|
14801
|
+
// stepperId,
|
14802
|
+
// customLogoColorList,
|
14803
|
+
// defaultColorList,
|
14804
|
+
// customerId,
|
14805
|
+
// logoData,
|
14806
|
+
// myLogoHandler,
|
14807
|
+
// setSelectedStepper,
|
14808
|
+
]);
|
14774
14809
|
return React.createElement(Modal, {
|
14775
14810
|
backdropStyle: "z-[7]",
|
14776
14811
|
contentStyle: "top-0 bottom-0 !m-[auto] z-[7] w-[80%] p-0",
|