-
Notifications
You must be signed in to change notification settings - Fork 89
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
Proposal: Edges additional properties #27
Comments
Looks like GrapViz edge attributes, in particular |
fromLabel and toLabel is exactly what I need too: |
Apart from GraphViz some GEXF formats support visual attributes as well:
These seem to be a subset of GraphViz attributes (e.g. Please note that generic attributes (arbitrary key-value-pairs), as supported in GML, GDF, GraphML among other formats, are another issue! Visual attributes should be special because they come with shared sematics while generic attributes depend on use case and application. |
I think some properties are missing to have the JSONCanvas standard to be adopted by awider range of apps.
type
propertyIt would be a good addition to have another property on the
Edge
object:type
which could have those values:sharp
for sharp turnscurved
for smooth turns (the default one)straight
no turns, a straight line betweenfromNode
andtoNode
See the example:
style
propertyHaving a canvas style would add more variety on edge styles.
style
would somehow follow theborder
CSS property style:solid
: For a solid line (the default one)dotted
: For a dotted linedashed
: For a dashed linemixed
: A mix betweendotted
anddashed
none
: To hide the edge without removing ite.g:
fromLabel
&toLabel
propertiesFor now we can only set a label to an edge, that would be supposedly displayed at the middle of it.
What if we want to display a label that at the end or the beginning of the edge, or even both?
They would work like the
label
property but used to be displayed at the start or/and the end of an edge.Think about SQL schema
n-m
relationships.Those property would not be self exclusive and using the 3 labels properties would work.
The text was updated successfully, but these errors were encountered: