10
11
12
13
14
15
16
17
|
# File 'lib/convert_svg_string_to_gcode.rb', line 10
def self.perform(svg_as_string)
parsed_svg = ParseSVGString.perform(svg_as_string)
svg_tokens = TokenizeParsedSVG.perform(parsed_svg)
svg_commands = CreateCommandsFromTokens.perform(svg_tokens)
adjusted_svg_commands = AdjustSVGCommandsForPlotter.perform(svg_commands, ConversionConstants::PROPORTION)
gcode_array = CreateGCodeArrayFromSVGCommands.perform(adjusted_svg_commands)
CreateGCodeFromGCodeArray.perform(gcode_array)
end
|