Showing with 8,712 additions and 163,935 deletions.
  1. +5 −0 .commitlintrc.json
  2. +2 −1 .eslintignore
  3. +27 −9 .eslintrc.json
  4. +0 −13 .github/workflows/lock-closed-issue.yml
  5. +13 −0 .github/workflows/pr-labeler-config-validator.yml
  6. +18 −0 .github/workflows/update-browserlist.yml
  7. +1 −6 .gitignore
  8. +4 −0 .husky/commit-msg
  9. +4 −0 .husky/pre-commit
  10. +5 −0 .lintstagedrc.json
  11. +0 −5 .prettierrc
  12. +8 −0 .prettierrc.json
  13. +25 −0 .webpack/loaders/jison.js
  14. +45 −0 .webpack/webpack.config.babel.js
  15. +54 −0 .webpack/webpack.config.base.js
  16. +37 −0 .webpack/webpack.config.e2e.babel.js
  17. +1 −1 README.md
  18. +1 −1 README.zh-CN.md
  19. +0 −3 Renfay.md
  20. +3 −3 __mocks__/MERMAID.js
  21. +38 −33 __mocks__/d3.js
  22. +3 −1 cypress.json
  23. +10 −0 cypress/.eslintrc.json
  24. +81 −89 cypress/examples/actions.spec.js
  25. +12 −18 cypress/examples/aliasing.spec.js
  26. +49 −48 cypress/examples/assertions.spec.js
  27. +26 −27 cypress/examples/connectors.spec.js
  28. +38 −37 cypress/examples/cookies.spec.js
  29. +112 −109 cypress/examples/cypress_api.spec.js
  30. +39 −39 cypress/examples/files.spec.js
  31. +37 −31 cypress/examples/local_storage.spec.js
  32. +18 −18 cypress/examples/location.spec.js
  33. +27 −33 cypress/examples/misc.spec.js
  34. +25 −25 cypress/examples/navigation.spec.js
  35. +68 −70 cypress/examples/network_requests.spec.js
  36. +25 −37 cypress/examples/querying.spec.js
  37. +45 −46 cypress/examples/spies_stubs_clocks.spec.js
  38. +39 −63 cypress/examples/traversal.spec.js
  39. +63 −67 cypress/examples/utilities.spec.js
  40. +34 −34 cypress/examples/viewport.spec.js
  41. +15 −16 cypress/examples/waiting.spec.js
  42. +9 −9 cypress/examples/window.spec.js
  43. +1 −3 cypress/helpers/util.js
  44. +20 −11 cypress/integration/other/configuration.spec.js
  45. +41 −99 cypress/integration/other/interaction.spec.js
  46. +14 −17 cypress/integration/other/rerender.spec.js
  47. +2 −7 cypress/integration/other/webpackUsage.spec.js
  48. +50 −39 cypress/integration/other/xss.spec.js
  49. +30 −33 cypress/integration/rendering/classDiagram-v2.spec.js
  50. +1 −2 cypress/integration/rendering/classDiagram.spec.js
  51. +61 −62 cypress/integration/rendering/conf-and-directives.spec.js
  52. +0 −1 cypress/integration/rendering/current.spec.js
  53. +1 −3 cypress/integration/rendering/debug.spec.js
  54. +29 −33 cypress/integration/rendering/erDiagram.spec.js
  55. +65 −59 cypress/integration/rendering/flowchart-v2.spec.js
  56. +58 −60 cypress/integration/rendering/flowchart.spec.js
  57. +23 −26 cypress/integration/rendering/gantt.spec.js
  58. +0 −1 cypress/integration/rendering/gitGraph.spec.js
  59. +0 −1 cypress/integration/rendering/info.spec.js
  60. +10 −12 cypress/integration/rendering/journey.spec.js
  61. +17 −20 cypress/integration/rendering/pie.spec.js
  62. +0 −1 cypress/integration/rendering/requirement.spec.js
  63. +38 −34 cypress/integration/rendering/sequencediagram.spec.js
  64. +42 −28 cypress/integration/rendering/stateDiagram-v2.spec.js
  65. +29 −29 cypress/integration/rendering/stateDiagram.spec.js
  66. +46 −22 cypress/integration/rendering/theme.spec.js
  67. +7 −8 cypress/platform/bundle-test.js
  68. +7 −5 cypress/platform/class.html
  69. +20 −20 cypress/platform/click_security_loose.html
  70. +10 −10 cypress/platform/click_security_other.html
  71. +10 −10 cypress/platform/click_security_strict.html
  72. +39 −0 cypress/platform/css1.html
  73. +7 −5 cypress/platform/current.html
  74. +7 −5 cypress/platform/current2.html
  75. +1 −1 cypress/platform/huge.html
  76. +15 −15 cypress/platform/interaction.html
  77. +8 −7 cypress/platform/knsv.html
  78. +22 −18 cypress/platform/knsv2.html
  79. +6 −4 cypress/platform/knsv3.html
  80. +3 −4 cypress/platform/regression/issue-1874.html
  81. +6 −11 cypress/platform/render-after-error.html
  82. +4 −7 cypress/platform/rerender.html
  83. +7 −5 cypress/platform/showcase_base.html
  84. +16 −5 cypress/platform/showcase_base_dark.html
  85. +7 −5 cypress/platform/showcase_dark.html
  86. +7 −5 cypress/platform/showcase_default.html
  87. +7 −5 cypress/platform/showcase_forest.html
  88. +7 −5 cypress/platform/showcase_neutral.html
  89. +3 −3 cypress/platform/subgraph.html
  90. +6 −4 cypress/platform/theme-directives.html
  91. +3 −3 cypress/platform/vertices.html
  92. +10 −7 cypress/platform/viewer.js
  93. +5 −5 cypress/platform/xss.html
  94. +28 −25 cypress/platform/xss10.html
  95. +26 −23 cypress/platform/xss11.html
  96. +26 −23 cypress/platform/xss12.html
  97. +26 −23 cypress/platform/xss13.html
  98. +108 −0 cypress/platform/xss14.html
  99. +107 −0 cypress/platform/xss15.html
  100. +106 −0 cypress/platform/xss16.html
  101. +106 −0 cypress/platform/xss17.html
  102. +7 −7 cypress/platform/xss2.html
  103. +7 −7 cypress/platform/xss3.html
  104. +22 −18 cypress/platform/xss4.html
  105. +25 −21 cypress/platform/xss5.html
  106. +24 −20 cypress/platform/xss6.html
  107. +26 −22 cypress/platform/xss7.html
  108. +24 −21 cypress/platform/xss8.html
  109. +24 −21 cypress/platform/xss9.html
  110. +1 −2 cypress/plugins/index.js
  111. +1 −1 cypress/support/commands.js
  112. +53 −0 demos/dataflowchart.html
  113. +7 −7 {dist → demos}/flowchart.html
  114. +14 −14 {dist → demos}/index.html
  115. +0 −29,762 dist/mermaid.core.js
  116. +0 −1 dist/mermaid.core.js.map
  117. +0 −3 dist/mermaid.esm.min.mjs
  118. +0 −32 dist/mermaid.esm.min.mjs.LICENSE.txt
  119. +0 −127,213 dist/mermaid.js
  120. +0 −1 dist/mermaid.js.map
  121. +0 −3 dist/mermaid.min.js
  122. +0 −32 dist/mermaid.min.js.LICENSE.txt
  123. +0 −1 dist/mermaid.min.js.map
  124. +227 −286 docs/Setup.md
  125. +12 −13 docs/Tutorials.md
  126. +6 −5 docs/_sidebar.md
  127. +134 −134 docs/development.md
  128. +147 −116 docs/index.html
  129. +186 −49 docs/landing/index.html
  130. +17 −0 docs/security.md
  131. +4 −1 jest.config.js
  132. +0 −12 jison/loader.js
  133. +0 −13 jison/parser-options-schema.json
  134. +23 −16 package.json
  135. +68 −56 src/config.js
  136. +17 −14 src/config.spec.js
  137. +67 −62 src/config_org.js
  138. +4 −0 src/dagre-wrapper/clusters.js
  139. +8 −51 src/dagre-wrapper/createLabel.js
  140. +8 −4 src/dagre-wrapper/edges.js
  141. +30 −33 src/dagre-wrapper/edges.spec.js
  142. +5 −0 src/dagre-wrapper/intersect/intersect-circle.js
  143. +6 −0 src/dagre-wrapper/intersect/intersect-ellipse.js
  144. +11 −3 src/dagre-wrapper/intersect/intersect-line.js
  145. +4 −0 src/dagre-wrapper/intersect/intersect-node.js
  146. +7 −3 src/dagre-wrapper/intersect/intersect-polygon.js
  147. +1 −3 src/dagre-wrapper/markers.js
  148. +6 −6 src/dagre-wrapper/mermaid-graphlib.js
  149. +206 −202 src/dagre-wrapper/mermaid-graphlib.spec.js
  150. +58 −2 src/dagre-wrapper/nodes.js
  151. +1 −3 src/dagre-wrapper/patterns.js
  152. +9 −1 src/dagre-wrapper/shapes/util.js
  153. +317 −401 src/defaultConfig.js
  154. +14 −7 src/diagrams/class/classDb.js
  155. +9 −9 src/diagrams/class/classDiagram-styles.spec.js
  156. +159 −117 src/diagrams/class/classDiagram.spec.js
  157. +5 −6 src/diagrams/class/classDiagramGrammar.spec.js
  158. +18 −6 src/diagrams/class/classRenderer-v2.js
  159. +5 −1 src/diagrams/class/classRenderer.js
  160. +11 −4 src/diagrams/class/svgDraw.js
  161. +2 −3 src/diagrams/class/svgDraw.spec.js
  162. +35 −9 src/diagrams/common/common.js
  163. +64 −7 src/diagrams/common/common.spec.js
  164. +1 −3 src/diagrams/er/erDb.js
  165. +3 −0 src/diagrams/er/erMarkers.js
  166. +26 −18 src/diagrams/er/erRenderer.js
  167. +7 −6 src/diagrams/er/parser/erDiagram.spec.js
  168. +63 −0 src/diagrams/flowchart/flowChartShapes.js
  169. +34 −22 src/diagrams/flowchart/flowChartShapes.spec.js
  170. +39 −18 src/diagrams/flowchart/flowDb.js
  171. +18 −19 src/diagrams/flowchart/flowDb.spec.js
  172. +12 −3 src/diagrams/flowchart/flowRenderer-v2.js
  173. +10 −3 src/diagrams/flowchart/flowRenderer.js
  174. +52 −53 src/diagrams/flowchart/flowRenderer.spec.js
  175. +18 −18 src/diagrams/flowchart/parser/flow-arrows.spec.js
  176. +11 −11 src/diagrams/flowchart/parser/flow-comments.spec.js
  177. +9 −11 src/diagrams/flowchart/parser/flow-direction.spec.js
  178. +39 −39 src/diagrams/flowchart/parser/flow-edges.spec.js
  179. +7 −6 src/diagrams/flowchart/parser/flow-huge.spec.js
  180. +34 −35 src/diagrams/flowchart/parser/flow-interactions.spec.js
  181. +12 −12 src/diagrams/flowchart/parser/flow-lines.spec.js
  182. +21 −21 src/diagrams/flowchart/parser/flow-singlenode.spec.js
  183. +26 −24 src/diagrams/flowchart/parser/flow-style.spec.js
  184. +54 −54 src/diagrams/flowchart/parser/flow-text.spec.js
  185. +11 −11 src/diagrams/flowchart/parser/flow-vertice-chaining.spec.js
  186. +5 −2 src/diagrams/flowchart/parser/flow.jison
  187. +31 −20 src/diagrams/flowchart/parser/flow.spec.js
  188. +31 −31 src/diagrams/flowchart/parser/subgraph.spec.js
  189. +17 −1 src/diagrams/flowchart/styles.js
  190. +13 −2 src/diagrams/gantt/ganttDb.js
  191. +25 −19 src/diagrams/gantt/ganttDb.spec.js
  192. +62 −3 src/diagrams/gantt/ganttRenderer.js
  193. +27 −26 src/diagrams/gantt/parser/gantt.spec.js
  194. +18 −0 src/diagrams/git/gitGraphAst.js
  195. +1 −1 src/diagrams/git/gitGraphParser.spec
  196. +36 −1 src/diagrams/git/gitGraphRenderer.js
  197. +3 −4 src/diagrams/info/info.spec.js
  198. +1 −3 src/diagrams/info/infoDb.js
  199. +9 −9 src/diagrams/info/infoRenderer.js
  200. +10 −11 src/diagrams/pie/parser/pie.spec.js
  201. +0 −3 src/diagrams/pie/pieDb.js
  202. +2 −3 src/diagrams/pie/pieRenderer.js
  203. +126 −161 src/diagrams/requirement/parser/requirementDiagram.spec.js
  204. +8 −0 src/diagrams/sequence/sequenceDb.js
  205. +125 −126 src/diagrams/sequence/sequenceDiagram.spec.js
  206. +34 −18 src/diagrams/sequence/sequenceRenderer.js
  207. +109 −20 src/diagrams/sequence/svgDraw.js
  208. +26 −13 src/diagrams/sequence/svgDraw.spec.js
  209. +22 −14 src/diagrams/state/shapes.js
  210. +6 −4 src/diagrams/state/stateDb.js
  211. +31 −33 src/diagrams/state/stateDiagram.spec.js
  212. +11 −3 src/diagrams/state/stateRenderer-v2.js
  213. +6 −5 src/diagrams/state/stateRenderer.js
  214. +12 −13 src/diagrams/user-journey/journeyDb.spec.js
  215. +2 −0 src/diagrams/user-journey/journeyRenderer.js
  216. +15 −17 src/diagrams/user-journey/parser/journey.spec.js
  217. +52 −6 src/diagrams/user-journey/svgDraw.js
  218. +6 −6 src/errorRenderer.js
  219. +1 −1 { → src}/jison/transformer.js
  220. +5 −7 src/logger.js
  221. +12 −11 src/mermaid.js
  222. +39 −40 src/mermaid.spec.js
  223. +83 −97 src/mermaidAPI.js
  224. +33 −29 src/mermaidAPI.spec.js
  225. +4 −1 src/themes/theme-base.js
  226. +174 −112 src/utils.js
  227. +125 −80 src/utils.spec.js
  228. +0 −3 todo.md
  229. +0 −11 webpack.config.babel.js
  230. +0 −60 webpack.config.base.js
  231. +0 −67 webpack.config.e2e.js
  232. +0 −17 webpack.config.prod.babel.js
  233. +2,274 −1,796 yarn.lock
