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

Support for rounded rectangles #15

Open
urmilparikh opened this issue Oct 29, 2018 · 1 comment
Open

Support for rounded rectangles #15

urmilparikh opened this issue Oct 29, 2018 · 1 comment

Comments

@urmilparikh
Copy link

They do not get un-highlighted correctly when another node/path is selected.

digraph {
	bgcolor="#2e3e56"
	pad="0.5"
	node [shape="rectangle", width="0.6", style="rounded, filled", fillcolor="#edad56", color="#edad56", penwidth="2", label=""]
	edge [color="#fcfcfc", fontcolor="#fcfcfc", penwidth="2", fontname="helvetica Neue Ultra Light"]
	rankdir=LR;
	n61 [fillcolor="#BDE5F2", color="#BDE5F2", label="Test"];
	n62 [fillcolor="#BDE5F2", color="#BDE5F2", label="Edge"];
	n63 [fillcolor="#BDE5F2", color="#BDE5F2", label="Another"];
	n64 [fillcolor="#BDE5F2", color="#BDE5F2", label="Final"];
	n61 -> n63 [label=""];
	n63 -> n64 [label="label"];
	n62 -> n64 [label="label"];
}
@basnijholt
Copy link

I believe the issue is this:

if (color.fill && $this.prop('tagName') != 'path') {
$this.attr('fill', getColor(color.fill, bg)) // don't set fill if it's a path
}

When using rounded the element is a path, here it gets excluded.

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

2 participants