-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dagre-d3 Firefox #340
Comments
Here is the stack in Firefox. getCoords getCoords has this line:
Unfortunately, getScreenCTM is undefined and this causes an exception on Firefox. |
Wrapping your render function in a try catch solves this issue, i.e. firefox doesn't throw an error anymore. An exampe for React:
|
this was my call stack
within
it seems like firefox returns null for getScreenCTM() when the the once the |
Got this exact error when rendering inside a div that has display:none, because it's a collapsed item on the screen. If I remove the display:none, everything works OK. This is the exact issue I'm experiencing: svgdotjs/svg.js#968 The error is thrown here: function getCoords(elem)
|
This prevents using mermaid / probably other dagre-d3-based libraries, in the HTML |
fixed in svg.js' master branch |
chrome show normal,but firefox show not good, only show at right-top of quarter.
The text was updated successfully, but these errors were encountered: