Cleanup docs

This commit is contained in:
Sidharth Vinod
2022-11-14 15:24:47 +05:30
parent 4decaf0308
commit 051b4271d3
5 changed files with 4 additions and 14 deletions

View File

@@ -1,5 +1,3 @@
import { darken, lighten, isDark } from 'khroma';
const genSections = (options) => {
let sections = '';

View File

@@ -25,11 +25,6 @@ function drawNodes(svg, mindmap, section, conf) {
}
/**
* @param edgesElem
* @param mindmap
* @param parent
* @param depth
* @param section
* @param edgesEl
* @param cy
*/
@@ -51,11 +46,9 @@ function drawEdges(edgesEl, cy) {
}
/**
* @param {any} svg The svg element to draw the diagram onto
* @param {object} mindmap The mindmap data and hierarchy
* @param section
* @param mindmap The mindmap data and hierarchy
* @param cy
* @param {object} conf The configuration object
* @param conf The configuration object
* @param level
*/
function addNodes(mindmap, cy, conf, level) {

View File

@@ -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} node The node to be added
* @param section
* @param fullSection
* @param {object} conf The configuration object
* @returns {number} The height nodes dom element

View File

@@ -126,4 +126,4 @@
"**/*.css",
"**/*.scss"
]
}
}

View File

@@ -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]
.trim()
.split('|')