techniq / layerchart

Composable Svelte chart components to build a wide range of visualizations
https://www.layerchart.com
MIT License
663 stars 12 forks source link

Svelte 5: Geo projection transform timing on initial page load #261

Open techniq opened 1 month ago

techniq commented 1 month ago

If the page is the initially rendered route, there appears to be an odd timing issue where the fitGeojson is calculated too early. Clicking "reset" will fix the scale/transform, or if you came to the page on a subsequent route.

Note: SSR is currently disabled on the docs, so this is only client side routing.

A video better demonstrates what is happening:

https://github.com/user-attachments/assets/b8723a46-ff87-4a11-afa7-63550e25826e

techniq commented 1 month ago

This might only be present locally, as I haven't been able to produced on the fleshly deployed site