mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix z-index action to account for deleted elems and add tests (#1077)
This commit is contained in:
parent
fb82715ef7
commit
6fd2a3b2e5
5 changed files with 254 additions and 31 deletions
|
@ -300,6 +300,10 @@ export class App extends React.Component<any, AppState> {
|
|||
return this.setState(...args);
|
||||
},
|
||||
},
|
||||
app: {
|
||||
configurable: true,
|
||||
value: this,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2498,7 +2502,9 @@ declare global {
|
|||
h: {
|
||||
elements: readonly ExcalidrawElement[];
|
||||
state: AppState;
|
||||
setState: React.Component<any, AppState>["setState"];
|
||||
history: SceneHistory;
|
||||
app: InstanceType<typeof App>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue