LeanUI Docs
← Open LeanUI Studio GitHub

02 · Graph Editor & All 69 Node Kinds#

The Graph Editor (◈ Graph) is a high-performance visual specification canvas featuring typed port validation, frustum culling, 3-tier Zoom Level-of-Detail (LOD), a minimizable 2D minimap, multi-selection operations, inline Live App View & Control Template Preview Nodes (app_preview, template_preview), visual logic & Lean 4 tactic proof editors, groups, nested sub-programs, and unified full-parity visual editing scopes for both Control Templates (❖) and Built-In Verified / Custom Component Templates.


Complete Catalog of 69 Node Kinds#

1. Full Lean 4 Proof Language Layer — 4 Kinds#

KindCategoryPurposeKey Ports
lean_typeLean 4Author full Lean 4 algebraic types (inductive, structure, abbrev, class) with type parameters and deriving clauses.In: uses · Out: decl
lean_defLean 4Pure Lean 4 functions (def, partial def, noncomputable def, instance, opaque) with optional @[simp] & termination_by. Directly callable from both Lean theorems AND App Computed/Predicate/Action expressions!In: uses · Out: decl, val
lean_theoremLean 4Standalone or app-coupled Lean 4 proofs (theorem, lemma, example, axiom) in tactic or term mode. Double-click or click ƒ to open the Visual Tactic Proof Builder.In: uses · Out: decl
lean_tacticLean 4Custom Lean 4 macro, syntax, notation, and @[simp] declarations usable inside theorem tactic proofs.In: uses · Out: decl

2. ViewModel, Complex Logic & Formal Proof Layer (Lean 4) — 11 Kinds#

KindCategoryPurposeKey Ports
stateViewModelTyped reactive state field (Nat, Int, String, Bool) with initState.In: mutate · Out: val
collectionViewModelTyped record list (List Row) with schema columns, initial rows, and .length/.count/.sum/.avg/.any/.all/.minOf/.maxOf/push/pop/take/drop/reverse/clear ops.In: mutate · Out: items
computedViewModelPure derived property (def ViewModel.<name>) evaluated from state, other computeds, and canvas lean_def functions. Double-click for Visual Logic Editor.In: in · Out: val
predicateViewModelBoolean guard / condition (Bool) used for button disabling, conditional gates, and filters. Double-click for Visual Logic Editor.In: in · Out: bool
actionViewModelPure state reducer branch (inductive Action + def update) with guarded assignments and direct lean_def calls. Double-click for Visual Logic Editor.In: trigger, guard · Out: effect
state_machineViewModelVerified Finite State Machine (FSM) with named states, initialState, terminalStates, and guarded transitions (from, event, to, guardExpr).In: trigger · Out: state, step, done
validatorViewModelMulti-rule validation pipeline evaluating ordered boolean rules (rules[]) into aggregate validity (valid), error count (errorCount), and first failure message (firstError).In: in · Out: valid, errorCount, firstError
invariantFormal ProofSafety invariant (def Invariant) proved over initState and every reachable transition. Double-click for Visual Logic Editor.In: check
proof_ruleFormal ProofUser-defined formal theorem (HoareTriple, ViewConstraint, or ReachableGoal) compiled directly to Lean 4 theorem rule_*.In: check, action
effectViewModelDeclarative side-effect descriptor (log, toast, http, storage, navigate) separated cleanly from pure reducer logic.In: trigger
subprogramModularEncapsulated nested MVU sub-graph with its own state, actions, views, and drill-down breadcrumbs. Double-click to enter.In: parent · Out: val

3. Formally Verified Data Sources & Relational Queries — 2 Kinds#

KindCategoryPurposeKey Ports
datasourceDataTyped external or local data connector across 9 providers: Online (hacker_news live HN Firebase API, rest, graphql, websocket), Firebase Realtime (firebase_rtdb, firestore with live REST or local multi-tab BroadcastChannel sync + declarative security rules), MS Access / Relational DB (ms_access, sql_db with Autonumber PK, Foreign Keys, inline Auto-Form with FK lookup dropdowns), and Local Files (local_file CSV/TSV/JSON/NDJSON browser upload & export). Verified by DATA001–DATA004 and Lean 4 data_sources_valid + foreign_keys_valid.In: refresh, param, mutate · Out: rows, count, loading, error
data_queryDataMS Access / SQL / Firestore declarative query pipeline supporting INNER/LEFT JOIN across sibling tables, reactive WHERE expressions, substring searchField, ORDER BY, LIMIT, and numeric sum/count aggregates. Verified by DATA005 and Lean 4 data_queries_valid.In: source, joinWith, filterVal · Out: rows, count, sum

4. Verified Design System, Resource Dictionaries & Templated Controls — 4 Kinds#

KindCategoryPurposeKey Ports
styleDesignNamed visual style token (tokenName, bgHex, fgHex, borderHex, fontSizePx, radiusPx, paddingPx) formally checked for WCAG AA contrast (≥ 4.5:1 or custom minContrastX10).Out: style
resourceDesign / i18nTyped Resource Dictionary (tokens[] with Light value + optional darkValue for colors, radii, fonts, lengths) AND multi-locale i18n bundle (locales[], entries[]) usable via {res:key} in Control Templates and Views. Verified for 100% locale coverage.Out: res
control_templateDesignAvalonia/WPF-style reusable control blueprint defining typed props[] ({tpl:propName}), visual parts[] (border, stack, row, text, badge, icon, progress, button, divider, content_presenter), {res:token} resource bindings, and stateTriggers[] (:hover, :active, :disabled, :checked). Verified by TPL001–TPL003 and Lean 4 control_templates_valid.In: res · Out: template
templated_controlViewInstantiates a wired control_template with propValues, optional res dictionary override, data & disabled bindings, onClick action/FSM dispatch, and child View projection into the template's ContentPresenter slot. Verified by TPL004.In: parent, template, res, style, data, disabled · Out: children, onClick

5. Large-Scale Routing, Cross-Module Composition & Live Canvas Previews — 7 Kinds#

