import { AcDbDimStyleTableRecord } from '@mlightcad/data-model'; /** Width of the preview drawing in SVG user units. */ export declare const DIM_PREVIEW_WIDTH = 420; /** Height of the preview drawing in SVG user units. */ export declare const DIM_PREVIEW_HEIGHT = 250; export interface DimPreviewLine { x1: number; y1: number; x2: number; y2: number; stroke: string; strokeWidth: number; } export interface DimPreviewPath { d: string; stroke: string; strokeWidth: number; fill: string; } export interface DimPreviewCircle { cx: number; cy: number; r: number; stroke: string; strokeWidth: number; fill: string; } export interface DimPreviewText { x: number; y: number; text: string; fontSize: number; fill: string; textAnchor: 'start' | 'middle' | 'end'; rotation: number; /** Optional geometry of background fill / text frame rectangle. */ box?: { x: number; y: number; w: number; h: number; }; /** Fill color behind the text (DIMTFILL). */ background?: string; /** Frame stroke color (drawn when DIMGAP is negative). */ frame?: string; /** Mirror text horizontally (DIMTXTDIRECTION = 1). */ mirror?: boolean; } export interface DimPreviewScene { lines: DimPreviewLine[]; paths: DimPreviewPath[]; circles: DimPreviewCircle[]; texts: DimPreviewText[]; } /** * Build a scene that mirrors the illustration shown in AutoCAD's Dimension * Style Manager: a beveled plate with a rounded corner, a center mark, an * aligned dimension, linear dimensions, a radius and an angular dimension. */ export declare function buildDimStylePreview(style?: AcDbDimStyleTableRecord): DimPreviewScene; //# sourceMappingURL=dimStylePreview.d.ts.map