local-knowledge-graph 1.10.3 → 1.10.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/app.js +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-knowledge-graph",
3
- "version": "1.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "本地知识图谱整合器:3D可视化 + AI对话建图 + 智能检索 + Git回溯 + RDF合规,全流程本地运行",
5
5
  "main": "server.js",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -319,10 +319,10 @@ function updateRelLine(l) {
319
319
  }
320
320
  posAttr.needsUpdate = true;
321
321
  if (l.dashed) l.line.computeLineDistances();
322
- // 标签置于弧顶(t=0.5)外移一点,跟随弧线弯曲
322
+ // 标签置于弧顶(t=0.5),贴合弧线
323
323
  if (l.label) {
324
324
  arcPoint(_arcTmp, l.a.pos, l.b.pos, _arcDir, _arcOff, 0.5);
325
- l.label.position.copy(_arcTmp).addScaledVector(_arcOff, 6);
325
+ l.label.position.copy(_arcTmp);
326
326
  }
327
327
  }
328
328
 
@@ -331,8 +331,7 @@ function setRelLabelPos(lbl, pa, pb, arc) {
331
331
  if (!arc) { lbl.position.copy(pa).add(pb).multiplyScalar(0.5); return; }
332
332
  const dir = pb.clone().sub(pa);
333
333
  const off = arcOffsetVec(dir, arc);
334
- const p = arcPoint(new THREE.Vector3(), pa, pb, dir, off, 0.5);
335
- lbl.position.copy(p).addScaledVector(off, 6);
334
+ lbl.position.copy(arcPoint(new THREE.Vector3(), pa, pb, dir, off, 0.5));
336
335
  }
337
336
 
338
337
  function buildNodeMesh(category) {