@postermywall/fabricjs-2 6.4.2-pmw-28 → 6.4.2-pmw-30
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/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/index.node.cjs +5 -3
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +5 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/package.json.min.mjs +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/shapes/Rect.d.ts.map +1 -1
- package/dist/src/shapes/Rect.min.mjs +1 -1
- package/dist/src/shapes/Rect.min.mjs.map +1 -1
- package/dist/src/shapes/Rect.mjs +4 -2
- package/dist/src/shapes/Rect.mjs.map +1 -1
- package/dist-extensions/src/shapes/Rect.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shapes/Rect.ts +5 -2
package/dist/index.js
CHANGED
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
}
|
|
429
429
|
const cache = new Cache();
|
|
430
430
|
|
|
431
|
-
var version = "6.4.2-pmw-
|
|
431
|
+
var version = "6.4.2-pmw-30";
|
|
432
432
|
|
|
433
433
|
// use this syntax so babel plugin see this import here
|
|
434
434
|
const VERSION = version;
|
|
@@ -10968,14 +10968,16 @@
|
|
|
10968
10968
|
} = this;
|
|
10969
10969
|
const x = -w / 2;
|
|
10970
10970
|
const y = -h / 2;
|
|
10971
|
-
let rx = this.rx ?
|
|
10972
|
-
let ry = this.ry ?
|
|
10971
|
+
let rx = this.rx ? this.rx : 0;
|
|
10972
|
+
let ry = this.ry ? this.ry : 0;
|
|
10973
10973
|
const isRounded = rx !== 0 || ry !== 0;
|
|
10974
10974
|
if (this.uniformRoundness) {
|
|
10975
10975
|
const scaling = this.getObjectScaling();
|
|
10976
10976
|
rx = rx / scaling.x;
|
|
10977
10977
|
ry = ry / scaling.y;
|
|
10978
10978
|
}
|
|
10979
|
+
rx = Math.min(rx, w / 2);
|
|
10980
|
+
ry = Math.min(ry, h / 2);
|
|
10979
10981
|
ctx.beginPath();
|
|
10980
10982
|
ctx.moveTo(x + rx, y);
|
|
10981
10983
|
ctx.lineTo(x + w - rx, y);
|