@mlightcad/libredwg-converter
Version:
The `libredwg-converter` package provides a DWG file converter for the RealDWG-Web ecosystem, enabling reading and conversion of DWG files into the AutoCAD-like drawing database structure. It is based on the [LibreDWG](https://www.gnu.org/software/libredw
49 lines • 1.53 kB
TypeScript
import { AcDbEntity } from '@mlightcad/data-model';
import type { DwgEntity } from '@mlightcad/libredwg-web';
export declare class AcDbEntityConverter {
convert(entity: DwgEntity): AcDbEntity | null;
/**
* Create the corresponding drawing database entity from data in dxf format
* @param entity Input entity data in dxf format
* @returns Return the converted drawing database entity
*/
private createEntity;
private convertFace;
private convertArc;
private convertCirle;
private convertEllipse;
private convertLine;
private convertSpline;
private convertPoint;
private convertSolid;
private convertLWPolyline;
private convertPolyline2d;
private convertPolyline3d;
private convertHatch;
private convertTable;
private convertText;
private convertMText;
private convertLeader;
private convertMLine;
private convertMLeader;
private convertDimension;
private processImage;
private convertImage;
private convertWipeout;
private convertViewport;
private convertRay;
private convertXline;
private convertAttributeCommon;
private convertAttribute;
private convertAttributeDefinition;
private convertBlockReference;
private processDimensionCommonAttrs;
private processCommonAttrs;
private readNumber;
private readString;
private readBoolean;
private readPoint;
private readLeaderLineArray;
private isPointLike;
}
//# sourceMappingURL=AcDbEntitiyConverter.d.ts.map