node-graphviz
node-graphviz copied to clipboard
Add imagepos to Attributes.js
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,
Could you send a PR ?