Center and scale Line object

Hi, how can I center and scale the object to 100% of the height and width of the scene?

private setCamera({ x, y, width, height }: Bounds): void {
    this.camera
      ? this.updateCameraSize(width, height)
      : (this.camera = new OrthographicCamera(0, width, 0, height, 0, 2));
    this.camera.position.set(x, y, 1);
    this.camera.updateProjectionMatrix();
  }