line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#-*- perl -*- |
2
|
|
|
|
|
|
|
#-*- coding: us-ascii -*- |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package CSS::Yamaantaka::MirrorTR_BL; |
5
|
|
|
|
|
|
|
|
6
|
21
|
|
|
21
|
|
111
|
use strict; |
|
21
|
|
|
|
|
43
|
|
|
21
|
|
|
|
|
790
|
|
7
|
|
|
|
|
|
|
#use warnings; |
8
|
21
|
|
|
|
|
6459
|
use base qw( |
9
|
|
|
|
|
|
|
CSS::Yamaantaka::_NoReverseLR |
10
|
|
|
|
|
|
|
CSS::Yamaantaka::_NoReverseGD |
11
|
|
|
|
|
|
|
CSS::Yamaantaka::_SwapHV |
12
|
21
|
|
|
21
|
|
104
|
); |
|
21
|
|
|
|
|
38
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub fixBoxDirectionPart { |
15
|
51
|
|
|
51
|
0
|
124
|
my $direction = $_[1]; |
16
|
|
|
|
|
|
|
return { |
17
|
51
|
|
33
|
|
|
547
|
'top' => 'right', |
18
|
|
|
|
|
|
|
'right' => 'top', |
19
|
|
|
|
|
|
|
'bottom' => 'left', |
20
|
|
|
|
|
|
|
'left' => 'bottom', |
21
|
|
|
|
|
|
|
}->{$direction} || |
22
|
|
|
|
|
|
|
$direction; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub fixCursorPositions { |
26
|
8
|
|
|
8
|
0
|
14
|
my $direction = $_[1]; |
27
|
8
|
|
|
|
|
13
|
$direction =~ tr/nesw/enws/; |
28
|
8
|
|
|
|
|
23
|
return $direction; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub reorderFourPartNotation { |
32
|
6
|
|
|
6
|
0
|
10
|
shift; |
33
|
6
|
|
|
|
|
29
|
my @part = @_; |
34
|
6
|
|
|
|
|
28
|
@part = @part[1, 0, 3, 2]; |
35
|
6
|
|
|
|
|
38
|
return @part; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub reorderBorderRadiusSubparts { |
39
|
8
|
|
|
8
|
0
|
12
|
shift; |
40
|
8
|
|
|
|
|
22
|
my @part = @_; |
41
|
8
|
|
|
|
|
36
|
@part = @part[2, 1, 0, 3]; |
42
|
8
|
|
|
|
|
46
|
return @part; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |