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