Files
grungnet/src/types/Note.ts

30 lines
513 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-08-05 16:24:46 +10:00
rotation: number;
2021-07-08 12:01:02 +10:00
};
2021-07-17 12:48:04 +10:00
export type NoteMenuOptions = {
noteId: string;
noteNode: Konva.Node;
};
export type NoteDraggingOptions = {
dragging: boolean;
noteId: string;
};
export type Notes = Record<string, Note>;