mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Fixed Linting issues
This commit is contained in:
parent
8c4808a681
commit
4c5d813e58
@ -155,7 +155,7 @@
|
|||||||
// arrowMarkerAbsolute: true,
|
// arrowMarkerAbsolute: true,
|
||||||
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
||||||
logLevel: 1,
|
logLevel: 1,
|
||||||
gitGraph: {rotateCommitLabel: false},
|
gitGraph: { rotateCommitLabel: false },
|
||||||
flowchart: { curve: 'linear', htmlLabels: true },
|
flowchart: { curve: 'linear', htmlLabels: true },
|
||||||
// gantt: { axisFormat: '%m/%d/%Y' },
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
||||||
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { select } from 'd3';
|
import { select } from 'd3';
|
||||||
import { getConfig,setupGraphViewbox } from '../../diagram-api/diagramAPI';
|
import { getConfig, setupGraphViewbox } from '../../diagram-api/diagramAPI';
|
||||||
import { log } from '../../logger';
|
import { log } from '../../logger';
|
||||||
import addSVGAccessibilityFields from '../../accessibility';
|
import addSVGAccessibilityFields from '../../accessibility';
|
||||||
|
|
||||||
@ -288,13 +288,13 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect if there are other commits between commit1's x-position and commit2's x-position on the same
|
* Detect if there are other commits between commit1's x-position and commit2's x-position on the
|
||||||
* branch as commit2.
|
* same branch as commit2.
|
||||||
*
|
*
|
||||||
* @param {any} commit1
|
* @param {any} commit1
|
||||||
* @param {any} commit2
|
* @param {any} commit2
|
||||||
* @param allCommits
|
* @param allCommits
|
||||||
* @returns {boolean} if there are commits between commit1's x-position and commit2's x-position
|
* @returns {boolean} If there are commits between commit1's x-position and commit2's x-position
|
||||||
*/
|
*/
|
||||||
const hasOverlappingCommits = (commit1, commit2, allCommits) => {
|
const hasOverlappingCommits = (commit1, commit2, allCommits) => {
|
||||||
// Find commits on the same branch as commit2
|
// Find commits on the same branch as commit2
|
||||||
@ -317,7 +317,7 @@ const hasOverlappingCommits = (commit1, commit2, allCommits) => {
|
|||||||
* @param {any} y1
|
* @param {any} y1
|
||||||
* @param {any} y2
|
* @param {any} y2
|
||||||
* @param {any} _depth
|
* @param {any} _depth
|
||||||
* @returns {number} y value between y1 and y2
|
* @returns {number} Y value between y1 and y2
|
||||||
*/
|
*/
|
||||||
const findLane = (y1, y2, _depth) => {
|
const findLane = (y1, y2, _depth) => {
|
||||||
const depth = _depth || 0;
|
const depth = _depth || 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user