0.0
No commit activity in last 3 years
No release in over 3 years
turn svg shape tags into <path> tag.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

svg_pathify turns svg basic shapes into <path> svg elements.

install

gem install svg_pathify

or in your Gemfile:

gem 'svg_pathify'

usage

require 'svg_pathify'

input  = %Q{<polyline points="350,75  379,161 469,161 397,215
                423,301 350,250 277,301 303,215
                231,161 321,161" />}

output = SvgPathify.convert( input )
#=> '<path d="M350,75L379,161L469,161L397,215L423,301L350,250L277,301L303,215L231,161L321,161Z" />'