From 47dbf7576995036b5238b157978e61b81b227984 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),