line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#-*- perl -*- |
2
|
|
|
|
|
|
|
#-*- coding: us-ascii -*- |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package CSS::Yamaantaka::_Mirror; |
5
|
|
|
|
|
|
|
|
6
|
34
|
|
|
34
|
|
190
|
use strict; |
|
34
|
|
|
|
|
56
|
|
|
34
|
|
|
|
|
6513
|
|
7
|
|
|
|
|
|
|
#use warnings; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub fixBoxDirectionPart { |
10
|
129
|
|
|
129
|
0
|
253
|
my $direction = $_[1]; |
11
|
|
|
|
|
|
|
return { |
12
|
129
|
|
66
|
|
|
1455
|
'right' => 'left', |
13
|
|
|
|
|
|
|
'left' => 'right', |
14
|
|
|
|
|
|
|
}->{$direction} || |
15
|
|
|
|
|
|
|
$direction; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub fixCursorPositions { |
19
|
16
|
|
|
16
|
0
|
20
|
my $direction = $_[1]; |
20
|
16
|
|
|
|
|
25
|
$direction =~ tr/ew/we/; |
21
|
16
|
|
|
|
|
44
|
return $direction; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub reorderFourPartNotation { |
25
|
33
|
|
|
33
|
0
|
39
|
shift; |
26
|
33
|
|
|
|
|
106
|
my @part = @_; |
27
|
33
|
|
|
|
|
121
|
@part = @part[0, 3, 2, 1]; |
28
|
33
|
|
|
|
|
265
|
return @part; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub reorderBorderRadiusSubparts { |
32
|
26
|
|
|
26
|
0
|
31
|
shift; |
33
|
26
|
|
|
|
|
59
|
my @part = @_; |
34
|
26
|
|
|
|
|
93
|
@part = @part[1, 0, 3, 2]; |
35
|
26
|
|
|
|
|
131
|
return @part; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |