Commit Graph

2195 Commits

Author SHA1 Message Date
Knut Sveidqvist 2278325822 Merge pull request #253 from gibson042/optional-terminal-newline
Make sequenceDiagram terminal newline optional
2015-11-06 20:17:19 +01:00
Richard Gibson dbd63ff797 Make sequenceDiagram terminal newline optional
Fixes gh-229
2015-11-06 10:47:59 -05:00
Richard Gibson 26ebbf82ee Support sequenceDiagram "over" notes 2015-11-06 03:00:02 -05:00
knsv f79577c816 Merge remote-tracking branch 'origin/master' 2015-11-06 07:23:44 +01:00
Knut Sveidqvist ecca3588bc Merge pull request #251 from gibson042/gh-247
Properly handle "rest of line" statements
2015-11-06 07:23:23 +01:00
Richard Gibson ec37fc897b Clean up lexer definitions 2015-11-06 00:05:16 -05:00
Richard Gibson 5666d5f298 Properly handle "rest of line" statements
Closes gh-247
2015-11-06 00:05:00 -05:00
Richard Gibson 6ac0c00e30 Add no-label test cases 2015-11-06 00:04:01 -05:00
Richard Gibson 990cab53a9 Add special-character test cases 2015-11-06 00:04:01 -05:00
Richard Gibson 18766466c6 Minor test cleanup 2015-11-06 00:04:01 -05:00
Richard Gibson 73e1957c62 Be explicit about testing semicolons 2015-11-06 00:04:00 -05:00
Richard Gibson e0a31feaec Make testing quieter 2015-11-06 00:04:00 -05:00
Tomasz Szczęśniak-Szlagowski ef290796e0 Fix a bug in CSS cloning error handler
Firefox throws SecurityError when `cssRules` is accessed, which exposes
this bug.

Fixes #245
2015-11-05 19:38:36 +00:00
knsv c8fef693fa Added extension markers for classDiagrams
Added styling (forest) for classDiagrams
2015-11-04 20:38:14 +01:00
Martin Zaloudek 5d7815c98a flowRender.js - Fix fontAwesome icon insert
Missing ending tag </i> in fontAwesome icon inserting.
2015-11-04 15:46:31 +01:00
knsv 7fe5b5af7a Rendering of class diagrams with methods and members represented 2015-11-01 19:00:14 +01:00
knsv 068b7ce6a9 Simple rendering of class diagrams 2015-10-30 11:34:24 +01:00
knsv 7a58e8261f Simple rendering of class diagrams 2015-10-30 10:47:25 +01:00
knsv 01ddfea478 1st version parsing for class diagrams, parsing draft completed, starting rendering work 2015-10-29 07:49:08 +01:00
knsv a694f61003 1st version parsing for class diagrams, fetching data from parsing 2015-10-28 08:12:47 +01:00
Tomasz Szczęśniak-Szlagowski 51d5c90c9f Add build with new ellipse syntax 2015-10-26 23:03:07 +00:00
Tomasz Szczęśniak-Szlagowski e4d25ed9cd Add support for node(-ellipse shape-) in flow charts 2015-10-26 23:03:07 +00:00
knsv 1a60b6e412 1st version parsing for class diagrams 2015-10-26 08:03:30 +01:00
knsv dd6495abf6 1st version parsing for class diagrams 2015-10-25 18:09:58 +01:00
knsv 35865ba70e Starting work with addition of class diagrams 2015-10-25 11:35:26 +01:00
Tomasz Szczęśniak-Szlagowski 30149df88e Allow node ids with keywords as suffixes
I've extracted alpha and punctuation characters from the huge regex and
made multiple occurences of alpha characters be recognised as a single
ALPHA token.

