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> </svg>
</div> </div>
``` ```
An id is also added to mermaid tags without id. 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 # A graph example
``` ```

View File

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

View File

@@ -6,24 +6,36 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": {
"type": "git",
"url": "git://github.com/username/repository.git"
},
"author": "", "author": "",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"devDependencies": { "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", "browserify": "~6.2.0",
"gulp-jasmine": "~1.0.1",
"d3": "~3.4.13", "d3": "~3.4.13",
"dagre-d3": "~0.3.2", "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} * @returns {string}
*/ */
exports.version = function(){ exports.version = function(){
return '0.2.0'; return '0.2.1';
} }
var equals = function (val, variable){ var equals = function (val, variable){