const width = max(
        [...elements].map((l) => {
          return l.getBBox ? l.getBBox().width : defaultWidth
        })
      )