This way everything should work just like before, with the
difference that alpha strings will swallow keywords, ie. `spend` is
`ALPHA`, while previously it would have been `ALPHA ALPHA end`.
2015-10-24 22:25:13 +01:00
Tomasz Szczęśniak-Szlagowski 841aea9d97 Add changes in generated files after jison update 2015-10-24 21:33:19 +01:00
knsv eecd56d6e0 Fix for issue #229, poor handling of activities in a gantt diagram where one activities follows a yet undefined activity. 2015-10-24 12:44:47 +02:00
knsv c9d29c16e2 New release 2015-10-21 21:14:41 +02:00
Tyler Long 9ff2b35ae0 Fix a typo: crosshead --> arrowhead
Fix https://github.com/knsv/mermaid/issues/227
2015-10-21 18:07:51 +08:00
knsv b43e695da2 Fix for issue #204, added width option to the CLI. Default value for width is 1200.
Added logger using es6 syntax
2015-10-19 21:36:55 +02:00
knsv 315923d1d3 Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
knsv 632a564158 Modernization, better linting, adjustment after stricter static rules 2015-10-17 10:39:20 +02:00
knsv 8365fcc2f9 Modernization, better linting, adjustment after stricter static rules 2015-10-17 10:38:05 +02:00
knsv 2417741283 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	dist/mermaid.js
#	dist/mermaid.min.js
#	dist/mermaid.slim.js
#	dist/mermaid.slim.min.js
#	dist/mermaidAPI.js
#	dist/mermaidAPI.slim.js
#	dist/mermaidAPI.slim.min.js
#	package.json
2015-10-15 07:21:30 +02:00
Tomasz Szczęśniak-Szlagowski b87764ed94 Allow `end` as a substring of vertex id
Jison adds \b (word boundary) to literal string patterns by default.
It does so, because it doesn't follow traditional match-longest
approach, but does match-first instead. Without including word
boundaries, it'd be hard to distinguish between a keyword and
identifier.

The pattern for `end` keyword is not a simple string literal - it
swallows trailing whitespace, so we have to add \b manually.

This partially fixes #184 - at least now `end` behaves the same as other
keywords: it can be used as a prefix and infix, but not as a suffix.

To solve this issue completely, ALPHA pattern would have to match
multiple letters, which is a much bigger change.
2015-10-15 00:31:18 +01:00
knsv 658ed3d790 Modernization of build environment. Less gulp, more npm. Eslint. 2015-10-12 07:37:02 +02:00
knsv ed65e6df3b Draft of font-awesome support as described in issue #49. 2015-10-07 18:35:30 +02:00
knsv a611ff3abd New version 2015-10-04 23:09:00 +02:00
knsv 8258fb059c Fix for defect #180, SVG foreignObject rendering 2015-10-04 21:18:05 +02:00
knsv 122274bf52 Fix of broken tests 2015-10-04 19:30:53 +02:00
knsv c5d41c5a21 Added support for entity codes for sequence diagrams so that it for instance is possible to represent a " with #quot; and a heart with #9829;. This as referenced in issue #74 and issue #193. 2015-10-04 14:05:53 +02:00
knsv a2b6bc5213 Added support for entity codes so that it for instance is possible to represent a " with #quot; and a heart with #9829; This differs from the regular html codes in that the leading & isreplaced with a dsh and for dec codes dropped. This as referenced in issue #219. 2015-10-03 21:50:32 +02:00
knsv 8bc3bdd300 Added styling for mermaid tooltips
Adjustments of tooltip positioning for large documents

