Relase 8.6.0
This commit is contained in:
parent
9e8c9e897f
commit
686ee1e349
|
@ -39,11 +39,19 @@ sequenceDiagram
|
||||||
Bob->>Alice: I'm short though
|
Bob->>Alice: I'm short though
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid" style="width: 50%; height: 200px;">
|
<div class="mermaid" style="width: 50%; height: 200px;">
|
||||||
%%{init: {'config': {'wrap': true }}}%%
|
%%{init: {'securityLevel': 'loose'}}%%
|
||||||
sequenceDiagram
|
graph TD
|
||||||
participant A as Extremely utterly
|
A[Christmas] -->|Get money| B(Go shopping)
|
||||||
A->>Bob: long line of longness which had preivously overflown the actor box as it is much longer than what it should be
|
B --> C{{Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?}}
|
||||||
Bob-->A: Pasten ! </div>
|
C -->|One| D[Laptop]
|
||||||
|
C -->|Two| E[iPhone]
|
||||||
|
C -->|Three| F[Car]
|
||||||
|
click A "index.html#link-clicked" "link test"
|
||||||
|
click B callback "click test"
|
||||||
|
classDef someclass fill:#f96;
|
||||||
|
class A someclass;
|
||||||
|
class C someclass;
|
||||||
|
</div>
|
||||||
<div class="mermaid2" style="width: 50%; height: 200px;">
|
<div class="mermaid2" style="width: 50%; height: 200px;">
|
||||||
|
|
||||||
flowchart BT
|
flowchart BT
|
||||||
|
@ -80,13 +88,13 @@ stateDiagram-v2
|
||||||
// arrowMarkerAbsolute: true,
|
// arrowMarkerAbsolute: true,
|
||||||
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
||||||
logLevel: 0,
|
logLevel: 0,
|
||||||
flowchart: { curve: 'linear', "htmlLabels": false },
|
flowchart: { curve: 'cardinal', "htmlLabels": false },
|
||||||
// gantt: { axisFormat: '%m/%d/%Y' },
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
||||||
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
||||||
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
||||||
fontFamily: '"arial", sans-serif',
|
fontFamily: '"arial", sans-serif',
|
||||||
curve: 'linear',
|
curve: 'cardinal',
|
||||||
securityLevel: 'loose'
|
securityLevel: 'strict'
|
||||||
});
|
});
|
||||||
function callback(){alert('It worked');}
|
function callback(){alert('It worked');}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -812,7 +812,7 @@ module.exports = function(module) {
|
||||||
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, default */
|
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, default */
|
||||||
/***/ (function(module) {
|
/***/ (function(module) {
|
||||||
|
|
||||||
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.5.2\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepush\":\"yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"crypto-random-string\":\"^3.0.1\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"scope-css\":\"^1.2.1\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"]}");
|
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.0\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepush\":\"yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"crypto-random-string\":\"^3.0.1\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"scope-css\":\"^1.2.1\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"]}");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
@ -837,6 +837,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**
|
||||||
|
*
|
||||||
|
* ## **What follows are config instructions for older versions**
|
||||||
* These are the default options which can be overridden with the initialization call like so:
|
* These are the default options which can be overridden with the initialization call like so:
|
||||||
* **Example 1:**
|
* **Example 1:**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -863,7 +866,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
* mermaid.initialize(config);
|
* mermaid.initialize(config);
|
||||||
* </script>
|
* </script>
|
||||||
* </pre>
|
* </pre>
|
||||||
* A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.
|
* A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.
|
||||||
*
|
*
|
||||||
* @name Configuration
|
* @name Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -872,9 +875,11 @@ var config = {
|
||||||
/** theme , the CSS style sheet
|
/** theme , the CSS style sheet
|
||||||
*
|
*
|
||||||
* theme , the CSS style sheet
|
* theme , the CSS style sheet
|
||||||
|
*
|
||||||
*| Parameter | Description |Type | Required | Values|
|
*| Parameter | Description |Type | Required | Values|
|
||||||
*| --- | --- | --- | --- | --- |
|
*| --- | --- | --- | --- | --- |
|
||||||
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
||||||
|
*
|
||||||
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
||||||
* <pre>
|
* <pre>
|
||||||
* "theme": "forest",
|
* "theme": "forest",
|
||||||
|
@ -21483,7 +21488,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
||||||
/**
|
/**
|
||||||
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
||||||
*
|
*
|
||||||
* The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph
|
* The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
|
||||||
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
*
|
*
|
||||||
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
||||||
|
@ -22751,6 +22756,13 @@ var assignWithDepth = function assignWithDepth(dst, src, config) {
|
||||||
return assignWithDepth(dst, s, config);
|
return assignWithDepth(dst, s, config);
|
||||||
});
|
});
|
||||||
return dst;
|
return dst;
|
||||||
|
} else if (Array.isArray(src) && Array.isArray(dst)) {
|
||||||
|
src.forEach(function (s) {
|
||||||
|
if (dst.indexOf(s) === -1) {
|
||||||
|
dst.push(s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof dst === 'undefined' || depth <= 0) {
|
if (typeof dst === 'undefined' || depth <= 0) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69993,7 +69993,7 @@ module.exports = function(module) {
|
||||||
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, default */
|
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, default */
|
||||||
/***/ (function(module) {
|
/***/ (function(module) {
|
||||||
|
|
||||||
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.5.2\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepush\":\"yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"crypto-random-string\":\"^3.0.1\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"scope-css\":\"^1.2.1\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"]}");
|
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.0\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepush\":\"yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"crypto-random-string\":\"^3.0.1\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"scope-css\":\"^1.2.1\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"]}");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
@ -70018,6 +70018,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**
|
||||||
|
*
|
||||||
|
* ## **What follows are config instructions for older versions**
|
||||||
* These are the default options which can be overridden with the initialization call like so:
|
* These are the default options which can be overridden with the initialization call like so:
|
||||||
* **Example 1:**
|
* **Example 1:**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -70044,7 +70047,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
* mermaid.initialize(config);
|
* mermaid.initialize(config);
|
||||||
* </script>
|
* </script>
|
||||||
* </pre>
|
* </pre>
|
||||||
* A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.
|
* A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.
|
||||||
*
|
*
|
||||||
* @name Configuration
|
* @name Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -70053,9 +70056,11 @@ var config = {
|
||||||
/** theme , the CSS style sheet
|
/** theme , the CSS style sheet
|
||||||
*
|
*
|
||||||
* theme , the CSS style sheet
|
* theme , the CSS style sheet
|
||||||
|
*
|
||||||
*| Parameter | Description |Type | Required | Values|
|
*| Parameter | Description |Type | Required | Values|
|
||||||
*| --- | --- | --- | --- | --- |
|
*| --- | --- | --- | --- | --- |
|
||||||
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
||||||
|
*
|
||||||
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
||||||
* <pre>
|
* <pre>
|
||||||
* "theme": "forest",
|
* "theme": "forest",
|
||||||
|
@ -90639,7 +90644,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
||||||
/**
|
/**
|
||||||
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
||||||
*
|
*
|
||||||
* The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph
|
* The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
|
||||||
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
*
|
*
|
||||||
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
||||||
|
@ -91906,6 +91911,13 @@ var assignWithDepth = function assignWithDepth(dst, src, config) {
|
||||||
return assignWithDepth(dst, s, config);
|
return assignWithDepth(dst, s, config);
|
||||||
});
|
});
|
||||||
return dst;
|
return dst;
|
||||||
|
} else if (Array.isArray(src) && Array.isArray(dst)) {
|
||||||
|
src.forEach(function (s) {
|
||||||
|
if (dst.indexOf(s) === -1) {
|
||||||
|
dst.push(s);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof dst === 'undefined' || depth <= 0) {
|
if (typeof dst === 'undefined' || depth <= 0) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
# Version 8.6.0 Changes
|
# Version 8.6.0 Changes
|
||||||
**Edit this Page** [![N|Solid](https://github.com/NeilCuzon/mermaid/blob/develop/docs/img/GitHub-Mark-32px.png)](https://github.com/NeilCuzon/mermaid/edit/develop/docs/8.6.0_docs.md)
|
**Edit this Page** [![N|Solid](/img/GitHub-Mark-32px.png)](https://github.com/medmaid-js/mermaid/edit/develop/docs/8.6.0_docs.md)
|
||||||
|
|
||||||
**Try out the Beta Version of the [[New Mermaid Live-Editor](https://mermaid-js.github.io/docs/mermaid-live-editor-beta/#/edit/eyJjb2RlIjoiJSV7aW5pdDoge1widGhlbWVcIjogXCJmb3Jlc3RcIiwgXCJsb2dMZXZlbFwiOiAxIH19JSVcbmdyYXBoIFREXG4gIEFbQ2hyaXN0bWFzXSAtLT58R2V0IG1vbmV5fCBCKEdvIHNob3BwaW5nKVxuICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgQyAtLT58T25lfCBEW0xhcHRvcF1cbiAgQyAtLT58VHdvfCBFW2lQaG9uZV1cbiAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl1cblx0XHQiLCJtZXJtYWlkIjp7InRoZW1lIjoiZGFyayJ9fQ)]**
|
**Try out the Beta Version of the [[New Mermaid Live-Editor](https://mermaid-js.github.io/docs/mermaid-live-editor-beta/#/edit/eyJjb2RlIjoiJSV7aW5pdDoge1widGhlbWVcIjogXCJmb3Jlc3RcIiwgXCJsb2dMZXZlbFwiOiAxIH19JSVcbmdyYXBoIFREXG4gIEFbQ2hyaXN0bWFzXSAtLT58R2V0IG1vbmV5fCBCKEdvIHNob3BwaW5nKVxuICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgQyAtLT58T25lfCBEW0xhcHRvcF1cbiAgQyAtLT58VHdvfCBFW2lQaG9uZV1cbiAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl1cblx0XHQiLCJtZXJtYWlkIjp7InRoZW1lIjoiZGFyayJ9fQ)]**
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ init, or initialize: the init or initialize directive gives the user the ability
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| init | modifies configurations| Directive| Optional | Any parameters not included in the secure array|
|
| init | modifies configurations| Directive| Optional | Any parameters not included in the secure array|
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
|
|
||||||
init would be an argument-directive: %%{init: { **insert argument here**}}%%
|
init would be an argument-directive: %%{init: { **insert argument here**}}%%
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ It is a non-argument directive and can be executed thusly:
|
||||||
|
|
||||||
**an example of text wrapping in a sequence diagram**:
|
**an example of text wrapping in a sequence diagram**:
|
||||||
|
|
||||||
![Image showing wrapped text](https://github.com/NeilCuzon/mermaid/blob/develop/docs/img/wrapped%20text.png)
|
![Image showing wrapped text](/img/wrapped%20text.png)
|
||||||
|
|
||||||
|
|
||||||
# Resetting Configurations:
|
# Resetting Configurations:
|
||||||
|
@ -108,12 +108,12 @@ There are two more functions in the mermaidAPI that can be called by site owners
|
||||||
|
|
||||||
Example of **assignWithDepth**:
|
Example of **assignWithDepth**:
|
||||||
|
|
||||||
![Image showing assignWithDepth](https://github.com/NeilCuzon/mermaid/blob/develop/docs/img/assignWithDepth.png)
|
![Image showing assignWithDepth](/img/assignWithDepth.png)
|
||||||
|
|
||||||
|
|
||||||
Example of **object.Assign**:
|
Example of **object.Assign**:
|
||||||
|
|
||||||
![Image showing object.assign without depth](https://github.com/NeilCuzon/mermaid/blob/develop/docs/img/object.assign%20without%20depth.png)
|
![Image showing object.assign without depth](/img/object.assign%20without%20depth.png)
|
||||||
|
|
||||||
• **calculateTextDimensions, calculateTextWidth,** and **calculateTextHeight** - for measuring text dimensions, width and height.
|
• **calculateTextDimensions, calculateTextWidth,** and **calculateTextHeight** - for measuring text dimensions, width and height.
|
||||||
|
|
||||||
|
|
|
@ -11,13 +11,9 @@ It is is then up to the user of the API to make use of the svg, either insert it
|
||||||
|
|
||||||
In addition to the render function, a number of behavioral configuration options are available.
|
In addition to the render function, a number of behavioral configuration options are available.
|
||||||
|
|
||||||
# Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](https://github.com/NeilCuzon/mermaid/blob/develop/docs/8.6.0_docs.md)].**
|
|
||||||
|
|
||||||
|
|
||||||
|
**Configuration methods in Mermaid version 8.6.0 have been updated, to learn more\[[click here][2]].**
|
||||||
|
|
||||||
## **What follows are config instructions for older versions**
|
## **What follows are config instructions for older versions**
|
||||||
|
|
||||||
|
@ -50,7 +46,7 @@ mermaid.initialize({
|
||||||
</script>
|
</script>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
A summary of all options and their defaults is found [here][2]. A description of each option follows below.
|
A summary of all options and their defaults is found [here][3]. A description of each option follows below.
|
||||||
|
|
||||||
## theme
|
## theme
|
||||||
|
|
||||||
|
@ -58,9 +54,9 @@ theme , the CSS style sheet
|
||||||
|
|
||||||
theme , the CSS style sheet
|
theme , the CSS style sheet
|
||||||
|
|
||||||
| Parameter | Description |Type | Required | Values|
|
| Parameter | Description | Type | Required | Values |
|
||||||
| --- | --- | --- | --- | --- |
|
| --------- | --------------- | ------ | -------- | ---------------------------------------------------- |
|
||||||
| Theme |Built in Themes| String | Optional | default, forest, dark, neutral, null|
|
| Theme | Built in Themes | String | Optional | Values include, default, forest, dark, neutral, null |
|
||||||
|
|
||||||
**Notes:**To disable any pre-defined mermaid theme, use "null".
|
**Notes:**To disable any pre-defined mermaid theme, use "null".
|
||||||
|
|
||||||
|
@ -850,6 +846,8 @@ Resets this currentConfig to conf
|
||||||
|
|
||||||
- `conf` the base currentConfig to reset to (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
- `conf` the base currentConfig to reset to (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
||||||
|
|
||||||
[1]: https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render
|
[1]: Setup.md?id=render
|
||||||
|
|
||||||
[2]: https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults
|
[2]: 8.6.0_docs.md
|
||||||
|
|
||||||
|
[3]: #mermaidapi-configuration-defaults
|
||||||
|
|
|
@ -2,6 +2,9 @@ import { assignWithDepth } from './utils';
|
||||||
import { logger } from './logger';
|
import { logger } from './logger';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**
|
||||||
|
*
|
||||||
|
* ## **What follows are config instructions for older versions**
|
||||||
* These are the default options which can be overridden with the initialization call like so:
|
* These are the default options which can be overridden with the initialization call like so:
|
||||||
* **Example 1:**
|
* **Example 1:**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -28,7 +31,7 @@ import { logger } from './logger';
|
||||||
* mermaid.initialize(config);
|
* mermaid.initialize(config);
|
||||||
* </script>
|
* </script>
|
||||||
* </pre>
|
* </pre>
|
||||||
* A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.
|
* A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.
|
||||||
*
|
*
|
||||||
* @name Configuration
|
* @name Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -36,9 +39,11 @@ const config = {
|
||||||
/** theme , the CSS style sheet
|
/** theme , the CSS style sheet
|
||||||
*
|
*
|
||||||
* theme , the CSS style sheet
|
* theme , the CSS style sheet
|
||||||
|
*
|
||||||
*| Parameter | Description |Type | Required | Values|
|
*| Parameter | Description |Type | Required | Values|
|
||||||
*| --- | --- | --- | --- | --- |
|
*| --- | --- | --- | --- | --- |
|
||||||
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
*| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
|
||||||
|
*
|
||||||
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
***Notes:**To disable any pre-defined mermaid theme, use "null".
|
||||||
* <pre>
|
* <pre>
|
||||||
* "theme": "forest",
|
* "theme": "forest",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
||||||
*
|
*
|
||||||
* The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph
|
* The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
|
||||||
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
* definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
*
|
*
|
||||||
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
* It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
||||||
|
|
Loading…
Reference in New Issue