1263 Commits

Author SHA1 Message Date
Knut Sveidqvist
34ee8a0e21 Merge pull request #134 from bollwyvl/patch-1
Use a library-level variable for assigning ids
2015-03-10 20:06:43 +01:00
bollwyvl
d61aac362c Allow other forms of node selection for init()
The existing behavior of init will always re-render the whole page, and requires that a chart be classed `mermaid`.

This change allows the user to specify:
- a DOM Node (as from getQuerySelector)
- a DOM NodeList  (as from getQuerySelectorAll)
- an array of nodes (as from jQuery.find)
- a string (to be handed to getQuerySelectorAll)
2015-03-10 13:25:16 -04:00
bollwyvl
6aff481e9b Use a library-level variable for assigning ids
The current behavior is unexpected when re-running `init()`, as every run through will start with the first `.mermaid` it finds, and start re-indexing at 0, irrespective if the original `id=mermaidChart0` is still around.

This change ensures that successive runs will not clobber old ones.
2015-03-10 13:06:39 -04:00
knsv
3ae1b5f1a3 Fix for issue #129 - Possibility to set the width of the generated flowchart 2015-03-07 14:52:18 +01:00
knsv
cbebf126ce Fix for issue #128 - flowchart - styling of edges via css overrides specific styles set in the graph definition 2015-03-07 13:51:47 +01:00
knsv
3fedc1263c Fix for issue #126 2015-03-07 13:37:24 +01:00
knsv
f4b2211f8f Fix for issue #37
Updated dependencies to dagre/dagre-d3
2015-03-07 12:30:16 +01:00
knsv
bc5f73daa2 Fix for issue #37
Updated dependencies to dagre/dagre-d3
2015-03-07 12:28:52 +01:00
knsv
ec9094696b Modified the number of week for which the x-axis stays in week mode as discussed in issue #125 2015-03-05 08:12:17 +01:00
knsv
85cdfbaaf8 Modified the number of week for which the x-axis stays in week mode as discussed in issue #125 2015-03-05 08:11:29 +01:00
Knut Sveidqvist
421409181d Added the css files 2015-03-02 09:53:56 +01:00
knsv
cc1a4be15a Added default stylesheet and less structure to create new themes as described in issue #122 0.4.0 2015-03-01 16:48:16 +01:00
knsv
ead74558ea Added default stylesheet and less structure to create new themes 2015-03-01 16:29:41 +01:00
knsv
3c5a19e5a7 Gantt: Configurable format for dates on x-axis
Flowchart: Default styles for links as discussed in issue #31
2015-02-28 23:50:23 +01:00
knsv
8598a7d712 More forgiving flowcharts, space at the end of the line allowed 2015-02-25 07:57:26 +01:00
knsv
0955c4c428 Today line for gantt chart 2015-02-25 00:07:13 +01:00
knsv
182729e015 Small fixes for linting 2015-02-24 23:03:09 +01:00
Knut Sveidqvist
a7dd6a6614 Better width calculations for task texts 2015-02-24 15:48:41 +01:00
knsv
e5657d028d Better styling for gantt diagrams and addition of critical path, active and completed tasks 2015-02-22 20:18:44 +01:00
knsv
4078cf3aed Removed semantic-ui form package 2015-02-20 20:42:59 +01:00
knsv
a7339eaf1c Experimental support for gantt diagrams 2015-02-20 19:34:18 +01:00
knsv
2877501ff5 Experimental support for gantt diagrams 2015-02-20 19:06:15 +01:00
knsv
1b016bd412 First rendering draft 2015-02-20 16:22:37 +01:00
knsv
2512666f49 New release 0.3.5 2015-02-15 19:34:18 +01:00
knsv
074a819ca8 New release 0.3.4 2015-02-15 18:11:46 +01:00
knsv
c211434c38 Draft parser for gantt diagrams. 2015-02-08 20:07:15 +01:00
Knut Sveidqvist
7896a7152e Merge pull request #116 from fardog/cli-css
Adds CSS option to the CLI
2015-02-03 22:17:48 +01:00
fardog
3a96682b9c Adds CSS option to the CLI 2015-02-02 19:32:15 -08:00
Knut Sveidqvist
c4639d11c8 Merge pull request #112 from jasonbellamy/bower
Ignore all files except the license and dist/ folder when installing with Bower.
2015-01-29 20:59:19 +01:00
Jason Bellamy
10b47b5785 ignore all files except the license and dist/ folder 2015-01-28 12:03:19 -05:00
knsv
5452be9fed New release 0.3.3 2015-01-25 16:41:43 +01:00
knsv
4562a811fc Better margin calculation when there are several diagrams on one page. 2015-01-25 16:40:12 +01:00
knsv
910b90b79c Better margin calclulation when there are several diagrams on one page. 2015-01-25 16:39:34 +01:00
knsv
a38a156d3b Mirror actors below sequence diagram possible as described in issue #106 2015-01-25 14:24:58 +01:00
knsv
d3d44ec806 Api for validating the syntax without rendering 2015-01-25 13:06:25 +01:00
knsv
6612b3e01e Fix relatwed to issue number #54 - % in text 2015-01-24 19:33:10 +01:00
knsv
d0428d492b Fix for issue number #108 - v in text 2015-01-20 20:23:02 +01:00
knsv
ee6ad01209 Merge branch 'master' of https://github.com/knsv/mermaid
Conflicts:
	dist/mermaid.full.js
	dist/mermaid.full.min.js
	dist/mermaid.slim.js
	dist/mermaid.slim.min.js
2015-01-20 20:04:16 +01:00
knsv
33973354ed * Removed logging 2015-01-20 19:53:38 +01:00
knsv
2af4a1f9f8 * Removed logging 2015-01-20 19:52:13 +01:00
knsv
44a2e0472a * Draft implementation of info diagram
* Fix for issue #109
2015-01-20 19:48:33 +01:00
Knut Sveidqvist
699d3bca52 Merge pull request #107 from markdalgleish/require-d3
Require d3 directly to better support Node usage
2015-01-20 07:28:03 +01:00
Mark Dalgleish
50d285bc49 Require d3 directly to better support Node usage 2015-01-20 16:59:58 +11:00
knsv
48500652b3 Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration 2015-01-14 19:10:39 +01:00
knsv
8e050d4223 Merge branch 'jjmr-sequence_config_file' 2015-01-14 18:11:14 +01:00
knsv
73f567f3e2 Merge branch 'sequence_config_file' of https://github.com/jjmr/mermaid into jjmr-sequence_config_file
Conflicts:
	dist/mermaid.full.js
	dist/mermaid.full.min.js
	dist/mermaid.slim.js
	dist/mermaid.slim.min.js
	src/main.js
2015-01-14 18:10:21 +01:00
Knut Sveidqvist
1033a74970 Merge pull request #101 from bjowes/text-labels
Text based labels, new shape
2015-01-14 08:13:49 +01:00
Björn Weström
595fe1fd32 New build 2015-01-14 00:06:38 +01:00
Björn Weström
9095b2df97 Corrected example syntax 2015-01-14 00:06:14 +01:00
Björn Weström
8e45e7284b Removed extraction of dagre-d3
Pending resolution of a issue with globals
2015-01-14 00:05:58 +01:00