Documentation of tooltips
2015-10-03 16:30:50 +02:00
knsv b3fa6378bd Reenabled all tests.
Subgraph issue with ids written as title resolved.
2015-10-02 00:21:38 +02:00
knsv e406fda9cd Draft implementation of tooltips and hyperlinks as described in issue #34. More tests and documentation to follow. 2015-10-02 00:18:47 +02:00
knsv 30a755221b Fix for broken build 2015-09-27 20:51:22 +02:00
knsv dc1a6ba8b5 Wit 2015-09-26 18:30:13 +02:00
knsv 709ebe524d New docs and updated dist 2015-09-26 13:00:30 +02:00
knsv fb94aaaa6f Fix for issue #209, missing links when baste tag is used
Fix for issue #195, text wrap in sequence diagrams drops last word
Documentation
2015-09-26 12:09:47 +02:00
Derek Brans 1d371e0a1e Gantt chart - add minutes and seconds durations 2015-08-25 14:49:56 -07:00
knsv 3ec7c6d18b Fix for being able to use the character v in node ids as described in issue #192 2015-07-23 15:33:26 +02:00
knsv 71d4113ecf Beta fix for binding of click events when using the render function as discussed in issue #188. 2015-07-17 23:13:40 +02:00
knsv ed712fa673 Fix for startOnLoad issues 2015-07-15 11:59:01 +02:00
knsv fcb2af780d Added callback to be called after each diagram is rendered as described in issue #176 2015-07-15 11:39:46 +02:00
knsv a8c8f9a472 Set height of actor line height in sequenceDiagrams as discussed in issue #181 2015-07-04 10:00:14 +02:00
knsv ab1dd1e549 Fix of broken logger 2015-07-04 09:30:26 +02:00
knsv 9fb45a3ab7 Cleanup 2015-07-03 08:52:55 +02:00
knsv 6f96b5dd14 Added logger for dealing with issue #179
Added markdown files for the documentation.
parseError exposed from the mermaidAPI
2015-06-30 14:23:32 +02:00
knsv 50219cf2d9 Fix for issues with generating diagrams using the cli: default style for clusters and fixes for autoscaling side effects 2015-06-21 17:25:58 +02:00
knsv 4ed345101a Fix for issue #178, auto-line wrap of notes in sequence diagrams 2015-06-20 20:58:58 +02:00
knsv e5a701d04d Fix for issue #175 2015-06-16 10:40:08 +02:00
knsv 342b83a010 Fix for issue #174 2015-06-14 14:46:01 +02:00
knsv eb555f7da6 Deleted dead code and unused code 2015-06-14 09:51:42 +02:00
knsv efb4e464b2 Fix for issue #170 2015-06-14 09:33:48 +02:00
knsv e5c16fd960 Added subgraphs in new grammar 2015-06-13 18:34:45 +02:00
knsv 6eb018489e Fix issue with new line in the lexer 2015-06-13 08:19:31 +02:00
knsv 5447a88c34 Cleanup of bundles 2015-06-11 08:22:01 +02:00
knsv 0703292fb9 Bumped up version and removed logging 2015-06-07 16:51:56 +02:00
knsv 08fa19bc83 Updated conf handling
Added initialize function
Moved genric configuration as clonseCssStyles till conf root
Added parse funtion to the mermaidAPI api
2015-06-07 09:21:19 +02:00
knsv 94e5177bb1 Fixed build issue 2015-05-31 08:19:26 +02:00
knsv 45f34d871b Added option for whether or not to cloneCssStyles as mentioned in issue #157. 2015-05-30 17:20:24 +02:00
knsv 3f0ead3e0a Fix for issue #150 this change makes gant diagram autoscale. 2015-05-30 12:59:20 +02:00
knsv 6864652b80 Initial fix for defect #162. 2015-05-29 08:23:13 +02:00
knsv b2e489b689 Fix for issue #161 concering nested subgraphs and correct labels for each subgraph. 2015-05-28 23:02:41 +02:00
knsv 2d1f5aa6cb Adding missing files 2015-05-26 20:59:23 +02:00
knsv b4a96c9b21 Render function as mentioned in issue #146, only works in browser context
Updated build scripts
New way for bundling content in dist, tobe tested, currently to be considered beta
2015-05-26 20:41:53 +02:00
knsv 05f3982632 Fix for defect #161, nested subgraphs. 2015-05-15 12:11:36 +02:00
knsv 9face45357 Merge remote-tracking branch 'origin/master'
Conflicts:
	dist/mermaid.full.js
	dist/mermaid.full.min.js
	dist/mermaid.slim.js
	dist/mermaid.slim.min.js
	src/diagrams/gantt/ganttRenderer.js
	test/gantt.html
2015-05-09 19:18:12 +02:00
knsv ae6bb57cf5 Added support for nested subgraphs in grammar, part 1 of issue #161 2015-05-09 19:05:47 +02:00
knsv c65f6aaed3 Merge remote-tracking branch 'origin/master' 2015-04-20 21:21:37 +02:00
knsv 2204d46ce1 Fix for defect #158 2015-04-20 21:21:17 +02:00
Tyler Long e0d90def93 IE, local html, cssRules access is denied
IE, open html file directly from hard disk(insead of from a http server), cssRules access is denied.

Thus an expection is thrown. But in the catch statement, another one is thrown again thus caused the whole mermaid code break. 

In this line `console.warn('Invalid CSS selector "' + rule.selectorText + '"', err);`  rule is undefined, so exception will be thrown if we don't check.
2015-04-19 15:58:09 +08:00
knsv f310eb0574 Fix for default arguments to init method 2015-04-11 16:47:14 +02:00
knsv 2bd7dee3c7 Fix for init not running by default 2015-04-11 16:36:04 +02:00
knsv 1fd94f9cf1 Remoed a console.log 2015-03-29 12:08:07 +02:00
knsv 78d8ee01ac #Adjustments of init - **could break some integrations!!**
* Configuration are picked up from the mermaid object and is not passed as arguments. Same handling for all diagram types, sequenceDiagrams were handled in a different way before this commit.

When init is called with:

* 0 arguments - all mermaid divs are processed
* 1 argument - this is interpreted as a definition of what nodes to process
* 2 arguments - for (some) backwards compatability the second argument is interpreted as the definition of nodes to process. The first argument (prrobably a sequence config is ignored)

A definition of nodes to process can be

* a css selector for what elements to be processed
* a list of nodes as in the result of a command like the one below

```
document.querySelectorAll('.tbProcessed');
```
2015-03-29 11:54:54 +02:00
knsv c966aad496 Fix for subgraphs 2015-03-22 18:36:17 +01:00
knsv 0ed5a01756 Fix fir defect #141 regarding comment characters 2015-03-22 18:02:45 +01:00
knsv 22b9ee4919 Comment handling 2015-03-22 17:51:13 +01:00
knsv 3781dea498 Removed duplicate code 2015-03-15 14:55:16 +01:00
bollwyvl f591fedb77 Adding init argument to the global API
Will also handle future arguments :)
2015-03-10 15:38:53 -04:00
Knut Sveidqvist b0cf9836af Merge pull request #135 from bollwyvl/patch-2
Allow other forms of node selection for init()
2015-03-10 20:07:58 +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 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
knsv cc1a4be15a Added default stylesheet and less structure to create new themes as described in issue #122 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 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 2015-02-15 19:34:18 +01:00
knsv 074a819ca8 New release 2015-02-15 18:11:46 +01:00
knsv c211434c38 Draft parser for gantt diagrams. 2015-02-08 20:07:15 +01:00
knsv 4562a811fc Better margin calculation when there are several diagrams on one page. 2015-01-25 16:40:12 +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 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
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 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
Björn Weström 84124c9427 Improved CSS cloning
Better separation of styles between multiple mermaid SVGs on the same
page
Added support for text label styling
2015-01-14 00:04:38 +01:00
Björn Weström 3fe38237e6 New config attribute, htmlLabels 2015-01-14 00:03:41 +01:00
Björn Weström 9c8e36ea95 Syntax suggestion for reverse asymmetric shape 2015-01-14 00:03:19 +01:00
Björn Weström 8e9890d6e1 New shape, text labels
Added support to configure mermaid to use plain text labels for better
SVG compatibility
Added a reverse asymmetric shape, not in the graph syntax yet
2015-01-14 00:02:58 +01:00
Björn Weström a23fce6c2d Cleanup after merge 2015-01-13 21:55:10 +01:00
Björn Weström 9f970ed953 Merge branch 'master' into text-labels
Conflicts:
	dist/mermaid.full.js
	dist/mermaid.full.min.js
	dist/mermaid.slim.js
	dist/mermaid.slim.min.js
	src/diagrams/flowchart/flowRenderer.js
	src/utils.js
	test/web_style.html
