File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,21 +49,21 @@ function _write_json(vspec::SGPlots)
4949end
5050
5151function _convert_to_svg (vspec; s = 1 )
52- nodejscmd = Vega. NodeJS_18_jll . node ()
52+ nodejscmd = Vega. NodeJS . nodejs_cmd ()
5353 node_modules = joinpath (Vega. vegalite_app_path (), " node_modules/vega-cli/bin/vg2svg" )
5454 ftmp = _write_json (vspec)
5555 res = read (Cmd (` $nodejscmd $node_modules -s $s $ftmp ` ), String)
5656 res
5757end
5858function _convert_to_png (vspec; s = 1 )
59- nodejscmd = Vega. NodeJS_18_jll . node ()
59+ nodejscmd = Vega. NodeJS . nodejs_cmd ()
6060 node_modules = joinpath (Vega. vegalite_app_path (), " node_modules/vega-cli/bin/vg2png" )
6161 ftmp = _write_json (vspec)
6262 res = read (Cmd (` $nodejscmd $node_modules -s $s $ftmp ` ), String)
6363 res
6464end
6565function _convert_to_pdf (vspec; s = 1 )
66- nodejscmd = Vega. NodeJS_18_jll . node ()
66+ nodejscmd = Vega. NodeJS . nodejs_cmd ()
6767 node_modules = joinpath (Vega. vegalite_app_path (), " node_modules/vega-cli/bin/vg2pdf" )
6868 ftmp = _write_json (vspec)
6969 res = read (Cmd (` $nodejscmd $node_modules -s $s $ftmp ` ), String)
You can’t perform that action at this time.
0 commit comments