export interface Size { width: number; height: number; } export interface UnitStyle { backgroundColor?: string; fontColor?: string; fontSize?: number; } export interface RulerStyle { rulerId?: string; size?: number; startX?: number; startY?: number; width?: number; height?: number; scrollLeft?: number; scrollTop?: number; unitMode?: "px" | "mm"; unit?: UnitStyle; backgroundColor?: string; fontSize?: number; fontColor?: string; fontWeight?: "bold" | "bolder" | number | string; fontMode?: "center" | "right"; gap?: number; tickColor?: string; tickWidth?: number; border?: boolean; borderColor?: string; borderWidth?: number; scale?: number; show?: boolean; paperRect?: boolean; paperRectColor?: string; paperWidth?: number; paperHeight?: number; } export type Line = { id: string; style: string; text: string; };