2015-01-13 21:50:05 +01:00
jjmr 9b892ef128 Add new parameter to the console client to override the svg configuration in sequence diagrams 2015-01-13 16:17:30 +01:00
Björn Weström 5ad30c86c5 Improved style handling 2015-01-11 16:16:07 +01:00
Björn Weström 43d2b0b9d7 Improved style handling 2015-01-11 16:15:57 +01:00
Björn Weström 367d620a82 Break out dagre-d3, new label styling 2015-01-11 16:15:38 +01:00
Björn Weström 1b76160a7d Break out dagre-d3 dependency 2015-01-11 16:15:19 +01:00
knsv 911cd09dd8 New release 2015-01-11 15:02:35 +01:00
knsv 27687fc742 Added notation for titles on subgraphs 2015-01-10 19:23:57 +01:00
knsv 3027882847 Added notation for dotted links as described in issue #26 and support for thicker links 2015-01-10 14:33:50 +01:00
knsv 36b389b1fd Added arrow head to async arrow with cross 2015-01-09 08:21:48 +01:00
knsv 952723706b Making it possible to have style/% in class definitions as described in issue #54 2015-01-08 08:20:07 +01:00
knsv 5a720b6d63 Introducing subgraphs 2015-01-07 21:02:58 +01:00
knsv c5c995c916 Added the option to disable auto rendering via the mermaid namespace as described in issue #91
Added optional ; as statement separator equal to newline for sequence diagrams (help for tidy users)
2015-01-06 19:33:00 +01:00
knsv 7741f49ed8 Move of drawLoop to svgDraw 2015-01-05 15:06:01 +01:00
knsv 786d9ddb54 Move of drawLoop to svgDraw 2015-01-05 14:41:00 +01:00
knsv 03a711d82d Cleanup of code 2015-01-05 14:12:49 +01:00
knsv 758a9d7254 Cleanup of code 2015-01-05 13:41:32 +01:00
knsv 343bd52c17 Support for alt & opt statements. 2015-01-05 13:25:37 +01:00
knsv f9943b6b82 Support for different arrow types in sequence diagrams: no arrow head, cross head and regular arrow head. 2015-01-04 17:56:58 +01:00
knsv c7e2c2b3c6 Fix for issue #84 2015-01-03 15:34:49 +01:00
it0a da37b4dee5 Fix for issue #73 2014-12-31 02:02:39 -05:00
knsv 26d0908b27 Fix for issue #53 2014-12-27 09:46:28 +01:00
knsv 385e823c17 Fix for issue #70 2014-12-23 18:06:07 +01:00
knsv 9a8d7a8c57 Handling of min size of messages to self 2014-12-22 13:47:21 +01:00
knsv 0af92a1626 Support messages to self in sequence diagrams 2014-12-22 09:07:28 +01:00
knsv c3eb62255f Support for backslash in nodes 2014-12-22 08:11:49 +01:00
knsv 5fc873468d Styling of sequence diagrams from css classes 2014-12-21 20:59:11 +01:00
knsv 307c599a0e Inclusion of tape tests in new test target for travis 2014-12-21 11:25:31 +01:00
knsv 9458bfb24f Sequence diagram loop margins
Handling of arrows to the left in loops in sequence diagrams
Addition of labels
2014-12-20 18:41:20 +01:00
knsv 7bb75c16da Work with loop rendering for sequence diagrams 2014-12-20 09:19:56 +01:00
knsv 69c84df367 Box rendering 2014-12-20 09:18:12 +01:00
knsv 000ffbb622 Modifications of sequence diagram rendering + tests 2014-12-20 08:40:48 +01:00
knsv 53d5221aed Minor changes 2014-12-18 23:47:30 +01:00
knsv 0dc8aa32c6 Added additional tests for sequence diagram rendering. Removed some log output 2014-12-18 23:17:32 +01:00
vijay40 cebe033b4b The directions can now be specified with special symbols along with acronyms. So >,<,^,v can be used in place of LR,RL,BT,TB respectively. 2014-12-17 15:24:28 +05:30
knsv a1e415686c Adding support for loops to the sequence diagram grammar. 2014-12-16 20:51:48 +01:00
knsv 21daaf3e29 Adding support for notes to the left of the actor in sequence diagrams. 2014-12-16 20:12:24 +01:00
knsv 5712c6de7b Release 0.2.16 2014-12-15 19:35:09 +01:00
vijay40 3279edab33 Flow grammer is modified to allow each line ending without semicolon to improve readablity. The old declarations also work. One test is also included in flow.spec.js to test the changes. 2014-12-15 15:32:47 +05:30
Björn Weström e550ef9e25 Merge branch 'pr/2'
Conflicts:
	.gitignore
	dist/mermaid.full.min.js
	dist/mermaid.slim.min.js
