Repository navigation
Bumps klinecharts to ^10.1.0. No breaking API changes. Upstream release notes: https://github.com/klinecharts/KLineChart/releases/tag/v10.1.0
Added
- New reactive prop
layoutOptions?: DeepPartial<Layout>on<KLineChart>, forwarded to the new klinecharts 10.1.0setLayoutOptions()instance method (updates default layout options after initialization). The matchinggetLayoutOptions()is available on the chart instance viaref/useKLineChart.
Changed
- Bumped
klinechartsto^10.1.0(root + docs). Upstream additions:setLayoutOptions()/getLayoutOptions()instance methods, and callbacks (CompareColorCallback) for dynamically assigning colors to candlesticks, indicator OHLC bars, and last-price lines/labels — the color-callback types flow through transparently viaexport * from "klinecharts". Upstream optimizations and fixes: time-axis tick generation now selects and caches ticks by time hierarchy (display stability + scrolling performance); fixes forscrollByDistanceconflicting with an active fling-scroll animation, axis scrolling/scaling stopping when the pointer leaves the axis while dragging, rapid-click sequence detection, logarithmic y-axis labels and coordinate conversion for ranges containing negative/zero/sub-1 prices, and duplicate overlay y-axis labels on non-default axes in multi-axis panes. - Updated
minimumReleaseAgeExcludeinpnpm-workspace.yamltoklinecharts@10.1.0so fresh upstream releases pass the CI install policy. - Expanded the test mock (
mockChart.ts) withsetLayoutOptions/getLayoutOptionsstubs, and covered thelayoutOptionsprop forwarding in the reactive-props test.
Verified: typecheck, lint, 26 tests, and a clean build all pass.