ding-image-editor 3.15.5 → 3.15.6
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/tui-image-editor.js
CHANGED
@@ -56325,6 +56325,11 @@ var shape_Shape = /*#__PURE__*/function (_Component) {
|
|
56325
56325
|
|
56326
56326
|
_this2._bindEventOnShape(shapeObj);
|
56327
56327
|
|
56328
|
+
shapeObj.hasControls = false;
|
56329
|
+
shapeObj.hasBorders = false;
|
56330
|
+
console.log('shapObe', shapeObj);
|
56331
|
+
shapeObj.borderColor = 'black';
|
56332
|
+
console.log('shapObe', shapeObj);
|
56328
56333
|
canvas.add(shapeObj).setActiveObject(shapeObj);
|
56329
56334
|
|
56330
56335
|
_this2._resetPositionFillFilter(shapeObj);
|
@@ -57440,11 +57445,30 @@ var Zoom = /*#__PURE__*/function (_Component) {
|
|
57440
57445
|
|
57441
57446
|
var deltaX = x - this._startHandPoint.x;
|
57442
57447
|
var deltaY = y - this._startHandPoint.y;
|
57448
|
+
console.log('deltaX', deltaX);
|
57449
|
+
console.log('deltaY', deltaY);
|
57450
|
+
var canvasImage = this.getCanvasImage();
|
57451
|
+
var bounding = canvasImage.getBoundingRect();
|
57452
|
+
console.log(bounding);
|
57453
|
+
var halfWidth = Math.floor(bounding.width / 2);
|
57454
|
+
var left = Math.floor(Math.abs(bounding.left));
|
57455
|
+
|
57456
|
+
if (bounding.left < 0 && deltaX > 0 && Math.abs(deltaX) > Math.abs(deltaY) || deltaX < 0 && left < halfWidth && Math.abs(deltaX) > Math.abs(deltaY)) {
|
57457
|
+
this._movePointOfZoom({
|
57458
|
+
x: deltaX,
|
57459
|
+
y: 0
|
57460
|
+
});
|
57461
|
+
}
|
57443
57462
|
|
57444
|
-
|
57445
|
-
|
57446
|
-
|
57447
|
-
|
57463
|
+
var halfHeight = Math.floor(bounding.height / 2);
|
57464
|
+
var top = Math.floor(Math.abs(bounding.top));
|
57465
|
+
|
57466
|
+
if (bounding.top < 0 && deltaY > 0 && Math.abs(deltaX) < Math.abs(deltaY) || top < halfHeight && deltaY < 0 && Math.abs(deltaX) < Math.abs(deltaY)) {
|
57467
|
+
this._movePointOfZoom({
|
57468
|
+
x: 0,
|
57469
|
+
y: deltaY
|
57470
|
+
});
|
57471
|
+
}
|
57448
57472
|
}
|
57449
57473
|
/**
|
57450
57474
|
* onMouseUp handler in fabric canvas
|