5 changes: 5 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*.spec.js
dist/**
.github/**
36 changes: 27 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,37 @@
"env": {
"browser": true,
"es6": true,
"jest/globals": true,
"node": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"extends": ["prettier", "eslint:recommended"],
"plugins": ["prettier"],
"extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:markdown/recommended", "plugin:prettier/recommended"],
"plugins": ["html", "jest", "jsdoc", "prettier"],
"rules": {
"prettier/prettier": ["error"]
}
"no-prototype-builtins": 0,
"no-unused-vars": 0,
"jsdoc/check-indentation": 0,
"jsdoc/check-alignment": 0,
"jsdoc/check-line-alignment": 0,
"jsdoc/multiline-blocks": 0,
"jsdoc/newline-after-description": 0,
"jsdoc/tag-lines": 0,
"no-empty": ["error", { "allowEmptyCatch": true }]
},
"overrides": [
{
"files": "./**/*.html",
"rules": {
"no-undef": "off",
"jsdoc/require-jsdoc": "off"
}
}
]
}
13 changes: 0 additions & 13 deletions .github/workflows/lock-closed-issue.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/pr-labeler-config-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Validate PR Labeler Configuration
on: [push, pull_request]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2.3.4
- name: Validate Configuration
uses: Yash-Singh1/pr-labeler-config-validator@releases/v0.0.3
with:
configuration-path: .github/pr-labeler.yml
18 changes: 18 additions & 0 deletions .github/workflows/update-browserlist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update Browserslist
on:
schedule:
- cron: '0 7 * * 1'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx browserslist@latest --update-db
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: 'Update Browserslist'
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ node_modules/
coverage/
.idea/

