added `setRectangle` support