@nova-ui/charts 12.0.34 → 12.0.35

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.
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "license": "Apache-2.0",
18
18
  "name": "@nova-ui/charts",
19
19
  "peerDependencies": {
20
- "@nova-ui/bits": "~12.0.34",
20
+ "@nova-ui/bits": "~12.0.35",
21
21
  "@types/d3": "^5.0.0",
22
22
  "@types/d3-selection-multi": "^1.0.0",
23
23
  "d3": "^5.0.0",
@@ -37,7 +37,7 @@
37
37
  "@compodoc/compodoc/marked": "^2.0.0",
38
38
  "d3-color": "3.1.0"
39
39
  },
40
- "version": "12.0.34",
40
+ "version": "12.0.35",
41
41
  "main": "bundles/nova-ui-charts.umd.js",
42
42
  "module": "fesm2015/nova-ui-charts.js",
43
43
  "es2015": "fesm2015/nova-ui-charts.js",
@@ -0,0 +1,15 @@
1
+ import { IXYScales } from "../../../core/common/scales/types";
2
+ import { IRectangleAccessors } from "../../accessors/rectangle-accessors";
3
+ import { IRenderSeries } from "../../types";
4
+ import { BarRenderer } from "../bar-renderer";
5
+ import { BarHighlightStrategy, SelectedDatPointIdxFn } from "./bar-highlight-strategy";
6
+ export declare class BarHighlightStrategyOutline extends BarHighlightStrategy {
7
+ private outlineAdd;
8
+ private outlineElsMap;
9
+ /**
10
+ * @param scaleKey scale that will be used for searching for the data point that will be highlighted
11
+ * @param levels for band scales, how many levels deep do we go to compare values
12
+ */
13
+ constructor(scaleKey: keyof IXYScales, levels?: number, selectedDataPointIdxFn?: SelectedDatPointIdxFn);
14
+ highlightDataPoint(renderer: BarRenderer, renderSeries: IRenderSeries<IRectangleAccessors>, dataPointIndex: number): void;
15
+ }
@@ -6,9 +6,9 @@ import { IHighlightStrategy, IRenderSeries } from "../../types";
6
6
  import { BarRenderer } from "../bar-renderer";
7
7
  export declare type SelectedDatPointIdxFn = (seriesId: string) => number;
8
8
  export declare class BarHighlightStrategy implements IHighlightStrategy<IRectangleAccessors, BarRenderer> {
9
- private scaleKey;
10
- private levels;
11
- private selectedDataPointIdxFn?;
9
+ protected scaleKey: keyof IXYScales;
10
+ protected levels: number;
11
+ protected selectedDataPointIdxFn?: SelectedDatPointIdxFn | undefined;
12
12
  /**
13
13
  * @param scaleKey scale that will be used for searching for the data point that will be highlighted
14
14
  * @param levels for band scales, how many levels deep do we go to compare values
@@ -1,2 +1,3 @@
1
1
  export * from "./bar-highlight-strategy";
2
+ export * from "./bar-highlight-strategy-outline";
2
3
  export * from "./bar-series-highlight-strategy";
@@ -2,7 +2,7 @@ import { CurveFactory } from "d3-shape";
2
2
  import { Subject } from "rxjs";
3
3
  import { Renderer } from "../core/common/renderer";
4
4
  import { Scales } from "../core/common/scales/types";
5
- import { IAccessors, IDataSeries, IRenderContainers, IRendererConfig, IRendererEventPayload } from "../core/common/types";
5
+ import { D3Selection, IAccessors, IDataSeries, IRenderContainers, IRendererConfig, IRendererEventPayload } from "../core/common/types";
6
6
  import { IRectangleAccessors } from "./accessors/rectangle-accessors";
7
7
  import { BarRenderer } from "./bar/bar-renderer";
8
8
  import { ILineAccessors } from "./line/line-accessors";
@@ -88,6 +88,7 @@ export interface IRenderSeries<TA extends IAccessors> {
88
88
  dataSeries: IDataSeries<TA>;
89
89
  containers: IRenderContainers;
90
90
  scales: Scales;
91
+ parentContainer?: D3Selection<SVGElement>;
91
92
  }
92
93
  export interface IHighlightStrategy<TA, T = Renderer<TA>> {
93
94
  getDataPointIndex(renderer: T, series: IDataSeries<TA>, values: {