Add SVG/JS stubs
Add `idx` parameter `draw` functions in PGF backend