2014-12-14 22:30:42 +01:00
Björn Weström 429b901e7a Removed unused variables 2014-12-14 22:18:16 +01:00
Björn Weström f656269a50 Improved class styling for nodes
Added unit testing
classDefs are now exported to the common style of the SVG
Styling is no longer copied from other mermaid SVGs on the same webpage
2014-12-14 22:15:47 +01:00
knsv eb7c341046 Removed logging from sequence diagram test 2014-12-14 19:34:14 +01:00
knsv 7de9687911 Support for comments to the right of the Actor 2014-12-14 19:30:58 +01:00
Björn Weström 6ef6d79b48 Added proper SVG namespace attribute 2014-12-14 00:46:20 +01:00
Björn Weström 3fcbc7ae56 Added class definitions to nodes
Removed the inline styling of nodes with classes, replaced with class
attributes and a common CSS Style section at the start of the SVG.
2014-12-14 00:32:27 +01:00
knsv 28594138e0 Fix for issue #46, slashes in text 2014-12-13 21:10:50 +01:00
knsv 7fc2a0a544 Increased scope of lint check, removed some issues 2014-12-13 20:58:53 +01:00
knsv 8a13c4cc06 Refactoring/cleanup of flowchart grammar 2014-12-13 18:01:25 +01:00
Vijay Jain d4451ef8a1 flow.jison is modified to include a single spaces between vertices and link to improve readablity for issue #38. There should not be any space between vertex and its text and link and its text. flow.spec.js is modified to include three new tests for testing new graphs. 2014-12-13 17:09:03 +05:30
knsv 3f3e23b419 Fixes for issues #47 and #55 including new test cases. 2014-12-13 08:43:25 +01:00
knsv 1cc3f16d7a Refactoring, split of diagrams into different folders for easier additions of more diagram types 2014-12-11 21:02:11 +01:00
knsv 92439fbdf3 Merge branch 'master' of https://github.com/knsv/mermaid
Conflicts:
	gulpfile.js
