@mml-io/mml-web-client 0.0.0-experimental-c59b905-20250717 → 0.0.0-experimental-6670c87-20250819

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
@@ -3859,6 +3859,18 @@
3859
3859
  this.transformableElementProps
3860
3860
  );
3861
3861
  }
3862
+ getVisible() {
3863
+ var _a2;
3864
+ return ((_a2 = this.transformableElementGraphics) == null ? void 0 : _a2.getVisible()) ?? false;
3865
+ }
3866
+ getWorldPosition() {
3867
+ var _a2;
3868
+ return ((_a2 = this.transformableElementGraphics) == null ? void 0 : _a2.getWorldPosition()) ?? new Vect3(0, 0, 0);
3869
+ }
3870
+ getLocalPosition() {
3871
+ var _a2;
3872
+ return ((_a2 = this.transformableElementGraphics) == null ? void 0 : _a2.getLocalPosition()) ?? new Vect3(0, 0, 0);
3873
+ }
3862
3874
  };
3863
3875
  _TransformableElement.tempQuat = new Quat();
3864
3876
  _TransformableElement.TransformableElementAttributeHandler = new AttributeHandler({
@@ -5191,14 +5203,14 @@
5191
5203
  this.dispose();
5192
5204
  }
5193
5205
  });
5194
- this.debugLabel = document.createElement("label");
5195
- this.debugLabel.textContent = "Debug loading";
5196
- this.debugLabel.style.fontFamily = "sans-serif";
5197
- this.debugLabel.style.padding = "5px";
5198
- this.debugLabel.style.display = "inline-block";
5199
- this.debugLabel.style.userSelect = "none";
5200
- this.debugLabel.append(this.debugCheckbox);
5201
5206
  if (this.showDebugLoading) {
5207
+ this.debugLabel = document.createElement("label");
5208
+ this.debugLabel.textContent = "Debug loading";
5209
+ this.debugLabel.style.fontFamily = "sans-serif";
5210
+ this.debugLabel.style.padding = "5px";
5211
+ this.debugLabel.style.display = "inline-block";
5212
+ this.debugLabel.style.userSelect = "none";
5213
+ this.debugLabel.append(this.debugCheckbox);
5202
5214
  this.progressDebugView.append(this.debugLabel);
5203
5215
  }
5204
5216
  this.progressDebugElement = document.createElement("pre");
@@ -8240,7 +8252,7 @@
8240
8252
  this.element.style.width = "100%";
8241
8253
  this.element.style.height = "100%";
8242
8254
  this.element.style.position = "relative";
8243
- this.showDebugLoading = options.showDebugLoading || true;
8255
+ this.showDebugLoading = options.showDebugLoading ?? true;
8244
8256
  this.createLoadingProgressBar();
8245
8257
  this.configureWindowStyling();
8246
8258
  }
@@ -8944,6 +8956,15 @@
8944
8956
  {
8945
8957
  getWorldMatrix: () => {
8946
8958
  return new Matr4();
8959
+ },
8960
+ getWorldPosition: () => {
8961
+ return new Vect3(0, 0, 0);
8962
+ },
8963
+ getLocalPosition: () => {
8964
+ return new Vect3(0, 0, 0);
8965
+ },
8966
+ getVisible: () => {
8967
+ return true;
8947
8968
  }
8948
8969
  }
8949
8970
  ),
@@ -65684,6 +65705,12 @@ ${DracoWorker.toString()}
65684
65705
  getWorldMatrix() {
65685
65706
  return new Matr4(this.getPlayCanvasEntity().getWorldTransform().data);
65686
65707
  }
65708
+ getWorldPosition() {
65709
+ return this.getPlayCanvasEntity().getPosition();
65710
+ }
65711
+ getLocalPosition() {
65712
+ return this.getPlayCanvasEntity().getLocalPosition();
65713
+ }
65687
65714
  setSocket(socketName) {
65688
65715
  if (this.socketName !== socketName) {
65689
65716
  if (this.socketName !== null && this.registeredSocketParent) {
@@ -65708,6 +65735,9 @@ ${DracoWorker.toString()}
65708
65735
  this.registeredSocketParent.registerSocketChild(this.transformableElement, socketName);
65709
65736
  }
65710
65737
  }
65738
+ getVisible() {
65739
+ return this.getPlayCanvasEntity().enabled;
65740
+ }
65711
65741
  setVisible(visible) {
65712
65742
  this.getPlayCanvasEntity().enabled = visible;
65713
65743
  }
@@ -106945,6 +106975,15 @@ void main() {
106945
106975
  container.updateWorldMatrix(true, false);
106946
106976
  return new Matr4(container.matrixWorld.elements);
106947
106977
  }
106978
+ getWorldPosition() {
106979
+ return this.getContainer().getWorldPosition(new Vector3());
106980
+ }
106981
+ getLocalPosition() {
106982
+ return this.getContainer().position;
106983
+ }
106984
+ getVisible() {
106985
+ return this.getContainer().visible;
106986
+ }
106948
106987
  setVisible(visible) {
106949
106988
  this.getContainer().visible = visible;
106950
106989
  }