0.0.26 • Published 2 months ago

@podlite/diagram v0.0.26

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

=Diagram block

=Diagram - use diagrams

To render beautiful graphs, sequence and Gantt diagrams and flowcharts, one can use the =Diagram blocks.

=begin Diagram 
graph LR
        A-->B
        B-->C
        C-->A
        D-->C
=end Diagram

sample1

Open this example in pod6.in

Flowchart

=Diagram
graph LR
    A[Square Rect] -- Link text --> B((Circle))
    A --> C(Round Rect)
    B --> D{Rhombus}
    C --> D

Flowchart

Open this example in pod6.in

=Diagram
graph TD
   A(Coffee machine <br>not working) --> B{Machine has power?}
   B -->|No| H(Plug in and turn on)
   B -->|Yes| C{Out of beans or water?} -->|Yes| G(Refill beans and water)
   C -->|No| D{Filter warning?} -->|Yes| I(Replace or clean filter)
   D -->|No| F(Send for repair)

Flowchart

Open this example in pod6.in

UML sequence diagram

=Diagram
sequenceDiagram
    autonumber
    Student->>Admin: Can I enrol this semester?
    loop enrolmentCheck
        Admin->>Admin: Check previous results
    end
    Note right of Admin: Exam results may <br> be delayed
    Admin-->>Student: Enrolment success
    Admin->>Professor: Assign student to tutor
    Professor-->>Admin: Student is assigned

Flowchart

Open this example in pod6.in

UML class diagram

=Diagram
classDiagram
   Person <|-- Student
   Person <|-- Professor
   Person : +String name
   Person : +String phoneNumber
   Person : +String emailAddress
   Person: +purchaseParkingPass()
   Address "1" <-- "0..1" Person:lives at
   class Student{
      +int studentNumber
      +int averageMark
      +isEligibleToEnrol()
      +getSeminarsTaken()
    }
    class Professor{
      +int salary
    }
    class Address{
      +String street
      +String city
      +String state
      +int postalCode
      +String country
      -validate()
      +outputAsLabel()  
    }

Flowchart

Open this example in pod6.in

Contributing

This is an open source program. Feel free to fork and contribute.

In order to keep the match between this documentation and the last release, please contribute and pull requests on the dedicated develop branch.

AUTHOR

Copyright (c) 2021 Alexandr Zahatski

License

Released under a MIT License.

0.0.25

2 months ago

0.0.26

2 months ago

0.0.23

6 months ago

0.0.24

3 months ago

0.0.22

8 months ago

0.0.21

9 months ago

0.0.20

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.17

10 months ago

0.0.16

11 months ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago