vis-core 0.12.17 → 0.12.18
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 +2 -2
- package/dist/index.module.js +10 -12
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -41029,7 +41029,7 @@ function Ql(n) {
|
|
|
41029
41029
|
const t = new t0();
|
|
41030
41030
|
return t.color.setScalar(n), t;
|
|
41031
41031
|
}
|
|
41032
|
-
const XX = "0.12.
|
|
41032
|
+
const XX = "0.12.18", o1 = !1;
|
|
41033
41033
|
class pl {
|
|
41034
41034
|
constructor(t, e = {}) {
|
|
41035
41035
|
P(this, "container");
|
|
@@ -41191,13 +41191,10 @@ class pl {
|
|
|
41191
41191
|
return Gt(this, null, function* () {
|
|
41192
41192
|
const { pencil: i } = this;
|
|
41193
41193
|
if (t === "mouseWheel" || t === "mouseLeft" || t === "mouseRight") {
|
|
41194
|
-
if (yield this.settings.mouseNone, !this.settings.mouseNone)
|
|
41195
|
-
|
|
41196
|
-
|
|
41197
|
-
|
|
41198
|
-
i.cameraControls.mouseButtons[s] = e;
|
|
41199
|
-
} else
|
|
41200
|
-
this.playing && (this.mouseButtonsActiveStore[t] = e, i.cameraControls.mouseButtons.left = ii.NONE);
|
|
41194
|
+
if (yield this.settings.mouseNone, !this.settings.mouseNone) {
|
|
41195
|
+
const s = t.replace("mouse", "").toLowerCase();
|
|
41196
|
+
e ? (this.mouseButtonsActiveStore[t] = e, i.cameraControls.mouseButtons[s] = e) : this.playing && (this.mouseButtonsActiveStore[t] = e, i.cameraControls.mouseButtons[s] = ii.NONE);
|
|
41197
|
+
}
|
|
41201
41198
|
} else
|
|
41202
41199
|
t === "mouseNone" && (e ? (i.cameraControls.mouseButtons.left = ii.NONE, i.cameraControls.mouseButtons.right = ii.NONE, i.cameraControls.mouseButtons.wheel = ii.NONE) : setTimeout(() => {
|
|
41203
41200
|
this.handleSetting(
|
|
@@ -46564,11 +46561,12 @@ class gT {
|
|
|
46564
46561
|
var l;
|
|
46565
46562
|
let s = t.material;
|
|
46566
46563
|
Array.isArray(t.material) && e !== void 0 ? (s = [...t.material], t.material[e] = i) : t.material = i, s && t.userData.fixBufferGeometry && (this.pencil.scene.traverse((a) => {
|
|
46567
|
-
|
|
46568
|
-
|
|
46569
|
-
|
|
46564
|
+
const o = a;
|
|
46565
|
+
o.material && e !== void 0 && Array.isArray(o.material) && Array.isArray(s) ? o.material.every(
|
|
46566
|
+
(c, d) => c === s[d]
|
|
46567
|
+
) && (o.material[e] = i) : o.material && !Array.isArray(o.material) && !Array.isArray(s) && o.material === s && (o.material = i);
|
|
46570
46568
|
}), (l = this.viewport.vis) == null || l.mList.materialList.forEach((a) => {
|
|
46571
|
-
a.material === s && (a.material = i);
|
|
46569
|
+
(Array.isArray(s) ? e !== void 0 && a.material === s[e] : a.material === s) && (a.material = i);
|
|
46572
46570
|
}));
|
|
46573
46571
|
}
|
|
46574
46572
|
uuidByObject(t) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.12.
|
|
1
|
+
declare const _default: "0.12.18";
|
|
2
2
|
export default _default;
|