mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
use string as fractional index value
This commit is contained in:
parent
5c1787bdf4
commit
00ffa08e28
8 changed files with 103 additions and 76 deletions
|
@ -120,7 +120,7 @@ const restoreElementWithProperties = <
|
|||
version: element.version || 1,
|
||||
versionNonce: element.versionNonce ?? 0,
|
||||
// TODO: think about this more
|
||||
fractionalIndex: element.fractionalIndex ?? Infinity,
|
||||
fractionalIndex: element.fractionalIndex ?? null,
|
||||
isDeleted: element.isDeleted ?? false,
|
||||
id: element.id || randomId(),
|
||||
fillStyle: element.fillStyle || DEFAULT_ELEMENT_PROPS.fillStyle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue