function __extends(d, b) {
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
Adds padded frame. (x0, y0) should be strictly less than (x1, y1)
@param x0 - left X of frame
@param y0 - top Y of frame
@param x1 - right X of frame
@param y1 - bottom Y of frame
@param padX - padding X
@param padY - padding Y