import "./chunk-HFNDKYVF.js";

// plots/wsiviewer/plot.wsi.js
async function plot_wsi_default(dslabel, holder, genomeObj, sample_id, aiProjectID, aiWSIMageFiles, renderAnnotationTable = false) {
  const loadingDiv = holder.append("div").style("margin", "20px").text("Loading...");
  try {
    const opts = {
      holder,
      state: {
        genome: genomeObj.name,
        dslabel,
        sample_id,
        aiProjectID,
        aiWSIMageFiles,
        plots: [
          {
            chartType: "WSIViewer",
            subfolder: "wsiviewer",
            extension: "ts",
            overrides: { renderAnnotationTable }
          }
        ]
      }
    };
    const plot = await import("./plot.app-NRUARQCN.js");
    const plotAppApi = await plot.appInit(opts);
    loadingDiv.remove();
  } catch (e) {
    loadingDiv.text("Error: " + (e.message || e));
    console.error(e.message || e);
  }
}
export {
  plot_wsi_default as default
};
//# sourceMappingURL=plot.wsi-2MU5BDG3.js.map
