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.
@@ -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.16", o1 = !1;
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
- if (e) {
41196
- this.mouseButtonsActiveStore[t] = e;
41197
- const s = t.replace("mouse", "").toLowerCase();
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
- Array.isArray(a.material) ? a.material.forEach((o, c) => {
46568
- o === s && (a.material[c] = i);
46569
- }) : a.material === s && (a.material = i);
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.16";
1
+ declare const _default: "0.12.18";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.12.17",
3
+ "version": "0.12.18",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",