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.
package/dist/vim-web.js
CHANGED
|
@@ -58043,7 +58043,7 @@ class Marshal {
|
|
|
58043
58043
|
// -------------------- SectionBox -------------------
|
|
58044
58044
|
writeSectionBoxState(data2) {
|
|
58045
58045
|
this.writeBoolean(data2.visible);
|
|
58046
|
-
this.writeBoolean(data2.
|
|
58046
|
+
this.writeBoolean(data2.interactive);
|
|
58047
58047
|
this.writeBoolean(data2.clip);
|
|
58048
58048
|
this.writeBox3(data2.box);
|
|
58049
58049
|
}
|
|
@@ -58198,12 +58198,12 @@ class ReadMarshal {
|
|
|
58198
58198
|
}
|
|
58199
58199
|
readSectionBoxState() {
|
|
58200
58200
|
const visible2 = this.readBoolean();
|
|
58201
|
-
const
|
|
58201
|
+
const interactive = this.readBoolean();
|
|
58202
58202
|
const clip = this.readBoolean();
|
|
58203
58203
|
const box = this.readBox3();
|
|
58204
58204
|
return {
|
|
58205
58205
|
visible: visible2,
|
|
58206
|
-
|
|
58206
|
+
interactive,
|
|
58207
58207
|
clip,
|
|
58208
58208
|
box
|
|
58209
58209
|
};
|
|
@@ -61799,6 +61799,7 @@ class SectionBox2 {
|
|
|
61799
61799
|
__publicField(this, "_rpc");
|
|
61800
61800
|
__publicField(this, "_interval");
|
|
61801
61801
|
__publicField(this, "_animationFrame");
|
|
61802
|
+
__publicField(this, "_pullId", 0);
|
|
61802
61803
|
// Signals
|
|
61803
61804
|
__publicField(this, "_onUpdate", new distExports$1.SignalDispatcher());
|
|
61804
61805
|
this._rpc = rpc;
|
|
@@ -61815,6 +61816,7 @@ class SectionBox2 {
|
|
|
61815
61816
|
this._interval = setInterval(() => this.pull(), 1e3);
|
|
61816
61817
|
}
|
|
61817
61818
|
scheduleUpdate() {
|
|
61819
|
+
this._pullId++;
|
|
61818
61820
|
if (this._animationFrame) return;
|
|
61819
61821
|
this._animationFrame = requestAnimationFrame(() => {
|
|
61820
61822
|
this._animationFrame = void 0;
|
|
@@ -61823,13 +61825,15 @@ class SectionBox2 {
|
|
|
61823
61825
|
}
|
|
61824
61826
|
async pull() {
|
|
61825
61827
|
if (this.needUpdate) return;
|
|
61828
|
+
const id2 = this._pullId;
|
|
61826
61829
|
const state = await this._rpc.RPCGetSectionBox();
|
|
61830
|
+
if (id2 !== this._pullId) return;
|
|
61827
61831
|
let changed = false;
|
|
61828
|
-
if (state.visible !== this._visible || state.
|
|
61832
|
+
if (state.visible !== this._visible || state.interactive !== this._interactible || state.clip !== this._clip || state.box !== this._box) {
|
|
61829
61833
|
changed = true;
|
|
61830
61834
|
}
|
|
61831
61835
|
this._visible = state.visible;
|
|
61832
|
-
this._interactible = state.
|
|
61836
|
+
this._interactible = state.interactive;
|
|
61833
61837
|
this._clip = state.clip;
|
|
61834
61838
|
this._box = state.box;
|
|
61835
61839
|
if (changed) {
|
|
@@ -61839,7 +61843,7 @@ class SectionBox2 {
|
|
|
61839
61843
|
async push() {
|
|
61840
61844
|
await this._rpc.RPCSetSectionBox({
|
|
61841
61845
|
visible: this._visible,
|
|
61842
|
-
|
|
61846
|
+
interactive: this._interactible,
|
|
61843
61847
|
clip: this._clip,
|
|
61844
61848
|
box: this._box
|
|
61845
61849
|
});
|
|
@@ -76476,7 +76480,7 @@ function updateModal(modal, state) {
|
|
|
76476
76480
|
}
|
|
76477
76481
|
if (state.status === "connecting") {
|
|
76478
76482
|
if (modal.current === void 0 || modal.current.type === "loading") {
|
|
76479
|
-
modal.loading({ message: "
|
|
76483
|
+
modal.loading({ message: "Initializing..." });
|
|
76480
76484
|
}
|
|
76481
76485
|
}
|
|
76482
76486
|
if (state.status === "error") {
|