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