| 1 | package Khonsu::Shape::Line; | ||||||||||||||||||
| 2 | |||||||||||||||||||
| 3 | 3 | ▶ | use parent 'Khonsu::Shape'; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 4 | |||||||||||||||||||
| 5 | sub shape { | ||||||||||||||||||
| 6 | 2 | ▶ | my ($self, $file, $shape, %args) = @_; | ||||||||||||||||
|
Subroutine
shape: called CC=4 SCAR=16.3
Pod
undocumented
| |||||||||||||||||||
| 7 | 2 | $shape->strokecolor($args{fill_colour}); | |||||||||||||||||
| 8 | 2 | $shape->move($args{x}, $file->page->h - ($args{y} + 1)); | |||||||||||||||||
| 9 | 2 | ▶ | if ($args{dash}) { | ||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||
| 10 | 0 | $shape->linedash(@{$args{dash}}); | |||||||||||||||||
| 11 | } elsif ($args{type} eq 'dots') { | ||||||||||||||||||
| 12 | 0 | $shape->linedash(1, 1); | |||||||||||||||||
| 13 | } elsif ($args{type} eq 'dashed') { | ||||||||||||||||||
| 14 | 0 | $shape->linedash(5, 5); | |||||||||||||||||
| 15 | } | ||||||||||||||||||
| 16 | 2 | $shape->linejoin(); | |||||||||||||||||
| 17 | 2 | $shape->line($args{ex}, $file->page->h - ($args{ey} + 1)); | |||||||||||||||||
| 18 | 2 | $shape->stroke; | |||||||||||||||||
| 19 | } | ||||||||||||||||||
| 20 | |||||||||||||||||||
| 21 | 3 | 1; | |||||||||||||||||