Skip to content

massimo-zaniboni/svg-to-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvgToElm

Convert a SVG XML document into Elm Svg expressions.

Usage Example

Given the file demo.svg

<svg height="210" width="500">
  <polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"/>
</svg>

execute

java -jar target/svg-to-elm-1.0-SNAPSHOT.jar < demo.svg > demo.elm

for producing the file demo.elm

svg [
    height "210"
  , width "500"] [
    polygon [
      points "100,10 40,198 190,78 10,78 160,198"
    , Svg.Attributes.style "fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"] []
]

Built With

  • Java
  • Maven

Authors

License

This project is licensed under GPLv3+.

About

Convert a SVG XML document into Elm Svg expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages