mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: points not being normalized on single-elem resize (#5581)
This commit is contained in:
parent
27cf5ed17e
commit
ad0c4c4c78
4 changed files with 45 additions and 4 deletions
|
@ -495,6 +495,7 @@ export const getResizedElementAbsoluteCoords = (
|
|||
element: ExcalidrawElement,
|
||||
nextWidth: number,
|
||||
nextHeight: number,
|
||||
normalizePoints: boolean,
|
||||
): [number, number, number, number] => {
|
||||
if (!(isLinearElement(element) || isFreeDrawElement(element))) {
|
||||
return [
|
||||
|
@ -508,7 +509,8 @@ export const getResizedElementAbsoluteCoords = (
|
|||
const points = rescalePoints(
|
||||
0,
|
||||
nextWidth,
|
||||
rescalePoints(1, nextHeight, element.points),
|
||||
rescalePoints(1, nextHeight, element.points, normalizePoints),
|
||||
normalizePoints,
|
||||
);
|
||||
|
||||
let bounds: [number, number, number, number];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue