@babylonjs/gui-editor 5.35.1 → 5.36.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.
@@ -51310,6 +51310,7 @@ __webpack_require__.r(__webpack_exports__);
51310
51310
 
51311
51311
 
51312
51312
 
51313
+ let throttleTimerId = -1;
51313
51314
  class TextInputLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
51314
51315
  constructor(props) {
51315
51316
  super(props);
@@ -51405,7 +51406,17 @@ class TextInputLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Componen
51405
51406
  if (this.props.propertyName && !this.props.delayInput) {
51406
51407
  this.props.target[this.props.propertyName] = value;
51407
51408
  }
51408
- this.raiseOnPropertyChanged(value, store);
51409
+ if (this.props.throttlePropertyChangedNotification) {
51410
+ if (throttleTimerId >= 0) {
51411
+ window.clearTimeout(throttleTimerId);
51412
+ }
51413
+ throttleTimerId = window.setTimeout(() => {
51414
+ this.raiseOnPropertyChanged(value, store);
51415
+ }, this.props.throttlePropertyChangedNotificationDelay ?? 200);
51416
+ }
51417
+ else {
51418
+ this.raiseOnPropertyChanged(value, store);
51419
+ }
51409
51420
  }
51410
51421
  incrementValue(amount) {
51411
51422
  if (this.props.step) {