bg2e-js 2.2.7 → 2.2.8

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/dist/bg2e-js.js CHANGED
@@ -8961,7 +8961,7 @@ class xe {
8961
8961
  }
8962
8962
  class w0 extends en {
8963
8963
  constructor() {
8964
- super(...arguments), this._sceneRoot = null, this._sceneRenderer = null, this._environment = null, this._selectionManager = null, this._selectionHighlight = null, this._debugRenderer = null;
8964
+ super(...arguments), this._sceneRoot = null, this._sceneRenderer = null, this._environment = null, this._selectionManager = null, this._selectionHighlight = null, this._debugRenderer = null, this._updateInputEventsFrameCount = 60;
8965
8965
  }
8966
8966
  get sceneRoot() {
8967
8967
  return this._sceneRoot;
@@ -8990,6 +8990,12 @@ class w0 extends en {
8990
8990
  set updateOnInputEvents(e) {
8991
8991
  this._updateOnInputEvents = e;
8992
8992
  }
8993
+ get updateInputEventsFrameCount() {
8994
+ return this._updateInputEventsFrameCount;
8995
+ }
8996
+ set updateInputEventsFrameCount(e) {
8997
+ this._updateInputEventsFrameCount = e;
8998
+ }
8993
8999
  async loadScene() {
8994
9000
  return new Ae("Scene Root");
8995
9001
  }
@@ -9022,37 +9028,37 @@ class w0 extends en {
9022
9028
  this.sceneRenderer?.destroy(), this.selectionManagerEnabled && this.selectionManager?.destroy();
9023
9029
  }
9024
9030
  keyDown(e) {
9025
- this.sceneRoot && this.sceneRenderer?.keyDown(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9031
+ this.sceneRoot && this.sceneRenderer?.keyDown(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9026
9032
  }
9027
9033
  keyUp(e) {
9028
- this.sceneRoot && this.sceneRenderer?.keyUp(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9034
+ this.sceneRoot && this.sceneRenderer?.keyUp(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9029
9035
  }
9030
9036
  mouseUp(e) {
9031
- this.sceneRoot && this.sceneRenderer?.mouseUp(this.sceneRoot, e), this.selectionManager?.mouseUp(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9037
+ this.sceneRoot && this.sceneRenderer?.mouseUp(this.sceneRoot, e), this.selectionManager?.mouseUp(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9032
9038
  }
9033
9039
  mouseDown(e) {
9034
- this.sceneRoot && this.sceneRenderer?.mouseDown(this.sceneRoot, e), this.selectionManager?.mouseDown(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9040
+ this.sceneRoot && this.sceneRenderer?.mouseDown(this.sceneRoot, e), this.selectionManager?.mouseDown(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9035
9041
  }
9036
9042
  mouseMove(e) {
9037
- this.sceneRoot && this.sceneRenderer?.mouseMove(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9043
+ this.sceneRoot && this.sceneRenderer?.mouseMove(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9038
9044
  }
9039
9045
  mouseOut(e) {
9040
- this.sceneRoot && this.sceneRenderer?.mouseOut(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9046
+ this.sceneRoot && this.sceneRenderer?.mouseOut(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9041
9047
  }
9042
9048
  mouseDrag(e) {
9043
- this.sceneRoot && this.sceneRenderer?.mouseDrag(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9049
+ this.sceneRoot && this.sceneRenderer?.mouseDrag(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9044
9050
  }
9045
9051
  mouseWheel(e) {
9046
- this.sceneRoot && this.sceneRenderer?.mouseWheel(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9052
+ this.sceneRoot && this.sceneRenderer?.mouseWheel(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9047
9053
  }
9048
9054
  touchStart(e) {
9049
- this.sceneRoot && this.sceneRenderer?.touchStart(this.sceneRoot, e), this.selectionManager?.touchStart(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9055
+ this.sceneRoot && this.sceneRenderer?.touchStart(this.sceneRoot, e), this.selectionManager?.touchStart(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9050
9056
  }
9051
9057
  touchMove(e) {
9052
- this.sceneRoot && this.sceneRenderer?.touchMove(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9058
+ this.sceneRoot && this.sceneRenderer?.touchMove(this.sceneRoot, e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9053
9059
  }
9054
9060
  touchEnd(e) {
9055
- this.sceneRoot && this.sceneRenderer?.touchEnd(this.sceneRoot, e), this.selectionManager?.touchEnd(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: 60 });
9061
+ this.sceneRoot && this.sceneRenderer?.touchEnd(this.sceneRoot, e), this.selectionManager?.touchEnd(e), this.updateOnInputEvents && this.mainLoop.postRedisplay({ frames: this._updateInputEventsFrameCount });
9056
9062
  }
9057
9063
  }
9058
9064
  const Vr = {