0.1.4 • Published 4 years ago

@saowang/flowchart v0.1.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 years ago

flowchart

Generate flowchart from markdown like text via javascript.

Install

npm install @saowang/flowchart --save

demo

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>@saowang/flowchart</title>
</head>

<body>
    <pre><code>
        graph TD
        A[Hard1] -->|Text| B(Round)
        B --> C{Decision}
        C -->|One| D[Result 1]
        C -->|Two| E[Result 2]
    </code></pre>
    <pre><code>
        graph TD
        A[Hard2] -->|Text| B(Round)
        B --> C{Decision}
        C -->|One| D[Result 1]
        C -->|Two| E[Result 2]
    </code></pre>
    <pre><code>
        graph TD
        A[Hard3] -->|Text| B(Round)
        B --> C{Decision}
        C -->|One| D[Result 1]
        C -->|Two| E[Result 2]
    </code></pre>
    <script src="https://cdn.jsdelivr.net/npm/@saowang/flowchart/dist/flowchart.min.js"></script>
    <script>
        document.querySelectorAll("pre code").forEach(flowchart);
    </script>
</body>

</html>
0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago