If anyone is working on some vega visualizations, I wrote a nodejs application that will transform your vega or vega-lite visualizations into png, jpg, svg, or pdf: https://github.com/cnuernber/vegan/
https://github.com/cnuernber/vegan/blob/master/images/barley-trellis.vg.pdf