From 0618be91d40478ab6192b11663909346df49a677 Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 14 Apr 2023 23:32:10 -0700 Subject: [PATCH] delete some old code --- masque/shapes/text.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/masque/shapes/text.py b/masque/shapes/text.py index d4922f4..017bdc1 100644 --- a/masque/shapes/text.py +++ b/masque/shapes/text.py @@ -148,11 +148,8 @@ class Text(RotatableImpl, Shape): # just convert to polygons instead polys = self.to_polygons() pbounds = numpy.full((len(polys), 2, 2), nan) -# bounds = numpy.array([[+inf, +inf], [-inf, -inf]]) for pp, poly in enumerate(polys): pbounds[pp] = poly.get_bounds_nonempty() -# bounds[0] = numpy.minimum(bounds[0], poly_bounds[0]) -# bounds[1] = numpy.maximum(bounds[1], poly_bounds[1]) bounds = numpy.vstack(( numpy.min(pbounds[: 0, :], axis=0), numpy.max(pbounds[: 1, :], axis=0),