dist/*.js
dist/*.map
dist

yarn-error.log
.npmrc
token

package-lock.json

dist/classTest.html

dist/sequenceTest.html

.vscode/
cypress/platform/current.html
cypress/platform/experimental.html
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pre-commit
5 changes: 5 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.{js,html,md}": [
"yarn lint:fix"
]
}
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"endOfLine": "auto",
"plugins": [
"prettier-plugin-jsdoc"
],
"printWidth": 100,
"singleQuote": true
}
25 changes: 25 additions & 0 deletions .webpack/loaders/jison.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const { Generator } = require('jison');
const validate = require('schema-utils');

const schema = {
title: 'Jison Parser options',
type: 'object',
properties: {
'token-stack': {
type: 'boolean',
},
debug: {
type: 'boolean',
},
},
additionalProperties: false,
};

module.exports = function jisonLoader(source) {
const options = this.getOptions();
(validate.validate || validate)(schema, options, {
name: 'Jison Loader',
baseDataPath: 'options',
});
return new Generator(source, options).generate();
};
45 changes: 45 additions & 0 deletions .webpack/webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { merge, mergeWithCustomize, customizeObject } from 'webpack-merge';
import nodeExternals from 'webpack-node-externals';
import baseConfig from './webpack.config.base';

export default (_env, args) => {
switch (args.mode) {
case 'development':
return [
baseConfig,
merge(baseConfig, {
externals: [nodeExternals()],
output: {
filename: '[name].core.js',
},
}),
];
case 'production':
return [
// umd
merge(baseConfig, {
output: {
filename: '[name].min.js',
},
}),
// esm
mergeWithCustomize({
customizeObject: customizeObject({
'output.library': 'replace',
}),
})(baseConfig, {
experiments: {
outputModule: true,
},
output: {
library: {
type: 'module',
},
filename: '[name].esm.min.mjs',
},
}),
];
default:
throw new Error('No matching configuration was found!');
}
};
54 changes: 54 additions & 0 deletions .webpack/webpack.config.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import path from 'path';

export const resolveRoot = (...relativePath) => path.resolve(__dirname, '..', ...relativePath);

export default {
amd: false, // https://github.com/lodash/lodash/issues/3052
target: 'web',
entry: {
mermaid: './src/mermaid.js',
},
resolve: {
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison'],
fallback: {
fs: false, // jison generated code requires 'fs'
path: require.resolve('path-browserify'),
},
},
output: {
path: resolveRoot('./dist'),
filename: '[name].js',
library: {
name: 'mermaid',
type: 'umd',
export: 'default',
},
globalObject: 'typeof self !== "undefined" ? self : this',
},
module: {
rules: [
{
test: /\.js$/,
include: [resolveRoot('./src'), resolveRoot('./node_modules/dagre-d3-renderer/lib')],
use: {
loader: 'babel-loader',
},
},
{
// load scss to string
test: /\.scss$/,
use: ['css-to-string-loader', 'css-loader', 'sass-loader'],
},
{
test: /\.jison$/,
use: {
loader: path.resolve(__dirname, './loaders/jison.js'),
options: {
'token-stack': true,
},
},
},
],
},
devtool: 'source-map',
};
37 changes: 37 additions & 0 deletions .webpack/webpack.config.e2e.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import baseConfig, { resolveRoot } from './webpack.config.base';
import { merge } from 'webpack-merge';

export default merge(baseConfig, {
mode: 'development',
entry: {
mermaid: './src/mermaid.js',
e2e: './cypress/platform/viewer.js',
'bundle-test': './cypress/platform/bundle-test.js',
},
output: {
globalObject: 'window',
},
devServer: {
compress: true,
port: 9000,
static: [
{ directory: resolveRoot('cypress', 'platform') },
{ directory: resolveRoot('dist') },
{ directory: resolveRoot('demos') },
],
},
externals: {
mermaid: 'mermaid',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
});
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pie
- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor)
- [HTTP Server](https://github.com/TomWright/mermaid-server)

## Contributors [![Help wanted](https://img.shields.io/github/labels/mermaid-js/mermaid/Help%20wanted!)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Help+wanted%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)
## Contributors [![Good first issue](https://img.shields.io/github/labels/mermaid-js/mermaid/Good%20first%20issue%21)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)

Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out.

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pie
- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor)
- [HTTP Server](https://github.com/TomWright/mermaid-server)

## 贡献者 [![Help wanted](https://img.shields.io/github/labels/mermaid-js/mermaid/Help%20wanted!)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Help+wanted%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)
## 贡献者 [![Good first issue](https://img.shields.io/github/labels/mermaid-js/mermaid/Good%20first%20issue%21)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors)

Mermaid 是一个不断发展中的社区,并且还在接收新的贡献者。有很多不同的方式可以参与进来,而且我们还在寻找额外的帮助。如果你想知道如何开始贡献,请查看 [这个 issue](https://github.com/mermaid-js/mermaid/issues/866)

Expand Down
3 changes: 0 additions & 3 deletions Renfay.md

This file was deleted.

6 changes: 3 additions & 3 deletions __mocks__/MERMAID.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const curveBasis = 'basis'
export const curveLinear = 'linear'
export const curveCardinal = 'cardinal'
export const curveBasis = 'basis';
export const curveLinear = 'linear';
export const curveCardinal = 'cardinal';
Loading