fractionalIndex as a byproduct or zIndex
This commit is contained in:
Vendored
+1
@@ -17,6 +17,7 @@ const elementBase: Omit<ExcalidrawElement, "type"> = {
|
||||
groupIds: [],
|
||||
frameId: null,
|
||||
roundness: null,
|
||||
fractionalIndex: Infinity,
|
||||
seed: 1041657908,
|
||||
version: 120,
|
||||
versionNonce: 1188004276,
|
||||
|
||||
@@ -100,6 +100,7 @@ export class API {
|
||||
id?: string;
|
||||
isDeleted?: boolean;
|
||||
frameId?: ExcalidrawElement["id"] | null;
|
||||
fractionalIndex: ExcalidrawElement["fractionalIndex"];
|
||||
groupIds?: string[];
|
||||
// generic element props
|
||||
strokeColor?: ExcalidrawGenericElement["strokeColor"];
|
||||
@@ -167,6 +168,7 @@ export class API {
|
||||
x,
|
||||
y,
|
||||
frameId: rest.frameId ?? null,
|
||||
fractionalIndex: rest.fractionalIndex ?? Infinity,
|
||||
angle: rest.angle ?? 0,
|
||||
strokeColor: rest.strokeColor ?? appState.currentItemStrokeColor,
|
||||
backgroundColor:
|
||||
|
||||
Reference in New Issue
Block a user