vis-core 0.28.5 → 0.28.6

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.
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
88
88
  ).toString(CryptoJS.enc.Utf8), ke = JSON.parse(Ae), He = Date.now();
89
89
  return !ke.s || ke.s > He ? (this.token = void 0, "") : ke.e && ke.e < He ? (this.token = void 0, "") : (ke.isValid = Pe, ke);
90
90
  }
91
- }, version = "0.28.5";
91
+ }, version = "0.28.6";
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2010-2025 Three.js Authors
@@ -58906,7 +58906,14 @@ class AddMaterial extends Command {
58906
58906
  execute() {
58907
58907
  return B0(this, null, function* () {
58908
58908
  this.addObjectUuid = `material_${this.id}`;
58909
- const r = this.editor.pencil.mList, m = new THREE[this.materialType]();
58909
+ const r = this.editor.pencil.mList, m = this.materialType === "MeshLineMaterial" ? new Ie$2({
58910
+ color: new Color$1(16777215),
58911
+ lineWidth: 1,
58912
+ sizeAttenuation: 0
58913
+ }) : (
58914
+ // @ts-ignore
58915
+ new THREE[this.materialType]()
58916
+ );
58910
58917
  m.name = `材质_${this.id}`, r.add(this.addObjectUuid, m);
58911
58918
  });
58912
58919
  }
@@ -59891,7 +59898,10 @@ class Editor {
59891
59898
  }
59892
59899
  setObjectMaterial(t, r, m) {
59893
59900
  let v = t.material;
59894
- Array.isArray(t.material) && r !== void 0 ? (v = t.material[r], t.material[r] = m) : t.material = m, v != null && v.onBeforeCompile && (m.onBeforeCompile = v.onBeforeCompile), v != null && v.name && !m.name && (m.name = v.name);
59901
+ Array.isArray(t.material) && r !== void 0 ? (v = t.material[r], t.material[r] = m) : t.material = m, v != null && v.onBeforeCompile && (m.onBeforeCompile = v.onBeforeCompile), v != null && v.name && !m.name && (m.name = v.name), m instanceof Ie$2 && (m.resolution = new Vector2(
59902
+ this.pencil.renderer.domElement.width,
59903
+ this.pencil.renderer.domElement.height
59904
+ ));
59895
59905
  }
59896
59906
  uuidByObject(t) {
59897
59907
  var r;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.28.5";
1
+ declare const _default: "0.28.6";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.5",
3
+ "version": "0.28.6",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",