From 506c4c22f691b7fd67d11e616edbaec162b8e386 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Sep 2024 12:23:24 +0000 Subject: [PATCH 1/3] Version Packages --- .changeset/chilly-years-vanish.md | 5 -- .changeset/cold-taxis-sit.md | 5 -- .changeset/cool-needles-divide.md | 5 -- .changeset/cuddly-avocados-trade.md | 5 -- .changeset/eight-llamas-pump.md | 5 -- .changeset/empty-pianos-add.md | 5 -- .changeset/five-plums-speak.md | 5 -- .changeset/flat-ties-trade.md | 5 -- .changeset/four-months-judge.md | 5 -- .changeset/four-rockets-cry.md | 5 -- .changeset/fresh-houses-run.md | 5 -- .changeset/green-crews-change.md | 5 -- .changeset/grumpy-masks-agree.md | 5 -- .changeset/hot-houses-stare.md | 5 -- .changeset/late-cheetahs-smell.md | 5 -- .changeset/little-geese-laugh.md | 5 -- .changeset/long-crabs-teach.md | 5 -- .changeset/long-pugs-tan.md | 5 -- .changeset/lucky-tables-retire.md | 5 -- .changeset/mighty-teachers-rest.md | 5 -- .changeset/neat-schools-bake.md | 5 -- .changeset/new-readers-sparkle.md | 5 -- .changeset/polite-cooks-tease.md | 5 -- .changeset/polite-tools-chew.md | 5 -- .changeset/poor-hats-roll.md | 5 -- .changeset/red-roses-drive.md | 5 -- .changeset/rotten-baboons-design.md | 5 -- .changeset/rude-students-lick.md | 5 -- .changeset/seven-cars-happen.md | 5 -- .changeset/sharp-ways-move.md | 5 -- .changeset/short-colts-smash.md | 5 -- .changeset/slimy-points-sing.md | 5 -- .changeset/smooth-tomatoes-hug.md | 5 -- .changeset/spotty-moles-rhyme.md | 5 -- .changeset/stale-tools-taste.md | 5 -- .changeset/twelve-otters-count.md | 5 -- .changeset/twenty-queens-remember.md | 5 -- .changeset/weak-tigers-poke.md | 5 -- .changeset/witty-goats-breathe.md | 5 -- packages/layerchart/CHANGELOG.md | 84 ++++++++++++++++++++++++++++ packages/layerchart/package.json | 2 +- 41 files changed, 85 insertions(+), 196 deletions(-) delete mode 100644 .changeset/chilly-years-vanish.md delete mode 100644 .changeset/cold-taxis-sit.md delete mode 100644 .changeset/cool-needles-divide.md delete mode 100644 .changeset/cuddly-avocados-trade.md delete mode 100644 .changeset/eight-llamas-pump.md delete mode 100644 .changeset/empty-pianos-add.md delete mode 100644 .changeset/five-plums-speak.md delete mode 100644 .changeset/flat-ties-trade.md delete mode 100644 .changeset/four-months-judge.md delete mode 100644 .changeset/four-rockets-cry.md delete mode 100644 .changeset/fresh-houses-run.md delete mode 100644 .changeset/green-crews-change.md delete mode 100644 .changeset/grumpy-masks-agree.md delete mode 100644 .changeset/hot-houses-stare.md delete mode 100644 .changeset/late-cheetahs-smell.md delete mode 100644 .changeset/little-geese-laugh.md delete mode 100644 .changeset/long-crabs-teach.md delete mode 100644 .changeset/long-pugs-tan.md delete mode 100644 .changeset/lucky-tables-retire.md delete mode 100644 .changeset/mighty-teachers-rest.md delete mode 100644 .changeset/neat-schools-bake.md delete mode 100644 .changeset/new-readers-sparkle.md delete mode 100644 .changeset/polite-cooks-tease.md delete mode 100644 .changeset/polite-tools-chew.md delete mode 100644 .changeset/poor-hats-roll.md delete mode 100644 .changeset/red-roses-drive.md delete mode 100644 .changeset/rotten-baboons-design.md delete mode 100644 .changeset/rude-students-lick.md delete mode 100644 .changeset/seven-cars-happen.md delete mode 100644 .changeset/sharp-ways-move.md delete mode 100644 .changeset/short-colts-smash.md delete mode 100644 .changeset/slimy-points-sing.md delete mode 100644 .changeset/smooth-tomatoes-hug.md delete mode 100644 .changeset/spotty-moles-rhyme.md delete mode 100644 .changeset/stale-tools-taste.md delete mode 100644 .changeset/twelve-otters-count.md delete mode 100644 .changeset/twenty-queens-remember.md delete mode 100644 .changeset/weak-tigers-poke.md delete mode 100644 .changeset/witty-goats-breathe.md diff --git a/.changeset/chilly-years-vanish.md b/.changeset/chilly-years-vanish.md deleted file mode 100644 index 50a93e40a..000000000 --- a/.changeset/chilly-years-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Bars): Support passing `data` override diff --git a/.changeset/cold-taxis-sit.md b/.changeset/cold-taxis-sit.md deleted file mode 100644 index 8e084c953..000000000 --- a/.changeset/cold-taxis-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Chart): Expose `config` as slot prop diff --git a/.changeset/cool-needles-divide.md b/.changeset/cool-needles-divide.md deleted file mode 100644 index ccc3f07d5..000000000 --- a/.changeset/cool-needles-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat: Add simplified charts to streamline creating common chart types with recommended conventions and granular extensibility (AreaChart, BarChart, LineChart, PieChart, and ScatterChart) diff --git a/.changeset/cuddly-avocados-trade.md b/.changeset/cuddly-avocados-trade.md deleted file mode 100644 index 30d4c7b62..000000000 --- a/.changeset/cuddly-avocados-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Bar): Forward pointer events to enable individual bar tooltips diff --git a/.changeset/eight-llamas-pump.md b/.changeset/eight-llamas-pump.md deleted file mode 100644 index b534e24a8..000000000 --- a/.changeset/eight-llamas-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Highlight): Handle non-zero y values when drawing lines (ex. radial line chart with inner radius) diff --git a/.changeset/empty-pianos-add.md b/.changeset/empty-pianos-add.md deleted file mode 100644 index 30594e304..000000000 --- a/.changeset/empty-pianos-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Voronoi): Support radial coordinates. Issue #112 diff --git a/.changeset/five-plums-speak.md b/.changeset/five-plums-speak.md deleted file mode 100644 index 91cf1d6ad..000000000 --- a/.changeset/five-plums-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Tooltip): Rename Tooltip to Tooltip.Root diff --git a/.changeset/flat-ties-trade.md b/.changeset/flat-ties-trade.md deleted file mode 100644 index 4eee48aff..000000000 --- a/.changeset/flat-ties-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales diff --git a/.changeset/four-months-judge.md b/.changeset/four-months-judge.md deleted file mode 100644 index 072a5fee2..000000000 --- a/.changeset/four-months-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Labels): Handle multiple x or y properties (stack, diverting) by leveraging Points component internally diff --git a/.changeset/four-rockets-cry.md b/.changeset/four-rockets-cry.md deleted file mode 100644 index 11114952a..000000000 --- a/.changeset/four-rockets-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Tooltip): Remove default grid on Tooltip.Root and add Tooltip.List as Tooltip.Item container diff --git a/.changeset/fresh-houses-run.md b/.changeset/fresh-houses-run.md deleted file mode 100644 index aa59311f7..000000000 --- a/.changeset/fresh-houses-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Chart): Default domain sorting to `false` (instead of LayerCake's `true`) to simplify bandScale use cases diff --git a/.changeset/green-crews-change.md b/.changeset/green-crews-change.md deleted file mode 100644 index 3613c3398..000000000 --- a/.changeset/green-crews-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Points): Add `xValue` and `yValue` to each point, and improve types diff --git a/.changeset/grumpy-masks-agree.md b/.changeset/grumpy-masks-agree.md deleted file mode 100644 index e0c79a167..000000000 --- a/.changeset/grumpy-masks-agree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Tooltip): Consolidate Tooltip components (TooltipItem, TooltipSeparator, etc) to Tooltip.Item, Tooltip.Separtor, etc diff --git a/.changeset/hot-houses-stare.md b/.changeset/hot-houses-stare.md deleted file mode 100644 index 468ae04be..000000000 --- a/.changeset/hot-houses-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Highlight): Support radial coordiantes for `points` and `lines`. Issue #112 diff --git a/.changeset/late-cheetahs-smell.md b/.changeset/late-cheetahs-smell.md deleted file mode 100644 index ec4c0d5e7..000000000 --- a/.changeset/late-cheetahs-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Spline): Handle null data via defined by default diff --git a/.changeset/little-geese-laugh.md b/.changeset/little-geese-laugh.md deleted file mode 100644 index e36903b16..000000000 --- a/.changeset/little-geese-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Points): Add canvas support diff --git a/.changeset/long-crabs-teach.md b/.changeset/long-crabs-teach.md deleted file mode 100644 index c73542b59..000000000 --- a/.changeset/long-crabs-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Chart): Expose `x`/`y`/`z`/`r` accessors via slot props diff --git a/.changeset/long-pugs-tan.md b/.changeset/long-pugs-tan.md deleted file mode 100644 index 5ca073e85..000000000 --- a/.changeset/long-pugs-tan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(TooltipSeparator): Use theme color diff --git a/.changeset/lucky-tables-retire.md b/.changeset/lucky-tables-retire.md deleted file mode 100644 index 7a6e574d1..000000000 --- a/.changeset/lucky-tables-retire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -refactor: Add `@layerstack/svelte-actions`, `@layerstack/svelte-stores`, `@layerstack/tailwind`, and `@layerstack/utils` packages and move `svelte-ux` package to `devDependancies` (components only for docs) diff --git a/.changeset/mighty-teachers-rest.md b/.changeset/mighty-teachers-rest.md deleted file mode 100644 index fd2037030..000000000 --- a/.changeset/mighty-teachers-rest.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat: Rename `createStackData()` to `groupStackData()`, refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests diff --git a/.changeset/neat-schools-bake.md b/.changeset/neat-schools-bake.md deleted file mode 100644 index c8680c53f..000000000 --- a/.changeset/neat-schools-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking: Remove `AreaStack` as use cases fully supported by `Area` diff --git a/.changeset/new-readers-sparkle.md b/.changeset/new-readers-sparkle.md deleted file mode 100644 index 9c97e9cd3..000000000 --- a/.changeset/new-readers-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Labels): Support `center` placement (useful with Points) diff --git a/.changeset/polite-cooks-tease.md b/.changeset/polite-cooks-tease.md deleted file mode 100644 index ecd4ccca8..000000000 --- a/.changeset/polite-cooks-tease.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(Svg): Add `center` to conveniently center children, useful for radial layouts without requiring `Group` wrapper diff --git a/.changeset/polite-tools-chew.md b/.changeset/polite-tools-chew.md deleted file mode 100644 index c7be14065..000000000 --- a/.changeset/polite-tools-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking: Remove and replace with diff --git a/.changeset/poor-hats-roll.md b/.changeset/poor-hats-roll.md deleted file mode 100644 index e3a64622f..000000000 --- a/.changeset/poor-hats-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Pie): Remove `placement` prop and instead rely Svg `center` or use `Group` for positioning diff --git a/.changeset/red-roses-drive.md b/.changeset/red-roses-drive.md deleted file mode 100644 index 8d75f660d..000000000 --- a/.changeset/red-roses-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking: Add new color `cScale` (and related `c` accessor, domain, range, etc) and replace `rScale` usage (which should be used for radius, etc) diff --git a/.changeset/rotten-baboons-design.md b/.changeset/rotten-baboons-design.md deleted file mode 100644 index f359e1f4f..000000000 --- a/.changeset/rotten-baboons-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Area): Handle null data via defined by default diff --git a/.changeset/rude-students-lick.md b/.changeset/rude-students-lick.md deleted file mode 100644 index f61938ec7..000000000 --- a/.changeset/rude-students-lick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(tooltip): Update bisect-x mode to support radial coordinates diff --git a/.changeset/seven-cars-happen.md b/.changeset/seven-cars-happen.md deleted file mode 100644 index 2aa4d8037..000000000 --- a/.changeset/seven-cars-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Highlight): Handle null value points diff --git a/.changeset/sharp-ways-move.md b/.changeset/sharp-ways-move.md deleted file mode 100644 index 2e19b1940..000000000 --- a/.changeset/sharp-ways-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Voronoi): Dispatch custom `pointerevent` instead of forwarding to fix console errors diff --git a/.changeset/short-colts-smash.md b/.changeset/short-colts-smash.md deleted file mode 100644 index 483148598..000000000 --- a/.changeset/short-colts-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Points): Integrate with rScale diff --git a/.changeset/slimy-points-sing.md b/.changeset/slimy-points-sing.md deleted file mode 100644 index 34a0aaf1d..000000000 --- a/.changeset/slimy-points-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Points): Remove incorrect points for null/undefined values diff --git a/.changeset/smooth-tomatoes-hug.md b/.changeset/smooth-tomatoes-hug.md deleted file mode 100644 index 7dcc469fa..000000000 --- a/.changeset/smooth-tomatoes-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -breaking(Threshold): Simplify implementation and rename `pathAbove`/`pathBelow` slots to `above`/`below` diff --git a/.changeset/spotty-moles-rhyme.md b/.changeset/spotty-moles-rhyme.md deleted file mode 100644 index ac9454b6e..000000000 --- a/.changeset/spotty-moles-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Area): Pass `x` override to internal Spline diff --git a/.changeset/stale-tools-taste.md b/.changeset/stale-tools-taste.md deleted file mode 100644 index e8a289359..000000000 --- a/.changeset/stale-tools-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Spline): Enable passing `fill` prop (useful for Bar with single rounded edge) diff --git a/.changeset/twelve-otters-count.md b/.changeset/twelve-otters-count.md deleted file mode 100644 index 4912ffe10..000000000 --- a/.changeset/twelve-otters-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Tooltip.Item): Support `color` prop to add swatch, support theme colors and any color via `color="variable"` diff --git a/.changeset/twenty-queens-remember.md b/.changeset/twenty-queens-remember.md deleted file mode 100644 index 3f0d4d459..000000000 --- a/.changeset/twenty-queens-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(cartesianToPolar): Correctly calculate angle/radians between 0 and 2π diff --git a/.changeset/weak-tigers-poke.md b/.changeset/weak-tigers-poke.md deleted file mode 100644 index ab0e3a6e3..000000000 --- a/.changeset/weak-tigers-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Arc): Support passing `tooltip` and `data` props to simplify setting up tooltip pointer events diff --git a/.changeset/witty-goats-breathe.md b/.changeset/witty-goats-breathe.md deleted file mode 100644 index e02810250..000000000 --- a/.changeset/witty-goats-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -feat(Chart): Support x1/y1 derived scales, useful for grouped bar charts diff --git a/packages/layerchart/CHANGELOG.md b/packages/layerchart/CHANGELOG.md index 8ca57d7b8..91504a872 100644 --- a/packages/layerchart/CHANGELOG.md +++ b/packages/layerchart/CHANGELOG.md @@ -1,5 +1,89 @@ # LayerChart +## 0.45.0 + +### Minor Changes + +- feat: Add simplified charts to streamline creating common chart types with recommended conventions and granular extensibility (AreaChart, BarChart, LineChart, PieChart, and ScatterChart) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Tooltip): Rename Tooltip to Tooltip.Root ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Tooltip): Remove default grid on Tooltip.Root and add Tooltip.List as Tooltip.Item container ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Chart): Default domain sorting to `false` (instead of LayerCake's `true`) to simplify bandScale use cases ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Tooltip): Consolidate Tooltip components (TooltipItem, TooltipSeparator, etc) to Tooltip.Item, Tooltip.Separtor, etc ([#224](https://github.com/techniq/layerchart/pull/224)) + +- refactor: Add `@layerstack/svelte-actions`, `@layerstack/svelte-stores`, `@layerstack/tailwind`, and `@layerstack/utils` packages and move `svelte-ux` package to `devDependancies` (components only for docs) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking: Remove `AreaStack` as use cases fully supported by `Area` ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Svg): Add `center` to conveniently center children, useful for radial layouts without requiring `Group` wrapper ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking: Remove and replace with ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Pie): Remove `placement` prop and instead rely Svg `center` or use `Group` for positioning ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking: Add new color `cScale` (and related `c` accessor, domain, range, etc) and replace `rScale` usage (which should be used for radius, etc) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Threshold): Simplify implementation and rename `pathAbove`/`pathBelow` slots to `above`/`below` ([#224](https://github.com/techniq/layerchart/pull/224)) + +### Patch Changes + +- feat(Bars): Support passing `data` override ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Chart): Expose `config` as slot prop ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Bar): Forward pointer events to enable individual bar tooltips ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Highlight): Handle non-zero y values when drawing lines (ex. radial line chart with inner radius) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Voronoi): Support radial coordinates. Issue #112 ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Labels): Handle multiple x or y properties (stack, diverting) by leveraging Points component internally ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Points): Add `xValue` and `yValue` to each point, and improve types ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Highlight): Support radial coordiantes for `points` and `lines`. Issue #112 ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Spline): Handle null data via defined by default ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Points): Add canvas support ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Chart): Expose `x`/`y`/`z`/`r` accessors via slot props ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(TooltipSeparator): Use theme color ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat: Rename `createStackData()` to `groupStackData()`, refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Labels): Support `center` placement (useful with Points) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Area): Handle null data via defined by default ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(tooltip): Update bisect-x mode to support radial coordinates ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Highlight): Handle null value points ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Voronoi): Dispatch custom `pointerevent` instead of forwarding to fix console errors ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Points): Integrate with rScale ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Points): Remove incorrect points for null/undefined values ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Area): Pass `x` override to internal Spline ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Spline): Enable passing `fill` prop (useful for Bar with single rounded edge) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Tooltip.Item): Support `color` prop to add swatch, support theme colors and any color via `color="variable"` ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(cartesianToPolar): Correctly calculate angle/radians between 0 and 2π ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Arc): Support passing `tooltip` and `data` props to simplify setting up tooltip pointer events ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Chart): Support x1/y1 derived scales, useful for grouped bar charts ([#224](https://github.com/techniq/layerchart/pull/224)) + ## 0.44.0 ### Minor Changes diff --git a/packages/layerchart/package.json b/packages/layerchart/package.json index ec5d8fcc4..2ed09efc2 100644 --- a/packages/layerchart/package.json +++ b/packages/layerchart/package.json @@ -4,7 +4,7 @@ "author": "Sean Lynch ", "license": "MIT", "repository": "techniq/layerchart", - "version": "0.44.0", + "version": "0.45.0", "scripts": { "dev": "vite dev", "build": "vite build", From 5cd36e7ec6d84dc7ced6aae9164cc6f757a767cf Mon Sep 17 00:00:00 2001 From: Sean Lynch Date: Mon, 23 Sep 2024 08:25:06 -0400 Subject: [PATCH 2/3] Manually bump version to 0.50.0 --- packages/layerchart/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/layerchart/package.json b/packages/layerchart/package.json index 2ed09efc2..f0e523117 100644 --- a/packages/layerchart/package.json +++ b/packages/layerchart/package.json @@ -4,7 +4,7 @@ "author": "Sean Lynch ", "license": "MIT", "repository": "techniq/layerchart", - "version": "0.45.0", + "version": "0.50.0", "scripts": { "dev": "vite dev", "build": "vite build", From f9b89f01aff5f20af0b88bb7f0d080d7868f3daf Mon Sep 17 00:00:00 2001 From: Sean Lynch Date: Mon, 23 Sep 2024 08:37:48 -0400 Subject: [PATCH 3/3] Refine CHANGELOG.md --- packages/layerchart/CHANGELOG.md | 60 ++++++++++++++++---------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/packages/layerchart/CHANGELOG.md b/packages/layerchart/CHANGELOG.md index 91504a872..89fe8f80c 100644 --- a/packages/layerchart/CHANGELOG.md +++ b/packages/layerchart/CHANGELOG.md @@ -1,89 +1,89 @@ # LayerChart -## 0.45.0 +## 0.50.0 ### Minor Changes - feat: Add simplified charts to streamline creating common chart types with recommended conventions and granular extensibility (AreaChart, BarChart, LineChart, PieChart, and ScatterChart) ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking(Tooltip): Rename Tooltip to Tooltip.Root ([#224](https://github.com/techniq/layerchart/pull/224)) +- feat(Svg): Add `center` to conveniently center children, useful for radial layouts without requiring `Group` wrapper ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking(Tooltip): Remove default grid on Tooltip.Root and add Tooltip.List as Tooltip.Item container ([#224](https://github.com/techniq/layerchart/pull/224)) +- refactor: Add `@layerstack/svelte-actions`, `@layerstack/svelte-stores`, `@layerstack/tailwind`, and `@layerstack/utils` packages and move `svelte-ux` package to `devDependancies` (components only for docs) ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking(Chart): Default domain sorting to `false` (instead of LayerCake's `true`) to simplify bandScale use cases ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking: Add new color `cScale` (and related `c` accessor, domain, range, etc) and replace `rScale` usage (which should be used for radius, etc) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking(Tooltip): Rename Tooltip to Tooltip.Root ([#224](https://github.com/techniq/layerchart/pull/224)) - breaking(Tooltip): Consolidate Tooltip components (TooltipItem, TooltipSeparator, etc) to Tooltip.Item, Tooltip.Separtor, etc ([#224](https://github.com/techniq/layerchart/pull/224)) -- refactor: Add `@layerstack/svelte-actions`, `@layerstack/svelte-stores`, `@layerstack/tailwind`, and `@layerstack/utils` packages and move `svelte-ux` package to `devDependancies` (components only for docs) ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking(Tooltip): Remove default grid on Tooltip.Root and add Tooltip.List as Tooltip.Item container ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking: Remove `AreaStack` as use cases fully supported by `Area` ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking: Remove and replace with ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(Svg): Add `center` to conveniently center children, useful for radial layouts without requiring `Group` wrapper ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking(Chart): Default domain sorting to `false` (instead of LayerCake's `true`) to simplify bandScale use cases ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking: Remove and replace with ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking: Remove `AreaStack` as use cases fully supported by `Area` ([#224](https://github.com/techniq/layerchart/pull/224)) - breaking(Pie): Remove `placement` prop and instead rely Svg `center` or use `Group` for positioning ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking: Add new color `cScale` (and related `c` accessor, domain, range, etc) and replace `rScale` usage (which should be used for radius, etc) ([#224](https://github.com/techniq/layerchart/pull/224)) - - breaking(Threshold): Simplify implementation and rename `pathAbove`/`pathBelow` slots to `above`/`below` ([#224](https://github.com/techniq/layerchart/pull/224)) +- breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales ([#224](https://github.com/techniq/layerchart/pull/224)) + +- breaking: Rename `createStackData()` to `groupStackData()`, refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests ([#224](https://github.com/techniq/layerchart/pull/224)) + ### Patch Changes +- feat(Chart): Support x1/y1 derived scales, useful for grouped bar charts ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(tooltip): Update bisect-x mode to support radial coordinates ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Tooltip.Item): Support `color` prop to add swatch, support theme colors and any color via `color="variable"` ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Arc): Support passing `tooltip` and `data` props to simplify setting up tooltip pointer events ([#224](https://github.com/techniq/layerchart/pull/224)) + +- feat(Points): Integrate with rScale ([#224](https://github.com/techniq/layerchart/pull/224)) + - feat(Bars): Support passing `data` override ([#224](https://github.com/techniq/layerchart/pull/224)) - feat(Chart): Expose `config` as slot prop ([#224](https://github.com/techniq/layerchart/pull/224)) - feat(Bar): Forward pointer events to enable individual bar tooltips ([#224](https://github.com/techniq/layerchart/pull/224)) -- fix(Highlight): Handle non-zero y values when drawing lines (ex. radial line chart with inner radius) ([#224](https://github.com/techniq/layerchart/pull/224)) - - feat(Voronoi): Support radial coordinates. Issue #112 ([#224](https://github.com/techniq/layerchart/pull/224)) -- breaking(Bar/Bars): Replace groupBy/groupPadding with Chart-level x1/y1 derived scales ([#224](https://github.com/techniq/layerchart/pull/224)) - -- fix(Labels): Handle multiple x or y properties (stack, diverting) by leveraging Points component internally ([#224](https://github.com/techniq/layerchart/pull/224)) - - feat(Points): Add `xValue` and `yValue` to each point, and improve types ([#224](https://github.com/techniq/layerchart/pull/224)) - feat(Highlight): Support radial coordiantes for `points` and `lines`. Issue #112 ([#224](https://github.com/techniq/layerchart/pull/224)) -- fix(Spline): Handle null data via defined by default ([#224](https://github.com/techniq/layerchart/pull/224)) +- feat(Labels): Support `center` placement (useful with Points) ([#224](https://github.com/techniq/layerchart/pull/224)) - feat(Points): Add canvas support ([#224](https://github.com/techniq/layerchart/pull/224)) - feat(Chart): Expose `x`/`y`/`z`/`r` accessors via slot props ([#224](https://github.com/techniq/layerchart/pull/224)) -- fix(TooltipSeparator): Use theme color ([#224](https://github.com/techniq/layerchart/pull/224)) +- fix(Highlight): Handle non-zero y values when drawing lines (ex. radial line chart with inner radius) ([#224](https://github.com/techniq/layerchart/pull/224)) + +- fix(Labels): Handle multiple x or y properties (stack, diverting) by leveraging Points component internally ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat: Rename `createStackData()` to `groupStackData()`, refine returned structure to simplify tooltips and make consistent with different options combinations, and add tests ([#224](https://github.com/techniq/layerchart/pull/224)) +- fix(Spline): Handle null data via defined by default ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(Labels): Support `center` placement (useful with Points) ([#224](https://github.com/techniq/layerchart/pull/224)) +- fix(TooltipSeparator): Use theme color ([#224](https://github.com/techniq/layerchart/pull/224)) - fix(Area): Handle null data via defined by default ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(tooltip): Update bisect-x mode to support radial coordinates ([#224](https://github.com/techniq/layerchart/pull/224)) - - fix(Highlight): Handle null value points ([#224](https://github.com/techniq/layerchart/pull/224)) - fix(Voronoi): Dispatch custom `pointerevent` instead of forwarding to fix console errors ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(Points): Integrate with rScale ([#224](https://github.com/techniq/layerchart/pull/224)) - - fix(Points): Remove incorrect points for null/undefined values ([#224](https://github.com/techniq/layerchart/pull/224)) - fix(Area): Pass `x` override to internal Spline ([#224](https://github.com/techniq/layerchart/pull/224)) - fix(Spline): Enable passing `fill` prop (useful for Bar with single rounded edge) ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(Tooltip.Item): Support `color` prop to add swatch, support theme colors and any color via `color="variable"` ([#224](https://github.com/techniq/layerchart/pull/224)) - - fix(cartesianToPolar): Correctly calculate angle/radians between 0 and 2π ([#224](https://github.com/techniq/layerchart/pull/224)) -- feat(Arc): Support passing `tooltip` and `data` props to simplify setting up tooltip pointer events ([#224](https://github.com/techniq/layerchart/pull/224)) - -- feat(Chart): Support x1/y1 derived scales, useful for grouped bar charts ([#224](https://github.com/techniq/layerchart/pull/224)) - ## 0.44.0 ### Minor Changes