How to align the svg with the viewBox for variable size tree

前端 未结 0 1317
广开言路
广开言路 2021-01-20 06:16

I have a D3JS tree and managed to download it as a SVG file. using the below code I managed to get the svg size and set the viewBox size accordingly (with 2% padding).

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题