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; /** * URL of the offline HTML viewer runtime (`viewer-runtime.iife.js`). * Required for File menu “Export to HTML”; copy the file from * `@mlightcad/cad-html-plugin` build output into your app assets. */ 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 to render entities incrementally while a drawing is opening. * When omitted, {@link AcApDocManager} defaults to `false`. */ progressiveRendering?: 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; /** * When `true`, aborts opening if required fonts cannot be loaded. * Defaults to `false` so unreachable font CDNs do not block entity parsing. */ failOnFontLoadError?: boolean; } declare const _default: import('vue').DefineComponent, { locale: string; url: undefined; localFile: undefined; background: undefined; baseUrl: undefined; htmlViewerRuntimeUrl: string; useMainThreadDraw: boolean; theme: string; mode: AcEdOpenMode; progressiveRendering: boolean; openViewMode: undefined; }>>, {}, {}, {}, {}, 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; htmlViewerRuntimeUrl: string; useMainThreadDraw: boolean; theme: string; mode: AcEdOpenMode; progressiveRendering: boolean; openViewMode: undefined; }>>> & Readonly<{ onCreate?: (() => any) | undefined; onDestroy?: (() => any) | undefined; }>, { mode: AcEdOpenMode; theme: "light" | "dark"; locale: LocaleProp; url: string; background: number; localFile: File; baseUrl: string; htmlViewerRuntimeUrl: string | URL; useMainThreadDraw: boolean; progressiveRendering: boolean; openViewMode: AcApOpenViewMode; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; }; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {}; //# sourceMappingURL=MlCadViewer.vue.d.ts.map