angular-visjs icon indicating copy to clipboard operation
angular-visjs copied to clipboard

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

Open rauldearaujo opened this issue 6 years ago • 1 comments

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 avatar Apr 10 '18 15:04 rauldearaujo

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.

rauldearaujo avatar Apr 11 '18 13:04 rauldearaujo