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

@ -71,7 +71,8 @@ export const restore = (
return {
...element,
// all elements must have version > 0 so getDrawingVersion() will pick up newly added elements
// all elements must have version > 0 so getDrawingVersion() will pick
// up newly added elements
version: element.version || 1,
id: element.id || randomId(),
isDeleted: false,
@ -84,6 +85,7 @@ export const restore = (
? 100
: element.opacity,
angle: element.angle ?? 0,
groupIds: element.groupIds || [],
};
});