Compare commits

...

4 Commits
0.2.0 ... 0.2.1

Author SHA1 Message Date
knsv
c0a4cfc2d7 Adjusted version 2014-11-22 18:36:02 +01:00
knsv
7d2552c266 Merge remote-tracking branch 'origin/master' 2014-11-22 17:53:53 +01:00
Knut Sveidqvist
31883e02e7 Support for default styles 2014-11-22 17:53:02 +01:00
Knut Sveidqvist
ef7b9bbecf Update README.md
Added info about default styles
2014-11-17 10:18:22 +01:00
4 changed files with 49 additions and 17 deletions

View File

@@ -67,9 +67,29 @@ Would end up like this:
</svg>
</div>
```
An id is also added to mermaid tags without id.
## Default style
Set the default styles for the graphics in css:
```
text {
font-weight: 300;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serf;
font-size: 14px;
}
.node rect {
stroke: #999;
fill: #fff;
stroke-width: 1.5px;
}
.edgePath path {
stroke: #333;
stroke-width: 1.5px;
}
```
# A graph example
```
@@ -219,4 +239,4 @@ A---|This is the text|B;
![Text on links](http://www.sveido.com/mermaid/img/ex11.png)
# Credits
Many thanks to the [d3](http://d3js.org/) and [dagre-d3](https://github.com/cpettitt/dagre-d3) projects for providing the graphical layout and drawing libraries!!!
Many thanks to the [d3](http://d3js.org/) and [dagre-d3](https://github.com/cpettitt/dagre-d3) projects for providing the graphical layout and drawing libraries!!!

View File

@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "0.1.1",
"version": "0.2.1",
"authors": [
"knsv <knut@sveido.com>"
],

View File

@@ -6,24 +6,36 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/username/repository.git"
},
"author": "",
"license": "BSD-2-Clause",
"devDependencies": {
"gulp": "~3.8.9",
"jison": "~0.4.15",
"jasmine": "~2.0.1",
"gulp-jison": "~1.0.0",
"karma": "~0.12.20",
"karma-jasmine": "~0.2.1",
"karma-chrome-launcher": "~0.1.5",
"karma-requirejs": "~0.2.2",
"gulp-concat": "~2.4.1",
"gulp-uglify": "~1.0.1",
"gulp-ext-replace": "~0.1.0",
"browserify": "~6.2.0",
"gulp-jasmine": "~1.0.1",
"d3": "~3.4.13",
"dagre-d3": "~0.3.2",
"gulp-rename": "~1.2.0"
"gulp": "~3.8.9",
"gulp-concat": "~2.4.1",
"gulp-ext-replace": "~0.1.0",
"gulp-jasmine": "~1.0.1",
"gulp-jison": "~1.0.0",
"gulp-rename": "~1.2.0",
"gulp-uglify": "~1.0.1",
"jasmine": "~2.0.1",
"jison": "~0.4.15",
"karma": "~0.12.20",
"karma-chrome-launcher": "~0.1.5",
"karma-jasmine": "~0.2.1",
"karma-requirejs": "~0.2.2",
"lodash": "^2.4.1",
"lodash._escapestringchar": "^2.4.1",
"lodash._objecttypes": "^2.4.1",
"lodash._reinterpolate": "^2.4.1",
"lodash._reunescapedhtml": "^2.4.1",
"lodash.defaults": "^2.4.1",
"lodash.templatesettings": "^2.4.1",
"lodash.values": "^2.4.1"
}
}

View File

@@ -246,7 +246,7 @@ var init = function () {
* @returns {string}
*/
exports.version = function(){
return '0.2.0';
return '0.2.1';
}
var equals = function (val, variable){