mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Merge pull request #5724 from aloisklink/fix/default-sankey-useMaxWidth-to-true
refactor!(sankey): default to `useMaxWidth` true
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#### Defined in
|
#### Defined in
|
||||||
|
|
||||||
[packages/mermaid/src/defaultConfig.ts:272](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L272)
|
[packages/mermaid/src/defaultConfig.ts:266](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L266)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -248,12 +248,6 @@ const config: RequiredDeep<MermaidConfig> = {
|
|||||||
...defaultConfigJson.requirement,
|
...defaultConfigJson.requirement,
|
||||||
useWidth: undefined,
|
useWidth: undefined,
|
||||||
},
|
},
|
||||||
sankey: {
|
|
||||||
...defaultConfigJson.sankey,
|
|
||||||
// this is false, unlike every other diagram (other than gitGraph)
|
|
||||||
// TODO: can we make this default to `true` instead?
|
|
||||||
useMaxWidth: false,
|
|
||||||
},
|
|
||||||
packet: {
|
packet: {
|
||||||
...defaultConfigJson.packet,
|
...defaultConfigJson.packet,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user