Layer Cake

Layer Cake is a graphics framework built on top of Svelte. In its basic usage, it measures your target div and your data and creates scales that stay synced on layout changes. Using its component methods, you can then use these scales to organize multiple, mostly-reusable Svelte components, whether they be SVG, HTML, Canvas or WebGl. Since they all share the same coordinate space, you can build your graphic one layer at a time.

Read the guide or see some examples below: