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

Node out of bound #81

Open
csystem-it opened this issue Dec 1, 2021 · 0 comments
Open

Node out of bound #81

csystem-it opened this issue Dec 1, 2021 · 0 comments

Comments

@csystem-it
Copy link

Hi,

I'm trying to use a custom node render, to make larger nodes with this code:

    function nodeRender(r, n) {
      //the Raphael set is obligatory, containing all you want to display
      return r.set()
        .push(r.rect(-30, -13, 130, 60).attr({
          'fill': '#FFF',
          'fill-opacity': 0,
          'stroke-width': 2,
          r: 9
        }))
        .push(r.text(35, 10, n.label).attr({
          opacity: 1,
          'font-size': 16
        }))
    }

But when i do that, some nodes go out of bound of the selected canvas, i think i need to tell dracula the new node size, but i'm not sure how to do that.

I have a full example here: https://jsfiddle.net/tkheyznr/1/
(i hope jsfiddle is ok)

Thanks in advance

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

1 participant