mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
#1295 Lint fix
This commit is contained in:
@@ -40,7 +40,7 @@ const extension = (elem, type, id) => {
|
|||||||
.attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead
|
.attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead
|
||||||
};
|
};
|
||||||
|
|
||||||
const composition = (elem, type, id) => {
|
const composition = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('defs')
|
.append('defs')
|
||||||
.append('marker')
|
.append('marker')
|
||||||
@@ -67,7 +67,7 @@ const composition = (elem, type, id) => {
|
|||||||
.append('path')
|
.append('path')
|
||||||
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
|
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
|
||||||
};
|
};
|
||||||
const aggregation = (elem, type, id) => {
|
const aggregation = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('defs')
|
.append('defs')
|
||||||
.append('marker')
|
.append('marker')
|
||||||
@@ -94,7 +94,7 @@ const aggregation = (elem, type, id) => {
|
|||||||
.append('path')
|
.append('path')
|
||||||
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
|
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
|
||||||
};
|
};
|
||||||
const dependency = (elem, type, id) => {
|
const dependency = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('defs')
|
.append('defs')
|
||||||
.append('marker')
|
.append('marker')
|
||||||
@@ -121,7 +121,7 @@ const dependency = (elem, type, id) => {
|
|||||||
.append('path')
|
.append('path')
|
||||||
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
|
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
|
||||||
};
|
};
|
||||||
const point = (elem, type, id) => {
|
const point = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('marker')
|
.append('marker')
|
||||||
.attr('id', type + '-pointEnd')
|
.attr('id', type + '-pointEnd')
|
||||||
@@ -155,7 +155,7 @@ const point = (elem, type, id) => {
|
|||||||
.style('stroke-width', 1)
|
.style('stroke-width', 1)
|
||||||
.style('stroke-dasharray', '1,0');
|
.style('stroke-dasharray', '1,0');
|
||||||
};
|
};
|
||||||
const circle = (elem, type, id) => {
|
const circle = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('marker')
|
.append('marker')
|
||||||
.attr('id', 'circleEnd')
|
.attr('id', 'circleEnd')
|
||||||
@@ -194,7 +194,7 @@ const circle = (elem, type, id) => {
|
|||||||
.style('stroke-width', 1)
|
.style('stroke-width', 1)
|
||||||
.style('stroke-dasharray', '1,0');
|
.style('stroke-dasharray', '1,0');
|
||||||
};
|
};
|
||||||
const cross = (elem, type, id) => {
|
const cross = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('marker')
|
.append('marker')
|
||||||
.attr('id', 'crossEnd')
|
.attr('id', 'crossEnd')
|
||||||
@@ -231,7 +231,7 @@ const cross = (elem, type, id) => {
|
|||||||
.style('stroke-width', 2)
|
.style('stroke-width', 2)
|
||||||
.style('stroke-dasharray', '1,0');
|
.style('stroke-dasharray', '1,0');
|
||||||
};
|
};
|
||||||
const barb = (elem, type, id) => {
|
const barb = (elem, type) => {
|
||||||
elem
|
elem
|
||||||
.append('defs')
|
.append('defs')
|
||||||
.append('marker')
|
.append('marker')
|
||||||
|
Reference in New Issue
Block a user