Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
selecting species in legend now behaves in line with other tools
  • Loading branch information
proost committed Nov 16, 2017
1 parent bd6b2e2 commit 90a9604
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conekt/static/js/planet_graph.js
Expand Up @@ -349,6 +349,14 @@ $(function () { // on dom ready
cy.nodes().unselect();
cy.nodes('[lc_label="' + lc_label + '"]').select();
} );

$('g[species]').click( function(ev) {
var species = $(this).attr('species');
svg_legend.find(".legend_node").transform('scale', null);
svg_legend.find('g[species="' + species + '"]').transform('scale', 1.5);
cy.nodes().unselect();
cy.nodes('[species_name="' + species + '"]').select();
} );
}
});

Expand Down

0 comments on commit 90a9604

Please sign in to comment.