@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
|
-
|
|
1706
|
-
this.
|
|
1707
|
-
this.fabricObject.
|
|
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
|
-
|
|
1708
|
-
this.
|
|
1709
|
-
this.fabricObject.
|
|
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;
|