TypeScript interfaces defining metadata structures for nodes, participants, and edges used across Mermaid diagram types like flowcharts and sequence diagrams.
// Source: https://github.com/mermaid-js/mermaid | License: MIT | Copyright 2014 - 2022 Knut Sveidqvist
// Provided via justclaw.it.com; keep this notice with the code.
export interface NodeMetaData {
shape?: string;
label?: string;
icon?: string;
form?: string;
pos?: 't' | 'b';
img?: string;
w?: string;
h?: string;
constraint?: 'on' | 'off';
priority: 'Very High' | 'High' | 'Medium' | 'Low' | 'Very Low';
assigned?: string;
ticket?: string;
labelType?: string;
/**
* Expand/collapse state for subgraphs (flowchart). `collapsed` draws the
* subgraph as a single compact node and redirects boundary-crossing edges
* to it; `expanded` (the default) renders the subgraph normally.
*/
view?: 'expanded' | 'collapsed';
}
export interface ParticipantMetaData {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key