import { AcApOpenViewMode, AcEdOpenMode } from '@mlightcad/cad-simple-viewer'; import { LocaleProp } from '../locale'; interface Props { /** Language locale for internationalization ('en', 'zh', or 'default') */ locale?: LocaleProp; /** Optional URL to automatically load a CAD file on component mount */ url?: string; /** Optional local File object to automatically load a CAD file on component mount */ localFile?: File; /** Background color as 24-bit hexadecimal RGB number (e.g., 0x000000) */ background?: number; /** Base URL for loading fonts, templates, and example files (e.g., 'https://example.com/cad-data/') */ baseUrl?: string; /** * Absolute root URL for localized user-guide pages (trailing slash optional). * Forwarded to {@link AcApDocManagerOptions.docsBaseUrl} for in-app help links * (e.g. mobile magnifier). Defaults to the public mlightcad docs site. */ docsBaseUrl?: string; /** * When true, drawing export commands are not registered and the File menu * Export submenu is hidden. Forwarded to {@link AcApDocManagerOptions.disableExport}. * Defaults to false (export remains enabled). */ disableExport?: boolean; /** * URL of the offline HTML viewer runtime (`viewer-runtime.iife.js`). * Used only for File menu “Export to HTML”. Copy the file from * `@mlightcad/cad-html-plugin` into your app assets when you need HTML export. * Not required to open or view DXF/DWG. */ htmlViewerRuntimeUrl?: string | URL; /** * The flag whether to use main thread or webwork to render drawing. * - true: use main thread * - false: use web worker */ useMainThreadDraw?: boolean; /** Initial theme of the viewer */ theme?: 'light' | 'dark'; /** * Access mode for opening CAD files. * - Read (0): Read-only access * - Review (4): Review access, compatible with Read * - Write (8): Full read/write access, compatible with Review and Read */ mode?: AcEdOpenMode; /** * Whether entities on non-plottable ("no-plot") layers are drawn. * When omitted, {@link AcApDocManager} defaults to `false` (web viewer semantics). */ drawNoPlotLayers?: boolean; /** * Whether opening a drawing is progressive. * * Controls both stages: mid-open paints during entity convert, and overlay * policy. When `false` (default), the overlay stays until entities and * deferred text geometry are idle. When `true`, the overlay locks the UI * until parse/conversion finish, then hides so pan/zoom work while scene * convert continues (status bar clears at CONVERSION end). Deprecated * `waitForTextGeometry` is ignored. */ progressiveRendering?: boolean; /** * @deprecated Ignored. Both stages of progressive rendering are controlled * by {@link progressiveRendering}. Kept so existing templates still compile. */ waitForTextGeometry?: boolean; /** * How to frame the view when the document finishes opening. * When omitted, Read and Review use {@link AcApOpenViewMode.Extents}; * Write uses {@link AcApOpenViewMode.Saved}. */ openViewMode?: AcApOpenViewMode; /** * Maximum segments used to tessellate a full circle when drawing. * Lower values save memory; higher values look smoother. * When omitted, {@link ACDB_DRAW_CIRCLE_SIDES_DRAFT} (50) is used, * matching the data-model default for {@link AcApOpenDatabaseOptions.circleSides}. */ circleSides?: number; /** * Paper-space (layout) canvas background as packed 24-bit RGB * (e.g. `0xffffff` white, `0x000000` black). Defaults to white. * Mapped to open options as `sysVars.paperbkcolor`. */ paperSpaceBackground?: number; } declare const __VLS_export: import('vue').DefineComponent, { locale: string; url: undefined; localFile: undefined; background: undefined; baseUrl: undefined; docsBaseUrl: undefined; disableExport: boolean; htmlViewerRuntimeUrl: string; useMainThreadDraw: boolean; theme: string; mode: AcEdOpenMode; progressiveRendering: boolean; openViewMode: undefined; circleSides: number; paperSpaceBackground: number; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { create: () => void; destroy: () => void; }, string, import('vue').PublicProps, Readonly, { locale: string; url: undefined; localFile: undefined; background: undefined; baseUrl: undefined; docsBaseUrl: undefined; disableExport: boolean; htmlViewerRuntimeUrl: string; useMainThreadDraw: boolean; theme: string; mode: AcEdOpenMode; progressiveRendering: boolean; openViewMode: undefined; circleSides: number; paperSpaceBackground: number; }>>> & Readonly<{ onDestroy?: (() => any) | undefined; onCreate?: (() => any) | undefined; }>, { mode: AcEdOpenMode; theme: "light" | "dark"; background: number; locale: LocaleProp; url: string; circleSides: number; localFile: File; baseUrl: string; docsBaseUrl: string; disableExport: boolean; htmlViewerRuntimeUrl: string | URL; useMainThreadDraw: boolean; progressiveRendering: boolean; openViewMode: AcApOpenViewMode; paperSpaceBackground: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: typeof __VLS_export; export default _default; type __VLS_TypePropsToOption = { [K in keyof T & string]-?: {} extends Pick ? { type: import('vue').PropType[K]>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //# sourceMappingURL=MlCadViewer.vue.d.ts.map