打印
This commit is contained in:
11
src/types.ts
11
src/types.ts
@@ -336,6 +336,15 @@ export interface LabelTemplate {
|
||||
|
||||
export type PaperType = 'A4' | 'A5' | 'A6' | 'custom';
|
||||
|
||||
/** 排版/印刷输出色彩模式 */
|
||||
export type PrintColorMode = 'rgb' | 'grayscale' | 'cmyk';
|
||||
|
||||
export const PRINT_COLOR_MODE_LABELS: Record<PrintColorMode, string> = {
|
||||
rgb: '标准 RGB',
|
||||
grayscale: '黑白(灰度)',
|
||||
cmyk: 'CMYK(印刷模拟)',
|
||||
};
|
||||
|
||||
export interface PaperConfig {
|
||||
type: PaperType;
|
||||
width: number; // in mm
|
||||
@@ -348,6 +357,8 @@ export interface PaperConfig {
|
||||
columnGap: number; // in mm (horizontal spacing between labels)
|
||||
rowGap: number; // in mm (vertical spacing between labels)
|
||||
flow: 'top-bottom-left-right' | 'left-right-top-bottom'; // how cells flow
|
||||
/** 排版预览与导出时的色彩模式,默认 rgb */
|
||||
printColorMode?: PrintColorMode;
|
||||
}
|
||||
|
||||
export interface RecordRow {
|
||||
|
||||
Reference in New Issue
Block a user