mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
generate real fractional index after z-index actions
This commit is contained in:
parent
d1a9c593cc
commit
093e684d9e
4 changed files with 98 additions and 22 deletions
|
@ -43,6 +43,7 @@ import {
|
|||
measureBaseline,
|
||||
} from "../element/textElement";
|
||||
import { normalizeLink } from "./url";
|
||||
import { normalizeFractionalIndicies } from "../fractionalIndex";
|
||||
|
||||
type RestoredAppState = Omit<
|
||||
AppState,
|
||||
|
@ -460,7 +461,7 @@ export const restoreElements = (
|
|||
}
|
||||
}
|
||||
|
||||
return restoredElements;
|
||||
return normalizeFractionalIndicies(restoredElements) as ExcalidrawElement[];
|
||||
};
|
||||
|
||||
const coalesceAppStateValue = <
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue