Skip to content

Commit

Permalink
#5237 Handling of subgraphs using elk
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jul 3, 2024
1 parent 772a7fc commit d0b712f
Show file tree
Hide file tree
Showing 3 changed files with 10,025 additions and 7,918 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/flowchart/flowDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ export const getData = () => {
label: subGraph.title,
labelStyle: '',
parentId: parentDB.get(subGraph.id),
padding: config.flowchart?.padding ?? 8,
padding: 8,
cssCompiledStyles: getCompiledStyles(subGraph.classes),
cssClasses: subGraph.classes.join(' '),
shape: 'rect',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const draw = async function (text: string, id: string, _version: string,
data4Layout.diagramId = id;
log.debug('REF1:', data4Layout);
await render(data4Layout, svg, element);
const padding = 8;
const padding = data4Layout.config.flowchart?.padding ?? 8;
utils.insertTitle(
element,
'statediagramTitleText',
Expand Down
Loading

0 comments on commit d0b712f

Please sign in to comment.