vagran / dxf-viewer

DXF 2D viewer written in JavaScript
Mozilla Public License 2.0
290 stars 86 forks source link

Feature request: show ruler with units at https://vagran.github.io/dxf-viewer-example/ #96

Open velle opened 6 months ago

velle commented 6 months ago

I am trying to export a simple SVG to DXF using Inkscape, but it seems that it does not preserve the units the way it should (or at least the way I expect it too, because I may have misunderstood how it works and should work). I need a reliable tool that can help me verify that the units in my DXF are correct, before I email this DXF file to the fabricator.

I have been looking for minimalistic, easy to install and use, open source tools for viewing a DXF and verifying the size, and I actually havent found one (yet). Your online viewer is the best I have found. And thanks :)

But to verify the size, your tool would still need a ruler of some kind. For me a solution as shown below would be sufficient.

image

Sincerely :)

vagran commented 6 months ago

OK, I will think about it. Actually, this kind of feature is not for the library itself, but for applications built on top of it. Could do something like that in the online demo application, which, by the way, meant to be just a minimalistic example of the library API usage, not a feature-rich product.

velle commented 6 months ago

I understand. And I agree that there should be a minimalistic example implementation. Perhaps two minimalistic examples then, one with a ruler and one without? The future could bring more examples. Just a humble suggestion.

Or perhaps there is another project/service out there, that builds on top of your project, and it makes more sense for me to go and use their example/service? The fact is, that I just havent found those minimalistic solutions elsewhere :/ :)

vagran commented 6 months ago

I am not aware about other public services based on dxf-viewer. I know people use it a lot, but mostly in proprietary projects. More examples are better, indeed. Anyone is free to make one. Also, as I said, I do not reject this feature request, I may consider implementing it one day, so it will be left open. However, currently there is much work pending in this project, so this is not so high priority.