munificent/piecemeal — pull request #2 by thomcc (2014-09-21 23:59:19+00:00)
Title: Rect trace iterator

The `_RectTracer` class feels like a bit of a hack, but I don't think there's a way to write this without it (and without changing the signature of `trace()`).

Anyway, I think this also handles negative widths and heights better, as the old version wouldn't iterate over them at all. I didn't add a test case or mention the negative width/height thing because I'm not sure I understand how they're actually supposed to work if they have a negative width/height.