fix(viz): forzar circulo a todos los nodos salvo Table; tapar energia inicial
- types_registry.cpp::apply_types_yaml: tras aplicar el yaml, sobreescribe shape de cada tipo: 'Table' → SHAPE_SQUARE, todo lo demas → SHAPE_CIRCLE. Convencion fija — ediciones futuras del Type Editor (issue 0007) o del yaml no rompen la regla. - examples/types.yaml + project_manager.cpp seed: quitar campo `shape`, añadir tipo Table (cuadrado) y relacion CONTAINS_ROW (preview de 0010). - main.cpp run_force_step: damping=0.7, max_velocity=8 explicitos para evitar que el grafo "explote" al cargar grafos pequenos. - AppState repulsion: 1500 → 800 (lo mismo, aplicado al force layout). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -251,10 +251,16 @@ static void run_force_step() {
|
||||
if (g_app.layout_mode != 0) return; // force solo en mode 0
|
||||
|
||||
ForceLayoutConfig cfg;
|
||||
cfg.repulsion = g_app.repulsion;
|
||||
cfg.attraction = g_app.attraction;
|
||||
cfg.gravity = g_app.gravity;
|
||||
cfg.iterations = 1;
|
||||
cfg.repulsion = g_app.repulsion;
|
||||
cfg.attraction = g_app.attraction;
|
||||
cfg.gravity = g_app.gravity;
|
||||
cfg.iterations = 1;
|
||||
// Tapa de energia: damping mas agresivo + max_velocity bajo evita que el
|
||||
// grafo "explote" al cargar (nodos que arrancan cerca del origen y se
|
||||
// dispersan con repulsion alta). Valores tuneados para sentir movimiento
|
||||
// suave sin saltos visibles entre frames.
|
||||
cfg.damping = 0.7f;
|
||||
cfg.max_velocity = 8.0f;
|
||||
|
||||
if (g_app.use_gpu) {
|
||||
if (!g_gpu_ctx) {
|
||||
|
||||
Reference in New Issue
Block a user