My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: show title always

+17 -2
+15 -1
src/gui/mod.rs
··· 1 1 use eframe::egui; 2 + use egui_graphs::{SettingsInteraction, SettingsNavigation}; 2 3 3 4 use crate::types::{Filaments, Index}; 4 5 ··· 40 41 egui::CentralPanel::default().show_inside(ui, |ui| { 41 42 let g = &mut self.filaments.graph; 42 43 43 - let mut view = egui_graphs::GraphView::<_, _, _, _, _, _, S, L>::new(g); 44 + let mut view = egui_graphs::GraphView::<_, _, _, _, _, _, S, L>::new(g) 45 + .with_interactions( 46 + &SettingsInteraction::new() 47 + .with_hover_enabled(false) 48 + .with_dragging_enabled(false) 49 + .with_node_selection_enabled(false) 50 + .with_node_selection_multi_enabled(false) 51 + .with_edge_selection_enabled(false) 52 + .with_edge_selection_multi_enabled(false), 53 + ) 54 + .with_navigations( 55 + &SettingsNavigation::new().with_fit_to_screen_padding(0.5), // .with_zoom_and_pan_enabled(true) 56 + // .with_fit_to_screen_enabled(false), 57 + ); 44 58 45 59 ui.add(&mut view); 46 60
+2 -1
src/types/filaments.rs
··· 37 37 let node_idx = graph.add_node_custom(zid.clone(), |node| { 38 38 node.set_label(zod.fm.title.clone()); 39 39 let disp = node.display_mut(); 40 - disp.radius = 100.0; 40 + disp.radius = 50.0; 41 41 42 42 // randomize position 43 43 let x = rand::random_range(0.0..=100.0); 44 44 let y = rand::random_range(0.0..=100.0); 45 45 node.set_location(emath::Pos2 { x, y }); 46 + node.set_hovered(true); 46 47 }); 47 48 48 49 let _ = zid_to_gid.insert(zid.clone(), node_idx);