d2
d2 copied to clipboard
dagre container label overflows
trafficstars
aws_s3: AWS S3 California {
Monitoring -> California
}
aws_s3: "AWS S3 San Francisco, California" {
California.San Francisco
}
dagre sets the parent node widths purely based on the children bounding box, so I don't think there's a simple solution for this.
I tried updating dagre's removeBorderNodes to use the node's own width if it is larger, but this would still need a solution for shifting other nodes accordingly.

I also found a similar issue discussed here: https://github.com/cytoscape/cytoscape.js/issues/1041#issuecomment-202603788
ah fuck. might have to go into their source code for this one then. we'll save for later