-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
38 lines (32 loc) · 989 Bytes
/
types.ts
File metadata and controls
38 lines (32 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export type DocType = 'pdf' | 'images';
export interface Cut {
id: string;
pageIndex: number; // 0-based index
x: number; // Percentage 0-1
y: number; // Percentage 0-1
label: string;
isBranch: boolean; // True if it's an A/B/C cut
}
export interface Template {
id: string;
name: string;
rowCount: number;
xPosition: number; // Percentage 0-1
rowPositions: number[]; // Array of Y percentages 0-1
}
export interface AppSettings {
fontSize: number;
useWhiteBackground: boolean;
backgroundPadding: number;
nextNumber: number;
branchChar: string | null; // null if not branching, 'A', 'B' etc if branching
autoIncrement: boolean;
minDigits: number;
textOutlineWidth: number; // Pixel width for white text outline
enableClickSnapToRows: boolean; // 基準線付近クリック時の行スナップ
}
export type NumberingState = Pick<AppSettings, 'nextNumber' | 'branchChar'>;
export interface PDFDimensions {
width: number;
height: number;
}