Skip to content

Commit

Permalink
Merge 6be78c8 into 5b0edbe
Browse files Browse the repository at this point in the history
  • Loading branch information
amif2000 committed Aug 13, 2020
2 parents 5b0edbe + 6be78c8 commit b982eab
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/render-arcs.js
Expand Up @@ -68,16 +68,18 @@ function renderArcs (source, index, top, lane) {
if (Array.isArray(top.edge)) {
top.edge.map(archer);
}
Object.keys(Events).map(function (k) {
if (k === k.toLowerCase()) {
if (Events[k].x > 0) {
res = res.concat([renderLabel({
x: Events[k].x,
y: Events[k].y
}, k + '')]);
if (!(top.config && top.config.nodes === false)) {
Object.keys(Events).map(function (k) {
if (k === k.toLowerCase()) {
if (Events[k].x > 0) {
res = res.concat([renderLabel({
x: Events[k].x,
y: Events[k].y
}, k + '')]);
}
}
}
});
});
}
}
return res;
}
Expand Down

0 comments on commit b982eab

Please sign in to comment.