diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js b/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js index 68b3d99..bed4645 100644 --- a/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js +++ b/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js @@ -49,9 +49,9 @@ document.addEventListener('DOMContentLoaded', function () { container.style.display = 'block'; container.classList.remove('flex', 'flex-wrap'); - var padding = 8; // px gap between tags - var aStep = 0.3; // radians per spiral step - var rScale = (containerWidth * 0.018); // spiral tightness + var padding = -2; // px gap between tags (negative allows ~2px edge overlap) + var aStep = 0.2; // radians per spiral step + var rScale = (containerWidth * 0.013); // spiral tightness var minTop = Infinity, maxBottom = -Infinity; @@ -63,7 +63,7 @@ document.addEventListener('DOMContentLoaded', function () { var placed_rect; // Step along spiral until no collision - for (var attempt = 0; attempt < 2000; attempt++) { + for (var attempt = 0; attempt < 3000; attempt++) { var r = rScale * theta; var x = cx + r * Math.cos(theta) - w / 2; var y = r * Math.sin(theta) - h / 2; |
