Javascript SVG to laser time converter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
jquery.svg.css
p1_inkscape.svg
parse.html

README.md

SVG2LaserTime

Javascript SVG to laser time converter

Intro

A script assembled out of multiple StackOverflow answers on how to parse a SVG file into an estimation of laser time.

To Do

  • Convert pixels into laser time

Done

  • Open SVG file
  • Calculate Path lengths
  • Calculate Path (polygone and bezier) areas
  • Calculate Rectangles lengths
  • Calculate Rectangles areas
  • Calculate Ellipses perimeters (based on largest radius)
  • Calculate Ellipses areas (based on largest radius)
  • Discriminate between cutting and engraving (light, medium, heavy)

Tests

Test conducted in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer