mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
updating es6 rules in flowchart diagram
This commit is contained in:
@@ -414,7 +414,7 @@ export const addEdges = function (edges, diagObj, graph, svg) {
|
|||||||
|
|
||||||
edges.forEach(function (edge) {
|
edges.forEach(function (edge) {
|
||||||
// Identify Link
|
// Identify Link
|
||||||
var linkIdBase = 'L-' + edge.start + '-' + edge.end;
|
const linkIdBase = 'L-' + edge.start + '-' + edge.end;
|
||||||
// count the links from+to the same node to give unique id
|
// count the links from+to the same node to give unique id
|
||||||
if (linkIdCnt[linkIdBase] === undefined) {
|
if (linkIdCnt[linkIdBase] === undefined) {
|
||||||
linkIdCnt[linkIdBase] = 0;
|
linkIdCnt[linkIdBase] = 0;
|
||||||
@@ -425,8 +425,8 @@ export const addEdges = function (edges, diagObj, graph, svg) {
|
|||||||
}
|
}
|
||||||
let linkId = linkIdBase + '-' + linkIdCnt[linkIdBase];
|
let linkId = linkIdBase + '-' + linkIdCnt[linkIdBase];
|
||||||
log.info('abc78 new link id to be used is', linkIdBase, linkId, linkIdCnt[linkIdBase]);
|
log.info('abc78 new link id to be used is', linkIdBase, linkId, linkIdCnt[linkIdBase]);
|
||||||
var linkNameStart = 'LS-' + edge.start;
|
const linkNameStart = 'LS-' + edge.start;
|
||||||
var linkNameEnd = 'LE-' + edge.end;
|
const linkNameEnd = 'LE-' + edge.end;
|
||||||
|
|
||||||
const edgeData = { style: '', labelStyle: '' };
|
const edgeData = { style: '', labelStyle: '' };
|
||||||
edgeData.minlen = edge.length || 1;
|
edgeData.minlen = edge.length || 1;
|
||||||
|
@@ -214,7 +214,7 @@ export const addEdges = function (edges, g, diagObj) {
|
|||||||
cnt++;
|
cnt++;
|
||||||
|
|
||||||
// Identify Link
|
// Identify Link
|
||||||
var linkIdBase = 'L-' + edge.start + '-' + edge.end;
|
const linkIdBase = 'L-' + edge.start + '-' + edge.end;
|
||||||
// count the links from+to the same node to give unique id
|
// count the links from+to the same node to give unique id
|
||||||
if (linkIdCnt[linkIdBase] === undefined) {
|
if (linkIdCnt[linkIdBase] === undefined) {
|
||||||
linkIdCnt[linkIdBase] = 0;
|
linkIdCnt[linkIdBase] = 0;
|
||||||
@@ -225,8 +225,8 @@ export const addEdges = function (edges, g, diagObj) {
|
|||||||
}
|
}
|
||||||
let linkId = linkIdBase + '-' + linkIdCnt[linkIdBase];
|
let linkId = linkIdBase + '-' + linkIdCnt[linkIdBase];
|
||||||
log.info('abc78 new link id to be used is', linkIdBase, linkId, linkIdCnt[linkIdBase]);
|
log.info('abc78 new link id to be used is', linkIdBase, linkId, linkIdCnt[linkIdBase]);
|
||||||
var linkNameStart = 'LS-' + edge.start;
|
const linkNameStart = 'LS-' + edge.start;
|
||||||
var linkNameEnd = 'LE-' + edge.end;
|
const linkNameEnd = 'LE-' + edge.end;
|
||||||
|
|
||||||
const edgeData = { style: '', labelStyle: '' };
|
const edgeData = { style: '', labelStyle: '' };
|
||||||
edgeData.minlen = edge.length || 1;
|
edgeData.minlen = edge.length || 1;
|
||||||
|
@@ -176,9 +176,9 @@ export const addEdges = function (edges, g, diagObj) {
|
|||||||
cnt++;
|
cnt++;
|
||||||
|
|
||||||
// Identify Link
|
// Identify Link
|
||||||
var linkId = 'L-' + edge.start + '-' + edge.end;
|
const linkId = 'L-' + edge.start + '-' + edge.end;
|
||||||
var linkNameStart = 'LS-' + edge.start;
|
const linkNameStart = 'LS-' + edge.start;
|
||||||
var linkNameEnd = 'LE-' + edge.end;
|
const linkNameEnd = 'LE-' + edge.end;
|
||||||
|
|
||||||
const edgeData = {};
|
const edgeData = {};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user