mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-17 05:00:12 +02:00
Lint
This commit is contained in:
@@ -81,7 +81,7 @@ export const draw = function (text: string, id: string, _version: string, diagOb
|
|||||||
[SankeyNodeAlignment.right, d3SankeyRight],
|
[SankeyNodeAlignment.right, d3SankeyRight],
|
||||||
[SankeyNodeAlignment.center, d3SankeyCenter],
|
[SankeyNodeAlignment.center, d3SankeyCenter],
|
||||||
[SankeyNodeAlignment.justify, d3SankeyJustify],
|
[SankeyNodeAlignment.justify, d3SankeyJustify],
|
||||||
])
|
]);
|
||||||
// We need fallback because typescript thinks that `get` can result in undefined
|
// We need fallback because typescript thinks that `get` can result in undefined
|
||||||
const nodeAlign = alignmentsMap.get(nodeAlignment) || d3SankeyJustify;
|
const nodeAlign = alignmentsMap.get(nodeAlignment) || d3SankeyJustify;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user