We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// code const g = new dagre.graphlib.Graph({compound:true}) g.setGraph({ rankdir: 'TB', nodesep: 100, ranksep: 80,marginx:100,marginy:100,}) g.setDefaultEdgeLabel(() => ({}))
nodes.forEach((node) => { const {width,height} = node.size() const parentId = node?.parent?.id ?? undefined if(parentId) g.setParent(node.id,parentId) g.setNode(node.id, {label:${node.id},width, height}) }) dagre.layout(g)
${node.id}
// console error chunk-YSKSNXDD.js?v=349623b9:5910 Uncaught TypeError: Cannot set properties of undefined (setting 'rank')
How should I solve this problem?
The text was updated successfully, but these errors were encountered:
Im struggling with the same issue 🙏
Sorry, something went wrong.
No branches or pull requests
// code
const g = new dagre.graphlib.Graph({compound:true})
g.setGraph({ rankdir: 'TB', nodesep: 100, ranksep: 80,marginx:100,marginy:100,})
g.setDefaultEdgeLabel(() => ({}))
nodes.forEach((node) => {
const {width,height} = node.size()
const parentId = node?.parent?.id ?? undefined
if(parentId) g.setParent(node.id,parentId)
g.setNode(node.id, {label:
${node.id}
,width, height})})
dagre.layout(g)
// console error
chunk-YSKSNXDD.js?v=349623b9:5910 Uncaught TypeError: Cannot set properties of undefined (setting 'rank')
How should I solve this problem?
The text was updated successfully, but these errors were encountered: