We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f420ba5 commit 1c31323Copy full SHA for 1c31323
src/common/utils/shapes/shape-adjusted-dimensions.ts
@@ -41,11 +41,8 @@ export const calculateShapeAdjustedDimensionsBasedOnStrokeHeight = (
41
}
42
43
case 'ellipseLow': {
44
- const originalRadiusX = restrictedWidth / 2;
45
- const originalRadiusY = restrictedHeight / 2;
46
-
47
- const adjustedRadiusX = Math.max(originalRadiusX - halfStroke, 0);
48
- const adjustedRadiusY = Math.max(originalRadiusY - halfStroke, 0);
+ const adjustedRadiusX = Math.max(centerX - halfStroke, 0);
+ const adjustedRadiusY = Math.max(centerY - halfStroke, 0);
49
50
return {
51
type: 'ellipseLow',
0 commit comments