Event-driven SVG path data parser