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