I think some properties are missing to have the JSONCanvas standard to be adopted by awider range of apps.
type property
It would be a good addition to have another property on the Edge object:
type which could have those values:
sharp for sharp turns
curved for smooth turns (the default one)
straight no turns, a straight line between fromNode and toNode
See the example:
style property
Having a canvas style would add more variety on edge styles.
style would somehow follow the border CSS property style:
solid: For a solid line (the default one)
dotted: For a dotted line
dashed: For a dashed line
mixed: A mix between dotted and dashed
none: To hide the edge without removing it
e.g:
fromLabel & toLabel properties
For 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.
I think some properties are missing to have the JSONCanvas standard to be adopted by awider range of apps.
typepropertyIt would be a good addition to have another property on the
Edgeobject:typewhich could have those values:sharpfor sharp turnscurvedfor smooth turns (the default one)straightno turns, a straight line betweenfromNodeandtoNodeSee the example:
stylepropertyHaving a canvas style would add more variety on edge styles.
stylewould somehow follow theborderCSS property style:solid: For a solid line (the default one)dotted: For a dotted linedashed: For a dashed linemixed: A mix betweendottedanddashednone: To hide the edge without removing ite.g:
fromLabel&toLabelpropertiesFor 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
labelproperty but used to be displayed at the start or/and the end of an edge.Think about SQL schema
n-mrelationships.Those property would not be self exclusive and using the 3 labels properties would work.
{ ...properties, "fromLabel": "1", "toLabel": "n", "label": "1-n relationship" }, { ...properties, "fromLabel": "1" }, { ...properties, "toLabel": "*" }