[BUGFIX] Remove link direction
This commit is contained in:
parent
e0630808e3
commit
13eacf5fa8
@ -187,7 +187,6 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper'],
|
||||
return function (config, el, router, d, linkScale, gateways) {
|
||||
function renderNeighbourRow(n) {
|
||||
var icons = [];
|
||||
icons.push(V.h('span', { props: { className: n.incoming ? 'ion-arrow-left-c' : 'ion-arrow-right-c' } }));
|
||||
if (helper.hasLocation(n.node)) {
|
||||
icons.push(V.h('span', { props: { className: 'ion-location' } }));
|
||||
}
|
||||
|
10
lib/main.js
10
lib/main.js
@ -37,8 +37,6 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
|
||||
});
|
||||
|
||||
links.forEach(function (d) {
|
||||
var ids;
|
||||
|
||||
d.source = nodes.find(function (a) {
|
||||
return a.node_id === d.source;
|
||||
});
|
||||
@ -47,11 +45,9 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
|
||||
return a.node_id === d.target;
|
||||
});
|
||||
|
||||
ids = [d.source.node_id, d.target.node_id];
|
||||
d.source.neighbours.push({ node: d.target, link: d, incoming: false });
|
||||
d.target.neighbours.push({ node: d.source, link: d, incoming: true });
|
||||
|
||||
d.id = ids.join('-');
|
||||
d.id = [d.source.node_id, d.target.node_id].join('-');
|
||||
d.source.neighbours.push({ node: d.target, link: d });
|
||||
d.target.neighbours.push({ node: d.source, link: d });
|
||||
|
||||
try {
|
||||
d.latlngs = [];
|
||||
|
@ -53,7 +53,7 @@
|
||||
th,
|
||||
td {
|
||||
&:first-child {
|
||||
width: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user