svg-crowbar icon indicating copy to clipboard operation
svg-crowbar copied to clipboard

Downloaded SVG does not keep rects in dagreD3 graphs

Open jennyxing opened this issue 9 years ago • 1 comments

try SVG Crowbar 2 here: http://cpettitt.github.io/project/dagre-d3/latest/demo/tcp-state-diagram.html

jennyxing avatar Jul 22 '15 19:07 jennyxing

I'm experiencing the same issue with this chart http://bl.ocks.org/ccblaisdell/fe598e13fc9d263df5bd . You can see a simpler case here http://bl.ocks.org/ccblaisdell/2eb788504f88899342be

For some reason, getComputedStyle is setting the rects' width and height to auto, even if those values are set as attributes on the rect (as in @jennyxing27 's example) or as inherited or inline css styles. I assume that makes this a browser bug, but is it something that can be worked around?

ccblaisdell avatar Nov 13 '15 23:11 ccblaisdell