Browse Source

fix: restore linear dimensions from points (#8062)

pull/8076/head
David Luzar 2 years ago committed by GitHub
parent
commit
4eb9463f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/excalidraw/data/restore.ts

2
packages/excalidraw/data/restore.ts

@ -45,6 +45,7 @@ import { @@ -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 = ( @@ -270,6 +271,7 @@ const restoreElement = (
points,
x,
y,
...getSizeFromPoints(points),
});
}

Loading…
Cancel
Save