1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2025-02-18 13:29:36 +01:00

fix: restore linear dimensions from points (#8062)

This commit is contained in:
David Luzar 2024-05-27 10:36:58 +02:00 committed by GitHub
parent 6ed6131169
commit 4eb9463f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,6 +45,7 @@ import {
} from "../element/textElement";
import { normalizeLink } from "./url";
import { syncInvalidIndices } from "../fractionalIndex";
import { getSizeFromPoints } from "../points";
type RestoredAppState = Omit<
AppState,
@ -270,6 +271,7 @@ const restoreElement = (
points,
x,
y,
...getSizeFromPoints(points),
});
}