UNPKG

@mlightcad/libdxfrw-converter

Version:

The `libdxfrw-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 [libdxfrw](https://github.com/LibreDWG/libdxfrw

15 lines 596 B
import { AcDbRasterImageDef } from '@mlightcad/data-model'; var AcDbObjectConverter = /** @class */ (function () { function AcDbObjectConverter() { } AcDbObjectConverter.prototype.convertImageDef = function (imageDef) { var dbObject = new AcDbRasterImageDef(); dbObject.sourceFileName = imageDef.path; dbObject.objectId = imageDef.handle.toString(); dbObject.ownerId = imageDef.parentHandle.toString(); return dbObject; }; return AcDbObjectConverter; }()); export { AcDbObjectConverter }; //# sourceMappingURL=AcDbObjectConverter.js.map