@fundar/data-chart-telling 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,7 @@ export declare function createHoverController<T extends Record<string, unknown>>
33
33
  y: AxisValue;
34
34
  label: string;
35
35
  series: string | undefined;
36
+ color: string | undefined;
36
37
  }[];
37
38
  readonly matchedRows: HoverPoint<T>[];
38
39
  readonly ruleX: AxisValue | null;
@@ -31,7 +31,7 @@ export function createHoverController(args) {
31
31
  const matchedRows = $derived(filterBySeries(matched, args.seriesFilter?.()));
32
32
  // Points highlighted in THIS facet for the in-SVG marker — no series
33
33
  // filtering, since that's the tooltip text's concern, not the marker's.
34
- const highlight = $derived(matched.map(({ x, y, label, series }) => ({ x, y, label, series })));
34
+ const highlight = $derived(matched.map(({ x, y, label, series, color }) => ({ x, y, label, series, color })));
35
35
  // Raw hover position — available whenever there are matched points.
36
36
  // PlotLayout gates actual display with impliesRuleX/Y + the marker's ruleX/Y props.
37
37
  const ruleX = $derived(matched.length > 0 ? args.hover().activeX : null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundar/data-chart-telling",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"