Ground work for page editor

This commit is contained in:
Reece
2025-06-10 11:19:54 +01:00
parent 41efd80dd5
commit 5298cb1607
8 changed files with 1374 additions and 146 deletions
+27
View File
@@ -0,0 +1,27 @@
export interface PDFPage {
id: string;
pageNumber: number;
thumbnail: string;
rotation: number;
selected: boolean;
splitBefore?: boolean;
}
export interface PDFDocument {
id: string;
name: string;
file: File;
pages: PDFPage[];
totalPages: number;
}
export interface PageOperation {
type: 'rotate' | 'delete' | 'move' | 'split' | 'insert';
pageIds: string[];
data?: any;
}
export interface UndoRedoState {
operations: PageOperation[];
currentIndex: number;
}