node-graphviz icon indicating copy to clipboard operation
node-graphviz copied to clipboard

Add imagepos to Attributes.js

Open monnewbie3 opened this issue 5 years ago • 2 comments

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,

monnewbie3 avatar Jan 08 '20 21:01 monnewbie3

Could you send a PR ?

glejeune avatar Jan 08 '20 21:01 glejeune