mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
feat: update types
This commit is contained in:
parent
f8a1c5b2aa
commit
de81eccf29
2 changed files with 12 additions and 3 deletions
|
|
@ -34,4 +34,11 @@ export class Element {
|
|||
data.elements[index].y += (moveY / scale);
|
||||
}
|
||||
}
|
||||
|
||||
createTransformWrapper(data: TypeData, index: number) {
|
||||
if (!data.elements[index]) {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in a new issue