message: ts: fix bounding rect negative value
diff: @@ -25,6 +25,16 @@ class BoundingRect {
  height: number
  constructor(x?: number, y?: number, width?: number, height?: number) {
  +
  + if (width < 0) {
  + x = x + width;
  + width = -width;
  + }
  + if (height < 0) {
  + y = y + height;
  + height = -height;
  + }
  +
  this.x = x;
  this.y = y;
  this.width = width;
  