diff --git a/README b/README index b39b48dfe919b618d96ae45e6640cd24bee58238..8c3bed688cb3993c93ab4f2b34fbb1d2e0dd4517 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ Thank you for using CATview - the Colored & Aligned Texts view. -This is version 2.6.2 +This is version 2.6.3 For information about the features and usage of CATview, please visit: https://catview.uzi.uni-halle.de diff --git a/catview.js b/catview.js index 37a07bd230584cec03f5b90c9f6bcedb05588447..471c198103d3e0f1e04fccc681212610f292ef9c 100644 --- a/catview.js +++ b/catview.js @@ -22,7 +22,7 @@ SOFTWARE. */ -// CATview - the Colored & Aligned Texts view - version 2.6.2 +// CATview - the Colored & Aligned Texts view - version 2.6.3 const CATview = new function() { this.debug = false; @@ -31,7 +31,7 @@ const CATview = new function() { if(CATview.debug) console.log('CATview.initialize'); - CATview.version = '2.6.2'; + CATview.version = '2.6.3'; // id of the parent container that will include CATview CATview.parent_id = 'CATview'; @@ -61,7 +61,8 @@ const CATview = new function() { CATview.width_content = null; CATview.height_content = null; CATview.edgesAxis = null; - CATview.edge_name = null; + CATview.edge_name = null; // current name to display + CATview.edge_name_enabled = true; // set to false to disable the display the name of an edge on hovering CATview.font_size_x = 10; CATview.font_size_y = 14; CATview.rect_width = null; @@ -1007,6 +1008,9 @@ const CATview = new function() { if(CATview.debug) console.log('CATview.show_edge_name: ' + _pos); + if(!CATview.edge_name_enabled) + return false; + // respect current zooming _pos += CATview.from - 1;