@orbcharts/plugins-basic 3.0.0-alpha.33 → 3.0.0-alpha.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/dist/orbcharts-plugins-basic.es.js +10246 -9523
  2. package/dist/orbcharts-plugins-basic.umd.js +10 -10
  3. package/dist/src/base/BaseBarStack.d.ts +5 -1
  4. package/dist/src/base/BaseBars.d.ts +5 -1
  5. package/dist/src/base/BaseBarsTriangle.d.ts +5 -1
  6. package/dist/src/base/BaseDots.d.ts +33 -0
  7. package/dist/src/base/BaseGroupAxis.d.ts +35 -0
  8. package/dist/src/base/BaseLines.d.ts +3 -1
  9. package/dist/src/base/BaseValueAxis.d.ts +36 -0
  10. package/dist/src/grid/defaults.d.ts +3 -3
  11. package/dist/src/grid/gridObservables.d.ts +18 -4
  12. package/dist/src/grid/index.d.ts +1 -1
  13. package/dist/src/grid/plugins/Dots.d.ts +1 -3
  14. package/dist/src/grid/plugins/GroupAux.d.ts +3 -0
  15. package/dist/src/grid/plugins/GroupAxis.d.ts +1 -3
  16. package/dist/src/grid/plugins/ValueAxis.d.ts +1 -3
  17. package/dist/src/grid/plugins/ValueStackAxis.d.ts +1 -3
  18. package/dist/src/grid/types.d.ts +1 -1
  19. package/dist/src/multiGrid/defaults.d.ts +9 -2
  20. package/dist/src/multiGrid/index.d.ts +8 -1
  21. package/dist/src/multiGrid/multiGridObservables.d.ts +12 -0
  22. package/dist/src/multiGrid/plugins/MultiBarStack.d.ts +1 -0
  23. package/dist/src/multiGrid/plugins/MultiBars.d.ts +1 -0
  24. package/dist/src/multiGrid/plugins/MultiBarsTriangle.d.ts +1 -0
  25. package/dist/src/multiGrid/plugins/MultiDots.d.ts +1 -0
  26. package/dist/src/multiGrid/plugins/MultiGroupAxis.d.ts +1 -0
  27. package/dist/src/multiGrid/plugins/MultiLines.d.ts +1 -0
  28. package/dist/src/multiGrid/plugins/MultiValueAxis.d.ts +1 -0
  29. package/dist/src/multiGrid/plugins/OverlappingValueAxes.d.ts +1 -0
  30. package/dist/src/multiGrid/types.d.ts +31 -0
  31. package/package.json +2 -2
  32. package/src/base/BaseBarStack.ts +375 -198
  33. package/src/base/BaseBars.ts +297 -191
  34. package/src/base/BaseBarsTriangle.ts +344 -229
  35. package/src/base/BaseDots.ts +634 -0
  36. package/src/base/BaseGroupAxis.ts +497 -0
  37. package/src/base/BaseLines.ts +180 -50
  38. package/src/base/BaseValueAxis.ts +475 -0
  39. package/src/grid/defaults.ts +3 -3
  40. package/src/grid/gridObservables.ts +147 -14
  41. package/src/grid/index.ts +1 -1
  42. package/src/grid/plugins/BarStack.ts +4 -0
  43. package/src/grid/plugins/Bars.ts +4 -0
  44. package/src/grid/plugins/BarsTriangle.ts +4 -0
  45. package/src/grid/plugins/Dots.ts +19 -410
  46. package/src/grid/plugins/{GroupArea.ts → GroupAux.ts} +24 -24
  47. package/src/grid/plugins/GroupAxis.ts +16 -348
  48. package/src/grid/plugins/Lines.ts +2 -0
  49. package/src/grid/plugins/ScalingArea.ts +9 -6
  50. package/src/grid/plugins/ValueAxis.ts +13 -337
  51. package/src/grid/plugins/ValueStackAxis.ts +35 -336
  52. package/src/grid/types.ts +1 -1
  53. package/src/index.ts +1 -0
  54. package/src/multiGrid/defaults.ts +120 -14
  55. package/src/multiGrid/index.ts +9 -2
  56. package/src/multiGrid/multiGridObservables.ts +279 -0
  57. package/src/multiGrid/plugins/MultiBarStack.ts +60 -0
  58. package/src/multiGrid/plugins/MultiBars.ts +59 -0
  59. package/src/multiGrid/plugins/MultiBarsTriangle.ts +58 -0
  60. package/src/multiGrid/plugins/MultiDots.ts +58 -0
  61. package/src/multiGrid/plugins/MultiGridLegend.ts +9 -10
  62. package/src/multiGrid/plugins/MultiGroupAxis.ts +53 -0
  63. package/src/multiGrid/plugins/MultiLines.ts +58 -0
  64. package/src/multiGrid/plugins/MultiValueAxis.ts +53 -0
  65. package/src/multiGrid/plugins/OverlappingValueAxes.ts +165 -0
  66. package/src/multiGrid/types.ts +39 -0
  67. package/tsconfig.dev.json +17 -0
  68. package/tsconfig.prod.json +14 -0
  69. package/vite.config.js +5 -0
  70. package/dist/src/grid/plugins/GroupArea.d.ts +0 -3
  71. package/dist/src/multiGrid/plugins/BarsAndLines.d.ts +0 -1
  72. package/dist/src/multiGrid/plugins/FirstGroupScaleAxis.d.ts +0 -0
  73. package/dist/src/multiGrid/plugins/TwoValueScaleAxes.d.ts +0 -0
  74. package/src/multiGrid/plugins/BarStackAndLines.ts +0 -0
  75. package/src/multiGrid/plugins/BarsAndLines.ts +0 -126
  76. package/src/multiGrid/plugins/BarsTriangleAndLines.ts +0 -0
  77. package/src/multiGrid/plugins/FirstGroupScaleAxis.ts +0 -0
  78. package/src/multiGrid/plugins/TwoValueScaleAxes.ts +0 -0
  79. /package/dist/src/{multiGrid/plugins/BarStackAndLines.d.ts → base/BaseGroupArea.d.ts} +0 -0
  80. /package/{dist/src/multiGrid/plugins/BarsTriangleAndLines.d.ts → src/base/BaseGroupArea.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { BasePluginFn } from './types';
3
- import { ComputedDatumGrid, ComputedDataGrid, DataFormatterGrid, EventGrid, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { ComputedDatumGrid, ComputedDataGrid, DataFormatterGrid, EventGrid, ChartParams, ContainerPosition, TransformData } from '@orbcharts/core';
4
4
  import * as d3 from 'd3';
5
5
  export interface BaseBarStackParams {
6
6
  barWidth: number;
@@ -11,6 +11,7 @@ interface BaseBarStackContext {
11
11
  selection: d3.Selection<any, unknown, any, unknown>;
12
12
  computedData$: Observable<ComputedDataGrid>;
13
13
  visibleComputedData$: Observable<ComputedDatumGrid[][]>;
14
+ existedSeriesLabels$: Observable<string[]>;
14
15
  SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
15
16
  GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
16
17
  fullParams$: Observable<BaseBarStackParams>;
@@ -18,11 +19,14 @@ interface BaseBarStackContext {
18
19
  fullChartParams$: Observable<ChartParams>;
19
20
  gridAxesTransform$: Observable<TransformData>;
20
21
  gridGraphicTransform$: Observable<TransformData>;
22
+ gridGraphicReverseScale$: Observable<[number, number][]>;
21
23
  gridAxesSize$: Observable<{
22
24
  width: number;
23
25
  height: number;
24
26
  }>;
25
27
  gridHighlight$: Observable<string[]>;
28
+ gridContainer$: Observable<ContainerPosition[]>;
29
+ isSeriesPositionSeprate$: Observable<boolean>;
26
30
  event$: Subject<EventGrid>;
27
31
  }
28
32
  export declare const createBaseBarStack: BasePluginFn<BaseBarStackContext>;
@@ -1,6 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { BasePluginFn } from './types';
3
- import { ComputedDatumGrid, ComputedDataGrid, EventGrid, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { ComputedDatumGrid, ComputedDataGrid, ContainerPosition, EventGrid, ChartParams, TransformData } from '@orbcharts/core';
4
4
  import * as d3 from 'd3';
5
5
  export interface BaseBarsParams {
6
6
  barWidth: number;
@@ -12,17 +12,21 @@ interface BaseBarsContext {
12
12
  selection: d3.Selection<any, unknown, any, unknown>;
13
13
  computedData$: Observable<ComputedDataGrid>;
14
14
  visibleComputedData$: Observable<ComputedDatumGrid[][]>;
15
+ existedSeriesLabels$: Observable<string[]>;
15
16
  SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
16
17
  GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
17
18
  fullParams$: Observable<BaseBarsParams>;
18
19
  fullChartParams$: Observable<ChartParams>;
19
20
  gridAxesTransform$: Observable<TransformData>;
20
21
  gridGraphicTransform$: Observable<TransformData>;
22
+ gridGraphicReverseScale$: Observable<[number, number][]>;
21
23
  gridAxesSize$: Observable<{
22
24
  width: number;
23
25
  height: number;
24
26
  }>;
25
27
  gridHighlight$: Observable<string[]>;
28
+ gridContainer$: Observable<ContainerPosition[]>;
29
+ isSeriesPositionSeprate$: Observable<boolean>;
26
30
  event$: Subject<EventGrid>;
27
31
  }
28
32
  export declare const createBaseBars: BasePluginFn<BaseBarsContext>;
@@ -1,6 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { BasePluginFn } from './types';
3
- import { ComputedDatumGrid, ComputedDataGrid, EventGrid, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { ComputedDatumGrid, ComputedDataGrid, EventGrid, ChartParams, ContainerPosition, TransformData } from '@orbcharts/core';
4
4
  import * as d3 from 'd3';
5
5
  export interface BaseBarsTriangleParams {
6
6
  barWidth: number;
@@ -11,6 +11,8 @@ export interface BaseBarsTriangleParams {
11
11
  interface BaseBarsContext {
12
12
  selection: d3.Selection<any, unknown, any, unknown>;
13
13
  computedData$: Observable<ComputedDataGrid>;
14
+ visibleComputedData$: Observable<ComputedDatumGrid[][]>;
15
+ existedSeriesLabels$: Observable<string[]>;
14
16
  SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
15
17
  GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
16
18
  fullParams$: Observable<BaseBarsTriangleParams>;
@@ -22,6 +24,8 @@ interface BaseBarsContext {
22
24
  height: number;
23
25
  }>;
24
26
  gridHighlight$: Observable<string[]>;
27
+ gridContainer$: Observable<ContainerPosition[]>;
28
+ isSeriesPositionSeprate$: Observable<boolean>;
25
29
  event$: Subject<EventGrid>;
26
30
  }
27
31
  export declare const createBaseBarsTriangle: BasePluginFn<BaseBarsContext>;
@@ -0,0 +1,33 @@
1
+ import { Observable, Subject } from 'rxjs';
2
+ import { BasePluginFn } from './types';
3
+ import { ComputedDatumGrid, ComputedDataGrid, EventGrid, ChartParams, ContainerPosition, TransformData, ColorType } from '@orbcharts/core';
4
+ import * as d3 from 'd3';
5
+ export interface BaseDotsParams {
6
+ radius: number;
7
+ fillColorType: ColorType;
8
+ strokeColorType: ColorType;
9
+ strokeWidth: number;
10
+ onlyShowHighlighted: boolean;
11
+ }
12
+ interface BaseDotsContext {
13
+ selection: d3.Selection<any, unknown, any, unknown>;
14
+ computedData$: Observable<ComputedDataGrid>;
15
+ visibleComputedData$: Observable<ComputedDatumGrid[][]>;
16
+ existedSeriesLabels$: Observable<string[]>;
17
+ SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
18
+ GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
19
+ fullParams$: Observable<BaseDotsParams>;
20
+ fullChartParams$: Observable<ChartParams>;
21
+ gridAxesTransform$: Observable<TransformData>;
22
+ gridGraphicTransform$: Observable<TransformData>;
23
+ gridGraphicReverseScale$: Observable<[number, number][]>;
24
+ gridAxesSize$: Observable<{
25
+ width: number;
26
+ height: number;
27
+ }>;
28
+ gridHighlight$: Observable<string[]>;
29
+ gridContainer$: Observable<ContainerPosition[]>;
30
+ event$: Subject<EventGrid>;
31
+ }
32
+ export declare const createBaseDots: BasePluginFn<BaseDotsContext>;
33
+ export {};
@@ -0,0 +1,35 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ColorType, ComputedDataGrid, ContainerPosition, DataFormatterGrid, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { BasePluginFn } from './types';
4
+ import * as d3 from 'd3';
5
+ export interface BaseGroupAxisParams {
6
+ labelOffset: [number, number];
7
+ labelColorType: ColorType;
8
+ axisLineVisible: boolean;
9
+ axisLineColorType: ColorType;
10
+ tickFormat: string | ((text: any) => string);
11
+ tickLineVisible: boolean;
12
+ tickPadding: number;
13
+ tickFullLine: boolean;
14
+ tickFullLineDasharray: string;
15
+ tickColorType: ColorType;
16
+ tickTextRotate: number;
17
+ tickTextColorType: ColorType;
18
+ }
19
+ interface BaseGroupAxisContext {
20
+ selection: d3.Selection<any, unknown, any, unknown>;
21
+ computedData$: Observable<ComputedDataGrid>;
22
+ fullParams$: Observable<BaseGroupAxisParams>;
23
+ fullDataFormatter$: Observable<DataFormatterGrid>;
24
+ fullChartParams$: Observable<ChartParams>;
25
+ gridAxesTransform$: Observable<TransformData>;
26
+ gridAxesReverseTransform$: Observable<TransformData>;
27
+ gridAxesSize$: Observable<{
28
+ width: number;
29
+ height: number;
30
+ }>;
31
+ gridContainer$: Observable<ContainerPosition[]>;
32
+ isSeriesPositionSeprate$: Observable<boolean>;
33
+ }
34
+ export declare const createBaseGroupAxis: BasePluginFn<BaseGroupAxisContext>;
35
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { BasePluginFn } from './types';
3
- import { ComputedDatumGrid, ComputedDataGrid, DataFormatterGrid, EventGrid, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { ComputedDatumGrid, ComputedDataGrid, DataFormatterGrid, EventGrid, ContainerPosition, ChartParams, TransformData } from '@orbcharts/core';
4
4
  import * as d3 from 'd3';
5
5
  export interface BaseLinesParams {
6
6
  lineCurve: string;
@@ -9,6 +9,7 @@ export interface BaseLinesParams {
9
9
  interface BaseLinesContext {
10
10
  selection: d3.Selection<any, unknown, any, unknown>;
11
11
  computedData$: Observable<ComputedDataGrid>;
12
+ existedSeriesLabels$: Observable<string[]>;
12
13
  SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
13
14
  GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
14
15
  fullDataFormatter$: Observable<DataFormatterGrid>;
@@ -21,6 +22,7 @@ interface BaseLinesContext {
21
22
  height: number;
22
23
  }>;
23
24
  gridHighlight$: Observable<string[]>;
25
+ gridContainer$: Observable<ContainerPosition[]>;
24
26
  event$: Subject<EventGrid>;
25
27
  }
26
28
  export declare const createBaseLines: BasePluginFn<BaseLinesContext>;
@@ -0,0 +1,36 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BasePluginFn } from './types';
3
+ import { ComputedDataGrid, DataFormatterGrid, ChartParams, ContainerPosition, TransformData, ColorType } from '@orbcharts/core';
4
+ import * as d3 from 'd3';
5
+ export interface BaseValueAxisParams {
6
+ labelOffset: [number, number];
7
+ labelColorType: ColorType;
8
+ axisLineVisible: boolean;
9
+ axisLineColorType: ColorType;
10
+ ticks: number;
11
+ tickFormat: string | ((text: d3.NumberValue) => string);
12
+ tickLineVisible: boolean;
13
+ tickPadding: number;
14
+ tickFullLine: boolean;
15
+ tickFullLineDasharray: string;
16
+ tickColorType: ColorType;
17
+ tickTextRotate: number;
18
+ tickTextColorType: ColorType;
19
+ }
20
+ interface BaseLinesContext {
21
+ selection: d3.Selection<any, unknown, any, unknown>;
22
+ computedData$: Observable<ComputedDataGrid>;
23
+ fullParams$: Observable<BaseValueAxisParams>;
24
+ fullDataFormatter$: Observable<DataFormatterGrid>;
25
+ fullChartParams$: Observable<ChartParams>;
26
+ gridAxesTransform$: Observable<TransformData>;
27
+ gridAxesReverseTransform$: Observable<TransformData>;
28
+ gridAxesSize$: Observable<{
29
+ width: number;
30
+ height: number;
31
+ }>;
32
+ gridContainer$: Observable<ContainerPosition[]>;
33
+ isSeriesPositionSeprate$: Observable<boolean>;
34
+ }
35
+ export declare const createBaseValueAxis: BasePluginFn<BaseLinesContext>;
36
+ export {};
@@ -1,12 +1,12 @@
1
- import { LinesParams, GroupAreaParams, DotsParams, BarsParams, BarStackParams, BarsTriangleParams, GroupAxisParams, ValueAxisParams, ValueStackAxisParams, ScalingAreaParams, GridLegendParams } from './types';
1
+ import { LinesParams, GroupAuxParams, DotsParams, BarsParams, BarStackParams, BarsTriangleParams, GroupAxisParams, ValueAxisParams, ValueStackAxisParams, ScalingAreaParams, GridLegendParams } from './types';
2
2
 
3
3
  export declare const DEFAULT_LINES_PARAMS: LinesParams;
4
4
  export declare const DEFAULT_DOTS_PARAMS: DotsParams;
5
- export declare const DEFAULT_GROUP_AREA_PARAMS: GroupAreaParams;
5
+ export declare const DEFAULT_GROUP_AREA_PARAMS: GroupAuxParams;
6
6
  export declare const DEFAULT_BARS_PARAMS: BarsParams;
7
7
  export declare const DEFAULT_BAR_STACK_PARAMS: BarStackParams;
8
8
  export declare const DEFAULT_BARS_TRIANGLE_PARAMS: BarsTriangleParams;
9
- export declare const DEFAULT_GROUPING_AXIS_PARAMS: GroupAxisParams;
9
+ export declare const DEFAULT_GROUP_AXIS_PARAMS: GroupAxisParams;
10
10
  export declare const DEFAULT_VALUE_AXIS_PARAMS: ValueAxisParams;
11
11
  export declare const DEFAULT_VALUE_STACK_AXIS_PARAMS: ValueStackAxisParams;
12
12
  export declare const DEFAULT_SCALING_AREA_PARAMS: ScalingAreaParams;
@@ -1,7 +1,21 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ChartParams, DataFormatterGrid, ComputedDataGrid } from '@orbcharts/core';
3
-
4
- export declare function gridGroupPositionFnObservable({ fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$ }: {
2
+ import { ChartParams, DataFormatterGrid, ComputedDataGrid, TransformData, ContainerPosition } from '@orbcharts/core';
3
+ import * as d3 from 'd3';
4
+ export declare const gridSelectionsObservable: ({ selection, pluginName, clipPathID, existedSeriesLabels$, gridContainer$, gridAxesTransform$, gridGraphicTransform$ }: {
5
+ selection: d3.Selection<any, unknown, any, unknown>;
6
+ pluginName: string;
7
+ clipPathID: string;
8
+ existedSeriesLabels$: Observable<string[]>;
9
+ gridContainer$: Observable<ContainerPosition[]>;
10
+ gridAxesTransform$: Observable<TransformData>;
11
+ gridGraphicTransform$: Observable<TransformData>;
12
+ }) => {
13
+ seriesSelection$: Observable<d3.Selection<SVGGElement, string, any, unknown>>;
14
+ axesSelection$: Observable<d3.Selection<SVGGElement, string, any, unknown>>;
15
+ defsSelection$: Observable<d3.Selection<SVGDefsElement, string, any, unknown>>;
16
+ graphicGSelection$: Observable<d3.Selection<SVGGElement, string, any, unknown>>;
17
+ };
18
+ export declare const gridGroupPositionFnObservable: ({ fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$ }: {
5
19
  fullDataFormatter$: Observable<DataFormatterGrid>;
6
20
  gridAxesSize$: Observable<{
7
21
  width: number;
@@ -9,7 +23,7 @@ export declare function gridGroupPositionFnObservable({ fullDataFormatter$, grid
9
23
  }>;
10
24
  computedData$: Observable<ComputedDataGrid>;
11
25
  fullChartParams$: Observable<ChartParams>;
12
- }): Observable<(event: any) => {
26
+ }) => Observable<(event: any) => {
13
27
  groupIndex: number;
14
28
  groupLabel: string;
15
29
  }>;
@@ -10,4 +10,4 @@ export { GroupAxis } from './plugins/GroupAxis';
10
10
  export { ValueAxis } from './plugins/ValueAxis';
11
11
  export { ValueStackAxis } from './plugins/ValueStackAxis';
12
12
  export { ScalingArea } from './plugins/ScalingArea';
13
- export { GroupArea } from './plugins/GroupArea';
13
+ export { GroupAux } from './plugins/GroupAux';
@@ -1,3 +1 @@
1
- import { DotsParams } from '../types';
2
-
3
- export declare const Dots: import('@orbcharts/core').PluginConstructor<"grid", string, DotsParams>;
1
+ export declare const Dots: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').DotsParams>;
@@ -0,0 +1,3 @@
1
+ import { GroupAuxParams } from '../types';
2
+
3
+ export declare const GroupAux: import('@orbcharts/core').PluginConstructor<"grid", string, GroupAuxParams>;
@@ -1,3 +1 @@
1
- import { GroupAxisParams } from '../types';
2
-
3
- export declare const GroupAxis: import('@orbcharts/core').PluginConstructor<"grid", string, GroupAxisParams>;
1
+ export declare const GroupAxis: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').GroupAxisParams>;
@@ -1,3 +1 @@
1
- import { ValueAxisParams } from '../types';
2
-
3
- export declare const ValueAxis: import('@orbcharts/core').PluginConstructor<"grid", string, ValueAxisParams>;
1
+ export declare const ValueAxis: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').ValueAxisParams>;
@@ -1,3 +1 @@
1
- import { ValueStackAxisParams } from '../types';
2
-
3
- export declare const ValueStackAxis: import('@orbcharts/core').PluginConstructor<"grid", string, ValueStackAxisParams>;
1
+ export declare const ValueStackAxis: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').ValueStackAxisParams>;
@@ -11,7 +11,7 @@ export interface DotsParams {
11
11
  strokeWidth: number;
12
12
  onlyShowHighlighted: boolean;
13
13
  }
14
- export interface GroupAreaParams {
14
+ export interface GroupAuxParams {
15
15
  showLine: boolean;
16
16
  showLabel: boolean;
17
17
  lineDashArray: string;
@@ -1,4 +1,11 @@
1
- import { BarsAndLinesParams, MultiGridLegendParams } from './types';
1
+ import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, OverlappingValueAxesParams } from './types';
2
2
 
3
- export declare const DEFAULT_BARS_AND_LINES_PARAMS: BarsAndLinesParams;
4
3
  export declare const DEFAULT_MULTI_GRID_LEGEND_PARAMS: MultiGridLegendParams;
4
+ export declare const DEFAULT_MULTI_GROUP_AXIS_PARAMS: MultiGroupAxisParams;
5
+ export declare const DEFAULT_MULTI_VALUE_AXIS_PARAMS: MultiValueAxisParams;
6
+ export declare const DEFAULT_MULTI_BARS_PARAMS: MultiBarsParams;
7
+ export declare const DEFAULT_MULTI_BAR_STACK_PARAMS: MultiBarStackParams;
8
+ export declare const DEFAULT_MULTI_BARS_TRIANGLE_PARAMS: MultiBarsTriangleParams;
9
+ export declare const DEFAULT_MULTI_LINES_PARAMS: MultiLinesParams;
10
+ export declare const DEFAULT_MULTI_DOTS_PARAMS: MultiDotsParams;
11
+ export declare const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams;
@@ -1,4 +1,11 @@
1
1
  export * from './defaults';
2
2
  export * from './types';
3
- export { BarsAndLines } from './plugins/BarsAndLines';
4
3
  export { MultiGridLegend } from './plugins/MultiGridLegend';
4
+ export { MultiBars } from './plugins/MultiBars';
5
+ export { MultiBarStack } from './plugins/MultiBarStack';
6
+ export { MultiBarsTriangle } from './plugins/MultiBarsTriangle';
7
+ export { MultiLines } from './plugins/MultiLines';
8
+ export { MultiDots } from './plugins/MultiDots';
9
+ export { MultiGroupAxis } from './plugins/MultiGroupAxis';
10
+ export { MultiValueAxis } from './plugins/MultiValueAxis';
11
+ export { OverlappingValueAxes } from './plugins/OverlappingValueAxes';
@@ -0,0 +1,12 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ContextObserverMultiGrid, ComputedDataGrid, DataFormatterGrid, ContextObserverGridDetail } from '@orbcharts/core';
3
+
4
+ interface MultiGridPluginParams {
5
+ gridIndexes: number[];
6
+ }
7
+ interface MultiGridDetailObservables extends ContextObserverGridDetail {
8
+ gridComputedData$: Observable<ComputedDataGrid>;
9
+ gridDataFormatter$: Observable<DataFormatterGrid>;
10
+ }
11
+ export declare const multiGridDetailObservables: (observer: ContextObserverMultiGrid<MultiGridPluginParams>) => Observable<MultiGridDetailObservables[]>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const MultiBarStack: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiBarStackParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiBars: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiBarsParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiBarsTriangle: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiBarsTriangleParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiDots: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiDotsParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiGroupAxis: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiGroupAxisParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiLines: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiLinesParams>;
@@ -0,0 +1 @@
1
+ export declare const MultiValueAxis: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiValueAxisParams>;
@@ -0,0 +1 @@
1
+ export declare const OverlappingValueAxes: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').OverlappingValueAxesParams>;
@@ -1,5 +1,10 @@
1
1
  import { BaseBarsParams } from '../base/BaseBars';
2
+ import { BaseBarStackParams } from '../base/BaseBarStack';
3
+ import { BaseBarsTriangleParams } from '../base/BaseBarsTriangle';
2
4
  import { BaseLinesParams } from '../base/BaseLines';
5
+ import { BaseDotsParams } from '../base/BaseDots';
6
+ import { BaseGroupAxisParams } from '../base/BaseGroupAxis';
7
+ import { BaseValueAxisParams } from '../base/BaseValueAxis';
3
8
  import { ColorType } from '@orbcharts/core';
4
9
 
5
10
  export interface BarsAndLinesParams {
@@ -22,3 +27,29 @@ export interface MultiGridLegendParams {
22
27
  listRectRadius: number;
23
28
  }>;
24
29
  }
30
+ export interface MultiGroupAxisParams extends BaseGroupAxisParams {
31
+ gridIndexes: number[];
32
+ }
33
+ export interface MultiValueAxisParams extends BaseValueAxisParams {
34
+ gridIndexes: number[];
35
+ }
36
+ export interface MultiBarsParams extends BaseBarsParams {
37
+ gridIndexes: number[];
38
+ }
39
+ export interface MultiBarStackParams extends BaseBarStackParams {
40
+ gridIndexes: number[];
41
+ }
42
+ export interface MultiBarsTriangleParams extends BaseBarsTriangleParams {
43
+ gridIndexes: number[];
44
+ }
45
+ export interface MultiLinesParams extends BaseLinesParams {
46
+ gridIndexes: number[];
47
+ }
48
+ export interface MultiDotsParams extends BaseDotsParams {
49
+ gridIndexes: number[];
50
+ }
51
+ export interface OverlappingValueAxesParams {
52
+ firstAxis: BaseValueAxisParams;
53
+ secondAxis: BaseValueAxisParams;
54
+ gridIndexes: [number, number];
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.33",
3
+ "version": "3.0.0-alpha.35",
4
4
  "description": "plugins for OrbCharts",
5
5
  "author": "Blue Planet Inc.",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "vite-plugin-dts": "^3.7.3"
36
36
  },
37
37
  "dependencies": {
38
- "@orbcharts/core": "^3.0.0-alpha.29",
38
+ "@orbcharts/core": "^3.0.0-alpha.33",
39
39
  "d3": "^7.8.5",
40
40
  "rxjs": "^7.8.1"
41
41
  }