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:
+10
-8
@@ -125,42 +125,40 @@ CREATE TABLE IF NOT EXISTS logs (
|
||||
|
||||
// Semilla types.yaml minima si examples/types.yaml no se encuentra.
|
||||
static const char* k_seed_types_yaml = R"YAML(# types.yaml — generado al crear el proyecto. Editable desde el Type Editor.
|
||||
# Color como "#RRGGBB" (con o sin alpha "#RRGGBBAA").
|
||||
# Shapes: circle | square | diamond | hex | triangle | rounded_square
|
||||
# Todos los nodos son circulo, salvo "Table" que es cuadrado.
|
||||
# Iconos: nombres ti-* mapeados en types_registry.cpp
|
||||
# Estilos de relacion: solid | dashed | dotted
|
||||
|
||||
entities:
|
||||
- name: Person
|
||||
color: "#5B8DEF"
|
||||
shape: circle
|
||||
icon: ti-user
|
||||
|
||||
- name: Email
|
||||
color: "#58CA8C"
|
||||
shape: square
|
||||
icon: ti-mail
|
||||
|
||||
- name: Domain
|
||||
color: "#F4B860"
|
||||
shape: diamond
|
||||
icon: ti-world
|
||||
|
||||
- name: Phone
|
||||
color: "#E36AC0"
|
||||
shape: hex
|
||||
icon: ti-phone
|
||||
|
||||
- name: Org
|
||||
color: "#C780E8"
|
||||
shape: triangle
|
||||
icon: ti-building
|
||||
|
||||
- name: Document
|
||||
color: "#C9C9C9"
|
||||
shape: square
|
||||
icon: ti-file
|
||||
|
||||
# Nodo tabla — cuadrado (issue 0010).
|
||||
- name: Table
|
||||
color: "#0EA5E9"
|
||||
icon: ti-database
|
||||
|
||||
relations:
|
||||
- name: owns
|
||||
color: "#888888"
|
||||
@@ -173,6 +171,10 @@ relations:
|
||||
- name: located_in
|
||||
color: "#FFB870"
|
||||
style: dashed
|
||||
|
||||
- name: CONTAINS_ROW
|
||||
color: "#0EA5E9"
|
||||
style: dotted
|
||||
)YAML";
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user