class Text2Path::SvgPath

specification: www.w3.org/TR/SVG/paths.html#PathElement

Attributes:

d
transform (not implemented)
pathLength (not implemented)

Public Class Methods

parse( str ) { |p| ... } click to toggle source
# File lib/text2path/svg_path.rb, line 16
def parse( str )
  Savage::Parser.parse( str ).tap do |p|
    yield p if block_given?
  end
end

Public Instance Methods

advance( dx=0, dy=0 ) click to toggle source
# File lib/text2path/svg_path.rb, line 23
def advance( dx=0, dy=0 )
  subpaths.each do |p|
    #p.move_to dx, dy
    p.directions.each do |dir|
    end
  end
end