VectorRuler icon indicating copy to clipboard operation
VectorRuler copied to clipboard

[FEATURE REQUEST] Port entire generator to Maker.JS

Open Robbbb opened this issue 4 years ago • 2 comments

When I started this project, Paper.JS was the only tool I found capable of creating vector graphics in the browser and exporting SVG files. It had many issues, such as using pixels with a squish definition as the SVG unit.

Yesterday, i found the very powerful Maker.js tool set and it solves most of our issues automatically.

  • #12 Strange preview behvior
  • SVG support with explicit units (solves DPI issue)
  • #21 Native DXF support (enables use on more industrial machines)
  • STL support (allows rulers to be 3D printed easily)
  • #21 PDF support (easy to print on paper and less intimidating than SVG, easily made into PNGs)
  • #20 Includes zoomable viewer, grid, and multitouch support
  • We could pull request our ruler into their examples directory and get more users and exposure via the already popular tool.

Is someone able to port this? It may be trivial for someone with significant JS skills, as very little of the Ruler Generator code is specific to Paper.JS as far as I know.

They have an interactive tool, and I started to play with it and got this far before getting overwhelmed by not knowing how to use Javascript. Interactive playground (Paste the below gist in for an idea of what our UI might look like)

Gist of a very incomplete gesture of what it may look like

Robbbb avatar Sep 19 '21 21:09 Robbbb

@riverwind0 if you are feeling ambitious this could make the tool much cleaner and fit the entire ruler on the screen! Check out this cool example: https://maker.js.org/playground/?script=makerjs-nameplate It even allows for export of STL files for printing!

Robbbb avatar Sep 26 '24 14:09 Robbbb

Ohhhh, looks very nice! :) I will test it when I've some time. Thanks for the info!!! ;)

riverwind0 avatar Sep 26 '24 16:09 riverwind0