Skip to content

Commit 999d742

Browse files
authored
Merge pull request #530 from cderv/fix/Viz-options
graphViz - Correctly pass options to `Viz()`
2 parents 2213f87 + 6bb5b31 commit 999d742

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

inst/htmlwidgets/grViz.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ HTMLWidgets.widget({
3434
}
3535

3636
try {
37-
38-
el.innerHTML = Viz(x.diagram, format="svg", engine=x.config.engine, options=x.config.options);
39-
37+
el.innerHTML = Viz( x.diagram, { format: "svg", engine: x.config.engine, ...x.config.options });
38+
4039
makeResponsive(el);
4140

4241
if (HTMLWidgets.shinyMode) {

0 commit comments

Comments
 (0)