mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
#2072 fix for composite states
This commit is contained in:
parent
d1180a5c69
commit
cea1441eeb
@ -146,6 +146,8 @@ const roundedWithTitle = (parent, node) => {
|
||||
const width = node.width <= bbox.width + node.padding ? bbox.width + node.padding : node.width;
|
||||
if (node.width <= bbox.width + node.padding) {
|
||||
node.diff = (bbox.width + node.padding - node.width) / 2;
|
||||
} else {
|
||||
node.diff = -node.padding / 2;
|
||||
}
|
||||
|
||||
// center the rect around its coordinate
|
||||
|
Loading…
x
Reference in New Issue
Block a user