A Javascript-based generator of laser cutter friendly etchable rulers
- SVG Genrates fully vector based rulers ready for laser-etching, printing, plotting, or CAD applications
- Similar lines are grouped as labeled SVG layers when opened in Adobe Illustrator or Inkscape.
- Each line is labeled by its resolution and number as an SVG object
- Code is well-commented and sylistically sound allowing for easy modifications and pull requests
- Uses Paper.js for drawing and export
- I referenced the excellent SVG export example here
- The default fort is not ideal for laser cutting, as it is not a true single-line font.
- The text is editable as text, so it can easily be changed in Illustrator or Inkscape.
Viewing the very well organized document tree of an exported ruler in Illustrator:
Open the [Layers] Palette (Window > Layers) click the [ ►Layer 1] arrow to view its children There will be a group for each tick level (1"in, ½:"in, ¼"in, ⅛"in... or 1cm. 0.1cm, 0.01cm...)▼ All the labels can easily be changed in terms of size or font