File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " iknow-entity-browser" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"description" : " Visualizer for iKnow entities" ,
5
5
"main" : " gulpfile.babel.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ import { csv } from "./export";
2
2
import * as model from "../model" ;
3
3
import { onSelectionUpdate , updateSelection } from "../selection" ;
4
4
5
- var graph ;
6
-
7
5
onSelectionUpdate ( ( selection ) => {
8
6
if ( ! model . uiState . tabularToggled )
9
7
return ;
10
- let data = selection . sort ( ( a , b ) =>
8
+ let data = selection . filter ( node => node . type === "entity" ) . sort ( ( a , b ) =>
11
9
a . entities [ 0 ] . score > b . entities [ 0 ] . score ? - 1 : 1
12
10
) ,
13
11
table = document . querySelector ( "#table table tbody" ) ;
@@ -25,8 +23,6 @@ onSelectionUpdate((selection) => {
25
23
26
24
export function init ( ) {
27
25
28
- graph = model . getGraphData ( ) ;
29
-
30
26
d3 . select ( "#tableToggle" )
31
27
. data ( [ model . uiState ] )
32
28
. on ( "click" , function ( d ) {
You can’t perform that action at this time.
0 commit comments