babylonjs-gui 5.15.1 → 5.16.0

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/babylon.gui.d.ts CHANGED
@@ -4735,13 +4735,13 @@ declare module BABYLON.GUI {
4735
4735
  export class Control3D implements BABYLON.IDisposable, BABYLON.IBehaviorAware<Control3D> {
4736
4736
  /** Defines the control name */
4737
4737
  name?: string | undefined;
4738
- /** @hidden */
4739
- _host: GUI3DManager;
4740
4738
  private _node;
4741
4739
  private _downCount;
4742
4740
  private _enterCount;
4743
4741
  private _downPointerIds;
4744
- private _isVisible;
4742
+ protected _isVisible: boolean;
4743
+ /** @hidden */
4744
+ _host: GUI3DManager;
4745
4745
  /** @hidden */
4746
4746
  _isScaledByManager: boolean;
4747
4747
  /** Gets or sets the control position in world space */
@@ -5355,6 +5355,8 @@ declare module BABYLON.GUI {
5355
5355
  * Gets the slider backplate material used by this control
5356
5356
  */
5357
5357
  get sliderBackplateMaterial(): MRDLBackplateMaterial;
5358
+ /** Sets a boolean indicating if the control is visible */
5359
+ set isVisible(value: boolean);
5358
5360
  protected _createNode(scene: BABYLON.Scene): BABYLON.TransformNode;
5359
5361
  protected _affectMaterial(mesh: BABYLON.AbstractMesh): void;
5360
5362
  private _createBehavior;
package/babylon.gui.js CHANGED
@@ -20911,6 +20911,19 @@ var Slider3D = /** @class */ (function (_super) {
20911
20911
  enumerable: false,
20912
20912
  configurable: true
20913
20913
  });
20914
+ Object.defineProperty(Slider3D.prototype, "isVisible", {
20915
+ /** Sets a boolean indicating if the control is visible */
20916
+ set: function (value) {
20917
+ var _a;
20918
+ if (this._isVisible === value) {
20919
+ return;
20920
+ }
20921
+ this._isVisible = value;
20922
+ (_a = this.node) === null || _a === void 0 ? void 0 : _a.setEnabled(value);
20923
+ },
20924
+ enumerable: false,
20925
+ configurable: true
20926
+ });
20914
20927
  // Mesh association
20915
20928
  Slider3D.prototype._createNode = function (scene) {
20916
20929
  var _this = this;
@@ -20961,6 +20974,10 @@ var Slider3D = /** @class */ (function (_super) {
20961
20974
  }
20962
20975
  _this._sliderThumb = sliderThumbModel;
20963
20976
  }
20977
+ _this._injectGUI3DReservedDataStore(sliderBackplate).control = _this;
20978
+ sliderBackplate.getChildMeshes().forEach(function (mesh) {
20979
+ _this._injectGUI3DReservedDataStore(mesh).control = _this;
20980
+ });
20964
20981
  });
20965
20982
  this._affectMaterial(sliderBackplate);
20966
20983
  return sliderBackplate;