MCPcopy Index your code
hub / github.com/markmap/markmap / lineWidthFactory

Function lineWidthFactory

packages/markmap-view/src/constants.ts:11–13  ·  view source on GitHub ↗
(baseWidth = 1, deltaWidth: number = 3, k: number = 2)

Source from the content-addressed store, hash-verified

9
10export const lineWidthFactory =
11 (baseWidth = 1, deltaWidth: number = 3, k: number = 2) =>
12 (node: INode) =>
13 baseWidth + deltaWidth / k ** node.state.depth;
14
15export const defaultOptions: IMarkmapOptions = {
16 autoFit: false,

Callers 2

deriveOptionsFunction · 0.90
constants.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected