summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2024-07-01 18:45:03 +0200
committerKaalleen <reni@allenka.de>2024-07-01 18:45:03 +0200
commit1b5b58736d654d71aa99538b93b83eb8c4a14a0e (patch)
tree50bb973ca3cd448034a01122b87b5c261c842043 /lib
parent37bf83d8db69d91d9f104511dceb8227ba8108eb (diff)
remove previously added extra space from svg tartan dimensions
Diffstat (limited to 'lib')
-rw-r--r--lib/tartan/svg.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/tartan/svg.py b/lib/tartan/svg.py
index 93d33253..a1f78fc9 100644
--- a/lib/tartan/svg.py
+++ b/lib/tartan/svg.py
@@ -24,7 +24,7 @@ from ..stitches.auto_fill import (PathEdge, build_fill_stitch_graph,
from ..svg import PIXELS_PER_MM, get_correction_transform
from ..utils import DotDict, ensure_multi_line_string
from .palette import Palette
-from .utils import sort_fills_and_strokes, stripes_to_shapes, get_palette_width
+from .utils import sort_fills_and_strokes, stripes_to_shapes
class TartanSvgGroup:
@@ -51,8 +51,6 @@ class TartanSvgGroup:
self.symmetry = self.palette.symmetry
self.stripes = self.palette.palette_stripes
self.warp, self.weft = self.stripes
- self.warp_width = get_palette_width(settings)
- self.weft_width = get_palette_width(settings)
if self.palette.get_palette_width(self.scale, self.min_stripe_width) == 0:
self.warp = []
if self.palette.get_palette_width(self.scale, self.min_stripe_width, 1) == 0:
@@ -517,12 +515,6 @@ class TartanSvgGroup:
maxx = center.x + min_radius
maxy = center.y + min_radius
- extra_space = max(self.warp_width * PIXELS_PER_MM, self.weft_width * PIXELS_PER_MM)
- minx -= extra_space
- maxx += extra_space
- miny -= extra_space
- maxy += extra_space
-
return (float(minx), float(miny), float(maxx), float(maxy)), center
def _polygon_to_path(