vis-core 0.12.31 → 0.12.32

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.
@@ -41033,7 +41033,7 @@ function Ql(n) {
41033
41033
  const t = new t0();
41034
41034
  return t.color.setScalar(n), t;
41035
41035
  }
41036
- const GX = "0.12.31", a1 = !1;
41036
+ const GX = "0.12.32", a1 = !1;
41037
41037
  class pl {
41038
41038
  constructor(t, e = {}) {
41039
41039
  P(this, "container");
@@ -45532,10 +45532,10 @@ class LF extends ke {
45532
45532
  }
45533
45533
  class CF extends ke {
45534
45534
  constructor(t, e, i, s) {
45535
- var l, a;
45536
- super(t), this.type = "SetMaterial", this.name = "New Material", this.object = e, this.materialSlot = s, this.oldMaterial = this.editor.getObjectMaterial(e, s), this.newMaterial = i, this.loaderSrc = [], (l = this.oldMaterial) != null && l.map && this.loaderSrc.push(
45535
+ var l, a, o;
45536
+ super(t), this.type = "SetMaterial", this.name = "New Material", this.object = e, this.materialSlot = s, this.oldMaterial = this.editor.getObjectMaterial(e, s), this.newMaterial = i, this.loaderSrc = [], (l = this.oldMaterial) != null && l.name && (this.newMaterial.name = this.oldMaterial.name), (a = this.oldMaterial) != null && a.map && this.loaderSrc.push(
45537
45537
  this.editor.viewport.vis.loader.getSrcByAsset(this.oldMaterial.map)
45538
- ), (a = this.oldMaterial) != null && a.normalMap && this.loaderSrc.push(
45538
+ ), (o = this.oldMaterial) != null && o.normalMap && this.loaderSrc.push(
45539
45539
  this.editor.viewport.vis.loader.getSrcByAsset(
45540
45540
  this.oldMaterial.normalMap
45541
45541
  )
@@ -45683,10 +45683,14 @@ class MF extends ke {
45683
45683
  super(t), this.type = "SetMaterialValue", this.name = `Set Material.${i}`, this.updatable = !0, this.object = e, this.materialSlot = l, this.material = this.editor.getObjectMaterial(e, l), this.oldValue = this.material !== void 0 ? this.material[i] : void 0, this.newValue = s, this.attributeName = i;
45684
45684
  }
45685
45685
  execute() {
45686
- this.material[this.attributeName] = this.newValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45686
+ this.material[this.attributeName] = this.newValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), setTimeout(() => {
45687
+ this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45688
+ });
45687
45689
  }
45688
45690
  undo() {
45689
- this.material[this.attributeName] = this.oldValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45691
+ this.material[this.attributeName] = this.oldValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), setTimeout(() => {
45692
+ this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45693
+ });
45690
45694
  }
45691
45695
  update(t) {
45692
45696
  this.newValue = t.newValue;
@@ -45839,11 +45843,15 @@ class vF extends ke {
45839
45843
  }
45840
45844
  execute() {
45841
45845
  const t = this.properties ? this.object[this.properties] : this.object;
45842
- t && (t[this.attributeName] = this.newValue, this.editor.emit("objectChanged", this.object), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange"));
45846
+ t && (t[this.attributeName] = this.newValue, this.editor.emit("objectChanged", this.object), setTimeout(() => {
45847
+ this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45848
+ }));
45843
45849
  }
45844
45850
  undo() {
45845
45851
  const t = this.properties ? this.object[this.properties] : this.object;
45846
- t[this.attributeName] = this.oldValue, this.editor.emit("objectChanged", this.object), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45852
+ t[this.attributeName] = this.oldValue, this.editor.emit("objectChanged", this.object), setTimeout(() => {
45853
+ this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
45854
+ });
45847
45855
  }
45848
45856
  update(t) {
45849
45857
  this.newValue = t.newValue;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.12.31";
1
+ declare const _default: "0.12.32";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.12.31",
3
+ "version": "0.12.32",
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",