import { DwgDatabase } from '../database/index.js'; import { LibreDwgEx } from '../libredwg.js'; import { Dwg_Data_Ptr } from '../types/index.js'; /** * Class used to convert Dwg_Data instance to DwgDatabase instance. */ export declare class LibreDwgConverter { private libredwg; private entityConverter; /** * Entity object indices keyed by owning BLOCK_HEADER object pointer. * Built lazily when an ownership walk returns no entities (LibreDWG * https://github.com/LibreDWG/libredwg/issues/1199). */ private orphanEntitiesByBlock; /** Entity indices whose ownerhandle does not resolve to any object. */ private ownerlessOrphanIndices; private orphanIndexDataPtr; constructor(instance: LibreDwgEx); /** * True when LAYER.plotflag (DXF 290) is present in the file format * (LibreDWG: SINCE R_2000b / binary version >= 0x16). * Cleared for older versions so convertLayer defaults plotFlag to 1 instead * of LibreDWG's zeroed bit (which would mark every layer non-plottable). */ private layerPlotFlagSupported; convert(data: Dwg_Data_Ptr): DwgDatabase; getConversionStats(): { unknownEntityCount: number; }; private safeObjectTio; private convertHeader; private convertClasses; private convertAppId; private convertBlockRecord; private convertEntities; /** * Builds (once) a map of BLOCK_HEADER object pointer → entity object indices * for entities that are not reachable through the ownership chain, then * converts the entities owned by `blockHeaderPtr`. * * @param includeOwnerless - When true (only for *Model_Space), also convert * entities that still have no resolvable owner after ownerhandle + entmode * fallback via dwg_entity_owner. */ private convertOrphanOwnedEntities; /** * True when the entity is block-owned (`entmode` 0) but its owner handle * names an object that does not exist in the drawing. * * These are leftovers of erased blocks (typically stale anonymous `*D` * dimension pictures). AutoCAD never draws them, so they must not be * adopted into *Model_Space as ownerless orphans. Entities without an owner * handle are still adopted because some writers omit it for genuine * model-space entities. */ private isOwnedByMissingBlock; private ensureOrphanEntityIndex; private convertDimStyle; private convertLayer; private convertLineType; private convertLineTypePattern; private convertStyle; private convertViewport; private getCommonTableEntryAttrs; private convertDictionary; private convertImageDef; private convertLayerFilter; private convertLayerIndex; private convertLayout; private convertMLeaderStyle; private convertSpatialFilter; private convertGroup; private convertXRecord; private getCommonObjectAttrs; } //# sourceMappingURL=converter.d.ts.map