Module: Emfsvg::Svg::PathData

Defined in:
lib/emfsvg/svg/path_data.rb,
lib/emfsvg/svg/path_data/command.rb

Overview

Namespace for the SVG path-data parser. Pure parser, no EMF concerns. The translation layer (Phase 03 path handler) consumes the resulting Command list.

Defined Under Namespace

Modules: Parser Classes: Command, Scanner

Constant Summary collapse

ARG_COUNTS =

Arg count per command letter. M repeats as L (handled in parser).

{
  "M" => 2, "L" => 2, "H" => 1, "V" => 1, "C" => 6, "S" => 4,
  "Q" => 4, "T" => 2, "A" => 7, "Z" => 0
}.freeze