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

WIP images option #232

Closed
wants to merge 1 commit into from
Closed

WIP images option #232

wants to merge 1 commit into from

Conversation

mdaines
Copy link
Owner

@mdaines mdaines commented Feb 13, 2024

No description provided.

@mdaines mdaines mentioned this pull request Feb 13, 2024
This adds support for an images option, similar to the previous version.

Sizes of images referenced by the image attribute can be specified using an "images" render option:

  viz.render("graph { a[image="test.png"] }", {
    images: [
      { name: "test.png", width: 300, height: 200 }
    ]
  });

The property "name" is used instead of "path" to match the gvusershape functions in Graphviz.
@mdaines mdaines closed this Feb 14, 2024
@mdaines mdaines deleted the viz-files-and-images-options branch July 9, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant