-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Align exports with dagre-d3 #5
Comments
Sure, I will have a look. |
I've manage to migrate the Some of the exports were quite a bit different however, e.g. I had to do the following: // before
import dagreD3 from 'dagre-d3';
dagreD3.intersect.polygon(node, points, point);
// after
import { intersectPolygon } from 'dagre-d3-es/src/dagre-js/intersect/intersect-polygon';
intersectPolygon(node, points, point); To be honest, the new syntax is probably better from an ESM/tree-shaking perspective though, and is probably the big reason why the built bundle has gone down by so much! Many thanks for creating this fork! |
I answered in the other thread mermaid-js/mermaid#3712 Don't hesitate to reopen this if needed. |
Hi,
We're trying to migrate mermaid-js from dagre-d3 to dagre-es, but ran into trouble because some members are not exported in dagre-es.
mermaid-js/mermaid#3712 (comment)
Can we work together to expose the required items from dagre-es?
Thank you :)
The text was updated successfully, but these errors were encountered: