Return the mutated path of the rectangle.
(self)
| 4175 | else 1) # backcompat. |
| 4176 | |
| 4177 | def get_path(self): |
| 4178 | """Return the mutated path of the rectangle.""" |
| 4179 | boxstyle = self.get_boxstyle() |
| 4180 | m_aspect = self.get_mutation_aspect() |
| 4181 | # Call boxstyle with y, height squeezed by aspect_ratio. |
| 4182 | path = boxstyle(self._x, self._y / m_aspect, |
| 4183 | self._width, self._height / m_aspect, |
| 4184 | self.get_mutation_scale()) |
| 4185 | return Path(path.vertices * [1, m_aspect], path.codes) # Unsqueeze y. |
| 4186 | |
| 4187 | # Following methods are borrowed from the Rectangle class. |
| 4188 |
nothing calls this directly
no test coverage detected