Skip to content

qhwa/svg_pathify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" />'

About

ruby gem that can turn svg shape elements into path svg elements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages