D3 / Observable - dynamic center meridian

rotating

Equal Earth projection with dynamic center meridian.

Observable notebook

HTML:

 

Javascript:

Header: