-
Notifications
You must be signed in to change notification settings - Fork 587
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
Node label as hyperlink instead of plain test #73
Comments
Yes, please see: http://jsbin.com/yiqeya/2. To see the source, look at http://jsbin.com/yiqeya/2/edit. |
Thank you, this worked. However, the link opens in a new window. Is it possible to set up a regular link? |
Hello, I'm trying to add href attributes to nodes, after the nodes have first been created with graphlibDot. trying to do so as such: var g = graphlibDot.read(dotString);
g.nodes().forEach(function (v) {
var node = g.node(v);
node.href = 'http://www.google.com';
});
// etc. here goes the rendering code via d3 This does not work. Am I doing something silly? |
Another question: I want to add proper svg links instead of reacting to clicks. This involves wrapping rects inside svg links. Is there a way to hook into the rendering mechanism to do so? If not, maybe you have some suggestions to do that? Thanks in advance, -- Laurent |
I did that in mermaid-js/mermaid#791 but dagre has since changed so it only covers the label area again. |
Is it possible to set the graph nodes to be hyperlink to arbitrary url when clicking on the node?
The text was updated successfully, but these errors were encountered: