gioser-web: replace Rust SVG graph with Cytoscape.js
- Add cytoscape-graph.js: fetches /graph, renders with Cytoscape.js - Style: round-rect nodes, cose layout, edge width proportional to weight - Click: center node + fade rest (wineandcheesemap effect) - Double-click: trigger navigation callback - Hover: tooltip with preview text - Click background: restore all - Remove gioser-graph-web crate dependency (no longer needed) - Add CDN cytoscape@3.30.4 + defer script to index.html - gioser-graph custom element auto-initialized on mount
This commit is contained in:
@@ -14,7 +14,6 @@ gioser-canvas-web = { path = "../../modules/gioser/gioser-canvas-web" }
|
||||
fana-md-reader-web = { path = "../../modules/fana/fana-md-reader-web" }
|
||||
revista-web = { path = "../../modules/revista/revista-web" }
|
||||
barra-web = { path = "../../modules/barra/barra-web" }
|
||||
gioser-graph-web = { path = "../../modules/gioser/gioser-graph-web" }
|
||||
wasm-bindgen.workspace = true
|
||||
wasm-bindgen-futures.workspace = true
|
||||
js-sys.workspace = true
|
||||
|
||||
Reference in New Issue
Block a user