Skip to content

It's region based on mermaidjs work, it generate some diagrams by interpreting and converting your text code.

License

Notifications You must be signed in to change notification settings

sdembele/apex_mermaid_diagram

Repository files navigation

APEX Mermaid Diagrams Plugin

It's region based on mermaidjs work, it generate some diagrams by interpreting and converting your text code.

mermaidchart

For an sample, paste the code below and click Generate button to see the result:

For Flowchart

graph TD
    A-->B;
    A-->C;
    B-->D;
    C-->D;

Try it

Sequence diagram

sequenceDiagram
    Alice->John: Hello John, how are you?
    loop Every minute
        John-->Alice: Great!
    end

Class diagram

classDiagram
      Animal <|-- Duck
      Animal <|-- Fish
      Animal <|-- Zebra
      Animal : +int age
      Animal : +String gender
      Animal: +isMammal()
      Animal: +mate()
      class Duck{
          +String beakColor
          +swim()
          +quack()
      }
      class Fish{
          -int sizeInFeet
          -canEat()
      }
      class Zebra{
          +bool is_wild
          +run()
      }
stateDiagram-v2
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]

Enjoy

About

It's region based on mermaidjs work, it generate some diagrams by interpreting and converting your text code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published