def rect2pathd(rect):
x0, y0 = float(rect.get('<STR_LIT:x>', <NUM_LIT:0>)), float(rect.get('<STR_LIT:y>', <NUM_LIT:0>))<EOL>w, h = float(rect.get('<STR_LIT:width>', <NUM_LIT:0>)), float(rect.get('<STR_LIT>', <NUM_LIT:0>))<EOL>x1, y1 = x0 + w, y0<EOL>x2, y2 = x0 + w, y0 + h<EOL>x3, y3 = x0, y0 + h<EOL>d = ("<STR_LIT>"<EOL>"<STR_LIT>".format(x0, y0, x1, y1, x2, y2, x3, y3))<EOL>return d<EOL>
Converts an SVG-rect element to a Path d-string.

    The rectangle will start at the (x,y) coordinate specified by the 
    rectangle object and proceed counter-clockwise.