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

Set node size and image size when shape is 'circularImage' #79

Open
rauldearaujo opened this issue Apr 10, 2018 · 1 comment
Open

Set node size and image size when shape is 'circularImage' #79

rauldearaujo opened this issue Apr 10, 2018 · 1 comment

Comments

@rauldearaujo
Copy link

Is it possible to set a size for a 'circularImage' node without to scale image proportionally before draw network?

Thank's for Vis.js!

@rauldearaujo
Copy link
Author

rauldearaujo commented Apr 11, 2018

I have fixed it changing vis.js file, replacing

width = this.options.size * 2 * ratio_width;
height = this.options.size * 2 * ratio_height;

By

width = this.options.size * 1.3 * ratio_width;
height = this.options.size * 1.3 * ratio_height;

at line 14236.

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