babylonjs-gui 5.13.3 → 5.15.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
@@ -6000,7 +6000,7 @@ declare module BABYLON.GUI {
6000
6000
  */
6001
6001
  renderHoverLight: boolean;
6002
6002
  /**
6003
- * Gets or sets the radius used to render the hover light (default is 1.0)
6003
+ * Gets or sets the radius used to render the hover light (default is 0.01)
6004
6004
  */
6005
6005
  hoverRadius: number;
6006
6006
  /**
package/babylon.gui.js CHANGED
@@ -3974,6 +3974,7 @@ var Container = /** @class */ (function (_super) {
3974
3974
  * @hidden
3975
3975
  */
3976
3976
  Container.prototype._reOrderControl = function (control) {
3977
+ var linkedMesh = control.linkedMesh;
3977
3978
  this.removeControl(control);
3978
3979
  var wasAdded = false;
3979
3980
  for (var index = 0; index < this._children.length; index++) {
@@ -3987,6 +3988,9 @@ var Container = /** @class */ (function (_super) {
3987
3988
  this._children.push(control);
3988
3989
  }
3989
3990
  control.parent = this;
3991
+ if (linkedMesh) {
3992
+ control.linkWithMesh(linkedMesh);
3993
+ }
3990
3994
  this._markAsDirty();
3991
3995
  };
3992
3996
  /**
@@ -23429,7 +23433,7 @@ var FluentMaterial = /** @class */ (function (_super) {
23429
23433
  */
23430
23434
  _this.renderHoverLight = false;
23431
23435
  /**
23432
- * Gets or sets the radius used to render the hover light (default is 1.0)
23436
+ * Gets or sets the radius used to render the hover light (default is 0.01)
23433
23437
  */
23434
23438
  _this.hoverRadius = 0.01;
23435
23439
  /**
@@ -27736,7 +27740,9 @@ __webpack_require__.r(__webpack_exports__);
27736
27740
  var globalObject = typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof window !== "undefined" ? window : undefined;
27737
27741
  if (typeof globalObject !== "undefined") {
27738
27742
  globalObject.BABYLON = globalObject.BABYLON || {};
27739
- globalObject.BABYLON.GUI = _index__WEBPACK_IMPORTED_MODULE_0__;
27743
+ if (!globalObject.BABYLON.GUI) {
27744
+ globalObject.BABYLON.GUI = _index__WEBPACK_IMPORTED_MODULE_0__;
27745
+ }
27740
27746
  }
27741
27747
 
27742
27748