Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "updated viz.js from 1.8.2 to 3.11.0" #527

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions inst/htmlwidgets/grViz.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ HTMLWidgets.widget({
};
},

renderValue: async function(el, x, instance) {
renderValue: function(el, x, instance) {
// Use this to sort of make our diagram responsive
// or at a minimum fit within the bounds set by htmlwidgets
// for the parent container
Expand All @@ -34,8 +34,8 @@ HTMLWidgets.widget({
}

try {
const viz = await Viz.instance();
el.innerHTML = await viz.renderString(x.diagram, {format: "svg", engine: x.config.engine, ...x.config.options});

el.innerHTML = Viz(x.diagram, format="svg", engine=x.config.engine, options=x.config.options);

makeResponsive(el);

Expand Down
2 changes: 1 addition & 1 deletion inst/htmlwidgets/grViz.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: viz
version: 3.11.0
version: 1.8.2
src: htmlwidgets/lib/viz
script: viz.js
- name: DiagrammeR-styles
Expand Down
209 changes: 203 additions & 6 deletions inst/htmlwidgets/lib/viz/viz.js

Large diffs are not rendered by default.

Loading