vim-web 0.3.44-dev.29 → 0.3.44-dev.30

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.
@@ -14,7 +14,7 @@ export type VimStatus = {
14
14
  };
15
15
  export type SectionBoxState = {
16
16
  visible: boolean;
17
- interactible: boolean;
17
+ interactive: boolean;
18
18
  clip: boolean;
19
19
  box: Box3;
20
20
  };
@@ -8,6 +8,7 @@ export declare class SectionBox {
8
8
  private _rpc;
9
9
  private _interval;
10
10
  private _animationFrame;
11
+ private _pullId;
11
12
  private _onUpdate;
12
13
  get onUpdate(): import("ste-signals").ISignal;
13
14
  private get needUpdate();
@@ -58059,7 +58059,7 @@ void main() {
58059
58059
  // -------------------- SectionBox -------------------
58060
58060
  writeSectionBoxState(data2) {
58061
58061
  this.writeBoolean(data2.visible);
58062
- this.writeBoolean(data2.interactible);
58062
+ this.writeBoolean(data2.interactive);
58063
58063
  this.writeBoolean(data2.clip);
58064
58064
  this.writeBox3(data2.box);
58065
58065
  }
@@ -58214,12 +58214,12 @@ void main() {
58214
58214
  }
58215
58215
  readSectionBoxState() {
58216
58216
  const visible2 = this.readBoolean();
58217
- const interactible = this.readBoolean();
58217
+ const interactive = this.readBoolean();
58218
58218
  const clip = this.readBoolean();
58219
58219
  const box = this.readBox3();
58220
58220
  return {
58221
58221
  visible: visible2,
58222
- interactible,
58222
+ interactive,
58223
58223
  clip,
58224
58224
  box
58225
58225
  };
@@ -61815,6 +61815,7 @@ Averrage Date/Second ${avgDataRatePS} kb
61815
61815
  __publicField(this, "_rpc");
61816
61816
  __publicField(this, "_interval");
61817
61817
  __publicField(this, "_animationFrame");
61818
+ __publicField(this, "_pullId", 0);
61818
61819
  // Signals
61819
61820
  __publicField(this, "_onUpdate", new distExports$1.SignalDispatcher());
61820
61821
  this._rpc = rpc;
@@ -61831,6 +61832,7 @@ Averrage Date/Second ${avgDataRatePS} kb
61831
61832
  this._interval = setInterval(() => this.pull(), 1e3);
61832
61833
  }
61833
61834
  scheduleUpdate() {
61835
+ this._pullId++;
61834
61836
  if (this._animationFrame) return;
61835
61837
  this._animationFrame = requestAnimationFrame(() => {
61836
61838
  this._animationFrame = void 0;
@@ -61839,13 +61841,15 @@ Averrage Date/Second ${avgDataRatePS} kb
61839
61841
  }
61840
61842
  async pull() {
61841
61843
  if (this.needUpdate) return;
61844
+ const id2 = this._pullId;
61842
61845
  const state = await this._rpc.RPCGetSectionBox();
61846
+ if (id2 !== this._pullId) return;
61843
61847
  let changed = false;
61844
- if (state.visible !== this._visible || state.interactible !== this._interactible || state.clip !== this._clip || state.box !== this._box) {
61848
+ if (state.visible !== this._visible || state.interactive !== this._interactible || state.clip !== this._clip || state.box !== this._box) {
61845
61849
  changed = true;
61846
61850
  }
61847
61851
  this._visible = state.visible;
61848
- this._interactible = state.interactible;
61852
+ this._interactible = state.interactive;
61849
61853
  this._clip = state.clip;
61850
61854
  this._box = state.box;
61851
61855
  if (changed) {
@@ -61855,7 +61859,7 @@ Averrage Date/Second ${avgDataRatePS} kb
61855
61859
  async push() {
61856
61860
  await this._rpc.RPCSetSectionBox({
61857
61861
  visible: this._visible,
61858
- interactible: this._interactible,
61862
+ interactive: this._interactible,
61859
61863
  clip: this._clip,
61860
61864
  box: this._box
61861
61865
  });
@@ -76492,7 +76496,7 @@ Averrage Date/Second ${avgDataRatePS} kb
76492
76496
  }
76493
76497
  if (state.status === "connecting") {
76494
76498
  if (modal.current === void 0 || modal.current.type === "loading") {
76495
- modal.loading({ message: "Connecting to VIM Ultra server..." });
76499
+ modal.loading({ message: "Initializing..." });
76496
76500
  }
76497
76501
  }
76498
76502
  if (state.status === "error") {