@orbcharts/plugins-basic 3.0.0-alpha.24 → 3.0.0-alpha.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/orbcharts-plugins-basic.es.js +19826 -0
  2. package/dist/orbcharts-plugins-basic.umd.js +12 -0
  3. package/dist/src/grid/defaults.d.ts +12 -0
  4. package/dist/src/grid/gridObservables.d.ts +15 -0
  5. package/dist/src/grid/index.d.ts +12 -0
  6. package/dist/src/grid/plugins/BarStack.d.ts +3 -0
  7. package/dist/src/grid/plugins/Bars.d.ts +3 -0
  8. package/dist/src/grid/plugins/BarsTriangle.d.ts +3 -0
  9. package/dist/src/grid/plugins/Dots.d.ts +3 -0
  10. package/dist/src/grid/plugins/GroupArea.d.ts +3 -0
  11. package/dist/src/grid/plugins/GroupAxis.d.ts +3 -0
  12. package/dist/src/grid/plugins/Lines.d.ts +3 -0
  13. package/dist/src/grid/plugins/Ranking.d.ts +0 -0
  14. package/dist/src/grid/plugins/RankingAxis.d.ts +0 -0
  15. package/dist/src/grid/plugins/ScalingArea.d.ts +1 -0
  16. package/dist/src/grid/plugins/ValueAxis.d.ts +3 -0
  17. package/dist/src/grid/plugins/ValueStackAxis.d.ts +3 -0
  18. package/dist/src/grid/types.d.ts +73 -0
  19. package/dist/src/index.d.ts +3 -0
  20. package/dist/src/multiGrid/index.d.ts +0 -0
  21. package/dist/src/multiGrid/plugins/Diverging.d.ts +0 -0
  22. package/dist/src/multiGrid/plugins/DivergingAxes.d.ts +0 -0
  23. package/dist/src/multiGrid/plugins/TwoScaleAxes.d.ts +0 -0
  24. package/dist/src/multiGrid/plugins/TwoScales.d.ts +0 -0
  25. package/dist/src/multiValue/index.d.ts +0 -0
  26. package/dist/src/multiValue/plugins/Scatter.d.ts +0 -0
  27. package/dist/src/multiValue/plugins/ScatterAxes.d.ts +0 -0
  28. package/dist/src/noneData/defaults.d.ts +4 -0
  29. package/dist/src/noneData/index.d.ts +4 -0
  30. package/dist/src/noneData/plugins/Container.d.ts +1 -0
  31. package/dist/src/noneData/plugins/Tooltip.d.ts +3 -0
  32. package/dist/src/noneData/types.d.ts +24 -0
  33. package/dist/src/relationship/index.d.ts +0 -0
  34. package/dist/src/relationship/plugins/Relationship.d.ts +0 -0
  35. package/dist/src/series/defaults.d.ts +7 -0
  36. package/dist/src/series/index.d.ts +7 -0
  37. package/dist/src/series/plugins/Bubbles.d.ts +3 -0
  38. package/dist/src/series/plugins/Pie.d.ts +3 -0
  39. package/dist/src/series/plugins/PieEventTexts.d.ts +1 -0
  40. package/dist/src/series/plugins/PieLabels.d.ts +3 -0
  41. package/dist/src/series/plugins/SeriesLegend.d.ts +3 -0
  42. package/dist/src/series/plugins/Waffle.d.ts +0 -0
  43. package/dist/src/series/seriesUtils.d.ts +19 -0
  44. package/dist/src/series/types.d.ts +52 -0
  45. package/dist/src/tree/index.d.ts +0 -0
  46. package/dist/src/tree/plugins/TreeMap.d.ts +0 -0
  47. package/dist/src/utils/commonUtils.d.ts +2 -0
  48. package/dist/src/utils/d3Graphics.d.ts +13 -0
  49. package/dist/src/utils/d3Utils.d.ts +13 -0
  50. package/dist/src/utils/observables.d.ts +3 -0
  51. package/dist/src/utils/orbchartsUtils.d.ts +21 -0
  52. package/dist/vite.config.d.ts +2 -0
  53. package/package.json +3 -2
  54. package/src/series/defaults.ts +13 -2
  55. package/src/series/index.ts +2 -1
  56. package/src/series/plugins/Bubbles.ts +0 -3
  57. package/src/series/plugins/Pie.ts +0 -4
  58. package/src/series/plugins/PieLabels.ts +0 -4
  59. package/src/series/plugins/SeriesLegend.ts +457 -0
  60. package/src/series/types.ts +10 -0
  61. package/src/utils/orbchartsUtils.ts +10 -1
