mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
Cleanup docs
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import { darken, lighten, isDark } from 'khroma';
|
|
||||||
|
|
||||||
const genSections = (options) => {
|
const genSections = (options) => {
|
||||||
let sections = '';
|
let sections = '';
|
||||||
|
|
||||||
|
@@ -25,11 +25,6 @@ function drawNodes(svg, mindmap, section, conf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param edgesElem
|
|
||||||
* @param mindmap
|
|
||||||
* @param parent
|
|
||||||
* @param depth
|
|
||||||
* @param section
|
|
||||||
* @param edgesEl
|
* @param edgesEl
|
||||||
* @param cy
|
* @param cy
|
||||||
*/
|
*/
|
||||||
@@ -51,11 +46,9 @@ function drawEdges(edgesEl, cy) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {any} svg The svg element to draw the diagram onto
|
* @param mindmap The mindmap data and hierarchy
|
||||||
* @param {object} mindmap The mindmap data and hierarchy
|
|
||||||
* @param section
|
|
||||||
* @param cy
|
* @param cy
|
||||||
* @param {object} conf The configuration object
|
* @param conf The configuration object
|
||||||
* @param level
|
* @param level
|
||||||
*/
|
*/
|
||||||
function addNodes(mindmap, cy, conf, level) {
|
function addNodes(mindmap, cy, conf, level) {
|
||||||
|
@@ -159,7 +159,6 @@ const roundedRectBkg = function (elem, node) {
|
|||||||
/**
|
/**
|
||||||
* @param {object} elem The D3 dom element in which the node is to be added
|
* @param {object} elem The D3 dom element in which the node is to be added
|
||||||
* @param {object} node The node to be added
|
* @param {object} node The node to be added
|
||||||
* @param section
|
|
||||||
* @param fullSection
|
* @param fullSection
|
||||||
* @param {object} conf The configuration object
|
* @param {object} conf The configuration object
|
||||||
* @returns {number} The height nodes dom element
|
* @returns {number} The height nodes dom element
|
||||||
|
@@ -126,4 +126,4 @@
|
|||||||
"**/*.css",
|
"**/*.css",
|
||||||
"**/*.scss"
|
"**/*.scss"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -26,7 +26,7 @@ ${'2w'} | ${moment.duration(2, 'w')}
|
|||||||
```
|
```
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const convert = (template: TemplateStringsArray, ...params: any[]) => {
|
export const convert = (template: TemplateStringsArray, ...params: unknown[]) => {
|
||||||
const header = template[0]
|
const header = template[0]
|
||||||
.trim()
|
.trim()
|
||||||
.split('|')
|
.split('|')
|
||||||
|
Reference in New Issue
Block a user