Hello,
Does the Joint JS library provide a way to create directed links? I am trying to create a link that has only one arrow head, i.e. [Source Element] -----> [Target Element], as opposed to two arrow heads, i.e. [Source Element] <-----> [Target Element].
I have, so far, been able to only hide both arrow heads or show both arrow heads. The code below demonstrates how I have hidden both arrow heads.
graph = new joint.dia.Graph;
graphJSON = {cells: []};
linkJSON = {
id: "myLink",
source: {id: "sourceElement"},
target: {id: "targetElement"},
attrs: {
".marker-arrowheads": {display: "none"}
}
};
graphJSON.cells.push(graphJSON);
graph.fromJSON(graphJSON);