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