Releases: mhkeller/layercake
βοΈ The Ordinal Scale Edition βοΈ
This version brings some improvements to how ordinal (scaleBand, scalePoint and scaleOrdinal) are handled. Layer Cake now auto-calculates unique values as the domain for these scales and doesn't reverse the y scale range for them. See the changelog for full details.
π₯ The Reactivity Edition π₯
This release improves reactivity. See the CHANGELOG for more info.
πΌ The SvelteKit Version πΌ
The library is now built with SvelteKit and includes type hints for the component props as well as the exported helper functions. The website is now in this repo too. This is a bump in the major version but there shouldn't be any breaking changes.
Full Changelog: v5.0.3...v6.0.0
π» Simpler calcExtents API π»
This release makes the API for calcExtents more consistent with its output format and also makes it easier to access that data in examples like Small Multiples. See this pull request for more info and also the CHANGELOG.
π The Layout Export Edition π
For layout components, this exports the underlying HTML elements and canvas contexts. It's helpful in things like Canvas components if you want to modify the main canvas outside of any child component and you don't want to create an intermediary wrapper. It also lets you use things like d3.zoom, which require access to the root <svg>
tag. It closes #40
π© The Domain Padding Edition π©
This fixes a long standing issue where domain padding was off by a few pixels. Many thanks to @veltman for figuring out the fix. This release also adds support for non-linear scales so you can safely use logarithmic or power scales, too.
The Server-side edition
Server-side rendering was a little weird in v2.0 since you got it for free but it actually caused an annoying flash of unsized content. In this version, you can control server-side rendering via ssr={true}
or ssr={false}
(the default) as a prop on <LayerCake>
. It takes a cue from Rich's Pancake and builds out a new ScaledSvg
layout component for doing server-side SVGs and also includes numerous examples about how to do other things like maps with a fixed aspect ratio as well as others.
This release also has a few helper functions for SVG hovers and evens out parts of the API.
See the CHANGELOG for full details.
The Tres Leches edition
Complete rewrite to use Svelte 3! It's now a component based interface and is a lot more intuitive to compose graphics. The API options are pretty much the same. Some notable changes:
- reverse range functions are now
xReverse
instead ofreverseX
- There's an added z-scale to give more options. Examples in the works.
- Domain padding is fixed per #11
Final <=1.0.0 release
This will be the final release in the <=1.0.0 branch. The next version is the Svelte 3 version and will jump to 2.0.0.