@threedddplus/logoeditor 0.0.70 → 0.0.71
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 +9 -14
- 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 +9 -14
- package/dist/logoeditor.esm.js.map +1 -1
- package/example/index.tsx +31 -4
- package/package.json +1 -1
@@ -4698,11 +4698,14 @@ var initCanvas = function initCanvas() {
|
|
4698
4698
|
use3dddPlus.getState().updateModifaction(false);
|
4699
4699
|
var obj = e.target;
|
4700
4700
|
console.log(e);
|
4701
|
-
if (
|
4702
|
-
if (
|
4703
|
-
if (
|
4704
|
-
|
4705
|
-
|
4701
|
+
if (isNaN(e.pointer.x)) return;
|
4702
|
+
if (isNaN(e.pointer.y)) return;
|
4703
|
+
// if (
|
4704
|
+
// obj.getBoundingRect().width > obj.canvas.height ||
|
4705
|
+
// obj.getBoundingRect().height > obj.canvas.width
|
4706
|
+
// ) {
|
4707
|
+
// return;
|
4708
|
+
// }
|
4706
4709
|
obj.setCoords();
|
4707
4710
|
if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
|
4708
4711
|
obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);
|
@@ -4715,15 +4718,7 @@ var initCanvas = function initCanvas() {
|
|
4715
4718
|
obj.setCoords();
|
4716
4719
|
}
|
4717
4720
|
var brNew = obj.getBoundingRect();
|
4718
|
-
if (brNew.width + brNew.left >= obj.canvas.width || brNew.height + brNew.top >= obj.canvas.height || brNew.left < 0 || brNew.top < 0) {
|
4719
|
-
return;
|
4720
|
-
// obj.left = left1;
|
4721
|
-
// obj.top = top1;
|
4722
|
-
// obj.scaleX = scale1x;
|
4723
|
-
// obj.scaleY = scale1y;
|
4724
|
-
// obj.width = width1;
|
4725
|
-
// obj.height = height1;
|
4726
|
-
} else {
|
4721
|
+
if (brNew.width + brNew.left >= obj.canvas.width || brNew.height + brNew.top >= obj.canvas.height || brNew.left < 0 || brNew.top < 0) ; else {
|
4727
4722
|
left1 = obj.left;
|
4728
4723
|
top1 = obj.top;
|
4729
4724
|
scale1x = obj.scaleX;
|