babylonjs-gui 5.14.0 → 5.15.1

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
@@ -4053,7 +4053,7 @@ declare module BABYLON.GUI {
4053
4053
  private _connectedInputTexts;
4054
4054
  private _onKeyPressObserver;
4055
4055
  /** Gets the input text control currently attached to the keyboard */
4056
- get connectedInputText(): BABYLON.Nullable<InputText>;
4056
+ get connectedInputText(): BABYLON.Nullable<InputText | InputTextArea>;
4057
4057
  /**
4058
4058
  * Connects the keyboard with an input text control
4059
4059
  *
@@ -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
  /**
@@ -16505,6 +16509,8 @@ __webpack_require__.r(__webpack_exports__);
16505
16509
  /* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__);
16506
16510
  /* harmony import */ var _stackPanel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stackPanel */ "../../../lts/gui/dist/2D/controls/stackPanel.js");
16507
16511
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./button */ "../../../lts/gui/dist/2D/controls/button.js");
16512
+ /* harmony import */ var _inputTextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputTextArea */ "../../../lts/gui/dist/2D/controls/inputTextArea.js");
16513
+
16508
16514
 
16509
16515
 
16510
16516
 
@@ -16666,13 +16672,28 @@ var VirtualKeyboard = /** @class */ (function (_super) {
16666
16672
  _this.applyShiftState(_this.shiftState);
16667
16673
  return;
16668
16674
  case "\u2190":
16669
- _this._currentlyConnectedInputText.processKey(8);
16675
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16676
+ _this._currentlyConnectedInputText.alternativeProcessKey("Backspace");
16677
+ }
16678
+ else {
16679
+ _this._currentlyConnectedInputText.processKey(8);
16680
+ }
16670
16681
  return;
16671
16682
  case "\u21B5":
16672
- _this._currentlyConnectedInputText.processKey(13);
16683
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16684
+ _this._currentlyConnectedInputText.alternativeProcessKey("Enter");
16685
+ }
16686
+ else {
16687
+ _this._currentlyConnectedInputText.processKey(13);
16688
+ }
16673
16689
  return;
16674
16690
  }
16675
- _this._currentlyConnectedInputText.processKey(-1, _this.shiftState ? key.toUpperCase() : key);
16691
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16692
+ _this._currentlyConnectedInputText.alternativeProcessKey("", _this.shiftState ? key.toUpperCase() : key);
16693
+ }
16694
+ else {
16695
+ _this._currentlyConnectedInputText.processKey(-1, _this.shiftState ? key.toUpperCase() : key);
16696
+ }
16676
16697
  if (_this.shiftState === 1) {
16677
16698
  _this.shiftState = 0;
16678
16699
  _this.applyShiftState(_this.shiftState);
@@ -23429,7 +23450,7 @@ var FluentMaterial = /** @class */ (function (_super) {
23429
23450
  */
23430
23451
  _this.renderHoverLight = false;
23431
23452
  /**
23432
- * Gets or sets the radius used to render the hover light (default is 1.0)
23453
+ * Gets or sets the radius used to render the hover light (default is 0.01)
23433
23454
  */
23434
23455
  _this.hoverRadius = 0.01;
23435
23456
  /**
@@ -27736,7 +27757,9 @@ __webpack_require__.r(__webpack_exports__);
27736
27757
  var globalObject = typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof window !== "undefined" ? window : undefined;
27737
27758
  if (typeof globalObject !== "undefined") {
27738
27759
  globalObject.BABYLON = globalObject.BABYLON || {};
27739
- globalObject.BABYLON.GUI = _index__WEBPACK_IMPORTED_MODULE_0__;
27760
+ if (!globalObject.BABYLON.GUI) {
27761
+ globalObject.BABYLON.GUI = _index__WEBPACK_IMPORTED_MODULE_0__;
27762
+ }
27740
27763
  }
27741
27764
 
27742
27765