The architecture of determinism precision beyond the viewport
I introduce the concept of deterministic re-layouts, allowing the integrator to force full geometry rebuilds even when viewport metrics remain static. This ensures that internal caches and parallax data remain in perfect sync with external DOM mutations.
With the arrival of version 1.1.23, we have moved beyond reactive updates toward a philosophy of deterministic re-layout. In the complex ecosystem of the modern web, change doesn't always come from a window resize; it often happens within the shadows of the DOM — a style mutation here, a structural shift there. To address this, we’ve empowered the integrator with the ability to force a manual rebuild of the entire layout geometry, even when viewport metrics remain static.
This shift transforms the onResize pipeline into a command of intent. By passing a "force" flag, developers can now trigger an unconditional execution of width update hooks, ensuring that every module recomputes its internal caches and parallax data with absolute accuracy. It is no longer enough for the library to simply watch the environment; it must now be able to re-sync its internal reality with external mutations. By forwarding this rebuild permission deep into the module manager, we ensure that scroll metrics and geometry are not just estimated, but reconstructed from the ground up, maintaining the integrity of the visual experience regardless of how much the underlying DOM has shifted.