mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 16:16:41 +02:00
20 lines
473 B
TypeScript
20 lines
473 B
TypeScript
import type { DiagramMetadata } from '../types.js';
|
|
|
|
export default {
|
|
id: 'flowchart-v2',
|
|
name: 'Flowchart',
|
|
description: 'Visualize flowcharts and directed graphs',
|
|
examples: [
|
|
{
|
|
title: 'Basic Flowchart',
|
|
isDefault: true,
|
|
code: `flowchart TD
|
|
A[Christmas] -->|Get money| B(Go shopping)
|
|
B --> C{Let me think}
|
|
C -->|One| D[Laptop]
|
|
C -->|Two| E[iPhone]
|
|
C -->|Three| F[fa:fa-car Car]`,
|
|
},
|
|
],
|
|
} satisfies DiagramMetadata;
|