static getPolygonBBox(points) {
    const coords = points.reduce((res, point) => [...res, point.x, point.y], []);
    const [x1, y1, x2, y2] = Geometry.getPointsBBox(coords);

    return { x: x1, y: y1, width: x2 - x1, height: y2 - y1 };
  }
Calculate BBox of polygon shape
@param {Points} points
@return {BBox[]}