From f212e446ac3140850b4d778262145c344bf0bc8d Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Sun, 26 Mar 2023 09:13:40 +0300 Subject: [PATCH] restore --- src/shapes/Group.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/shapes/Group.ts b/src/shapes/Group.ts index 0818ff4ffbf..69fdd5497a5 100644 --- a/src/shapes/Group.ts +++ b/src/shapes/Group.ts @@ -830,9 +830,20 @@ export class Group extends createCollectionMixin( resolveOrigin(this.originY) ), size = new Point(width, height), - strokeWidthVector = new Point(), - sizeAfter = new Point(width, height), - bboxSizeAfter = new Point(w, h), + strokeWidthVector = this._getTransformedDimensions({ + width: 0, + height: 0, + }), + sizeAfter = this._getTransformedDimensions({ + width: width, + height: height, + strokeWidth: 0, + }), + bboxSizeAfter = this._getTransformedDimensions({ + width: w, + height: h, + strokeWidth: 0, + }), rotationCorrection = new Point(0, 0); // calculate center and correction