Skip to content

Commit 0fb5400

Browse files
Version Packages (next) (#810)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 036b3d7 commit 0fb5400

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.changeset/pre.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
},
1414
"changesets": [
1515
"add-boxplot-component",
16+
"add-smart-label-placement",
1617
"add-stats-utils",
1718
"add-violin-component",
1819
"afraid-jobs-say",
1920
"area-y0-baseline-default",
21+
"band-scale-transform-brush",
22+
"band-tick-spacing",
2023
"beige-bears-joke",
2124
"beige-doodles-shout",
2225
"beige-trams-check",
@@ -77,10 +80,15 @@
7780
"evil-hoops-return",
7881
"fair-phones-wink",
7982
"fast-insects-deny",
83+
"fast-primitives-perf",
8084
"fiery-lamps-tickle",
85+
"five-stamps-drum",
8186
"fix-area-all-zero",
8287
"fix-barchart-diverging-edge-rounding",
88+
"fix-geopath-canvas-tooltip",
8389
"fix-implicit-series-domain",
90+
"fix-scale-band-invert",
91+
"fix-transform-projection-reactivity",
8492
"flat-arcs-heal",
8593
"flat-cases-enter",
8694
"four-lizards-win",
@@ -93,7 +101,9 @@
93101
"funny-otters-kick",
94102
"funny-wasps-heal",
95103
"geo-context-rename",
104+
"geo-relative-scale-translate-extent",
96105
"giant-donuts-yell",
106+
"globe-scroll-zoom",
97107
"good-glasses-design",
98108
"green-hotels-strive",
99109
"green-mirrors-retire",
@@ -130,6 +140,7 @@
130140
"metal-flowers-sneeze",
131141
"mighty-weeks-try",
132142
"modern-nails-kiss",
143+
"neat-vapors-shift",
133144
"new-pans-serve",
134145
"new-turtles-clean",
135146
"nice-regions-ask",
@@ -146,6 +157,7 @@
146157
"pink-flies-worry",
147158
"pink-hornets-rest",
148159
"pink-showers-hunt",
160+
"plain-rings-itch",
149161
"polite-parts-learn",
150162
"poor-clocks-occur",
151163
"pretty-roses-invent",
@@ -195,6 +207,7 @@
195207
"spicy-gifts-float",
196208
"spicy-seals-kiss",
197209
"spline-motion-support",
210+
"spline-per-segment-styling",
198211
"spotty-plums-invite",
199212
"spotty-rules-taste",
200213
"swift-gifts-flow",
@@ -203,6 +216,7 @@
203216
"tame-lamps-report",
204217
"tangy-lies-strive",
205218
"tasty-states-raise",
219+
"text-format-tween",
206220
"thick-months-join",
207221
"thirty-glasses-pick",
208222
"three-cities-chew",
@@ -220,6 +234,7 @@
220234
"warm-mammals-deny",
221235
"warm-women-glow",
222236
"weak-donuts-tan",
237+
"wet-cups-act",
223238
"whole-women-listen",
224239
"wide-berries-invite",
225240
"wide-pillows-march",

packages/layerchart/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# LayerChart
22

3+
## 2.0.0-next.49
4+
5+
### Minor Changes
6+
7+
- feat(Labels): Add `smart` placement option ([#799](https://github.com/techniq/layerchart/pull/799))
8+
9+
New `placement="smart"` mode that dynamically positions labels based on neighboring point values (peak, trough, rising, falling) to reduce overlapping.
10+
11+
- feat(Chart, BrushState): Add band scale (categorical) support for transform pan/zoom and brush selection. Uses range-rescaling pattern to smoothly zoom and pan categorical bar charts. Automatically constrains panning to data boundaries and prevents zooming out past initial view. ([#449](https://github.com/techniq/layerchart/pull/449))
12+
13+
- feat(Chart): In projection mode, `scaleExtent` and `translateExtent` are now interpreted as relative values (like d3-zoom). `scaleExtent: [0.5, 8]` means 0.5x to 8x of the fitted projection scale. `translateExtent` is offset from the initial fitted position in pixels. ([#449](https://github.com/techniq/layerchart/pull/449))
14+
15+
- feat(Spline): Support function-valued `stroke`, `fill`, and `opacity` for per-segment styling ([#449](https://github.com/techniq/layerchart/pull/449))
16+
17+
- feat(Text): Add `format` prop and tween numeric `value` when `motion` is configured ([#449](https://github.com/techniq/layerchart/pull/449))
18+
19+
### Patch Changes
20+
21+
- Support `tickSpacing` for band scales on Axis, thinning tick labels when the domain is larger than the available space. Automatically shows more tick labels when zoomed in on band scale transforms. ([#449](https://github.com/techniq/layerchart/pull/449))
22+
23+
- perf: Optimize primitive component instantiation (~3-5x faster for Rect, Circle, Ellipse, Line, Text, Path, Group) ([#449](https://github.com/techniq/layerchart/pull/449))
24+
- `createMotion`: Fast-path passthrough when no `motion` prop is provided, avoiding `$state`/`$effect` overhead per axis
25+
- `createDataMotionMap`: Short-circuit when `motion` is `undefined`, skipping `parseMotionProp` overhead
26+
- `createKey`: Only create fill/stroke key trackers in canvas layer (skipped for SVG/HTML)
27+
- `registerComponent`: Skip `registerMark` for empty `MarkInfo` (pixel-mode marks)
28+
- All primitives: Skip `$effect` for data motion tracking when no motion is configured
29+
- Rect/Image: Avoid per-axis `parseMotionProp` calls when `motion` is `undefined`
30+
31+
- feat(Marker): Add `square` and `square-stroke` types ([#805](https://github.com/techniq/layerchart/pull/805))
32+
33+
- fix(GeoPath): Fix canvas tooltip by conditionally passing onclick to Path, preventing non-interactive overlays from capturing hit canvas events ([#449](https://github.com/techniq/layerchart/pull/449))
34+
35+
- fix(scaleBandInvert): Account for range offset in band scale inversion. Previously assumed range started at 0, causing incorrect pixel-to-category mapping when the scale range was transformed. ([#449](https://github.com/techniq/layerchart/pull/449))
36+
37+
- fix(TransformContext): Reactively sync `processTranslate` and `disablePointer` to TransformState when props change. Fixes inverted globe dragging when dynamically switching between flat and globe projections. ([#449](https://github.com/techniq/layerchart/pull/449))
38+
39+
- fix(Chart): Enable scroll zoom for globe projections by including `scale: true` in default `transformApply` for globes. ([#449](https://github.com/techniq/layerchart/pull/449))
40+
41+
- feat(Raster, Contour): support bounded geo raster overlays with projected interpolation ([#449](https://github.com/techniq/layerchart/pull/449))
42+
43+
- feat: Add Month component ([#671](https://github.com/techniq/layerchart/pull/671))
44+
45+
- fix(LinearGradient, RadialGradient): Register as `group` instead of `mark` in canvas component tree so wrapped children (e.g. Arc, Path) are rendered ([#449](https://github.com/techniq/layerchart/pull/449))
46+
347
## 2.0.0-next.48
448

549
### Patch Changes

packages/layerchart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": "techniq/layerchart",
77
"homepage": "https://layerchart.com",
8-
"version": "2.0.0-next.48",
8+
"version": "2.0.0-next.49",
99
"scripts": {
1010
"dev": "pnpm package:watch",
1111
"package": "svelte-package",

0 commit comments

Comments
 (0)