mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 04:14:54 +00:00
parent
b555245780
commit
2b3994f4c7
4 changed files with 19 additions and 15 deletions
4
dist/all.js
vendored
4
dist/all.js
vendored
|
|
@ -8685,10 +8685,10 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
|
|||
|
||||
for (var i in this.oCoords) {
|
||||
if (i === 'mtr' && !this.hasRotatingPoint) {
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
if (this.lockUniScaling && (i === 'mt' || i === 'mr' || i === 'mb' || i === 'ml')) {
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
lines = this._getImageLines(this.oCoords[i].corner, i);
|
||||
|
|
|
|||
2
dist/all.min.js
vendored
2
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -1185,26 +1185,30 @@
|
|||
lines;
|
||||
|
||||
for (var i in this.oCoords) {
|
||||
|
||||
if (i === 'mtr' && !this.hasRotatingPoint) {
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (this.lockUniScaling && (i === 'mt' || i === 'mr' || i === 'mb' || i === 'ml')) {
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
lines = this._getImageLines(this.oCoords[i].corner, i);
|
||||
|
||||
// debugging
|
||||
|
||||
// canvas.contextTop.fillRect(lines.bottomline.d.x, lines.bottomline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.bottomline.o.x, lines.bottomline.o.y, 2, 2);
|
||||
//
|
||||
// canvas.contextTop.fillRect(lines.leftline.d.x, lines.leftline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.leftline.o.x, lines.leftline.o.y, 2, 2);
|
||||
//
|
||||
// canvas.contextTop.fillRect(lines.topline.d.x, lines.topline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.topline.o.x, lines.topline.o.y, 2, 2);
|
||||
//
|
||||
// canvas.contextTop.fillRect(lines.rightline.d.x, lines.rightline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.rightline.o.x, lines.rightline.o.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.bottomline.o.x, lines.bottomline.o.y, 2, 2);
|
||||
|
||||
// canvas.contextTop.fillRect(lines.leftline.d.x, lines.leftline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.leftline.o.x, lines.leftline.o.y, 2, 2);
|
||||
|
||||
// canvas.contextTop.fillRect(lines.topline.d.x, lines.topline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.topline.o.x, lines.topline.o.y, 2, 2);
|
||||
|
||||
// canvas.contextTop.fillRect(lines.rightline.d.x, lines.rightline.d.y, 2, 2);
|
||||
// canvas.contextTop.fillRect(lines.rightline.o.x, lines.rightline.o.y, 2, 2);
|
||||
|
||||
xpoints = this._findCrossPoints(ex, ey, lines);
|
||||
if (xpoints % 2 == 1 && xpoints != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue