@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
package/dist/logoeditor.esm.js
CHANGED
@@ -5373,7 +5373,6 @@ var initCanvas = function initCanvas() {
|
|
5373
5373
|
canv.on('object:scaling', function (e) {
|
5374
5374
|
var obj = e.target;
|
5375
5375
|
console.log("++++", e);
|
5376
|
-
obj.setCoords();
|
5377
5376
|
if (isNaN(e.pointer.x) || isNaN(e.pointer.y)) {
|
5378
5377
|
obj.set({
|
5379
5378
|
top: use3dddPlus.getState().lastPosition.top,
|
@@ -5381,6 +5380,7 @@ var initCanvas = function initCanvas() {
|
|
5381
5380
|
});
|
5382
5381
|
return;
|
5383
5382
|
}
|
5383
|
+
obj.setCoords();
|
5384
5384
|
var brNew = obj.getBoundingRect();
|
5385
5385
|
if (brNew.width + brNew.left + 45 >= obj.canvas.width || brNew.height + brNew.top + 10 >= obj.canvas.height || brNew.left < 45 || brNew.top < 10) {
|
5386
5386
|
obj.left = left1;
|
@@ -5397,6 +5397,7 @@ var initCanvas = function initCanvas() {
|
|
5397
5397
|
width1 = obj.width;
|
5398
5398
|
height1 = obj.height;
|
5399
5399
|
}
|
5400
|
+
obj.setCoords();
|
5400
5401
|
use3dddPlus.getState().setLastPosition({
|
5401
5402
|
top: obj.top,
|
5402
5403
|
left: obj.left
|