fix(rnetwork): remove linkLineDash (3D unsupported), fix three/webgpu duplication
- Remove .linkLineDash() chain call — only exists in 2D force-graph, not 3d-force-graph. Dashed edges were visual-only, no functional loss. - Map three/webgpu to three.module.js instead of three.webgpu.js to avoid loading two full copies of Three.js. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dfcd3fa85a
commit
47d2c41400
|
|
@ -594,10 +594,6 @@ class FolkGraphViewer extends HTMLElement {
|
|||
}
|
||||
return "#c4b5fd";
|
||||
})
|
||||
.linkLineDash((link: GraphEdge) => {
|
||||
const style = EDGE_STYLES[link.type] || EDGE_STYLES.default;
|
||||
return style.dashed ? [4, 2] : null;
|
||||
})
|
||||
.onNodeClick((node: GraphNode) => {
|
||||
if (this.selectedNode?.id === node.id) {
|
||||
this.selectedNode = null;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const GRAPH3D_IMPORTMAP = `<script type="importmap">
|
|||
{
|
||||
"imports": {
|
||||
"three": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.module.js",
|
||||
"three/webgpu": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.webgpu.js",
|
||||
"three/webgpu": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.module.js",
|
||||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
||||
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
||||
"3d-force-graph": "https://esm.sh/3d-force-graph@1?bundle-deps&external=three"
|
||||
|
|
|
|||
Loading…
Reference in New Issue