@mlightcad/libredwg-web
Version: 
A DWG/DXF JavaScript parser based on libredwg
54 lines • 1.7 kB
TypeScript
import { DwgDatabase, DwgEntity } from '../database';
import { LibreDwgEx } from '../libredwg';
import { Dwg_Object_Ptr } from '../types';
export declare class LibreEntityConverter {
    libredwg: LibreDwgEx;
    layers: Map<number, string>;
    ltypes: Map<number, string>;
    unknownEntityCount: number;
    constructor(instance: LibreDwgEx);
    prepare(db: DwgDatabase, force?: boolean): void;
    clear(): void;
    convert(object_ptr: Dwg_Object_Ptr): DwgEntity | undefined;
    private convert3dFace;
    private convertArc;
    private convertEmbeddedMText;
    private convertAttdef;
    private convertCircle;
    private convertAlignedDimension;
    private convert3PointAngularDimension;
    private convertDiameterDimension;
    private convertOrdinateDimension;
    private convertRadiusDimension;
    private convertEllise;
    private convertHatch;
    private convertHatchBoundaryPaths;
    private convertImage;
    private convertInsert;
    private convertLeader;
    private convertLine;
    private convertLWPolyline;
    private convertMLine;
    private convertOle2Frame;
    private convertOleFrame;
    private convertMText;
    private convertPoint;
    private convertPolyline2d;
    private convertProxy;
    private convertRay;
    private convertSection;
    private convertSolid;
    private convertSpline;
    private convertTable;
    private convertTableCells;
    private convertTextBase;
    private convertText;
    private convertTolerance;
    private convertWipeout;
    private convertXline;
    private getDimensionCommonAttrs;
    private getCommonAttrs;
    private getLayerName;
    private getLtypeName;
}
//# sourceMappingURL=entityConverter.d.ts.map