Skip to content

v1.0.2

Latest

Choose a tag to compare

@NemeZZiZZ NemeZZiZZ released this 17 Oct 14:34

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.0 setLayoutOptions() instance method (updates default layout options after initialization). The matching getLayoutOptions() is available on the chart instance via ref / useKLineChart.

Changed

  • Bumped klinecharts to ^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 via export * from "klinecharts". Upstream optimizations and fixes: time-axis tick generation now selects and caches ticks by time hierarchy (display stability + scrolling performance); fixes for scrollByDistance conflicting 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 minimumReleaseAgeExclude in pnpm-workspace.yaml to klinecharts@10.1.0 so fresh upstream releases pass the CI install policy.
  • Expanded the test mock (mockChart.ts) with setLayoutOptions / getLayoutOptions stubs, and covered the layoutOptions prop forwarding in the reactive-props test.

Verified: typecheck, lint, 26 tests, and a clean build all pass.