@mlightcad/svg-renderer
v0.0.1
Published
This package implements the SVG-based rendering engine for MLightCAD. It converts DWG/DXF entities into SVG graphics for SVG exporting. For now, this module isn't fullly implemented yet.
Readme
svg-renderer
This package implements the SVG-based rendering engine for MLightCAD. It converts DWG/DXF entities into SVG graphics for SVG exporting. For now, this module isn't fullly implemented yet.
Key Features
- Renders CAD entities as SVG elements
- Supports layers, colors, and visibility
- Designed for integration with the main application and document manager
Directory Structure (partial)
src/AcSvgEntity.ts– Base class for SVG entitiessrc/AcSvgRenderer.ts– Main SVG renderer implementationsrc/– Entity-specific renderers (lines, arcs, ellipses, etc.)
Usage
Import and use AcSvgRenderer from src/AcSvgRenderer.ts to render entities to SVG.
Role in MLightCAD
This package provides the SVG rendering backend for the main application, enabling scalable 2D graphics output.
