Group/ungroup (#1648)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Pete Hunt 2020-05-26 13:07:46 -07:00 committed by GitHub
parent 5252726307
commit 61e5b66dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 964 additions and 86 deletions

View file

@ -1,5 +1,7 @@
import { Point } from "../types";
export type GroupId = string;
type _ExcalidrawElementBase = Readonly<{
id: string;
x: number;
@ -18,8 +20,12 @@ type _ExcalidrawElementBase = Readonly<{
version: number;
versionNonce: number;
isDeleted: boolean;
groupIds: GroupId[];
}>;
/**
* These are elements that don't have any additional properties.
*/
export type ExcalidrawGenericElement = _ExcalidrawElementBase & {
type: "selection" | "rectangle" | "diamond" | "ellipse";
};