From: Joris van Zundert Date: Sat, 8 Oct 2011 13:07:39 +0000 (+0200) Subject: Changed styling of selected row. Added auto styling of SVG. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b89f7ce5b649165c48194ddaff35fbda6d52617;p=scpubgit%2Fstemmatology.git Changed styling of selected row. Added auto styling of SVG. --- diff --git a/TreeOfTexts/lib/TreeOfTexts/Controller/Stemmagraph.pm b/TreeOfTexts/lib/TreeOfTexts/Controller/Stemmagraph.pm index f2fcccc..98c40f7 100644 --- a/TreeOfTexts/lib/TreeOfTexts/Controller/Stemmagraph.pm +++ b/TreeOfTexts/lib/TreeOfTexts/Controller/Stemmagraph.pm @@ -22,17 +22,6 @@ TreeOfTexts::Controller::Root - Root Controller for TreeOfTexts =head1 METHODS -=head2 index - -The root page (/) - -=cut - -sub index :Path :Args(0) { - my ( $self, $c ) = @_; - $c->stash->{template} = 'dotinput.tt2'; -} - sub get_graph :Local { my( $self, $c ) = @_; # If called interactively, we have params 'display', 'output', 'witnesses' diff --git a/TreeOfTexts/lib/TreeOfTexts/Model/Analysis.pm b/TreeOfTexts/lib/TreeOfTexts/Model/Analysis.pm index 15cac2c..38515ec 100644 --- a/TreeOfTexts/lib/TreeOfTexts/Model/Analysis.pm +++ b/TreeOfTexts/lib/TreeOfTexts/Model/Analysis.pm @@ -8,17 +8,17 @@ use base 'Catalyst::Model::Adaptor'; __PACKAGE__->config( class => 'Text::Tradition::Analysis', args => { 'traditions' => [ - { 'file' => TreeOfTexts->path_to( 't', 'data', 'florilegium.xml' ), - 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_a.dot' ) }, +# { 'file' => TreeOfTexts->path_to( 't', 'data', 'florilegium.xml' ), +# 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_a.dot' ) }, { 'file' => TreeOfTexts->path_to( 't', 'data', 'besoin.xml' ), 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_b.dot' ) }, - { 'file' => TreeOfTexts->path_to( 't', 'data', 'heinrichi.xml' ), - 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_h.dot' ) }, - { 'file' => TreeOfTexts->path_to( 't', 'data', 'parzival.xml' ), - 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_p.dot' ) }, - { 'file' => TreeOfTexts->path_to( 't', 'data', 's158.xml' ), - 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_s.dot' ) }, +# { 'file' => TreeOfTexts->path_to( 't', 'data', 'heinrichi.xml' ), +# 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_h.dot' ) }, +# { 'file' => TreeOfTexts->path_to( 't', 'data', 'parzival.xml' ), +# 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_p.dot' ) }, +# { 'file' => TreeOfTexts->path_to( 't', 'data', 's158.xml' ), +# 'stemmadot' => TreeOfTexts->path_to( 't', 'data', 'stemma_s.dot' ) }, ] }, ); -1; \ No newline at end of file +1; diff --git a/TreeOfTexts/root/js/interaction.js b/TreeOfTexts/root/js/interaction.js index 15f64e0..ffe2c93 100644 --- a/TreeOfTexts/root/js/interaction.js +++ b/TreeOfTexts/root/js/interaction.js @@ -11,6 +11,7 @@ $(document).ready(function() { $('td.active_variant_cell').removeClass('active_variant_cell'); row_triggered = false; }); + $('svg').width('485px'); }) function color_nodes( column_index, arr_node_ids, arr_greynode_ids ) { if( !row_triggered ) { diff --git a/TreeOfTexts/root/src/style.tt2 b/TreeOfTexts/root/src/style.tt2 index c5ec1cb..02984af 100644 --- a/TreeOfTexts/root/src/style.tt2 +++ b/TreeOfTexts/root/src/style.tt2 @@ -8,8 +8,8 @@ body { } #svg_graph { float: left; - width: 600pt; - height: 550pt; + width: 500px; + height: 450px; border-right: 1px #c6dcf1 solid; } #variants_table { @@ -48,10 +48,11 @@ h2 { background: #ff6666; } .active_variant_row { - background: #c6dcf1; + #background: #c6dcf1; + font-style: italic; } .active_variant_cell { - background: #e8f1fe; + #background: #e8f1fe; } .cellb0 { border-right: 20px solid #ffeeaa;