code: def get_bounding_box(self):
          
          pointlist = self.get_pointlist()
  
          # Initialize bounding box parameters to save values
          minx, maxx = pointlist[0][0]["x"], pointlist[0][0]["x"]
          miny, maxy = pointlist[0][0]["y"], pointlist[0][0]["y"]
          mint, maxt = pointlist[0][0]["time"], pointlist[0][0]["time"]
  
          # Adjust parameters
          for stroke in pointlist:
              for p in stroke:
                  minx, maxx = min(minx, p["x"]), max(maxx, p["x"])
                  miny, maxy = min(miny, p["y"]), max(maxy, p["y"])
                  mint, maxt = min(mint, p["time"]), max(maxt, p["time"])
          return {"minx": minx, "maxx": maxx, "miny": miny, "maxy": maxy,
                  "mint": mint, "maxt": maxt}
docs: Get the bounding box of a pointlist.