mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-27 19:29:38 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c0a4cfc2d7 | ||
![]() |
7d2552c266 | ||
![]() |
31883e02e7 | ||
![]() |
ef7b9bbecf |
24
README.md
24
README.md
@@ -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;
|
||||

|
||||
|
||||
# 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!!!
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mermaid",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.1",
|
||||
"authors": [
|
||||
"knsv <knut@sveido.com>"
|
||||
],
|
||||
|
38
package.json
38
package.json
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -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){
|
||||
|
Reference in New Issue
Block a user