Skip to content
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

How can I decrease height of mariagge 2nd line #130

Open
dungla2011 opened this issue Jan 26, 2022 · 3 comments
Open

How can I decrease height of mariagge 2nd line #130

dungla2011 opened this issue Jan 26, 2022 · 3 comments

Comments

@dungla2011
Copy link

image

Thank you!

@y377
Copy link
Contributor

y377 commented Feb 27, 2022

[
{
    "name": "Father", // The name of the node
    "class": "node", // The CSS class of the node
    "textClass": "nodeText", // The CSS class of the text in the node
    "depthOffset": 1, // Generational height offset
    "marriages": [
    { // Marriages is a list of nodes
        "spouse":
        { // Each marriage has one spouse
            "name": "Mother",
        },
        "children": [
        { // List of children nodes
            "name": "Child",
        }]
    }],
    "extra":
    {} // Custom data passed to renderers
}]

@dungla2011
Copy link
Author

dungla2011 commented Mar 17, 2022

I have not resolved it:

https://giapha.galaxycloud.vn/le-nguyen-hoang.aj861518.sdata

image

@eroffa
Copy link

eroffa commented Feb 11, 2023

Try playing with these functions:

nodeHeightSeperation: function(nodeWidth, nodeMaxHeight) {
  return nodeMaxHeight * 1.5; // nodeMaxHeight * 2 and so on
},

And

nodeSize: function(nodes, width, textRenderer) {
  _.map(nodes, function (n) {
    n.cWidth = 150; // 300 and so on
    n.cHeight = 150; // 300 and so on
  });

return [250, 250]; // 500, 500 and so on
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants