fix: ensure relative z-index of elements added to frame is retained (#7134)

This commit is contained in:
David Luzar
2023-10-12 15:00:23 +02:00
committed by GitHub
parent b552166924
commit b86184a849
5 changed files with 191 additions and 15 deletions

View File

@ -94,6 +94,7 @@ export class API {
angle?: number;
id?: string;
isDeleted?: boolean;
frameId?: ExcalidrawElement["id"];
groupIds?: string[];
// generic element props
strokeColor?: ExcalidrawGenericElement["strokeColor"];
@ -151,12 +152,12 @@ export class API {
| "versionNonce"
| "isDeleted"
| "groupIds"
| "frameId"
| "link"
| "updated"
> = {
x,
y,
frameId: rest.frameId ?? null,
angle: rest.angle ?? 0,
strokeColor: rest.strokeColor ?? appState.currentItemStrokeColor,
backgroundColor: