[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) { |     return function (config, el, router, d, linkScale, gateways) { | ||||||
|       function renderNeighbourRow(n) { |       function renderNeighbourRow(n) { | ||||||
|         var icons = []; |         var icons = []; | ||||||
|         icons.push(V.h('span', { props: { className: n.incoming ? 'ion-arrow-left-c' : 'ion-arrow-right-c' } })); |  | ||||||
|         if (helper.hasLocation(n.node)) { |         if (helper.hasLocation(n.node)) { | ||||||
|           icons.push(V.h('span', { props: { className: 'ion-location' } })); |           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) { |         links.forEach(function (d) { | ||||||
|           var ids; |  | ||||||
| 
 |  | ||||||
|           d.source = nodes.find(function (a) { |           d.source = nodes.find(function (a) { | ||||||
|             return a.node_id === d.source; |             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; |             return a.node_id === d.target; | ||||||
|           }); |           }); | ||||||
| 
 | 
 | ||||||
|           ids = [d.source.node_id, d.target.node_id]; |           d.id = [d.source.node_id, d.target.node_id].join('-'); | ||||||
|           d.source.neighbours.push({ node: d.target, link: d, incoming: false }); |           d.source.neighbours.push({ node: d.target, link: d }); | ||||||
|           d.target.neighbours.push({ node: d.source, link: d, incoming: true }); |           d.target.neighbours.push({ node: d.source, link: d }); | ||||||
| 
 |  | ||||||
|           d.id = ids.join('-'); |  | ||||||
| 
 | 
 | ||||||
|           try { |           try { | ||||||
|             d.latlngs = []; |             d.latlngs = []; | ||||||
|  | |||||||
| @ -53,7 +53,7 @@ | |||||||
|     th, |     th, | ||||||
|     td { |     td { | ||||||
|       &:first-child { |       &:first-child { | ||||||
|         width: 50px; |         width: 25px; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user