1.0.101 • Published 4 years ago

lamed_flowchart v1.0.101

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

npm

Project was used in documentation of many projects successfully. It is currently in process of a major update. Below is what is planned. Wait for version 1.1.0. (Part of See it Done project)

User Story:

  • AS A project manager, strategist, analyst, developer
  • I WANT TO easily and visually map & change complex processes
  • SO THAT it is usable, understandable and repeatable.

downloads Build Status codecov CodeFactor Code size license

NPM JavaScript Style Guide

Notes:

  • The process flow from top to bottom.
  • When a condition is used, the true part must be on the following line. (All lines are skipped until the true part is located)

See other Samples

Install

npm

npm i lamed_flowchart -s

yarn

yarn add lamed_flowchart

Usage

Node

const _lflow = require('lamed_flowchart');

Background

Building of flowcharts can be slow and time consuming process. To fasilitate this process some projects like flowchart.js, and mermaid was created. These projects still leave a gap for improvement and an even simpler notation can be used to create flowcharts. See definition below.

Markdown definition

Tags

  • '***' = Any combination of letters or numbers
TagMarkdown patternSample ItemDescription
start(***)(start)First occurrence indicate the start of the process.
stop(***)(stop)Second occurrence of (*) indicate the end of the process.
task***taskIndicate a task.
parallel task/***/ // {{top}} // {{right}} // {{down}} /]/parallel/ // task1 // Task2 // Task3 /]Indicate a parallel task.- can split into 3 other tasks
process[***][process]Indicate a subroutine. - Will add :>process< link.
input/***//input output/Indicate an input output to the process.
choice<<*>> ?? ** >>\<\> truePart ?? falsePart >>Indicate a condition in the process.- Line must start with '<<'
colour|--colour--|task |--red--|Colour the line leaving task red
comment-- ***-- My commentComments are on seperate lines. Comment lines are ignored.

Tag modifiers

Tag modifiers are set within above tags and change default behavior

ModifierMarkdown patternSample ItemDescription
id{{*}}task{{5}} or {{add}}Add itemWhen flow goes back to another flow, it is easier to ref it by an identifier.
state__*__task __default__Add state to the tag. (See State table below)
right-->task--> -->taskNext item must be to the right.
left<--<--task task<--Next item must be to the left
link:>link<:Task:>https://www.google.com<:Add link to the item and open on current chrome tab.
linkNew:>link<::Task:>https://www.google.com<::Add link to the item and open on new chrome tab.

State Table

  • Specify '__' to get list of available flow states. (ex: Task __).
  • To use the default state do following Task __default__ (Task with grey background)
  • To set default for all tags, set it on the first line of definition.
Namefillsizecolorweightyesno
__default__#CCCCCC (grey)12
__setLow__#58C4A3 (green)12
__setMedium__yellow14redbold
__setHigh__red16whitebold
__chooseTrue__TrueFalse
__chooseApprove__ApprovedRejected
__

Todo items

Todo items are planned for a future phase of the project.

ModifierMarkdown patternSample ItemDescription
todo+&Todo heading - todo1 - todo2 - todo3&+[Task +&Testing- Create unit tests, - do test, - done&+]Create list of todo items as a link. - There can not be another link defined (:>link<:>)
todoFile+&Todo_filename&+Task +&TodoFile.md&+Use items from TodoFile.md as to do items. (Start and end modifier is in the same line)

Sample

Get lamed_Flowchart javascript library for the browser.

MIT license

1.0.101

4 years ago

1.0.100

4 years ago

1.0.95

4 years ago

1.0.94

4 years ago

1.0.93

4 years ago

1.0.92

4 years ago

1.0.91

4 years ago

1.0.90

4 years ago

1.0.88

4 years ago

1.0.89

4 years ago

1.0.87

4 years ago

1.0.86

4 years ago

1.0.85

4 years ago

1.0.84

4 years ago

1.0.83

4 years ago

1.0.82

4 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.8

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.7

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago