← Về thư mục
📄 / / projects / tech / OpenMAIC / app / packages / @openmaic / generation / templates / diagram-content / user.md

Create an interactive diagram for: {{title}}

Diagram Type

{{diagramType}}

Description

{{description}}

Key Points

{{keyPoints}}

{{#if hasNodeCount}}

Node Count Constraint

{{#if hasPrescribedNodes}}

Prescribed Nodes

{{prescribedNodes}}

Language

{{languageDirective}}


Generate a complete HTML diagram with:

  1. SVG nodes with icons, labels, and click-to-show details
  2. Edges with arrows connecting nodes (calculate endpoints from node dimensions)
  3. Step-by-step reveal (下一步/上一步)
  4. High contrast: White nodes on dark background, light edge labels
  5. Mobile-friendly: Collapsible sidebar, doesn't block diagram
  6. First node visible on load

Embed config in <script type="application/json" id="widget-config">.