vis-core 0.15.1 → 0.15.2

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.
@@ -41312,7 +41312,7 @@ function Kl(i) {
41312
41312
  const t = new _t();
41313
41313
  return t.color.setScalar(i), t;
41314
41314
  }
41315
- const lX = "0.15.1", S1 = !1;
41315
+ const lX = "0.15.2", S1 = !1;
41316
41316
  class ya {
41317
41317
  constructor(t, e = {}) {
41318
41318
  A(this, "container");
@@ -46287,13 +46287,17 @@ class kT extends w0 {
46287
46287
  }
46288
46288
  execute() {
46289
46289
  const t = this.properties ? this.object[this.properties] : this.object;
46290
- t && (t instanceof Dh && this.attributeName === "castShadow" || (t[this.attributeName] = this.newValue, this.editor.emit("objectChanged", this.object), setTimeout(() => {
46290
+ t && (t instanceof Dh && this.attributeName === "castShadow" || (t[this.attributeName] = this.newValue, t.isCamera && ["fov", "left", "right", "top", "bottom", "near", "far"].includes(
46291
+ this.attributeName
46292
+ ) && t.updateProjectionMatrix(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
46291
46293
  this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
46292
46294
  })));
46293
46295
  }
46294
46296
  undo() {
46295
46297
  const t = this.properties ? this.object[this.properties] : this.object;
46296
- t[this.attributeName] = this.oldValue, this.editor.emit("objectChanged", this.object), setTimeout(() => {
46298
+ t[this.attributeName] = this.oldValue, t.isCamera && ["fov", "left", "right", "top", "bottom", "near", "far"].includes(
46299
+ this.attributeName
46300
+ ) && t.updateProjectionMatrix(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
46297
46301
  this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
46298
46302
  });
46299
46303
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.15.1";
1
+ declare const _default: "0.15.2";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
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",