Files
grungnet/src/types/Note.ts

28 lines
475 B
TypeScript
Raw Normal View History

2021-07-17 12:48:04 +10:00
import Konva from "konva";
import { Color } from "../helpers/colors";
2021-07-08 12:01:02 +10:00
export type Note = {
id: string;
color: Color;
2021-07-08 12:01:02 +10:00
lastModified: number;
lastModifiedBy: string;
locked: boolean;
size: number;
text: string;
textOnly: boolean;
visible: boolean;
x: number;
y: number;
};
2021-07-17 12:48:04 +10:00
export type NoteMenuOptions = {
noteId: string;
noteNode: Konva.Node;
};
export type NoteDraggingOptions = {
dragging: boolean;
noteId: string;
noteGroup: Konva.Node;
};