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.
- package/package.json +1 -1
- package/public/app.js +3 -4
package/package.json
CHANGED
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)
|
|
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
|
-
|
|
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) {
|