2021-07-17 12:48:04 +10:00
|
|
|
import Konva from "konva";
|
2021-07-09 22:06:32 +10:00
|
|
|
import { Color } from "../helpers/colors";
|
|
|
|
|
|
2021-07-08 12:01:02 +10:00
|
|
|
export type Note = {
|
|
|
|
|
id: string;
|
2021-07-09 22:06:32 +10:00
|
|
|
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;
|
|
|
|
|
};
|
2021-07-20 21:45:18 +10:00
|
|
|
|
|
|
|
|
export type Notes = Record<string, Note>;
|