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

Add imagepos to Attributes.js #36

Open
monnewbie3 opened this issue Jan 8, 2020 · 2 comments
Open

Add imagepos to Attributes.js #36

monnewbie3 opened this issue Jan 8, 2020 · 2 comments

Comments

@monnewbie3
Copy link

I can't seem to find imagepos for nodes.
I manually updated my Attributes.js file and it appears to work fine.
This will position the image in the node where you would like it.
Options are as follows;

  • tl | Top Left
  • tc | Top Centered
  • tr | Top Right
  • ml | Middle Left
  • mc | Middle Centered (the default)
  • mr | Middle Right
  • bl | Bottom Left
  • bc | Bottom Centered
  • br | Bottom Right

"imagepos" : { "usage" : "N", "type" : "string" }

Reference: https://www.graphviz.org/doc/info/attrs.html#d:height

Thanks,

@glejeune
Copy link
Owner

glejeune commented Jan 8, 2020

Could you send a PR ?

@reregaga
Copy link

reregaga commented Dec 7, 2024

@glejeune it just needs to be added this line:

"imagepos" : { "usage" : "N", "type" : "string" }

after this line:

imagepath: { usage: 'G', type: 'string' },

P.S. On github it's awkward to add PRs, if you need to fix one file quickly. It asks you to make a fork first, and other boring fiddling.

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

No branches or pull requests

3 participants