feat: update types

This commit is contained in:
chenshenhai 2021-05-26 19:57:40 +08:00
parent f8a1c5b2aa
commit de81eccf29
2 changed files with 12 additions and 3 deletions

View file

@ -34,4 +34,11 @@ export class Element {
data.elements[index].y += (moveY / scale);
}
}
createTransformWrapper(data: TypeData, index: number) {
if (!data.elements[index]) {
return;
}
}
}

View file

@ -1,13 +1,15 @@
import { TypeElemDesc, TypeElement } from './element';
type TypeData = {
type TypeDataBase = {
elements: TypeElement<keyof TypeElemDesc>[];
bgColor?: string;
selectedElements?: string[]; // uuids
}
type TypeData = TypeDataBase & {}
export {
TypeDataBase,
TypeData
}