@threedddplus/logoeditor 0.0.102 → 0.0.104
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 +2 -1
- 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 +2 -1
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
@@ -5381,7 +5381,6 @@ var initCanvas = function initCanvas() {
|
|
5381
5381
|
canv.on('object:scaling', function (e) {
|
5382
5382
|
var obj = e.target;
|
5383
5383
|
console.log("++++", e);
|
5384
|
-
obj.setCoords();
|
5385
5384
|
if (isNaN(e.pointer.x) || isNaN(e.pointer.y)) {
|
5386
5385
|
obj.set({
|
5387
5386
|
top: use3dddPlus.getState().lastPosition.top,
|
@@ -5389,6 +5388,7 @@ var initCanvas = function initCanvas() {
|
|
5389
5388
|
});
|
5390
5389
|
return;
|
5391
5390
|
}
|
5391
|
+
obj.setCoords();
|
5392
5392
|
var brNew = obj.getBoundingRect();
|
5393
5393
|
if (brNew.width + brNew.left + 45 >= obj.canvas.width || brNew.height + brNew.top + 10 >= obj.canvas.height || brNew.left < 45 || brNew.top < 10) {
|
5394
5394
|
obj.left = left1;
|
@@ -5405,6 +5405,7 @@ var initCanvas = function initCanvas() {
|
|
5405
5405
|
width1 = obj.width;
|
5406
5406
|
height1 = obj.height;
|
5407
5407
|
}
|
5408
|
+
obj.setCoords();
|
5408
5409
|
use3dddPlus.getState().setLastPosition({
|
5409
5410
|
top: obj.top,
|
5410
5411
|
left: obj.left
|