@mml-io/mml-web-client 0.0.0-experimental-59c9a4c-20250506 → 0.0.0-experimental-009b1a3-20250528

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -5154,8 +5154,9 @@
5154
5154
  }
5155
5155
  };
5156
5156
  var LoadingProgressBar = class {
5157
- constructor(loadingProgressManager) {
5157
+ constructor(loadingProgressManager, showDebugLoading) {
5158
5158
  this.loadingProgressManager = loadingProgressManager;
5159
+ this.showDebugLoading = showDebugLoading;
5159
5160
  this.hasCompleted = false;
5160
5161
  this.element = document.createElement("div");
5161
5162
  this.element.addEventListener("click", (event) => {
@@ -5195,7 +5196,9 @@
5195
5196
  this.debugLabel.style.display = "inline-block";
5196
5197
  this.debugLabel.style.userSelect = "none";
5197
5198
  this.debugLabel.append(this.debugCheckbox);
5198
- this.progressDebugView.append(this.debugLabel);
5199
+ if (this.showDebugLoading) {
5200
+ this.progressDebugView.append(this.debugLabel);
5201
+ }
5199
5202
  this.progressDebugElement = document.createElement("pre");
5200
5203
  this.progressDebugElement.style.margin = "0";
5201
5204
  this.progressDebugElement.style.display = this.debugCheckbox.checked ? "block" : "none";
@@ -8173,14 +8176,15 @@
8173
8176
  }
8174
8177
  };
8175
8178
  var FullScreenMMLScene = class extends MMLScene {
8176
- constructor() {
8179
+ constructor(showDebugLoading = true) {
8177
8180
  super(document.createElement("div"));
8178
8181
  this.element = document.createElement("div");
8179
8182
  this.element.style.width = "100%";
8180
8183
  this.element.style.height = "100%";
8181
8184
  this.element.style.position = "relative";
8185
+ this.showDebugLoading = showDebugLoading;
8182
8186
  const loadingProgressManager = this.getLoadingProgressManager();
8183
- this.loadingProgressBar = new LoadingProgressBar(loadingProgressManager);
8187
+ this.loadingProgressBar = new LoadingProgressBar(loadingProgressManager, this.showDebugLoading);
8184
8188
  this.element.append(this.loadingProgressBar.element);
8185
8189
  this.configureWindowStyling();
8186
8190
  }