Bloccs.Web.Panels.Topology (bloccs_web v0.1.0)

Copy Markdown View Source

Panel 2 — the network graph drawn in the bloccs hexagon notation. The layout is computed server-side (Bloccs.Web.Topology.Layout) and rendered as a single SVG: one <.hex_glyph> per node, one cubic-bezier <path> per edge. Live node state (states[node_id]) is an assign-driven CSS class on each glyph — no client animation. P4 feeds states; in P3 every node is :idle.

Summary

Functions

render(assigns)

Attributes

  • network (:any) (required)
  • base_path (:string) (required)
  • states (:map) - Defaults to %{}.