@postermywall/fabricjs-2 6.4.2-pmw-28 → 6.4.2-pmw-29

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 CHANGED
@@ -428,7 +428,7 @@
428
428
  }
429
429
  const cache = new Cache();
430
430
 
431
- var version = "6.4.2-pmw-28";
431
+ var version = "6.4.2-pmw-29";
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 ? Math.min(this.rx, w / 2) : 0;
10972
- let ry = this.ry ? Math.min(this.ry, h / 2) : 0;
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);