vis-core 0.21.29 → 0.21.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/index.js +1 -1
- package/dist/index.module.js +27 -36
- package/dist/version.d.ts +1 -1
- package/dist/vis/base/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -48310,7 +48310,7 @@ function createAreaLightMaterial(ct) {
|
|
|
48310
48310
|
const e = new MeshBasicMaterial();
|
|
48311
48311
|
return e.color.setScalar(ct), e;
|
|
48312
48312
|
}
|
|
48313
|
-
const version = "0.21.
|
|
48313
|
+
const version = "0.21.30";
|
|
48314
48314
|
class Event {
|
|
48315
48315
|
constructor() {
|
|
48316
48316
|
J0(this, "event", new EventEmitter());
|
|
@@ -49583,7 +49583,7 @@ class Base extends Event {
|
|
|
49583
49583
|
J0(this, "visName");
|
|
49584
49584
|
J0(this, "editor");
|
|
49585
49585
|
J0(this, "initSettingsObj");
|
|
49586
|
-
J0(this, "mouseButtonsActiveStore");
|
|
49586
|
+
J0(this, "mouseButtonsActiveStore", null);
|
|
49587
49587
|
if (this.container = c.container, this.options = bi({
|
|
49588
49588
|
assetsPrefix: "",
|
|
49589
49589
|
editor: !0
|
|
@@ -49739,31 +49739,31 @@ class Base extends Event {
|
|
|
49739
49739
|
return (c = this.pencil) == null ? void 0 : c.controls.verticalDragToForward;
|
|
49740
49740
|
}
|
|
49741
49741
|
initSettings() {
|
|
49742
|
-
|
|
49742
|
+
const c = {
|
|
49743
49743
|
mouseLeft: this.leftTruck ? Ts.TRUCK : Ts.ROTATE,
|
|
49744
49744
|
mouseRight: this.leftTruck ? Ts.ROTATE : Ts.TRUCK,
|
|
49745
|
-
mouseWheel: Ts.DOLLY
|
|
49746
|
-
|
|
49747
|
-
|
|
49748
|
-
Ei(bi(bi({}, this.initSettingsObj),
|
|
49749
|
-
mouseNone: !1
|
|
49745
|
+
mouseWheel: Ts.DOLLY
|
|
49746
|
+
};
|
|
49747
|
+
this.settings = new Proxy(
|
|
49748
|
+
Ei(bi(bi({}, this.initSettingsObj), c), {
|
|
49749
|
+
mouseNone: !1,
|
|
49750
|
+
viewportPadding: [0, 0, 0, 0]
|
|
49750
49751
|
}),
|
|
49751
49752
|
{
|
|
49752
|
-
set: (
|
|
49753
|
-
|
|
49754
|
-
|
|
49755
|
-
|
|
49756
|
-
|
|
49757
|
-
const Yt = st.includes(":::");
|
|
49753
|
+
set: (st, Zt, Wt) => {
|
|
49754
|
+
if (!(Zt in st) && !(Zt.replace(/(:::.+)\..*$/, "$1") in st))
|
|
49755
|
+
return Reflect.set({}, Zt, Wt);
|
|
49756
|
+
Zt === "mouseWheel" ? typeof Wt == "boolean" && (Wt = Wt ? c.mouseWheel : Ts.NONE) : Zt === "mouseLeft" ? typeof Wt == "boolean" && (Wt = Wt ? c.mouseLeft : Ts.NONE) : Zt === "mouseRight" && typeof Wt == "boolean" && (Wt = Wt ? c.mouseRight : Ts.NONE);
|
|
49757
|
+
const Yt = Zt.includes(":::");
|
|
49758
49758
|
return Reflect.set(
|
|
49759
|
-
|
|
49760
|
-
Yt ?
|
|
49761
|
-
this.handleSetting(
|
|
49759
|
+
st,
|
|
49760
|
+
Yt ? Zt.replace(/(:::.+)\..*$/, "$1") : Zt,
|
|
49761
|
+
this.handleSetting(Zt, Wt)
|
|
49762
49762
|
);
|
|
49763
49763
|
},
|
|
49764
|
-
get: (
|
|
49765
|
-
const
|
|
49766
|
-
return
|
|
49764
|
+
get: (st, Zt) => {
|
|
49765
|
+
const Yt = Zt.includes(":::") ? Zt.replace(/(:::.+)\..*$/, "$1") : Zt, vt = Reflect.get(st, Yt);
|
|
49766
|
+
return vt instanceof Promise ? vt.then((Tt) => (Reflect.set(st, Yt, Tt), Tt)) : vt;
|
|
49767
49767
|
}
|
|
49768
49768
|
}
|
|
49769
49769
|
);
|
|
@@ -49772,22 +49772,13 @@ class Base extends Event {
|
|
|
49772
49772
|
return ni(this, null, function* () {
|
|
49773
49773
|
const { pencil: Zt } = this;
|
|
49774
49774
|
if (c === "mouseWheel" || c === "mouseLeft" || c === "mouseRight") {
|
|
49775
|
-
|
|
49776
|
-
|
|
49777
|
-
|
|
49778
|
-
|
|
49779
|
-
|
|
49780
|
-
|
|
49781
|
-
|
|
49782
|
-
this.mouseButtonsActiveStore.mouseLeft
|
|
49783
|
-
), this.handleSetting(
|
|
49784
|
-
"mouseRight",
|
|
49785
|
-
this.mouseButtonsActiveStore.mouseRight
|
|
49786
|
-
), this.handleSetting(
|
|
49787
|
-
"mouseWheel",
|
|
49788
|
-
this.mouseButtonsActiveStore.mouseWheel
|
|
49789
|
-
);
|
|
49790
|
-
}) : c === "viewportPadding" && Zt.setViewPadding(...st);
|
|
49775
|
+
const Wt = c.replace("mouse", "").toLowerCase();
|
|
49776
|
+
(st || this.playing) && (Zt.controls.mouseButtons[Wt] = st);
|
|
49777
|
+
} else c === "mouseNone" ? st ? (this.mouseButtonsActiveStore = {
|
|
49778
|
+
mouseLeft: Zt.controls.mouseButtons.left,
|
|
49779
|
+
mouseRight: Zt.controls.mouseButtons.right,
|
|
49780
|
+
mouseWheel: Zt.controls.mouseButtons.wheel
|
|
49781
|
+
}, Zt.controls.mouseButtons.left = Ts.NONE, Zt.controls.mouseButtons.right = Ts.NONE, Zt.controls.mouseButtons.wheel = Ts.NONE) : this.mouseButtonsActiveStore && (Zt.controls.mouseButtons.left = this.mouseButtonsActiveStore.mouseLeft, Zt.controls.mouseButtons.right = this.mouseButtonsActiveStore.mouseRight, Zt.controls.mouseButtons.wheel = this.mouseButtonsActiveStore.mouseWheel) : c === "viewportPadding" && Zt.setViewPadding(...st);
|
|
49791
49782
|
return st;
|
|
49792
49783
|
});
|
|
49793
49784
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.30";
|
|
2
2
|
export default _default;
|
package/dist/vis/base/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export default class Base extends Event {
|
|
|
88
88
|
initSettingsObj?: Record<string, any>;
|
|
89
89
|
set verticalDragToForward(value: boolean);
|
|
90
90
|
get verticalDragToForward(): boolean;
|
|
91
|
-
mouseButtonsActiveStore: Record<string, any
|
|
91
|
+
mouseButtonsActiveStore: Record<string, any> | null;
|
|
92
92
|
initSettings(): void;
|
|
93
93
|
handleSetting(key: string, value: any): Promise<any>;
|
|
94
94
|
show(): void;
|