diff --git a/.changeset/annotationpoint-smart-labels.md b/.changeset/annotationpoint-smart-labels.md deleted file mode 100644 index fe5582cad..000000000 --- a/.changeset/annotationpoint-smart-labels.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(AnnotationPoint): Support explicit `labelX`/`labelY` positioning, a `fontSize` prop, a `labelGap` for callout spacing, and a `labelPlacement="smart"` option that auto-orients the label and terminates its callout at the label edge. diff --git a/.changeset/geo-clipextent-viewport.md b/.changeset/geo-clipextent-viewport.md deleted file mode 100644 index 50aebe2b9..000000000 --- a/.changeset/geo-clipextent-viewport.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(GeoState): Support `clipExtent: true` to clip the projection to the chart dimensions (`[[0, 0], [width, height]]`), e.g. to trim the `Sphere` overflow under `geoMercator`. diff --git a/.changeset/labels-glyph-edge-spacing.md b/.changeset/labels-glyph-edge-spacing.md deleted file mode 100644 index 9d9ffe8ae..000000000 --- a/.changeset/labels-glyph-edge-spacing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': patch ---- - -fix(Text|Labels): Anchor `verticalAnchor` by cap-height so text sits a consistent distance from marks and aligns across the Svg, Canvas, and Html layers. `placement="smart"` labels now clear the point marker on all sides. diff --git a/.changeset/labels-voronoi-layout.md b/.changeset/labels-voronoi-layout.md deleted file mode 100644 index 2136ce97d..000000000 --- a/.changeset/labels-voronoi-layout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(Labels): Add `layout="voronoi"` to place each label towards Voronoi cell's centroid, `occlude` to drop overlapping labels and `links` to move labels to centroid with a leader line back to the point. diff --git a/.changeset/points-geo.md b/.changeset/points-geo.md deleted file mode 100644 index d0e2f7f9b..000000000 --- a/.changeset/points-geo.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(Points|Labels): Project through the chart's geo projection when present, so `` (and ``) render on maps. diff --git a/.changeset/voronoi-cell-children.md b/.changeset/voronoi-cell-children.md deleted file mode 100644 index d5592746e..000000000 --- a/.changeset/voronoi-cell-children.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'layerchart': minor ---- - -feat(Voronoi): Add `children` snippet exposing per-cell geometry (`point`, `polygon`, `centroid`, `area`) for custom rendering (e.g. labels). diff --git a/packages/layerchart/CHANGELOG.md b/packages/layerchart/CHANGELOG.md index 37fd1e0b1..9cc38625c 100644 --- a/packages/layerchart/CHANGELOG.md +++ b/packages/layerchart/CHANGELOG.md @@ -1,5 +1,23 @@ # LayerChart +## 2.1.0 + +### Minor Changes + +- feat(AnnotationPoint): Support explicit `labelX`/`labelY` positioning, a `fontSize` prop, a `labelGap` for callout spacing, and a `labelPlacement="smart"` option that auto-orients the label and terminates its callout at the label edge. ([#892](https://github.com/techniq/layerchart/pull/892)) + +- feat(GeoState): Support `clipExtent: true` to clip the projection to the chart dimensions (`[[0, 0], [width, height]]`), e.g. to trim the `Sphere` overflow under `geoMercator`. ([#892](https://github.com/techniq/layerchart/pull/892)) + +- feat(Labels): Add `layout="voronoi"` to place each label towards Voronoi cell's centroid, `occlude` to drop overlapping labels and `links` to move labels to centroid with a leader line back to the point. ([#892](https://github.com/techniq/layerchart/pull/892)) + +- feat(Points|Labels): Project through the chart's geo projection when present, so `` (and ``) render on maps. ([#892](https://github.com/techniq/layerchart/pull/892)) + +- feat(Voronoi): Add `children` snippet exposing per-cell geometry (`point`, `polygon`, `centroid`, `area`) for custom rendering (e.g. labels). ([#892](https://github.com/techniq/layerchart/pull/892)) + +### Patch Changes + +- fix(Text|Labels): Anchor `verticalAnchor` by cap-height so text sits a consistent distance from marks and aligns across the Svg, Canvas, and Html layers. `placement="smart"` labels now clear the point marker on all sides. ([#893](https://github.com/techniq/layerchart/pull/893)) + ## 2.0.4 ### Patch Changes diff --git a/packages/layerchart/package.json b/packages/layerchart/package.json index a2d940ec0..9a7067028 100644 --- a/packages/layerchart/package.json +++ b/packages/layerchart/package.json @@ -5,7 +5,7 @@ "license": "MIT", "repository": "techniq/layerchart", "homepage": "https://layerchart.com", - "version": "2.0.4", + "version": "2.1.0", "scripts": { "dev": "pnpm package:watch", "build": "svelte-package",