Closed Jack-Fawcett closed 1 year ago
It seems the issue has something to do with the minified file
In the original version, h (serializeString) is not in the else section, so it's accessible
@bumbeishvili is there a way to avoid this error in the minifying process?
I have no idea, If you can, just use this class
And don't forget to include d3 and flextree
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-flextree@2.1.2/build/d3-flextree.js"></script>
[Description] When using export SVG function reports an error when used:
d3-org-chart@3.0.1-next.1:69 Uncaught ReferenceError: h is not defined at t.OrgChart.downloadImage (d3-org-chart@3.0.1-next.1:69:24027) at t.OrgChart.exportSvg (d3-org-chart@3.0.1-next.1:69:23585) at HTMLButtonElement.onclick ((index):1:7)
Steps to reproduce the behavior:
Expected behavior: Download SVG file
Desktop