Leaflet.PixiOverlay icon indicating copy to clipboard operation
Leaflet.PixiOverlay copied to clipboard

collision detection with variable size markers - keep sizes constant

Open gase12 opened this issue 3 years ago • 2 comments

hi. I am trying to prevent the circle collision detector script to rescale the markers if they overlap. I am doing a dataviz project and using sizes to represent data. even with fixed circle size the algorithm rescales nodes.

any suggestion on turning off this feature? lambda is wired in too much, so i am not sure what to modify exactly. c1.r *= lambda1; c2.r *= lambda2;

thanks

gase12 avatar Dec 20 '21 15:12 gase12

Hi. I don't think that the solveCollision algorithm can be easily modified so that markers keep a constant size.

manubb avatar Dec 20 '21 16:12 manubb

hm. ok. no prob. I will look into something else then to solve this on canvas thx

gase12 avatar Dec 20 '21 17:12 gase12