Plumb link labels through to layout

This commit is contained in:
Ian Gulliver
2019-07-10 17:17:17 +00:00
parent 75bc85919c
commit 245bbb86f4
5 changed files with 35 additions and 17 deletions

View File

@@ -1,7 +1,8 @@
class LayoutLink {
constructor(from, to, nodesByPos, linksByPos) {
constructor(from, to, label, nodesByPos, linksByPos) {
this.from_ = from;
this.to_ = to;
this.label_ = label;
this.nodesByPos_ = nodesByPos;
this.linksByPos_ = linksByPos;
this.bfs();
@@ -178,6 +179,9 @@ class LayoutLink {
return (this.getOutPoint(from, to) + 4) % 8;
}
drawLabel() {
}
getSteps() {
let steps = [];