UNPKG

@mlightcad/libredwg-web

Version:

A DWG/DXF JavaScript parser based on libredwg

24 lines 897 B
export const denormalise = (dwg) => { // Implement the logic to process the parsed DXF data // This function should convert the parsed data into a format suitable for SVG conversion // For example, it might involve flattening nested structures or extracting relevant properties // Placeholder implementation return dwg.entities.map((entity) => ({ type: entity.type, x: entity.x, y: entity.y, r: entity.r, majorX: entity.majorX, majorY: entity.majorY, axisRatio: entity.axisRatio, startAngle: entity.startAngle, endAngle: entity.endAngle, extrusionZ: entity.extrusionZ, transforms: entity.transforms, controlPoints: entity.controlPoints, knots: entity.knots, degree: entity.degree, weights: entity.weights, })); }; //# sourceMappingURL=denormalise.js.map