v1.0.3 — Release (2026‑01‑05)
Highlights
Added an ES Module build (particles-es6.js) alongside the IIFE/global build for modern bundlers.
Introduced/standardized custom move behaviors: rocket, slide, and swirl, plus click‑driven explode effects.
Implemented density clamping with number.density and number.max to scale particle counts to canvas area.
Optimized line‑link rendering via a spatial grid to reduce pairwise checks and improve performance.
Enabled retina detection (retina_detect) to scale resolution with device pixel ratio.
Added image particle support with cached, CORS‑safe loading.
Default interactivity remains off (onhover.enable = false, onclick.enable = false)—enable per scene as needed.
Changes to presets
Rain: direction/randomness tuned per build (IIFE: bottom-right straight; ES Module: bottom with randomness) for more natural motion.
Confetti: ES Module preset runs with a lower default speed for smoother visual density.
Rocket/Slide: presets refined around gravity/drag and stiffness for more responsive interactions.
Quality & lifecycle
Cleaner event binding/unbinding and resize behavior (DPR‑aware canvas sizing and repopulation).
Improved bounds handling (bounce vs. wrap with margin).