Skip to content

Commit 91f7a1d

Browse files
committed
update Nodejs
1 parent a34f334 commit 91f7a1d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ InMemoryDatasets = "0.7"
1616
Distributions = "0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25"
1717
DLMReader = "0.4"
1818
JSON = "0.19, 0.20, 0.21"
19-
Vega = "2"
19+
Vega = "2.5"
2020
julia = "1.6"
2121

2222
[extras]

src/show.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ function _write_json(vspec::SGPlots)
4949
end
5050

5151
function _convert_to_svg(vspec; s = 1)
52-
nodejscmd = Vega.NodeJS.node_executable_path
53-
node_modules = joinpath(Vega.vegalite_app_path, "node_modules/vega-cli/bin/vg2svg")
52+
nodejscmd = Vega.NodeJS_18_jll.node()
53+
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
5757
end
5858
function _convert_to_png(vspec; s = 1)
59-
nodejscmd = Vega.NodeJS.node_executable_path
60-
node_modules = joinpath(Vega.vegalite_app_path, "node_modules/vega-cli/bin/vg2png")
59+
nodejscmd = Vega.NodeJS_18_jll.node()
60+
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
6464
end
6565
function _convert_to_pdf(vspec; s = 1)
66-
nodejscmd = Vega.NodeJS.node_executable_path
67-
node_modules = joinpath(Vega.vegalite_app_path, "node_modules/vega-cli/bin/vg2pdf")
66+
nodejscmd = Vega.NodeJS_18_jll.node()
67+
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)
7070
res

0 commit comments

Comments
 (0)