2014-12-11 19:35:03 +01:00
knsv 977df99c80 * Support for comments pointed out in issue #47 2014-12-11 19:23:36 +01:00
Jason Kim 202af046aa Made changes based on jslint 2014-12-09 22:26:42 -08:00
knsv 9aeff6be2d * Changed the license in package json to the correct license (MIT).
* Changed the link style from the pointed one to a more triangle formed style as default style for links
* Updated the readme file regarding linkStyles to explain the magic number 3a s described in issue #41
2014-12-09 20:42:31 +01:00
knsv 2b9e464798 Cleanup of sequence diagram rendering code (still experimental)
Better handling of width. Instead uf using width 100% the width is set to the width of the graph. Should help issue #19.
2014-12-05 10:19:07 +01:00
knsv 8949166a17 Adding experimental new grammars 2014-12-04 18:06:54 +01:00
knsv 4c564ebe9e Adding experimental new grammars 2014-12-04 17:58:05 +01:00
knsv 2a0a2a2269 Adding experimental new grammars 2014-12-04 17:35:07 +01:00
knsv fe2f3b403d Patch release 2014-12-03 19:29:44 +01:00
knsv dabedb379d Added support for more characters as described in issue #25 2014-12-03 18:34:18 +01:00
knsv 1e53b588fc Exposing parser in API as requested in issue #21 2014-12-03 18:12:33 +01:00
knsv 52a78375a4 Added check for previously processed div elements, fix for issue #29, thank to user madebits for fix. 2014-12-03 17:42:39 +01:00
knsv 0539b8a74e Added keywords as valid text token, fix for issue #8 2014-12-03 07:49:41 +01:00
knsv 7b09a6d1bf Added DIR element as valid text token, fix for issue #8 2014-12-03 07:42:11 +01:00
knsv ab78295faf Preparation for npm package 2014-12-02 19:05:09 +01:00
knsv 540c614c88 Preparation for npm package 2014-12-02 18:36:16 +01:00
knsv c067b31a57 Mermaid editor added 2014-12-02 07:49:33 +01:00
knsv 1502346172 Support for cyrillic characters 2014-12-01 21:12:14 +01:00
knsv 9537f60b01 Support for cyrillic characters 2014-12-01 21:10:09 +01:00
knsv 1a7997cdef Support for unicode letters.
Merge branch 'master' of https://github.com/knsv/mermaid

Conflicts:
	src/parser/flow.jison
	src/parser/flow.js
2014-12-01 21:00:47 +01:00
IamanimalXI 225560dcdf initial setup for editor page to generate graph through textarea input 2014-12-01 20:50:58 +01:00
Tibor Claassen d6766de7be Use ranges to allow unicode chars in labels 2014-12-01 21:48:34 +02:00
knsv 8906ee8097 Merge remote-tracking branch 'origin/master'
Conflicts:
	bower.json
	dist/mermaid.full.js
	dist/mermaid.full.min.js
	dist/mermaid.slim.js
	dist/mermaid.slim.min.js
	src/main.js
