@threedddplus/logoeditor 0.0.31 → 0.0.33
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 +68 -85
- 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 +68 -85
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -4049,9 +4049,14 @@ var initCanvas = function initCanvas() {
|
|
4049
4049
|
// .flat()
|
4050
4050
|
// ),
|
4051
4051
|
// ];
|
4052
|
-
var allColor = []
|
4052
|
+
var allColor = [];
|
4053
|
+
canv == null ? void 0 : (_canv$getObjects = canv.getObjects()) == null ? void 0 : _canv$getObjects.map(function (item) {
|
4053
4054
|
return item['colorFill'] && Object.values(item['colorFill']);
|
4054
|
-
}).flat().filter(Boolean))
|
4055
|
+
}).flat().filter(Boolean).forEach(function (color) {
|
4056
|
+
if (!allColor.includes(color)) {
|
4057
|
+
allColor.push(color);
|
4058
|
+
}
|
4059
|
+
}); // FOR REMOVING ALL DUPLICATE COLOR CODES
|
4055
4060
|
// const allColor =[];
|
4056
4061
|
use3dddPlus.setState({
|
4057
4062
|
allColor: allColor
|
@@ -5900,44 +5905,6 @@ var LeftMenu = function LeftMenu() {
|
|
5900
5905
|
})));
|
5901
5906
|
};
|
5902
5907
|
|
5903
|
-
var ImageEdit = function ImageEdit(_ref) {
|
5904
|
-
var flipX = _ref.flipX,
|
5905
|
-
flipY = _ref.flipY,
|
5906
|
-
changeSVGTextColor = _ref.changeSVGTextColor,
|
5907
|
-
allColor = _ref.allColor;
|
5908
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
5909
|
-
className: "uppercase font-bold pt-[17px]"
|
5910
|
-
}, "Color in Canvas"), React.createElement("div", {
|
5911
|
-
className: "flex flex-wrap gap-x-[1rem] mt-[12px]"
|
5912
|
-
}, allColor && (allColor == null ? void 0 : allColor.map(function (item) {
|
5913
|
-
return React.createElement(ColorImpl, {
|
5914
|
-
mClass: 'mb-[10px]',
|
5915
|
-
key: item,
|
5916
|
-
handleChange: changeSVGTextColor,
|
5917
|
-
property: item,
|
5918
|
-
color: item
|
5919
|
-
});
|
5920
|
-
}))), React.createElement("div", null, React.createElement("div", {
|
5921
|
-
className: "font-bold uppercase mt-[17px]"
|
5922
|
-
}, "Flip"), React.createElement("div", {
|
5923
|
-
className: "flex gap-x-[1rem] mt-[12px]"
|
5924
|
-
}, React.createElement(IconButton, {
|
5925
|
-
key: "index",
|
5926
|
-
label: "",
|
5927
|
-
icon: React.createElement(FlipH, null),
|
5928
|
-
onClick: flipX,
|
5929
|
-
className: "!w-[45px] h-[45px] bg-[#fff] cursor-pointer border border-[#EBEBEB]",
|
5930
|
-
size: "1.8rem"
|
5931
|
-
}), React.createElement(IconButton, {
|
5932
|
-
key: "index",
|
5933
|
-
label: "",
|
5934
|
-
onClick: flipY,
|
5935
|
-
icon: React.createElement(FlipV, null),
|
5936
|
-
className: "!w-[45px] h-[45px] bg-[#fff] cursor-pointer border border-[#EBEBEB]",
|
5937
|
-
size: "1.8rem"
|
5938
|
-
}))));
|
5939
|
-
};
|
5940
|
-
|
5941
5908
|
var css_248z$4 = ".rangeSlider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:1px solid #f0f0f0;height:15px;width:100%}.rangeSlider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:#e11a38;border-radius:4px;height:31px;width:31px}.rangeSlider::-moz-range-thumb{background-color:#e11a38;border-radius:4px;height:30px;width:30px}";
|
5942
5909
|
styleInject(css_248z$4);
|
5943
5910
|
|
@@ -6947,25 +6914,25 @@ var Rightmenu = function Rightmenu() {
|
|
6947
6914
|
textSelected.icon = use3dddPlus.getState().iconImage;
|
6948
6915
|
canvas.renderAll();
|
6949
6916
|
};
|
6950
|
-
|
6951
|
-
|
6952
|
-
|
6953
|
-
|
6954
|
-
|
6955
|
-
|
6956
|
-
|
6957
|
-
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
6961
|
-
|
6962
|
-
|
6963
|
-
|
6964
|
-
|
6965
|
-
|
6966
|
-
|
6967
|
-
|
6968
|
-
};
|
6917
|
+
// const nudgeMove = (e) => {
|
6918
|
+
// if (e.target.id === 'down') {
|
6919
|
+
// if (textSelected.aCoords.br.y > canvas.height - 2) return;
|
6920
|
+
// use3dddPlus.getState().moveDown(textSelected);
|
6921
|
+
// use3dddPlus.getState().updateModifaction(true);
|
6922
|
+
// } else if (e.target.id === 'up') {
|
6923
|
+
// if (textSelected.aCoords.tr.y < 5) return;
|
6924
|
+
// use3dddPlus.getState().moveUp(textSelected);
|
6925
|
+
// use3dddPlus.getState().updateModifaction(true);
|
6926
|
+
// } else if (e.target.id === 'right') {
|
6927
|
+
// if (textSelected.aCoords.tr.x > canvas.height - 2) return;
|
6928
|
+
// use3dddPlus.getState().moveRight(textSelected);
|
6929
|
+
// use3dddPlus.getState().updateModifaction(true);
|
6930
|
+
// } else if (e.target.id === 'left') {
|
6931
|
+
// if (textSelected.aCoords.tl.x < 2) return;
|
6932
|
+
// use3dddPlus.getState().moveLeft(textSelected);
|
6933
|
+
// use3dddPlus.getState().updateModifaction(true);
|
6934
|
+
// }
|
6935
|
+
// };
|
6969
6936
|
var textOutlineHandler = function textOutlineHandler(e) {
|
6970
6937
|
setOutlineVal(e.target.valueAsNumber);
|
6971
6938
|
textSelected.strokeWidth = e.target.valueAsNumber;
|
@@ -7336,15 +7303,47 @@ var Rightmenu = function Rightmenu() {
|
|
7336
7303
|
value: shapeSizeVal,
|
7337
7304
|
className: "border border-[#EBEBEB] py-[10px] pl-[16px] mb-[16.5px] w-[145px]",
|
7338
7305
|
onChange: textShapeSizeHandler
|
7339
|
-
})))), currentSelection === 'group' && React.createElement(
|
7340
|
-
|
7341
|
-
|
7342
|
-
|
7343
|
-
|
7344
|
-
|
7345
|
-
|
7346
|
-
|
7347
|
-
|
7306
|
+
})))), currentSelection === 'group' && React.createElement(React.Fragment, null, React.createElement("div", {
|
7307
|
+
className: "uppercase font-bold pt-[17px]"
|
7308
|
+
}, "Color in Canvas"), React.createElement("div", {
|
7309
|
+
className: "flex flex-wrap gap-x-[1rem] mt-[12px]"
|
7310
|
+
}, allColor && (allColor == null ? void 0 : allColor.map(function (item) {
|
7311
|
+
return React.createElement(ColorImpl, {
|
7312
|
+
mClass: 'mb-[10px]',
|
7313
|
+
key: item,
|
7314
|
+
handleChange: changeSVGTextColor,
|
7315
|
+
property: item,
|
7316
|
+
color: item
|
7317
|
+
});
|
7318
|
+
}))), React.createElement("div", null, React.createElement("div", {
|
7319
|
+
className: "font-bold uppercase mt-[17px]"
|
7320
|
+
}, "Flip"), React.createElement("div", {
|
7321
|
+
className: "flex gap-x-[1rem] mt-[12px]"
|
7322
|
+
}, React.createElement(IconButton, {
|
7323
|
+
key: "index",
|
7324
|
+
label: "",
|
7325
|
+
icon: React.createElement(FlipH, null),
|
7326
|
+
onClick: flipX,
|
7327
|
+
className: " bg-[#fff] cursor-pointer border border-[#EBEBEB]",
|
7328
|
+
size: "1.8rem"
|
7329
|
+
}), React.createElement(IconButton, {
|
7330
|
+
key: "index",
|
7331
|
+
label: "",
|
7332
|
+
onClick: flipY,
|
7333
|
+
icon: React.createElement(FlipV, null),
|
7334
|
+
className: " bg-[#fff] cursor-pointer border border-[#EBEBEB]",
|
7335
|
+
size: "1.8rem"
|
7336
|
+
}))))
|
7337
|
+
// <ImageEdit
|
7338
|
+
// flipX={flipX}
|
7339
|
+
// flipY={flipY}
|
7340
|
+
// // changeSVGColor={changeSVGColor}
|
7341
|
+
// changeSVGTextColor={changeSVGTextColor}
|
7342
|
+
// // nudgeMove={nudgeMove}
|
7343
|
+
// // activeSelection={activeSelection}
|
7344
|
+
// allColor={allColor}
|
7345
|
+
// />
|
7346
|
+
, currentSelection === 'selectAll' && React.createElement(React.Fragment, null, React.createElement("div", {
|
7348
7347
|
className: "uppercase font-bold pt-[17px]"
|
7349
7348
|
}, "Color in Canvas"), React.createElement("div", {
|
7350
7349
|
className: "flex flex-wrap gap-x-[1rem] mt-[12px] mb-[12px]"
|
@@ -7356,23 +7355,7 @@ var Rightmenu = function Rightmenu() {
|
|
7356
7355
|
property: item,
|
7357
7356
|
color: item
|
7358
7357
|
});
|
7359
|
-
})),
|
7360
|
-
onClick: nudgeMove,
|
7361
|
-
id: "down",
|
7362
|
-
className: "font-medium text-orange-400"
|
7363
|
-
}, "DOWN"), React.createElement("button", {
|
7364
|
-
onClick: nudgeMove,
|
7365
|
-
id: "up",
|
7366
|
-
className: "font-medium text-orange-300 text-lime-400 px-1"
|
7367
|
-
}, "UP"), React.createElement("button", {
|
7368
|
-
onClick: nudgeMove,
|
7369
|
-
id: "left",
|
7370
|
-
className: "font-medium text-orange-300 text-teal-500"
|
7371
|
-
}, "LEFT"), React.createElement("button", {
|
7372
|
-
onClick: nudgeMove,
|
7373
|
-
id: "right",
|
7374
|
-
className: "font-medium text-orange-300 text-violet-600 px-1"
|
7375
|
-
}, "RIGHT"),
|
7358
|
+
})),
|
7376
7359
|
// console.log(storeAllObject);
|
7377
7360
|
storeAllObject.map(function (item, index) {
|
7378
7361
|
return React.createElement("div", {
|