KindCategoryPurposeKey Ports
app_previewPreviewEmbeds a live interactive App View preview directly on the 2D graph canvas (supports active module or cross-module targetModuleId with module_ref resolution, live action dispatch, and synchronized runtime state). See Chapter 10.In: state_in, style_in
template_previewPreviewEmbeds a live interactive Control Template preview directly on the 2D graph canvas for any built-in or custom control_template, with Light/Dark and Resource Dictionary token preview. See Chapter 10.In: template_in, style_in
module_refScaleTyped cross-module import referencing an exported State/Computed/Predicate from another module in the Solution.Out: val
groupOrganizationResizable, collapsible visual frame grouping related nodes; dragging the header moves all enclosed nodes together.—
rerouteRoutingCompact waypoint dot spliced onto any wire (Shift+Click on wire) to keep dense graphs cleanly routed.In: in · Out: out
portal_outRoutingWireless sender broadcasting a signal on a named channel (#channel) to eliminate long crossing wires.In: in
portal_inRoutingWireless receiver subscribing to #channel (click ⇄ chip on node to jump straight to its peer).Out: out

5. View Layout, Surfaces & Data Views — 9 Kinds#

KindPurposeKey Ports
containerSemantic HTML container (div, section, form, main, header, footer, article) with col/row/grid layout & style variants.In: parent, style, res · Out: children
scrollBounded Scroll View (vertical, horizontal, or both) with configurable maxHeightPx (formally verified ≥ 80px in Lean 4 VNode.wellFormed), WCAG-compliant scrollbar styling, and scrollability shadow hints.In: parent, style · Out: children
cardStructured card surface with optional header title, subtitle, and footer.In: parent, style, res · Out: children
modalConditional modal dialog box gated by a boolean open binding.In: parent, open, style, res · Out: children
accordionNative HTML <details>/<summary> collapsible disclosure section with smooth animation.In: parent, style · Out: children
conditionalBoolean visibility gate (when port, optional invert flag) controlling child rendering.In: parent, when · Out: children
tabsMulti-tab container switching between child view panels.In: parent, active · Out: children
listOrdered/unordered reactive list bound to a collection with {field} row templates and optional row remove button.In: parent, items
tableSortable, striped data table bound to a collection with typed column definitions and optional row deletion.In: parent, rows

5. Controls, Media & Feedback — 15 Kinds#

KindPurposeKey Ports
textTypographic element (h1, h2, h3, p, span, code, badge) with optional prefixText/suffixText and dynamic text or i18n res binding.In: parent, text, style, res
statKPI / metric tile with label, dynamic value, unit, and trend indicator (up/down/neutral).In: parent, value, style
imageVerified image element enforcing non-empty accessible alt text (A11Y verification).In: parent, res
inputText, number, email, password, or checkbox input bound directly to a state field (generates verified setter action).In: parent, value
sliderNative bounded range slider (min, max, step, unit) formally verified in Lean 4 (min < max, bounds safety, aria-valuetext).In: parent, value
textareaMulti-line text input bound to a String state field.In: parent, value
selectNative dropdown bound to a String state field with configurable options.In: parent, value
toggleAccessible switch bound to a Bool state field.In: parent, checked
buttonInteractive button firing an Action via onClick, optionally gated by a Bool disabled port and styled/localized via style/res.In: parent, disabled, style, res · Out: onClick
progressProgress bar bound to value and optional max ports with percentage readout.In: parent, value, max
alertStatus banner (info, success, warning, danger) with optional visible and dynamic text bindings.In: parent, visible, text
navbarTop navigation bar with brand title and link list, supporting style and i18n res bindings.In: parent, style, res
badgeStatus pill (success, info, warning, danger, neutral) with style/res support.In: parent, style, res
avatarCircular user avatar (image src or monogram initials + sizePx).In: parent, res
dividerHorizontal separator rule with optional centered label.In: parent

7. Expanded Visual UI Elements — 12 Kinds#

KindPurposeKey Ports
gridResponsive CSS Grid layout container (columns, minColWidthPx, gapPx) verified by VIEW006.In: parent, style · Out: children
split_viewTwo-pane horizontal or vertical resizable split layout (orientation, ratioPercent).In: parent, style · Out: children
drawerSlide-out drawer panel (left, right, bottom) toggled reactively via boolean open binding.In: parent, open, style · Out: children
chartPure inline SVG data visualization (bar, line, donut, sparkline) bound to any collection, datasource, or data_query (items, labelField, valueField, accentHex, heightPx). Verified by VIEW007.In: parent, items, style
stepperMulti-step progress wizard (steps[], horizontal/vertical) driven reactively by step : Nat. Verified by VIEW008.In: parent, step, style
breadcrumbHierarchical breadcrumb navigation trail (items[], separator).In: parent, style
chip_groupInteractive selectable pill/chip group (options[]) with two-way String state binding. Verified by VIEW011.In: parent, value, style
date_pickerNative date / time / datetime-local picker with optional minDate/maxDate bounds and two-way String binding.In: parent, value, style
color_pickerNative color swatch picker with preset swatches, hex readout, live WCAG contrast badge, and two-way String binding. Verified by VIEW010.In: parent, value, style
ratingAccessible interactive star rating control (maxStars, readonly) with two-way bounded Nat binding. Verified by VIEW009.In: parent, value, style
code_blockSyntax-highlighted code viewer (lean4, typescript, html, json) with optional line numbers and reactive text binding.In: parent, text, style
tree_viewCollapsible hierarchical tree view (items[] with parentId and optional count/type badge).In: parent, style

Visual Logic & Lean 4 Tactic Proof Editor (ƒ)#

Every logic-bearing node (computed, predicate, action, invariant, proof_rule, and lean_theorem) has a built-in Visual Logic & Tactic Proof Editor (ƒ):

  • Expression & Action Mode (49 Logic Kinds): Covers Arithmetic (+, -, *, /, %, **, min, max, abs, clamp, gcd, isEven, isOdd, between, lerp), Comparisons, Boolean Logic (&&, ||, !, =>, iff, xor, ??), Strings (length, contains, startsWith, toUpper, toLower, trim, replace, slice, concat), Collections (length, count, sum, avg, any, all, minOf, maxOf, push, pop, take, drop, reverse), AND clickable λ lean_def Call nodes invoking user-authored Lean 4 functions on the canvas!
  • Visual Lean 4 Tactic Proof Mode (lean_theorem): Double-click any lean_theorem node (or click ƒ) to visually chain Lean 4 tactics (intro, simp, rw, cases, induction, split, apply, exact, have, omega, decide, rfl, constructor, linarith, aesop, custom) with live Lean 4 theorem code preview and bidirectional sync (tacticsToLogicGraph ↔ logicGraphToTactics).

Unified Main-Canvas Visual Editing for Control Templates (❖) & Built-In / Custom Templates#

LeanUI Studio uses the exact same full-featured main Graph Canvas for BOTH control_template blueprints AND all Built-In Verified / Custom Component Templates — giving both scopes 100% parity with main editing while specializing the Palette, Breadcrumb Bar, Inspector, Live Preview, Verification, and Lean 4 Proving:

  • Scope 1 — ControlTemplate Visual Graph Scope (❖, 5 First-Class Node Kinds):
    • Open it by double-clicking any control_template node on the Canvas, clicking the ❖ chip on a control_template or templated_control card header, clicking ❖ Open Visual Template Designer in the Inspector, clicking ❖ in the ✓ Proofs panel, or via ❖ Edit Node Graph in the Templates dialog.
    • 100% Main-Canvas Parity: Powered by the bidirectional SpecGraph compiler (controlTemplateToSpecGraph ↔ specGraphToControlTemplate) and 5 first-class category: 'template' node kinds (tpl_prop, tpl_resource, tpl_part, tpl_trigger, tpl_root). Every main editor tool works seamlessly inside a ControlTemplate: infinite pan/zoom, minimizable Minimap, Libavoid/ELK obstacle-avoiding Ortho/Curve/Line wire routing, reroute waypoints, wireless portal_out/portal_in portals (transparently resolved during compilation!), group frames, marquee multi-selection, Undo/Redo, Copy/Cut/Paste/Duplicate, Align/Distribute, Bypass & Heal (⌥⌫), all 5 Auto-Layouts, Palette drag-and-drop with ghost preview & magnetic auto-connect, and Causal Wire Trace.
    • Specialized for ControlTemplates:
    • Nested Breadcrumb Bar: ⌂ Parent › ❖ ControlTemplate: [Name] [card ▾] [root: Border ▾] · [λ Prove] [✓ Apply & Back] [✕ Cancel] — supports switching Root Container (border, stack, row, grid, scroll, card, panel, button) inline and nesting inside Sub-Programs AND Built-In Templates!
    • Full 36-Control Nesting Inside Templates: Wire tpl_root.children → ANY ViewNode.parent (and nest ContentPresenter inside any container via parent : VNode) to compose arbitrary multi-level UI hierarchies (grid, split_view, scroll, card, accordion, tabs, conditional, stat, chart, slider, rating, toggle, button, code_block, tree_view, etc.) inside any ControlTemplate, with {tpl:...} / {res:...} interpolation & direct tpl_prop / tpl_resource port wiring verified in both @leanui/verifier and Lean 4 control_templates_valid!
    • Scope-Aware Node Palette: Promotes the highlighted Control Template Nodes (Active Scope) section while keeping all 36 View controls at full contrast and auto-wiring newly added controls into the selected container or tpl_root.children.
    • Specialized Inspector & Configurable Root Containers: Configure the Template Root's container element & layout (Border, StackPanel, RowPanel, Grid with columns, ScrollView with bounded max height, elevated Card, chrome-free Panel, or semantic <button>), wire {res:...} / {tpl:...} directly into tpl_root's bg/fg/border ports, edit live sampleValue, pick bound ResourceBundle tokens with color swatches, use native color pickers, and click One-Click Canvas Wiring chips (→ text:{tpl:...}, → bg:{res:...}, → fg:{res:...}).
    • Live WYSIWYG Preview Dock: Interactive State Simulator (Normal / :hover / :active / :disabled / :checked), Light/Dark Resource Dictionary toggle, Locale (EN / DE), ContentPresenter Slot Sample, click-any-part to select its tpl_part node on the Main Canvas, and drag tpl_part nodes vertically to reorder.
    • Real-Time Verification & Lean 4 Proving: Instant TPL001–TPL003 diagnostics pinned to offending tpl_part/tpl_resource/tpl_root nodes plus one-click λ Prove verifying theorem control_templates_valid : ControlTemplatesValid controlTemplates := by decide in both Lake & browser WASM!
  • Scope 2 — Built-In Verified & Custom Component Templates (Templates dialog):
    • Click ◈ Edit Visually on any Built-In Verified Template (e.g. Bounded Counter Block, Lean 4 Function + Proof Pair, Resource + Templated Control Kit, etc.) or My Custom Template to open its full node-and-wire graph on the main Studio Canvas with a specialized editing banner featuring inline Name, Category, and Description inputs, direct λ Prove, ✓ Save Template, ⧉ Save Copy, ↺ Reset Default, and ✕ Exit.
    • Seamless Nested Drill-Down: While editing a Built-In Verified Template such as Resource + Templated Control Kit, double-clicking its InfoTileTemplate node drills right into Scope 1 (⌂ Built-In Template › ❖ ControlTemplate), and clicking ✓ Apply & Back writes your updated parts/props/triggers straight back into the Built-In Template!
    • Save any canvas selection (or full graph) into My Custom Templates, update from canvas (↻ From Canvas), or fork any built-in template (⧉ Fork).

Multi-Selection, Groups, Sub-Programs & Templates#

  • Multi-Selection: Hold Shift or Cmd/Ctrl while clicking nodes, press Cmd/Ctrl+A to select all, or switch to Select mode in the bottom Canvas HUD to drag a marquee box.
  • Selection Action Bar: Selecting 1+ nodes displays a floating bar with Dup (⌘D), Group (⌘G), ↗ Sub (extract selection into a nested Sub-Program), ⊡ Fit (Auto-Size Selected), ↔ W / ↕ H / ⤢ Size (Match Width / Height / Both), Align (Left / Center / Right / Top / Middle / Bottom), Distribute (Horizontal / Vertical), and Delete.
  • Sub-Program Drill-Down: Double-click any subprogram node (or click ↗) to enter its inner graph; use the breadcrumb bar (⌂ Parent › Sub-Program) to navigate back up at any depth.
  • Reusable Templates: Click Templates in the topbar or Palette to insert pre-wired multi-node patterns (e.g., Bounded Counter, Searchable List, Validated Input, Modal Confirmation) directly onto the canvas.

Universal Node Resizing, Smart Guides & Auto-Size All#

Every resizable node kind — including Live App View Previews (app_preview), Template Previews (template_preview), Group frames (group), and all standard View, ViewModel, Data, Design, and Lean 4 nodes — supports industry-standard interactive resizing and automatic content-aware sizing:

  • 8-Handle Interactive Resizer: Hover or select any node or Group frame to reveal 4 edge rails (N, E, S, W) and 4 corner handles (NW, NE, SE, SW) with live 60fps wire re-routing and minimap updates:
    • Shift + Drag: Toggle Aspect Ratio Lock dynamically mid-drag.
    • Alt / Option + Drag: Resize symmetrically from the node's center.
    • Cmd / Ctrl + Drag: Temporarily bypass grid and magnetic guide snapping for free pixel precision.
    • Escape during drag: Cancel and smoothly restore the original dimensions and position.
    • Double-click any resize handle: Instant Fit-to-Content (E/W fits width, N/S fits height, corners fit both dimensions — measuring live rendered UI content for preview nodes).
  • Magnetic Smart Guides & Live Dimension HUD: While dragging any handle, LeanUI renders live cyan neighbor edge/center alignment guides, magenta equal-dimension match brackets (=W / =H), and a floating W × H Dimension HUD pill showing active modifier badges (🔒 Ratio, ⊕ Center, =W, =H, Free).
  • Universal "Size & Layout" Inspector Card: Available on every resizable node with:
    • Sizing Modes: Hug (natural content default) | Auto (content-aware fit) | Fixed (explicit pixel dimensions).
    • Exact W × H Inputs, Aspect Ratio Lock (🔒), Size Lock (🔐) (protects nodes from accidental drags or bulk auto-resize), ⊡ Fit Content, ↺ Reset, and collapsible Min / Max Constraints.
  • Auto-Size All Nodes & Multi-Select Matching:
    • Click ⊡ Size in the bottom Canvas HUD (or use the right-click Auto-Size Graph menu / ⌘K Command Palette) to auto-size all unlocked nodes with Compact, Comfortable, or Expanded density, automatically resolving sibling overlaps and re-wrapping Group frames.
    • Toggle Auto-Size on Layout (context menu or ⌘K) to automatically size all nodes right before running any of the 5 size-aware Auto-Layout algorithms (layered, hierarchical, tree, grid, grouped).
    • Select 2+ nodes to Match Width (↔ W), Match Height (↕ H), or Match Size (⤢ Size) from the floating Selection Bar, Inspector, context menu, or ⌘K Command Palette.
    • All sizing operations (auto_size_all, auto_size_selected, reset_sizes, match_width, match_height, match_size, auto_fit_groups, apply_preview_preset, and apply_layout(autoSizeNodes: true)) are also exposed to AI agents via @leanui/mcp-server.
LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
Live Annotated 8-Handle Node Resizing & Embedded Live App Preview Card (with Resize Handles, Smart Guides & Auto-Size Callouts) Live Annotated 8-Handle Node Resizing & Embedded Live App Preview Card (with Resize Handles, Smart Guides & Auto-Size Callouts)
Live Annotated 8-Handle Node Resizing & Embedded Live App Preview Card (with Resize Handles, Smart Guides & Auto-Size Callouts)

Export Diagrams as SVG, High-DPI PNG & Multi-Page PDF#

  • Open Export ▾ → 🖼 Export Diagram (SVG / PNG / PDF)…, click ⤓ Export in the bottom Canvas HUD, right-click the canvas, or press ⌘K and search Export Visual Diagram.
  • Export any Studio stage mode (Graph, Timeline Storyboard, App Flow, CAD Explode, 3D Orbit, Multi-View, Solution Stages, Prototype Flow) in Clean (initState), Current Live State (including runtime values, selection & causal wiring trace), or Timeline History!
  • Choose SVG (crisp self-contained vector + Copy SVG), PNG (1× / 2× Retina / 3× Print + Copy PNG), or PDF (Auto-Fit, A4 Landscape, 16:9 Slide, Multi-Page Timeline History Book, or Complete Architecture Deck combining all modes in one PDF!), with optional Auto-Annotate Help Callouts (① ② ③…).

Infinite Canvas, Drag & Drop, Wire Splitting & Auto-Connect#

  • Truly Infinite Canvas (-∞ .. +∞):
    • Drag nodes freely into negative left/top and arbitrarily large positive coordinates with zero clipping of nodes or SVG wires.
    • Synchronized dot grid pans and scales cleanly with zoom (12%–200%), anchored around a subtle (0, 0) origin crosshair and live world cursor readout (X, Y) in the top Canvas HUD.
    • Ergonomic Panning: Pan from empty space, hold Space + Drag or Middle-Click Drag from anywhere (even over nodes or in Select mode), or drag any node/palette item/wire near a viewport border to trigger smooth Edge Auto-Panning.
    • Press F to fit selected nodes (or the whole graph) into view, or 0 to reset to (0, 0) at 100%.
  • Palette & Solution Explorer Drag-and-Drop with Live Preview:
    • Drag any of the 39 Node Palette items onto the canvas to see a live zoom-scaled Node Card Ghost (complete with typed ports and action status pill). Clicking a palette item still adds it immediately for single-pointer accessibility.
    • Drag any Module row from the Solution Explorer onto the canvas to drop a pre-linked module_ref node referencing that module's primary export.
    • Hold Alt while dragging to suppress wire-splitting and magnetic auto-connect for pure free placement, or press Esc to cancel.
  • Dropping Into Wires (Split & Tap) + Existing-Node Insertion:
    • Drop a pass-through node (computed, predicate, card, container, conditional, accordion, reroute, etc.) onto any compatible wire to ✂ Split it (A → New → B), with live emerald split highlight and dashed preview wires before release.
    • Drop a sink node (invariant, proof_rule, text, alert, effect, etc.) onto a compatible wire to ⑂ Tap / Branch the upstream signal while keeping the original wire intact.
    • Drag any existing single node on the canvas directly onto a wire to splice or tap it with the exact same live preview!
  • Magnetic Auto-Connect:
    • When dropping a node near compatible existing nodes, LeanUI highlights target ports and draws live dashed ⚡ Auto-Connect preview wires (fromPort→toPort), wiring automatically on release (respecting single-input ports and natural left-to-right flow).
  • Dual Drag-to-Wire / Click-to-Wire & Wire Context Menu:
    • Either click source port → target port OR press-and-drag directly from a port! Dragging magnetically snaps to compatible ports (or drops onto any compatible node body to auto-pick its best port), and releasing in empty space opens the Smart Add & Auto-Wire picker.
    • Double-click (or Shift+Click) any wire to splice a reroute waypoint; deleting a reroute automatically heals the wire (upstream → downstream).
    • Right-click any wire for the Wire Context Menu: Insert Reroute Waypoint, ⇄ Split into Wireless Portals, Insert Compatible Node, or Delete Wire.
    • Press Alt + Backspace (or right-click node → Bypass & Heal Wires) to remove a middle node while automatically reconnecting compatible upstream and downstream wires.

Automatic Layout, Wire Routing & Causal Trace#

  • 5 Automatic Layout Algorithms (topbar dropdown + Layout button):
    • DAG Layered (layered) — Sugiyama-style topological columns left-to-right.
    • Swimlanes (hierarchical) — Horizontal architectural lanes separating State, Logic, Actions, Proofs, and Views.
    • Auto-Grouped (grouped) — Automatically clusters nodes by domain into visual group zones.
    • View Tree (tree) — Hierarchical layout emphasizing parent → child UI tree structure.
    • Compact Grid (grid) — Dense uniform grid for scanning large graphs quickly.
  • Obstacle-Avoiding Wire Routing Engine (3 Modes): Click Curve / Ortho / Line in the bottom Canvas HUD to cycle between:
    • Orthogonal (Ortho): Libavoid/ELK-inspired sparse orthogonal visibility grid + direction-aware constrained A* (penalizing bends, reverse stubs, and corridor congestion), Left-Edge parallel segment nudging to fan overlapping tracks out cleanly inside corridors, rounded corner fillets, and miniature semicircular crossing bridge hops where horizontal wires jump over vertical wires.
    • Bezier Curves (Curve): Classic smooth cubic S-curve when line-of-sight is unobstructed, automatically transitioning to a corridor-constrained cubic fillet spline when intermediate nodes or back-edges intervene so wires never pass underneath node cards.
    • Straight / Polyline (Line): Direct line when completely clear, or a pull-string line-of-sight visibility polyline wrapping cleanly around obstacle corners with preserved port exit/entry stubs.
    • On-Wire Labels & Exact Hit-Testing: Inline fromPort→toPort trace pills and delete badges are anchored directly onto the routed wire's longest unobstructed segment (with label-to-label collision nudging), and drag-and-drop wire splitting/tapping hit-tests against the exact routed polyline.
  • Causal Wiring Cone (Trace): Toggle Trace in the bottom Canvas HUD to illuminate every upstream input (↑) and downstream consumer (↓) of the selected node(s) with inline fromPort→toPort labels.
  • Large-Graph Performance: Graphs with >35 nodes automatically enable frustum culling, 3-tier Zoom LOD (Full / Mid / Macro), and a hardware-accelerated 2D Minimap (Map toggle; click or drag to pan).

Node KindCategoryInputsOutputsPurpose & Interactions
nav_railNavigationparent, active (String/Nat), collapsed (Bool), style, reschildren, onSelectCollapsible sidebar / icon rail / bottom navigation bar with badges; clicking items updates bound route state & fires onSelect.
command_barNavigationparent, query (String), style, reschildren, onCommandSticky workspace command & search toolbar with shortcut badges (F5, ⌘P), live search binding, and action triggers.
dock_layoutDockingparent, activePane (String), stylechildrenFull multi-zone IDE docking workspace (left, center, right, bottom) with zone visibility toggles & stacked zone tabs.
dock_paneDockingparent, open (Bool), stylechildren, onCloseTitled dockable panel slotted into left / center / right / bottom / floating with collapse (▾), float (❐), and close (×).
tab_viewTabbed Viewsparent, activeTab (Nat/String), style, reschildren, onTabChange, onTabAddRich tabbed container (underline, pills, cards, segmented, vertical + top/left/bottom) with optional closable (×) and addable (+) tabs.
tab_pageTabbed Viewsparent, disabled (Bool), stylechildrenSemantic named tab page with icon, badge, layout (col/row/grid), and formal disabled guard wired directly inside a tab_view.
LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
WorkspaceIDE Showcase — command_bar, dock_layout, 4 dock_panes, cards tab_view & 3 tab_pages WorkspaceIDE Showcase — command_bar, dock_layout, 4 dock_panes, cards tab_view & 3 tab_pages
WorkspaceIDE Showcase — command_bar, dock_layout, 4 dock_panes, cards tab_view & 3 tab_pages
LIVE GENERATED SVG · AUTO-UPDATED ON BUILD
Open SVG ↗
NavAnalyticsPortal Showcase — Collapsible nav_rail, command_bar & pill tab_view NavAnalyticsPortal Showcase — Collapsible nav_rail, command_bar & pill tab_view
NavAnalyticsPortal Showcase — Collapsible nav_rail, command_bar & pill tab_view
Diagram Preview
Enlarged diagram