d2 icon indicating copy to clipboard operation
d2 copied to clipboard

dagre container label overflows

Open alixander opened this issue 2 years ago • 2 comments

aws_s3: AWS S3 California {
    Monitoring -> California
}
aws_s3: "AWS S3 San Francisco, California" {
    California.San Francisco
}
197423135-141668fd-6f3f-47a4-a680-dffc83872e21

alixander avatar Oct 27 '22 02:10 alixander

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.

Screen Shot 2022-11-08 at 4 40 03 PM

I also found a similar issue discussed here: https://github.com/cytoscape/cytoscape.js/issues/1041#issuecomment-202603788

gavin-ts avatar Nov 09 '22 00:11 gavin-ts

ah fuck. might have to go into their source code for this one then. we'll save for later

alixander avatar Nov 09 '22 00:11 alixander