@@ -0,0 +1,12 @@
1
+ import { LinesPluginParams, GroupAreaPluginParams, DotsPluginParams, BarsPluginParams, BarStackPluginParams, BarsTrianglePluginParams, GroupingAxisParams, ValueAxisParams, ValueStackAxisParams, ScalingAreaParams } from './types';
2
+
3
+ export declare const DEFAULT_LINES_PLUGIN_PARAMS: LinesPluginParams;
4
+ export declare const DEFAULT_DOTS_PLUGIN_PARAMS: DotsPluginParams;
5
+ export declare const DEFAULT_GROUP_AREA_PLUGIN_PARAMS: GroupAreaPluginParams;
6
+ export declare const DEFAULT_BARS_PLUGIN_PARAMS: BarsPluginParams;
7
+ export declare const DEFAULT_BAR_STACK_PLUGIN_PARAMS: BarStackPluginParams;
8
+ export declare const DEFAULT_BARS_TRIANGLE_PLUGIN_PARAMS: BarsTrianglePluginParams;
9
+ export declare const DEFAULT_GROUPING_AXIS_PLUGIN_PARAMS: GroupingAxisParams;
10
+ export declare const DEFAULT_VALUE_AXIS_PLUGIN_PARAMS: ValueAxisParams;
11
+ export declare const DEFAULT_VALUE_STACK_AXIS_PLUGIN_PARAMS: ValueStackAxisParams;
12
+ export declare const DEFAULT_SCALING_AREA_PLUGIN_PARAMS: ScalingAreaParams;
@@ -0,0 +1,15 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ChartParams, DataFormatterGrid, ComputedDataGrid } from '@orbcharts/core';
3
+
4
+ export declare function gridGroupPositionFnObservable({ fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$ }: {
5
+ fullDataFormatter$: Observable<DataFormatterGrid>;
6
+ gridAxesSize$: Observable<{
7
+ width: number;
8
+ height: number;
9
+ }>;
10
+ computedData$: Observable<ComputedDataGrid>;
11
+ fullChartParams$: Observable<ChartParams>;
12
+ }): Observable<(event: any) => {
13
+ groupIndex: number;
14
+ groupLabel: string;
15
+ }>;
@@ -0,0 +1,12 @@
1
+ export * from './defaults';
2
+ export * from './types';
3
+ export { Lines } from './plugins/Lines';
4
+ export { Bars } from './plugins/Bars';
5
+ export { BarStack } from './plugins/BarStack';
6
+ export { BarsTriangle } from './plugins/BarsTriangle';
7
+ export { Dots } from './plugins/Dots';
8
+ export { GroupAxis } from './plugins/GroupAxis';
9
+ export { ValueAxis } from './plugins/ValueAxis';
10
+ export { ValueStackAxis } from './plugins/ValueStackAxis';
11
+ export { ScalingArea } from './plugins/ScalingArea';
12
+ export { GroupArea } from './plugins/GroupArea';
@@ -0,0 +1,3 @@
1
+ import { BarStackPluginParams } from '../types';
2
+
3
+ export declare const BarStack: import('@orbcharts/core').PluginConstructor<"grid", string, BarStackPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { BarsPluginParams } from '../types';
2
+
3
+ export declare const Bars: import('@orbcharts/core').PluginConstructor<"grid", string, BarsPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { BarsTrianglePluginParams } from '../types';
2
+
3
+ export declare const BarsTriangle: import('@orbcharts/core').PluginConstructor<"grid", string, BarsTrianglePluginParams>;
@@ -0,0 +1,3 @@
1
+ import { DotsPluginParams } from '../types';
2
+
3
+ export declare const Dots: import('@orbcharts/core').PluginConstructor<"grid", string, DotsPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { GroupAreaPluginParams } from '../types';
2
+
3
+ export declare const GroupArea: import('@orbcharts/core').PluginConstructor<"grid", string, GroupAreaPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { GroupingAxisParams } from '../types';
2
+
3
+ export declare const GroupAxis: import('@orbcharts/core').PluginConstructor<"grid", string, GroupingAxisParams>;
@@ -0,0 +1,3 @@
1
+ import { LinesPluginParams } from '../types';
2
+
3
+ export declare const Lines: import('@orbcharts/core').PluginConstructor<"grid", string, LinesPluginParams>;
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export declare const ScalingArea: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').ScalingAreaParams>;
@@ -0,0 +1,3 @@
1
+ import { ValueAxisParams } from '../types';
2
+
3
+ export declare const ValueAxis: import('@orbcharts/core').PluginConstructor<"grid", string, ValueAxisParams>;
@@ -0,0 +1,3 @@
1
+ import { ValueStackAxisParams } from '../types';
2
+
3
+ export declare const ValueStackAxis: import('@orbcharts/core').PluginConstructor<"grid", string, ValueStackAxisParams>;
@@ -0,0 +1,73 @@
1
+ import { ColorType } from '@orbcharts/core';
2
+
3
+ export interface LinesPluginParams {
4
+ lineCurve: string;
5
+ lineWidth: number;
6
+ }
7
+ export interface DotsPluginParams {
8
+ radius: number;
9
+ fillColorType: ColorType;
10
+ strokeColorType: ColorType;
11
+ strokeWidth: number;
12
+ onlyShowHighlighted: boolean;
13
+ }
14
+ export interface GroupAreaPluginParams {
15
+ showLine: boolean;
16
+ showLabel: boolean;
17
+ lineDashArray: string;
18
+ lineColorType: ColorType;
19
+ labelColorType: ColorType;
20
+ labelTextColorType: ColorType;
21
+ labelTextFormat: string | ((text: any) => string);
22
+ labelPadding: number;
23
+ }
24
+ export interface BarsPluginParams {
25
+ barWidth: number;
26
+ barPadding: number;
27
+ barGroupPadding: number;
28
+ barRadius: number | boolean;
29
+ }
30
+ export interface BarStackPluginParams {
31
+ barWidth: number;
32
+ barGroupPadding: number;
33
+ barRadius: number | boolean;
34
+ }
35
+ export interface BarsTrianglePluginParams {
36
+ barWidth: number;
37
+ barPadding: number;
38
+ barGroupPadding: number;
39
+ linearGradientOpacity: [number, number];
40
+ }
41
+ export interface GroupingAxisParams {
42
+ labelOffset: [number, number];
43
+ labelColorType: ColorType;
44
+ axisLineVisible: boolean;
45
+ axisLineColorType: ColorType;
46
+ tickFormat: string | ((text: any) => string);
47
+ tickLineVisible: boolean;
48
+ tickPadding: number;
49
+ tickFullLine: boolean;
50
+ tickFullLineDasharray: string;
51
+ tickColorType: ColorType;
52
+ tickTextRotate: number;
53
+ tickTextColorType: ColorType;
54
+ }
55
+ export interface ValueAxisParams {
56
+ labelOffset: [number, number];
57
+ labelColorType: ColorType;
58
+ axisLineVisible: boolean;
59
+ axisLineColorType: ColorType;
60
+ ticks: number;
61
+ tickFormat: string | ((text: d3.NumberValue) => string);
62
+ tickLineVisible: boolean;
63
+ tickPadding: number;
64
+ tickFullLine: boolean;
65
+ tickFullLineDasharray: string;
66
+ tickColorType: ColorType;
67
+ tickTextRotate: number;
68
+ tickTextColorType: ColorType;
69
+ }
70
+ export interface ValueStackAxisParams extends ValueAxisParams {
71
+ }
72
+ export interface ScalingAreaParams {
73
+ }
@@ -0,0 +1,3 @@
1
+ export * from './grid';
2
+ export * from './noneData';
3
+ export * from './series';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ import { ContainerPluginParams, TooltipParams } from './types';
2
+
3
+ export declare const CONTAINER_PLUGIN_PARAMS: ContainerPluginParams;
4
+ export declare const TOOLTIP_PARAMS: TooltipParams;
@@ -0,0 +1,4 @@
1
+ export * from './defaults';
2
+ export * from './types';
3
+ export { Container } from './plugins/Container';
4
+ export { Tooltip } from './plugins/Tooltip';
@@ -0,0 +1 @@
1
+ export declare const Container: import('@orbcharts/core').PluginConstructor<any, string, import('..').ContainerPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { PluginConstructor } from '@orbcharts/core';
2
+
3
+ export declare const Tooltip: PluginConstructor<any, string, any>;
@@ -0,0 +1,24 @@
1
+ import { ColorType, ChartType, EventTypeMap } from '@orbcharts/core';
2
+
3
+ export interface ContainerPluginParams {
4
+ header: {
5
+ height: number;
6
+ text: string[];
7
+ textStyle: string[];
8
+ };
9
+ footer: {
10
+ height: number;
11
+ text: string[];
12
+ textStyle: string[];
13
+ };
14
+ }
15
+ export type TooltipParams = {
16
+ backgroundColorType: ColorType;
17
+ backgroundOpacity: number;
18
+ strokeColorType: ColorType;
19
+ textColorType: ColorType;
20
+ offset: [number, number];
21
+ padding: number;
22
+ textRenderFn: <T extends ChartType>(eventData: EventTypeMap<T>) => string[];
23
+ svgRenderFn: (<T extends ChartType>(eventData: EventTypeMap<T>) => string) | null;
24
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import { BubblesPluginParams, PiePluginParams, PieEventTextsPluginParams, PieLabelsPluginParams, SeriesLegendParams } from './types';
2
+
3
+ export declare const DEFAULT_BUBBLES_PLUGIN_PARAMS: BubblesPluginParams;
4
+ export declare const DEFAULT_PIE_PLUGIN_PARAMS: PiePluginParams;
5
+ export declare const DEFAULT_PIE_EVENT_TEXTS_PARAMS: PieEventTextsPluginParams;
6
+ export declare const DEFAULT_PIE_LABELS_PARAMS: PieLabelsPluginParams;
7
+ export declare const DEFAULT_SERIES_LEGEND_PARAMS: SeriesLegendParams;
@@ -0,0 +1,7 @@
1
+ export * from './defaults';
2
+ export * from './types';
3
+ export { Bubbles } from './plugins/Bubbles';
4
+ export { Pie } from './plugins/Pie';
5
+ export { PieEventTexts } from './plugins/PieEventTexts';
6
+ export { PieLabels } from './plugins/PieLabels';
7
+ export { SeriesLegend } from './plugins/SeriesLegend';
@@ -0,0 +1,3 @@
1
+ import { BubblesPluginParams } from '../types';
2
+
3
+ export declare const Bubbles: import('@orbcharts/core').PluginConstructor<"series", string, BubblesPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { PiePluginParams } from '../types';
2
+
3
+ export declare const Pie: import('@orbcharts/core').PluginConstructor<"series", string, PiePluginParams>;
@@ -0,0 +1 @@
1
+ export declare const PieEventTexts: import('@orbcharts/core').PluginConstructor<"series", string, import('..').PieEventTextsPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { PieLabelsPluginParams } from '../types';
2
+
3
+ export declare const PieLabels: import('@orbcharts/core').PluginConstructor<"series", string, PieLabelsPluginParams>;
@@ -0,0 +1,3 @@
1
+ import { SeriesLegendParams } from '../types';
2
+
3
+ export declare const SeriesLegend: import('@orbcharts/core').PluginConstructor<"series", string, SeriesLegendParams>;
File without changes
@@ -0,0 +1,19 @@
1
+ import { ComputedDataSeries, ComputedDatumSeries } from '@orbcharts/core';
2
+
3
+ export interface D3PieDatum {
4
+ data: any;
5
+ index: number;
6
+ value: number;
7
+ startAngle: number;
8
+ endAngle: number;
9
+ padAngle: number;
10
+ }
11
+ export interface PieDatum extends D3PieDatum {
12
+ data: ComputedDatumSeries;
13
+ id: string;
14
+ }
15
+ export declare function makePieData({ computedDataSeries, startAngle, endAngle }: {
16
+ computedDataSeries: ComputedDataSeries;
17
+ startAngle: number;
18
+ endAngle: number;
19
+ }): PieDatum[];
@@ -0,0 +1,52 @@
1
+ import { ComputedDatumSeries, EventSeries, EventName, ColorType } from '@orbcharts/core';
2
+
3
+ export type ScaleType = 'area' | 'radius';
4
+ export interface BubblesPluginParams {
5
+ force: {
6
+ strength: number;
7
+ velocityDecay: number;
8
+ collisionSpacing: number;
9
+ };
10
+ bubbleText: {
11
+ fillRate: number;
12
+ lineHeight: number;
13
+ lineLengthMin: number;
14
+ };
15
+ highlightRIncrease: number;
16
+ scaleType: ScaleType;
17
+ }
18
+ export interface PiePluginParams {
19
+ outerRadius: number;
20
+ innerRadius: number;
21
+ outerMouseoverRadius: number;
22
+ enterDuration: number;
23
+ startAngle: number;
24
+ endAngle: number;
25
+ padAngle: number;
26
+ cornerRadius: number;
27
+ }
28
+ export interface PieEventTextsPluginParams {
29
+ eventFn: (d: EventSeries, eventName: EventName, t: number) => string[];
30
+ textAttrs: Array<{
31
+ [key: string]: string | number;
32
+ }>;
33
+ textStyles: Array<{
34
+ [key: string]: string | number;
35
+ }>;
36
+ }
37
+ export interface PieLabelsPluginParams {
38
+ outerRadius: number;
39
+ outerMouseoverRadius: number;
40
+ startAngle: number;
41
+ endAngle: number;
42
+ labelCentroid: number;
43
+ labelFn: ((d: ComputedDatumSeries) => string);
44
+ labelColorType: ColorType;
45
+ }
46
+ export interface SeriesLegendParams {
47
+ position: 'top' | 'bottom' | 'left' | 'right';
48
+ justify: 'start' | 'center' | 'end';
49
+ padding: number;
50
+ gap: number;
51
+ rectRadius: number;
52
+ }
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ export declare function measureTextWidth(text: string, size?: number): number;
2
+ export declare function getMinAndMax(data: number[]): [number, number];
@@ -0,0 +1,13 @@
1
+ type RenderCircleTextParams = {
2
+ text: string;
3
+ radius: number;
4
+ lineHeight: number;
5
+ isBreakAll: boolean;
6
+ limit?: number;
7
+ };
8
+ type Line = {
9
+ width: number;
10
+ text: string;
11
+ };
12
+ export declare function renderCircleText(selection: d3.Selection<any, any, any, any>, { text, radius, lineHeight, isBreakAll, limit }: RenderCircleTextParams): d3.Selection<SVGTSpanElement, Line, SVGTextElement, any> | undefined;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as d3 from 'd3';
2
+ export declare function getSvgGElementSize(selection: d3.Selection<SVGGElement, any, any, any>): DOMRect;
3
+ export declare function appendSvg(selection: d3.Selection<any, any, any, any>, svgString: string): void;
4
+ export declare function getD3TransitionEase(easeName: string): any;
5
+ export declare function makeD3Arc({ axisWidth, innerRadius, outerRadius, padAngle, cornerRadius }: {
6
+ axisWidth: number;
7
+ innerRadius: number;
8
+ outerRadius: number;
9
+ padAngle: number;
10
+ cornerRadius: number;
11
+ }): d3.Arc<any, d3.DefaultArcObject>;
12
+ export declare const parseTickFormatValue: (value: any, tickFormat: string | ((text: d3.NumberValue) => string)) => string;
13
+ export declare const parseDateTickFormatValue: (value: any, tickFormat: string | ((text: d3.NumberValue) => string)) => string;
@@ -0,0 +1,3 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as d3 from 'd3';
3
+ export declare function d3EventObservable(selection: d3.Selection<any, any, any, any>, event: any): Observable<unknown>;
@@ -0,0 +1,21 @@
1
+ import { AxisPosition, ColorType, ChartParams, ComputedDatumBase } from '@orbcharts/core';
2
+
3
+ export declare function getMinAndMaxValue(data: ComputedDatumBase[]): [number, number];
4
+ export declare function getColor(colorType: ColorType, fullChartParams: ChartParams): string;
5
+ export declare function getSeriesColor(seriesIndex: number, fullChartParams: ChartParams): string;
6
+ export declare function getDatumColor({ datum, colorType, fullChartParams }: {
7
+ datum: ComputedDatumBase;
8
+ colorType: ColorType;
9
+ fullChartParams: ChartParams;
10
+ }): string;
11
+ export declare function getClassName(pluginName: string, elementName: string, modifier?: string): string;
12
+ export declare function getUniID(pluginName: string, elementName: string): string;
13
+ export declare function calcAxesSize({ xAxisPosition, yAxisPosition, width, height }: {
14
+ xAxisPosition: AxisPosition;
15
+ yAxisPosition: AxisPosition;
16
+ width: number;
17
+ height: number;
18
+ }): {
19
+ width: number;
20
+ height: number;
21
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig & Promise<import('vite').UserConfig> & (import('vite').UserConfigFnObject & import('vite').UserConfigExport);
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.24",
3
+ "version": "3.0.0-alpha.26",
4
4
  "description": "plugins for OrbCharts",
5
5
  "author": "Blue Planet Inc.",
6
6
  "license": "Apache-2.0",
@@ -31,10 +31,11 @@
31
31
  "@types/d3": "^7.4.0",
32
32
  "ts-loader": "^9.4.2",
33
33
  "typescript": "^5.0.4",
34
+ "vite": "^5.3.5",
34
35
  "vite-plugin-dts": "^3.7.3"
35
36
  },
36
37
  "dependencies": {
37
- "@orbcharts/core": "^3.0.0-alpha.21",
38
+ "@orbcharts/core": "^3.0.0-alpha.22",
38
39
  "d3": "^7.8.5",
39
40
  "rxjs": "^7.8.1"
40
41
  }
@@ -1,9 +1,10 @@
1
1
  import type { ComputedDatumSeries, EventSeries, EventName, ColorType } from '@orbcharts/core'
2
- import {
2
+ import type {
3
3
  BubblesPluginParams,
4
4
  PiePluginParams,
5
5
  PieEventTextsPluginParams,
6
- PieLabelsPluginParams } from './types'
6
+ PieLabelsPluginParams,
7
+ SeriesLegendParams } from './types'
7
8
 
8
9
  export const DEFAULT_BUBBLES_PLUGIN_PARAMS: BubblesPluginParams = {
9
10
  force: {
@@ -80,3 +81,13 @@ export const DEFAULT_PIE_LABELS_PARAMS: PieLabelsPluginParams = {
80
81
  labelColorType: 'series',
81
82
  labelFn: d => String(d.value),
82
83
  }
84
+
85
+ export const DEFAULT_SERIES_LEGEND_PARAMS: SeriesLegendParams = {
86
+ position: 'right',
87
+ justify: 'end',
88
+ padding: 28,
89
+ // offset: [0, 0],
90
+ gap: 10,
91
+ rectRadius: 0,
92
+ // highlightEvent: false
93
+ }
@@ -3,4 +3,5 @@ export * from './types'
3
3
  export { Bubbles } from './plugins/Bubbles'
4
4
  export { Pie } from './plugins/Pie'
5
5
  export { PieEventTexts } from './plugins/PieEventTexts'
6
- export { PieLabels } from './plugins/PieLabels'
6
+ export { PieLabels } from './plugins/PieLabels'
7
+ export { SeriesLegend } from './plugins/SeriesLegend'
@@ -506,8 +506,6 @@ export const Bubbles = defineSeriesPlugin('Bubbles', DEFAULT_BUBBLES_PLUGIN_PARA
506
506
  bubblesSelection$.next(bubblesSelection)
507
507
  })
508
508
 
509
- // const highlight$ = highlightObservable({ datumList$: computedData$, fullChartParams$, event$: store.event$ })
510
- const highlightSubscription = observer.seriesHighlight$.subscribe()
511
509
  combineLatest({
512
510
  bubblesSelection: bubblesSelection$,
513
511
  bubblesData: bubblesData$,
@@ -548,6 +546,5 @@ export const Bubbles = defineSeriesPlugin('Bubbles', DEFAULT_BUBBLES_PLUGIN_PARA
548
546
 
549
547
  return () => {
550
548
  destroy$.next(undefined)
551
- highlightSubscription.unsubscribe()
552
549
  }
553
550
  })
@@ -508,9 +508,6 @@ export const Pie = defineSeriesPlugin(pluginName, DEFAULT_PIE_PLUGIN_PARAMS)(({
508
508
  // arcMouseover: data.arcMouseover
509
509
  // })
510
510
  // })
511
-
512
- // const highlight$ = highlightObservable({ datumList$: computedData$, fullChartParams$, event$: store.event$ })
513
- const highlightSubscription = observer.seriesHighlight$.subscribe()
514
511
 
515
512
  combineLatest({
516
513
  pathSelection: pathSelection$,
@@ -598,6 +595,5 @@ export const Pie = defineSeriesPlugin(pluginName, DEFAULT_PIE_PLUGIN_PARAMS)(({
598
595
 
599
596
  return () => {
600
597
  destroy$.next(undefined)
601
- highlightSubscription.unsubscribe()
602
598
  }
603
599
  })
@@ -263,9 +263,6 @@ export const PieLabels = defineSeriesPlugin(pluginName, DEFAULT_PIE_LABELS_PARAM
263
263
  labelSelection$.next(labelSelection)
264
264
 
265
265
  })
266
-
267
- // const highlight$ = highlightObservable({ datumList$: computedData$, fullChartParams$, event$: store.event$ })
268
- const highlightSubscription = observer.seriesHighlight$.subscribe()
269
266
 
270
267
  combineLatest({
271
268
  labelSelection: labelSelection$,
@@ -284,6 +281,5 @@ export const PieLabels = defineSeriesPlugin(pluginName, DEFAULT_PIE_LABELS_PARAM
284
281
 
285
282
  return () => {
286
283
  destroy$.next(undefined)
287
- highlightSubscription.unsubscribe()
288
284
  }
289
285
  })