@leapfrog/interactive-canvas 1.9.0 → 1.9.1

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.
@@ -1702,9 +1702,9 @@ var Rectangle = /** @class */ (function (_super) {
1702
1702
  * @inheritDoc
1703
1703
  */
1704
1704
  Rectangle.prototype.afterScale = function (event) {
1705
- var _a = this.fabricObject.getBoundingRect(), width = _a.width, height = _a.height;
1706
- this.fabricObject.set({ scaleX: 1, scaleY: 1, width: width, height: height });
1707
- this.fabricObject.dirty = true;
1705
+ this.updateDimensions();
1706
+ var _a = this.getDimensions(), width = _a.width, height = _a.height;
1707
+ this.fabricObject.set({ scaleX: 1, scaleY: 1, width: width.px, height: height.px });
1708
1708
  this.updateDimensions();
1709
1709
  };
1710
1710
  return Rectangle;
@@ -1704,9 +1704,9 @@ var Rectangle = /** @class */ (function (_super) {
1704
1704
  * @inheritDoc
1705
1705
  */
1706
1706
  Rectangle.prototype.afterScale = function (event) {
1707
- var _a = this.fabricObject.getBoundingRect(), width = _a.width, height = _a.height;
1708
- this.fabricObject.set({ scaleX: 1, scaleY: 1, width: width, height: height });
1709
- this.fabricObject.dirty = true;
1707
+ this.updateDimensions();
1708
+ var _a = this.getDimensions(), width = _a.width, height = _a.height;
1709
+ this.fabricObject.set({ scaleX: 1, scaleY: 1, width: width.px, height: height.px });
1710
1710
  this.updateDimensions();
1711
1711
  };
1712
1712
  return Rectangle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"