Skip to content

Instantly share code, notes, and snippets.

@ca0v
Created February 24, 2020 19:42
Show Gist options
  • Select an option

  • Save ca0v/d019b29e044598d6b386ccdc81b6887f to your computer and use it in GitHub Desktop.

Select an option

Save ca0v/d019b29e044598d6b386ccdc81b6887f to your computer and use it in GitHub Desktop.

Revisions

  1. ca0v created this gist Feb 24, 2020.
    38 changes: 38 additions & 0 deletions mermaid.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    ```mermaid
    classDiagram
    class baseContract
    class instance1
    class instance2
    class instance3
    class API
    baseContract <|.. base
    base <|-- instance1
    base <|-- instance2
    base <|-- instance3
    instance1 o-- API
    instance2 o-- API
    instance3 o-- API
    baseContract: number id
    class instance1 {
    +getSpeed()
    }
    instance2: +getElevation()
    instance3: +getTemperature()
    ```

    ```mermaid
    stateDiagram
    [*] --> click
    note right of click
    user clicks mouse
    or touches screen
    end note
    click --> trigger:handler
    trigger --> geocode1:start
    trigger --> geocode2:start
    trigger --> geocode3:start
    geocode1 --> aggregator:wait
    geocode2 --> aggregator:wait
    geocode3 --> aggregator:wait
    aggregator --> [*]:all
    ```