Typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-17 12:48:04 +10:00
parent e48d19a817
commit fecf8090ea
23 changed files with 556 additions and 254 deletions

View File

@@ -1,3 +1,4 @@
import Konva from "konva";
import { Color } from "../helpers/colors";
export type Note = {
@@ -13,3 +14,14 @@ export type Note = {
x: number;
y: number;
};
export type NoteMenuOptions = {
noteId: string;
noteNode: Konva.Node;
};
export type NoteDraggingOptions = {
dragging: boolean;
noteId: string;
noteGroup: Konva.Node;
};