Skip to content

Releases: mhkeller/layercake

πŸ’Ό The SvelteKit Version πŸ’Ό

17 Jan 21:01
Compare
Choose a tag to compare

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 πŸ’»

21 Jul 00:34
Compare
Choose a tag to compare

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 πŸš€

18 Mar 03:15
Compare
Choose a tag to compare

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 🍩

23 Nov 05:03
Compare
Choose a tag to compare

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.

Closes #17. See the CHANGELOG for more details.

The Server-side edition

16 Jun 03:39
Compare
Choose a tag to compare

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

24 Jan 05:09
Compare
Choose a tag to compare

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:

  1. reverse range functions are now xReverse instead of reverseX
  2. There's an added z-scale to give more options. Examples in the works.
  3. Domain padding is fixed per #11

Final <=1.0.0 release

24 Jan 02:31
Compare
Choose a tag to compare

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.