mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Do not pass the Print object to SVG::output anymore
This commit is contained in:
parent
554d10c854
commit
cb4ede7f9e
5 changed files with 8 additions and 11 deletions
|
@ -12,10 +12,7 @@ sub factor {
|
|||
}
|
||||
|
||||
sub svg {
|
||||
my ($print) = @_;
|
||||
$print ||= Slic3r::Print->new(x_length => 200 / &Slic3r::SCALING_FACTOR, y_length => 200 / &Slic3r::SCALING_FACTOR);
|
||||
my $svg = SVG->new(width => 200 * 10, height => 200 * 10);
|
||||
|
||||
my $marker_end = $svg->marker(
|
||||
id => "endArrow",
|
||||
viewBox => "0 0 10 10",
|
||||
|
@ -35,9 +32,9 @@ sub svg {
|
|||
}
|
||||
|
||||
sub output {
|
||||
my ($print, $filename, %things) = @_;
|
||||
my ($filename, %things) = @_;
|
||||
|
||||
my $svg = svg($print);
|
||||
my $svg = svg();
|
||||
|
||||
foreach my $type (qw(polygons polylines white_polygons green_polygons red_polygons red_polylines)) {
|
||||
if ($things{$type}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue