Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"fix-geo-mark-domain",
"fix-geopath-canvas-tooltip",
"fix-implicit-series-domain",
"fix-pattern-canvas",
"fix-pie-arc-xrange",
"fix-scale-band-invert",
"fix-transform-projection-reactivity",
Expand Down Expand Up @@ -135,6 +136,10 @@
"honest-hoops-peel",
"hot-dots-stick",
"hot-pigs-push",
"html-background-origin",
"html-box-sizing",
"html-circle-ellipse-pattern-fills",
"html-default-border-width",
"huge-boats-fix",
"huge-lions-do",
"huge-regions-live",
Expand Down Expand Up @@ -178,6 +183,7 @@
"open-bushes-run",
"open-houses-vanish",
"orientation-to-valueaxis",
"pattern-html-layer",
"piechart-arcchart-labels-prop",
"pink-flies-worry",
"pink-hornets-rest",
Expand Down
18 changes: 18 additions & 0 deletions packages/layerchart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# LayerChart

## 2.0.0-next.56

### Minor Changes

- feat(Circle, Ellipse): Support pattern/gradient `fill` values on the `<Html>` layer by switching from `background-color` to the `background` shorthand (with `background-origin: border-box` to keep patterns aligned under the border). Accepts values produced by `<Pattern>` / `<LinearGradient>` in HTML mode. ([#449](https://github.com/techniq/layerchart/pull/449))

- feat(Pattern): Support `<Html>` layer by producing CSS `repeating-linear-gradient` (lines) and `radial-gradient` (circles) values usable as a `background`/`fill`. Gradient-valued `background` (e.g. `<Pattern background={gradient}>`) is also supported. ([#449](https://github.com/techniq/layerchart/pull/449))

### Patch Changes

- fix(Pattern): Restore canvas layer support by registering as a `group` node so snippet children (e.g. `<Rect fill={pattern}>`) render correctly ([#449](https://github.com/techniq/layerchart/pull/449))

- fix(Rect): On the `<Html>` layer, set `background-origin: border-box` so fills/patterns start at the outer edge — previously the CSS `background` shorthand reset origin to `padding-box`, shifting patterns inward by `border-width` when a stroke was applied. ([#449](https://github.com/techniq/layerchart/pull/449))

- fix(Rect, Circle, Ellipse): Apply `box-sizing: border-box` on the `<Html>` layer so the visual extent equals `width`×`height` (or `r * 2`, `rx * 2`×`ry * 2`) — the border is drawn within that extent instead of added to it, matching SVG bounds. ([#449](https://github.com/techniq/layerchart/pull/449))

- fix(Rect, Circle, Ellipse): On the `<Html>` layer, default `border-width` to `1px` when `stroke` is set without an explicit `strokeWidth`, matching SVG's implicit `stroke-width: 1`. Also ensures Circle/Ellipse `border-width` gets the required `px` unit. ([#449](https://github.com/techniq/layerchart/pull/449))

## 2.0.0-next.55

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/layerchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"repository": "techniq/layerchart",
"homepage": "https://layerchart.com",
"version": "2.0.0-next.55",
"version": "2.0.0-next.56",
"scripts": {
"dev": "pnpm package:watch",
"package": "svelte-package",
Expand Down