From 90e31a32fbf8480a534dca6681578fedcb4df3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20P=C3=B6ckelmann?= <marcus.poeckelmann@informatik.uni-halle.de> Date: Wed, 17 Jan 2024 10:43:37 +0100 Subject: [PATCH] v2.6.5: setting to turn of zebra stripes --- README | 2 +- catview.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README b/README index 8c3bed6..902d5a4 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ Thank you for using CATview - the Colored & Aligned Texts view. -This is version 2.6.3 +This is version 2.6.5 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 a8f3884..711b6aa 100644 --- a/catview.js +++ b/catview.js @@ -22,7 +22,7 @@ SOFTWARE. */ -// CATview - the Colored & Aligned Texts view - version 2.6.3 +// CATview - the Colored & Aligned Texts view - version 2.6.5 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.4'; + CATview.version = '2.6.5'; // id of the parent container that will include CATview CATview.parent_id = 'CATview'; @@ -144,6 +144,8 @@ const CATview = new function() { CATview.drag_do_end = false; CATview.drag_threshold = 0.1; CATview.drag_mode = 'insert'; // 'insert' || 'swap' + + this.zebra_enabled = true; }; // method to set margins and content width/height according to the current orientation of CATview and its axis @@ -875,6 +877,9 @@ const CATview = new function() { let zebra = CATview.svg.select(".zebra"); zebra.selectAll('*').remove(); // remove the current content + if(!CATview.zebra_enabled) + return false; + let width, height; if(CATview.vertical){ height = CATview.height_svg - CATview.space_for_tool_icons; -- GitLab