fix: restore original opacities when alt pressed while erasing (#4954)

This commit is contained in:
Aakansha Doshi 2022-03-22 16:40:28 +05:30 committed by GitHub
parent 8e447b4c32
commit cded1cd63d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 12 deletions

View file

@ -384,7 +384,12 @@ export type PointerDownState = Readonly<{
boxSelection: {
hasOccurred: boolean;
};
elementIdsToErase: { [key: ExcalidrawElement["id"]]: boolean };
elementIdsToErase: {
[key: ExcalidrawElement["id"]]: {
opacity: ExcalidrawElement["opacity"];
erase: boolean;
};
};
}>;
export type ExcalidrawImperativeAPI = {