@threedddplus/logoeditor 0.0.31 → 0.0.32

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.
@@ -5900,44 +5900,6 @@ var LeftMenu = function LeftMenu() {
5900
5900
  })));
5901
5901
  };
5902
5902
 
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
5903
  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
5904
  styleInject(css_248z$4);
5943
5905
 
@@ -6947,25 +6909,25 @@ var Rightmenu = function Rightmenu() {
6947
6909
  textSelected.icon = use3dddPlus.getState().iconImage;
6948
6910
  canvas.renderAll();
6949
6911
  };
6950
- var nudgeMove = function nudgeMove(e) {
6951
- if (e.target.id === 'down') {
6952
- if (textSelected.aCoords.br.y > canvas.height - 2) return;
6953
- use3dddPlus.getState().moveDown(textSelected);
6954
- use3dddPlus.getState().updateModifaction(true);
6955
- } else if (e.target.id === 'up') {
6956
- if (textSelected.aCoords.tr.y < 5) return;
6957
- use3dddPlus.getState().moveUp(textSelected);
6958
- use3dddPlus.getState().updateModifaction(true);
6959
- } else if (e.target.id === 'right') {
6960
- if (textSelected.aCoords.tr.x > canvas.height - 2) return;
6961
- use3dddPlus.getState().moveRight(textSelected);
6962
- use3dddPlus.getState().updateModifaction(true);
6963
- } else if (e.target.id === 'left') {
6964
- if (textSelected.aCoords.tl.x < 2) return;
6965
- use3dddPlus.getState().moveLeft(textSelected);
6966
- use3dddPlus.getState().updateModifaction(true);
6967
- }
6968
- };
6912
+ // const nudgeMove = (e) => {
6913
+ // if (e.target.id === 'down') {
6914
+ // if (textSelected.aCoords.br.y > canvas.height - 2) return;
6915
+ // use3dddPlus.getState().moveDown(textSelected);
6916
+ // use3dddPlus.getState().updateModifaction(true);
6917
+ // } else if (e.target.id === 'up') {
6918
+ // if (textSelected.aCoords.tr.y < 5) return;
6919
+ // use3dddPlus.getState().moveUp(textSelected);
6920
+ // use3dddPlus.getState().updateModifaction(true);
6921
+ // } else if (e.target.id === 'right') {
6922
+ // if (textSelected.aCoords.tr.x > canvas.height - 2) return;
6923
+ // use3dddPlus.getState().moveRight(textSelected);
6924
+ // use3dddPlus.getState().updateModifaction(true);
6925
+ // } else if (e.target.id === 'left') {
6926
+ // if (textSelected.aCoords.tl.x < 2) return;
6927
+ // use3dddPlus.getState().moveLeft(textSelected);
6928
+ // use3dddPlus.getState().updateModifaction(true);
6929
+ // }
6930
+ // };
6969
6931
  var textOutlineHandler = function textOutlineHandler(e) {
6970
6932
  setOutlineVal(e.target.valueAsNumber);
6971
6933
  textSelected.strokeWidth = e.target.valueAsNumber;
@@ -7336,15 +7298,47 @@ var Rightmenu = function Rightmenu() {
7336
7298
  value: shapeSizeVal,
7337
7299
  className: "border border-[#EBEBEB] py-[10px] pl-[16px] mb-[16.5px] w-[145px]",
7338
7300
  onChange: textShapeSizeHandler
7339
- })))), currentSelection === 'group' && React.createElement(ImageEdit, {
7340
- flipX: flipX,
7341
- flipY: flipY,
7342
- // changeSVGColor={changeSVGColor}
7343
- changeSVGTextColor: changeSVGTextColor,
7344
- // nudgeMove={nudgeMove}
7345
- // activeSelection={activeSelection}
7346
- allColor: allColor
7347
- }), currentSelection === 'selectAll' && React.createElement(React.Fragment, null, React.createElement("div", {
7301
+ })))), currentSelection === 'group' && React.createElement(React.Fragment, null, React.createElement("div", {
7302
+ className: "uppercase font-bold pt-[17px]"
7303
+ }, "Color in Canvas"), React.createElement("div", {
7304
+ className: "flex flex-wrap gap-x-[1rem] mt-[12px]"
7305
+ }, allColor && (allColor == null ? void 0 : allColor.map(function (item) {
7306
+ return React.createElement(ColorImpl, {
7307
+ mClass: 'mb-[10px]',
7308
+ key: item,
7309
+ handleChange: changeSVGTextColor,
7310
+ property: item,
7311
+ color: item
7312
+ });
7313
+ }))), React.createElement("div", null, React.createElement("div", {
7314
+ className: "font-bold uppercase mt-[17px]"
7315
+ }, "Flip"), React.createElement("div", {
7316
+ className: "flex gap-x-[1rem] mt-[12px]"
7317
+ }, React.createElement(IconButton, {
7318
+ key: "index",
7319
+ label: "",
7320
+ icon: React.createElement(FlipH, null),
7321
+ onClick: flipX,
7322
+ className: " bg-[#fff] cursor-pointer border border-[#EBEBEB]",
7323
+ size: "1.8rem"
7324
+ }), React.createElement(IconButton, {
7325
+ key: "index",
7326
+ label: "",
7327
+ onClick: flipY,
7328
+ icon: React.createElement(FlipV, null),
7329
+ className: " bg-[#fff] cursor-pointer border border-[#EBEBEB]",
7330
+ size: "1.8rem"
7331
+ }))))
7332
+ // <ImageEdit
7333
+ // flipX={flipX}
7334
+ // flipY={flipY}
7335
+ // // changeSVGColor={changeSVGColor}
7336
+ // changeSVGTextColor={changeSVGTextColor}
7337
+ // // nudgeMove={nudgeMove}
7338
+ // // activeSelection={activeSelection}
7339
+ // allColor={allColor}
7340
+ // />
7341
+ , currentSelection === 'selectAll' && React.createElement(React.Fragment, null, React.createElement("div", {
7348
7342
  className: "uppercase font-bold pt-[17px]"
7349
7343
  }, "Color in Canvas"), React.createElement("div", {
7350
7344
  className: "flex flex-wrap gap-x-[1rem] mt-[12px] mb-[12px]"
@@ -7356,23 +7350,7 @@ var Rightmenu = function Rightmenu() {
7356
7350
  property: item,
7357
7351
  color: item
7358
7352
  });
7359
- })), React.createElement("button", {
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"),
7353
+ })),
7376
7354
  // console.log(storeAllObject);
7377
7355
  storeAllObject.map(function (item, index) {
7378
7356
  return React.createElement("div", {