mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-07 01:26:42 +02:00
chore: resolve eslint warnings in packages/mermaid/src/dagre-wrapper/clusters.js
This commit is contained in:
@@ -238,7 +238,7 @@ let clusterElems = {};
|
|||||||
|
|
||||||
export const insertCluster = (elem, node) => {
|
export const insertCluster = (elem, node) => {
|
||||||
log.trace('Inserting cluster');
|
log.trace('Inserting cluster');
|
||||||
const shape = node.shape || 'rect';
|
const shape = node.shape ?? 'rect';
|
||||||
clusterElems[node.id] = shapes[shape](elem, node);
|
clusterElems[node.id] = shapes[shape](elem, node);
|
||||||
};
|
};
|
||||||
export const getClusterTitleWidth = (elem, node) => {
|
export const getClusterTitleWidth = (elem, node) => {
|
||||||
|
Reference in New Issue
Block a user