mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-11 08:14:07 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0a4cfc2d7 | ||
|
|
7d2552c266 | ||
|
|
31883e02e7 | ||
|
|
ef7b9bbecf |
22
README.md
22
README.md
@@ -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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -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>"
|
||||||
],
|
],
|
||||||
|
|||||||
38
package.json
38
package.json
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user