@threedddplus/logoeditor 0.0.150 → 0.0.152
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/logoeditor.cjs.development.js +21 -17
- 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 +21 -17
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -4195,11 +4195,19 @@ var converterSlice = function converterSlice(set, get) {
|
|
4195
4195
|
});
|
4196
4196
|
});
|
4197
4197
|
}
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4198
|
+
if (addCheckerBox) {
|
4199
|
+
loadedObject.set({
|
4200
|
+
colorFill: fillColors,
|
4201
|
+
lockMovementX: false,
|
4202
|
+
lockMovementY: false
|
4203
|
+
});
|
4204
|
+
} else {
|
4205
|
+
loadedObject.set({
|
4206
|
+
colorFill: fillColors,
|
4207
|
+
lockMovementX: true,
|
4208
|
+
lockMovementY: true
|
4209
|
+
});
|
4210
|
+
}
|
4203
4211
|
// loadedObject.id = use3dddPlus.getState().guid();
|
4204
4212
|
// loadedObject = new fabric.Group(objImage, options);
|
4205
4213
|
(_use3dddPlus$getState = use3dddPlus.getState().popupCanv) == null ? void 0 : _use3dddPlus$getState.clear();
|
@@ -4272,12 +4280,6 @@ var converterSlice = function converterSlice(set, get) {
|
|
4272
4280
|
});
|
4273
4281
|
use3dddPlus.getState().popUpCanvasUpdateModification(true);
|
4274
4282
|
if (addCheckerBox) {
|
4275
|
-
loadedObject.set({
|
4276
|
-
lockMovementX: true,
|
4277
|
-
lockMovementY: true,
|
4278
|
-
lockScalingX: true,
|
4279
|
-
lockScalingY: true
|
4280
|
-
});
|
4281
4283
|
var _objects = canvas.getObjects();
|
4282
4284
|
_objects.forEach(function (element) {
|
4283
4285
|
if (element.type !== 'line') {
|
@@ -4376,8 +4378,9 @@ var converterSlice = function converterSlice(set, get) {
|
|
4376
4378
|
}
|
4377
4379
|
return aiConvert;
|
4378
4380
|
}(),
|
4381
|
+
// loadImageFromURL: async (url, canvasToLoad, createCheckerBox) => {
|
4379
4382
|
loadImageFromURL: function () {
|
4380
|
-
var _loadImageFromURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(url
|
4383
|
+
var _loadImageFromURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(url) {
|
4381
4384
|
var response, blob;
|
4382
4385
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
4383
4386
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -4392,7 +4395,8 @@ var converterSlice = function converterSlice(set, get) {
|
|
4392
4395
|
return response.text();
|
4393
4396
|
case 6:
|
4394
4397
|
blob = _context3.sent;
|
4395
|
-
|
4398
|
+
use3dddPlus.getState().testSVG(blob);
|
4399
|
+
// processImage(blob, 8, canvasToLoad, createCheckerBox);
|
4396
4400
|
// return url;
|
4397
4401
|
case 8:
|
4398
4402
|
case "end":
|
@@ -4400,7 +4404,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
4400
4404
|
}
|
4401
4405
|
}, _callee3);
|
4402
4406
|
}));
|
4403
|
-
function loadImageFromURL(_x3
|
4407
|
+
function loadImageFromURL(_x3) {
|
4404
4408
|
return _loadImageFromURL.apply(this, arguments);
|
4405
4409
|
}
|
4406
4410
|
return loadImageFromURL;
|
@@ -4666,7 +4670,7 @@ var converterSlice = function converterSlice(set, get) {
|
|
4666
4670
|
}
|
4667
4671
|
}, _callee5);
|
4668
4672
|
}));
|
4669
|
-
function convertPdfToImages(
|
4673
|
+
function convertPdfToImages(_x4) {
|
4670
4674
|
return _convertPdfToImages.apply(this, arguments);
|
4671
4675
|
}
|
4672
4676
|
return convertPdfToImages;
|
@@ -5128,7 +5132,7 @@ var NudgeButtons = function NudgeButtons() {
|
|
5128
5132
|
d: "M121.752,335.085L256,200.837l134.248,134.248c8.331,8.331,21.839,8.331,30.17,0c8.331-8.331,8.331-21.839,0-30.17 L271.085,155.582c-8.331-8.331-21.839-8.331-30.17,0L91.582,304.915c-8.331,8.331-8.331,21.839,0,30.17 S113.42,343.416,121.752,335.085z"
|
5129
5133
|
})))))), React.createElement("span", {
|
5130
5134
|
className: "pointer-events-none iconLabel float-left text-[#5d5d5d] ml-2 text-[13px] font-medium capitalize"
|
5131
|
-
}, "
|
5135
|
+
}, "Bottom")))));
|
5132
5136
|
};
|
5133
5137
|
|
5134
5138
|
var initCanvas = function initCanvas() {
|
@@ -7688,7 +7692,7 @@ var UploadLogo = function UploadLogo() {
|
|
7688
7692
|
className: " text-[#E11A38] text-base font-bold"
|
7689
7693
|
}, "Privacy Notice"), React.createElement("p", {
|
7690
7694
|
className: "text-[#727272] text-sm font-medium pt-2 pb-2"
|
7691
|
-
}, "Your uploaded images are safe, secure, and remain your property. By proceeding you acknowledge that you have full legal rights and permissions to use the images you upload.We reserve the right to reject any order.")))), uploadImageModalDisplay && React.createElement("div", {
|
7695
|
+
}, "Your uploaded images are safe, secure, and remain your property. By proceeding you acknowledge that you have full legal rights and permissions to use the images you upload. We reserve the right to reject any order.")))), uploadImageModalDisplay && React.createElement("div", {
|
7692
7696
|
className: "bg-[#F7F7F7] absolute z-[5] w-[90%] h-full"
|
7693
7697
|
}, React.createElement(PopUpCanvas, null)));
|
7694
7698
|
};
|