Skip to content

Commit 3428012

Browse files
committed
Make it ignore bendPoints to output labels
1 parent 2cba0e9 commit 3428012

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ function render(skin_data, yosys_netlist, done) {
6565

6666
const indexOfMin = graphs.reduce((prev, [g, m], i) => {
6767
m.bendPoints = g.edges.reduce((prev, e) => {
68+
// ignore edges to output labels
69+
if ((m.nodes.find(n => n.key === e.target) || {}).type === '$_outputExt_') {
70+
return prev
71+
}
6872
return prev + e.sections.reduce((prev, s) => {
69-
// only count the bendpoints if it's not a straight line (a
73+
// only count the bendPoints if it's not a straight line (a
7074
// straight line doesn't have any bends, but ELK seems to
7175
// count them anyway)
7276
if (s.startPoint.x !== s.endPoint.x && s.startPoint.y !== s.endPoint.y) {

0 commit comments

Comments
 (0)