2014-12-01 20:43:49 +01:00
knsv fc4f6e617f Better support for unicode and cyrillic letters 2014-12-01 20:41:08 +01:00
Knut Sveidqvist 1d2327c4c2 Added test for caps in vertices 2014-12-01 09:59:34 +01:00
Knut Sveidqvist 5f8508ab52 Version fix 2014-12-01 09:40:12 +01:00
Knut Sveidqvist cb7b8a4b98 Version fix 2014-12-01 09:38:49 +01:00
Knut Sveidqvist cbd41dbb1b Version fix 2014-12-01 09:28:47 +01:00
knsv 0c87128902 Release 0.2.6
* Default shape set to rect when none is set
2014-11-28 18:08:36 +01:00
knsv 9a35844731 Release 0.2.5
* Support for new shapes circle,  irregular rectangle
* Support for styling of links
* Support for newlines in texts
* Centered text on links
* Shaded background for text on links
* Support for click on nodes
2014-11-27 21:28:04 +01:00
knsv fe1c78ca29 Updated shape syntax
Coverage instrumentation in tests
2014-11-27 18:21:15 +01:00
Björn Weström c7b44679c1 Added shapes
Added UTF-8 tag to test webpage
Added tests for shapes on test webpage
Added odd shape
Added circle shape
Modified diamond shape to always use right angles
2014-11-27 09:00:25 +01:00
knsv d52224194c Styles on links 2014-11-26 20:47:22 +01:00
knsv 8e591c0494 Background on labels and centering of labels 2014-11-26 19:03:15 +01:00
knsv 6757709f45 Small fix, Cleaner add node code 2014-11-26 18:50:12 +01:00
knsv 9c31ac8aa6 Fix for br tags within nodes for new line 2014-11-25 22:58:57 +01:00
knsv 2317ea5117 Better text handling for flowcharts 2014-11-25 18:58:47 +01:00
knsv d18103a0ec Added support for click events on nodes 2014-11-24 22:03:32 +01:00
knsv cb58aeab25 Removed some logging 2014-11-22 19:06:04 +01:00
knsv c0a4cfc2d7 Adjusted version 2014-11-22 18:36:02 +01:00
Knut Sveidqvist 31262f66a0 Support for default styles 2014-11-22 17:27:08 +01:00
knsv 472310fbef Support for class definitions for nodes
Support multiple edges from one node to another
2014-11-22 15:34:21 +01:00
knsv 983c48c26b Adde support for more characters in text like + , . = < > etc 2014-11-22 10:02:38 +01:00
knsv d61da879d8 Using browserify for module management, updated build scripts
mermaid_config can be used to config start on load.
2014-11-21 08:03:43 +01:00
knsv eac94e5370 First steps on work with sequence diagrams. 2014-11-20 20:46:51 +01:00
knsv 4c26ec7414 First steps on work with sequence diagrams. 2014-11-19 19:29:55 +01:00
knsv 170a6640b2 Version 0.1.1 (Testing package update) 2014-11-17 07:55:02 +01:00
Knut Sveidqvist 64bedc8262 Version 0.1.1 (Testing package update) 2014-11-17 07:50:42 +01:00
Knut Sveidqvist 214bb77688 Version 0.1.0 2014-11-16 19:00:01 +01:00
knsv 75f3580e9a Support for numbers in box texts.
Worked on readme file
2014-11-16 14:41:41 +01:00
knsv 3c39246f84 Support for rendering open arrows. 2014-11-16 10:35:18 +01:00
knsv 7751d913d9 Back with minus signs for arrows 2014-11-16 09:20:46 +01:00
knsv 59fbf1e122 Meddling with ids and minus signs 2014-11-16 09:02:03 +01:00
knsv d92c682bbe Feature complete for first release
* added possibility to include numbers in ids
* added graph statement and possibility to set direction of graph from graph statement
* refactured the grammar somewhat
2014-11-15 21:28:26 +01:00
knsv 7ee2b1be45 Adding missing files 2014-11-13 19:53:31 +01:00
knsv 512b333658 Style in place for edges
dependency on requirejs removed
dist in place
2014-11-13 19:51:05 +01:00
knsv e7cb84b1d9 Support for åäö and minus in text 2014-11-12 07:35:44 +01:00
knsv d158a13566 Styles in place for boxes 2014-11-11 08:12:03 +01:00
knsv c23a185b98 Fix for problem with text definitions being overridden by empty strings. 2014-11-10 07:42:01 +01:00
Knut Sveidqvist f55336259b Version that renders graphs (and some test files) 2014-11-09 18:08:05 +01:00
knsv e54a0fcb0f Tests of parser and graph db implementation used when parsing the graph script file. 2014-11-04 18:55:30 +01:00
knsv f35e43c512 Draft test shell with karma and jasmine - adding missing files 2014-11-04 07:50:58 +01:00
knsv 89093922ed Draft test shell with karma and jasmine 2014-11-04 07:45:23 +01:00
knsv d9b9288da9 Initial commit with draft parser inplace. 2014-11-03 00:02:29 +01:00