Changeset 197

Show
Ignore:
Timestamp:
03/16/11 17:34:21 (14 months ago)
Author:
andrea
Message:

- corretto il bug dell'allineamento della mappa rispetto all'immagine delle features.

fix ticket#63

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.base/trunk/src/plone4bio/base/png/perl/graphics.pm

    r196 r197  
    8383      INIT_MET => "black", 
    8484      REGION => "violet", 
     85      PEPTIDE => "orange", 
    8586); 
    8687 
     
    167168      INIT_MET => \&description, 
    168169      REGION => \&description, 
     170      PEPTIDE => \&description, 
     171      DISULFID => \&description, 
    169172); 
    170173 
     
    201204    # my %decription_glob; 
    202205    ### DON'T TOUCH THIS VALUE - IT WILL ALTER THE MAP-IMAGE ALIGNMEMT### 
    203     my $pad_left = 79;                                                ### 
     206    my $pad_left = 69;                                                ### 
    204207    ##################################################################### 
    205208    my $panel = Bio::Graphics::Panel->new( 
    206209                                     -length    => $seq->length, 
    207                                       -key_style => 'left', 
     210                                      -key_style => 'right', 
    208211                                      -width     => 1000, 
    209212                                      -pad_left  => $pad_left, 
     
    303306        # my $description = $track->option('title'); 
    304307        # my $description = $panel->make_title($feature); 
    305         $left += $pad_left; 
    306         $right += $pad_left; 
     308        #$left += $pad_left; 
     309        #$right += $pad_left; 
    307310        next unless $tag; 
    308311        $map .= qq(<area class="tips" shape="rect" coords="$left,$top,$right,$bottom" href="#" rel="#${tag}X${start}X${end}" title="$tag $start $end" alt="" />\n);