dxf-viewer
Advanced tools
Weekly downloads
Changelog
v1.0.22
Follow-up for dimensions support. Now it also renders pre-rendered dimension blocks which are often embedded into DXF file.
Readme
If you just need to view your DXF, click here.
This package provides DXF 2D viewer component written in JavaScript. It renders drawings using WebGL (via three.js library). It was carefully crafted with performance in mind, intended for drawing huge real-world files without performance problems.
The usage example is available here: https://github.com/vagran/dxf-viewer-example-src
Deployed demo: https://vagran.github.io/dxf-viewer-example/
The package is released under the Mozilla Public License 2.0.
The viewer was initially published in the corporate repository (mostly dead now) and is used in production in Atlas project.
npm install dxf-viewer
There are still many incomplete features. I will try to implement some of them when I have some time. Anything useful implemented in the corporate repository will be merged here as well.
$DWGCODEPAGE
parameter is ignored.Please refer to the contribution guidelines for details on how to make pull requests (PRs). The project also requires various example files for testing purposes. If you encounter any issues with DXF rendering, it would be greatly appreciated if you could provide an example file that demonstrates the problem by attaching it to a created issue. Creating minimal examples in CAD software can also be very helpful. Additionally, creating examples in various proprietary CAD software to which I do not have access would be highly valuable. Since the entrance level to start coding in this project is quite high, it is often more useful to receive a detailed issue report with sample files rather than a pull request.
FAQs
JavaScript DXF file viewer
The npm package dxf-viewer receives a total of 400 weekly downloads. As such, dxf-viewer popularity was classified as not popular.
We found that dxf-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.