@threedddplus/logoeditor 0.0.69 → 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 -2
- 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 -2
- package/dist/logoeditor.esm.js.map +1 -1
- package/example/index.tsx +31 -4
- package/package.json +1 -1
package/dist/logoeditor.esm.js
CHANGED
@@ -4689,8 +4689,15 @@ var initCanvas = function initCanvas() {
|
|
4689
4689
|
var onObjectMoving = function onObjectMoving(e) {
|
4690
4690
|
use3dddPlus.getState().updateModifaction(false);
|
4691
4691
|
var obj = e.target;
|
4692
|
-
|
4693
|
-
if (
|
4692
|
+
console.log(e);
|
4693
|
+
if (isNaN(e.pointer.x)) return;
|
4694
|
+
if (isNaN(e.pointer.y)) return;
|
4695
|
+
// if (
|
4696
|
+
// obj.getBoundingRect().width > obj.canvas.height ||
|
4697
|
+
// obj.getBoundingRect().height > obj.canvas.width
|
4698
|
+
// ) {
|
4699
|
+
// return;
|
4700
|
+
// }
|
4694
4701
|
obj.setCoords();
|
4695
4702
|
if (obj.getBoundingRect().top < 0 || obj.getBoundingRect().left < 0) {
|
4696
4703
|
obj.top = Math.max(obj.top, obj.top - obj.getBoundingRect().top);
|