File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- function convert_vl_to_x (v:: VLSpec , fileformat)
1+ function convert_vl_to_x (v:: VLSpec , fileformat; cmd_args = " " )
22 script_path = vegalite_app_path (" node_modules" , " vega-lite" , " bin" , " vl2$fileformat " )
33
4- p = open (Cmd (` $(NodeJS_18_jll. node ()) $script_path ` , dir= vegalite_app_path ())," r+" )
4+ p = open (Cmd (` $(NodeJS_18_jll. node ()) $script_path $cmd_args ` , dir= vegalite_app_path ())," r+" )
55 writer = @async begin
66 our_json_print (p, v)
77 close (p. in)
6666
6767function Base. show (io:: IO , m:: MIME"image/png" , v:: VLSpec )
6868 if vegaliate_app_includes_canvas[]
69- print (io, convert_vl_to_x (v, " png" ))
69+ if haskey (io, :ppi )
70+ print (io, convert_vl_to_x (v, " png" , cmd_args= " --ppi=$(io[:ppi ]) " ))
71+ else
72+ print (io, convert_vl_to_x (v, " png" ))
73+ end
7074 else
7175 error (" Not yet implemented." )
7276 # svgstring = convert_vl_to_svg(v)
You can’t perform that action at this time.
0 commit comments