constructor(options) {
    super(options);

    this.eventBus._on("optionalcontentconfigchanged", evt => {
      this.#updateLayers(evt.promise);
    });
    this.eventBus._on("resetlayers", () => {
      this.#updateLayers();
    });
    this.eventBus._on("togglelayerstree", this._toggleAllTreeItems.bind(this));
  }
@typedef {Object} PDFLayerViewerRenderParameters
@property {OptionalContentConfig|null} optionalContentConfig - An
  {OptionalContentConfig} instance.
@property {PDFDocumentProxy} pdfDocument - A {PDFDocument} instance.