@orbcharts/plugins-basic 3.0.0-beta.6 → 3.0.0-beta.8
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/dist/orbcharts-plugins-basic/src/base/{BaseBarStack.d.ts → BaseStackedBar.d.ts} +4 -4
- package/dist/orbcharts-plugins-basic/src/grid/defaults.d.ts +3 -3
- package/dist/orbcharts-plugins-basic/src/grid/index.d.ts +2 -2
- package/dist/orbcharts-plugins-basic/src/grid/plugins/StackedBar.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/grid/plugins/StackedValueAxis.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/index.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/multiGrid/defaults.d.ts +4 -4
- package/dist/orbcharts-plugins-basic/src/multiGrid/index.d.ts +3 -3
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/MultiStackedBar.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/MultiStackedValueAxis.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/OverlappingStackedValueAxes.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/noneData/plugins/Container.d.ts +0 -1
- package/dist/orbcharts-plugins-basic/src/noneData/plugins/Tooltip.d.ts +0 -3
- package/dist/orbcharts-plugins-basic/src/relationship/defaults.d.ts +5 -0
- package/dist/orbcharts-plugins-basic/src/relationship/index.d.ts +4 -0
- package/dist/orbcharts-plugins-basic/src/relationship/plugins/ForceDirected.d.ts +3 -0
- package/dist/orbcharts-plugins-basic/src/relationship/plugins/RelationshipLegend.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/relationship/plugins/RelationshipTooltip.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/relationship/relationshipObservables.d.ts +1 -0
- package/dist/orbcharts-plugins-basic/src/utils/commonUtils.d.ts +1 -1
- package/dist/orbcharts-plugins-basic/src/utils/d3Utils.d.ts +2 -2
- package/dist/orbcharts-plugins-basic/src/utils/orbchartsUtils.d.ts +1 -1
- package/dist/orbcharts-plugins-basic.es.js +8088 -7413
- package/dist/orbcharts-plugins-basic.umd.js +45 -32
- package/package.json +4 -4
- package/src/base/BaseBars.ts +4 -4
- package/src/base/BaseBarsTriangle.ts +4 -2
- package/src/base/BaseDots.ts +1 -1
- package/src/base/BaseGroupAxis.ts +47 -47
- package/src/base/BaseLegend.ts +4 -4
- package/src/base/BaseLineAreas.ts +1 -1
- package/src/base/{BaseBarStack.ts → BaseStackedBar.ts} +20 -18
- package/src/base/BaseTooltip.ts +1 -1
- package/src/base/BaseValueAxis.ts +55 -55
- package/src/grid/defaults.ts +8 -6
- package/src/grid/gridObservables.ts +32 -32
- package/src/grid/index.ts +2 -2
- package/src/grid/plugins/GridZoom.ts +6 -6
- package/src/grid/plugins/GroupAux.ts +23 -23
- package/src/grid/plugins/{BarStack.ts → StackedBar.ts} +7 -7
- package/src/grid/plugins/{ValueStackAxis.ts → StackedValueAxis.ts} +5 -5
- package/src/index.ts +1 -5
- package/src/multiGrid/defaults.ts +7 -7
- package/src/multiGrid/index.ts +3 -3
- package/src/multiGrid/plugins/MultiBars.ts +1 -1
- package/src/multiGrid/plugins/MultiBarsTriangle.ts +1 -1
- package/src/multiGrid/plugins/MultiGroupAxis.ts +1 -1
- package/src/multiGrid/plugins/{MultiBarStack.ts → MultiStackedBar.ts} +8 -8
- package/src/multiGrid/plugins/{MultiValueStackAxis.ts → MultiStackedValueAxis.ts} +3 -3
- package/src/multiGrid/plugins/MultiValueAxis.ts +1 -1
- package/src/multiGrid/plugins/{OverlappingValueStackAxes.ts → OverlappingStackedValueAxes.ts} +8 -8
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +3 -3
- package/src/multiValue/defaults.ts +10 -6
- package/src/multiValue/multiValueObservables.ts +50 -11
- package/src/multiValue/plugins/ScatterBubbles.ts +6 -3
- package/src/multiValue/plugins/XYAxes.ts +36 -28
- package/src/noneData/plugins/Container.ts +23 -23
- package/src/noneData/plugins/Tooltip.ts +365 -365
- package/src/relationship/defaults.ts +113 -0
- package/src/relationship/index.ts +4 -0
- package/src/relationship/plugins/ForceDirected.ts +1148 -0
- package/src/relationship/plugins/RelationshipLegend.ts +100 -0
- package/src/relationship/plugins/RelationshipTooltip.ts +66 -0
- package/src/relationship/relationshipObservables.ts +50 -0
- package/src/series/defaults.ts +8 -8
- package/src/series/plugins/Bubbles.ts +14 -13
- package/src/series/plugins/PieEventTexts.ts +20 -19
- package/src/tree/defaults.ts +1 -1
- package/src/utils/commonUtils.ts +5 -5
- package/src/utils/d3Utils.ts +2 -2
- package/src/utils/orbchartsUtils.ts +22 -7
- package/dist/orbcharts-plugins-basic/src/grid/plugins/BarStack.d.ts +0 -1
- package/dist/orbcharts-plugins-basic/src/grid/plugins/ValueStackAxis.d.ts +0 -1
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/MultiBarStack.d.ts +0 -1
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/MultiValueStackAxis.d.ts +0 -1
- package/dist/orbcharts-plugins-basic/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +0 -1
- /package/dist/orbcharts-plugins-basic/src/relationship/plugins/{Relationship.d.ts → ForceDirectedBubbles.d.ts} +0 -0
- /package/src/relationship/plugins/{Relationship.ts → ForceDirectedBubbles.ts} +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
3
|
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, ChartParams, ContainerPositionScaled, TransformData } from '../../lib/core-types';
|
4
|
-
import {
|
4
|
+
import { BaseStackedBarParams } from '../../lib/plugins-basic-types';
|
5
5
|
import * as d3 from 'd3';
|
6
|
-
interface
|
6
|
+
interface BaseStackedBarContext {
|
7
7
|
selection: d3.Selection<any, unknown, any, unknown>;
|
8
8
|
computedData$: Observable<ComputedDataGrid>;
|
9
9
|
computedLayoutData$: Observable<ComputedLayoutDataGrid>;
|
@@ -12,7 +12,7 @@ interface BaseBarStackContext {
|
|
12
12
|
seriesLabels$: Observable<string[]>;
|
13
13
|
SeriesDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
|
14
14
|
GroupDataMap$: Observable<Map<string, ComputedDatumGrid[]>>;
|
15
|
-
fullParams$: Observable<
|
15
|
+
fullParams$: Observable<BaseStackedBarParams>;
|
16
16
|
fullDataFormatter$: Observable<DataFormatterGrid>;
|
17
17
|
fullChartParams$: Observable<ChartParams>;
|
18
18
|
gridAxesTransform$: Observable<TransformData>;
|
@@ -27,5 +27,5 @@ interface BaseBarStackContext {
|
|
27
27
|
isSeriesSeprate$: Observable<boolean>;
|
28
28
|
event$: Subject<EventGrid>;
|
29
29
|
}
|
30
|
-
export declare const
|
30
|
+
export declare const createBaseStackedBar: BasePluginFn<BaseStackedBarContext>;
|
31
31
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LinesParams, LineAreasParams, GroupAuxParams, DotsParams, BarsParams,
|
1
|
+
import { LinesParams, LineAreasParams, GroupAuxParams, DotsParams, BarsParams, StackedBarParams, BarsTriangleParams, GroupAxisParams, ValueAxisParams, StackedValueAxisParams, GridTooltipParams, GridZoomParams, GridLegendParams } from '../../lib/plugins-basic-types';
|
2
2
|
|
3
3
|
export declare const DEFAULT_LINES_PARAMS: LinesParams;
|
4
4
|
export declare const DEFAULT_LINE_AREAS_PARAMS: LineAreasParams;
|
@@ -6,11 +6,11 @@ export declare const DEFAULT_DOTS_PARAMS: DotsParams;
|
|
6
6
|
export declare const DEFAULT_GROUP_AUX_PARAMS: GroupAuxParams;
|
7
7
|
export declare const DEFAULT_BARS_PARAMS: BarsParams;
|
8
8
|
export declare const DEFAULT_BARS_DIVERGING_PARAMS: BarsParams;
|
9
|
-
export declare const
|
9
|
+
export declare const DEFAULT_STACKED_BAR_PARAMS: StackedBarParams;
|
10
10
|
export declare const DEFAULT_BARS_TRIANGLE_PARAMS: BarsTriangleParams;
|
11
11
|
export declare const DEFAULT_GROUP_AXIS_PARAMS: GroupAxisParams;
|
12
12
|
export declare const DEFAULT_VALUE_AXIS_PARAMS: ValueAxisParams;
|
13
|
-
export declare const
|
13
|
+
export declare const DEFAULT_STACKED_VALUE_AXIS_PARAMS: StackedValueAxisParams;
|
14
14
|
export declare const DEFAULT_GRID_ZOOM_PARAMS: GridZoomParams;
|
15
15
|
export declare const DEFAULT_GRID_LEGEND_PARAMS: GridLegendParams;
|
16
16
|
export declare const DEFAULT_GRID_TOOLTIP_PARAMS: GridTooltipParams;
|
@@ -3,13 +3,13 @@ export { Lines } from './plugins/Lines';
|
|
3
3
|
export { LineAreas } from './plugins/LineAreas';
|
4
4
|
export { Bars } from './plugins/Bars';
|
5
5
|
export { BarsPN } from './plugins/BarsPN';
|
6
|
-
export {
|
6
|
+
export { StackedBar } from './plugins/StackedBar';
|
7
7
|
export { BarsTriangle } from './plugins/BarsTriangle';
|
8
8
|
export { Dots } from './plugins/Dots';
|
9
9
|
export { GridLegend } from './plugins/GridLegend';
|
10
10
|
export { GroupAxis } from './plugins/GroupAxis';
|
11
11
|
export { ValueAxis } from './plugins/ValueAxis';
|
12
|
-
export {
|
12
|
+
export { StackedValueAxis } from './plugins/StackedValueAxis';
|
13
13
|
export { GridTooltip } from './plugins/GridTooltip';
|
14
14
|
export { GridZoom } from './plugins/GridZoom';
|
15
15
|
export { GroupAux } from './plugins/GroupAux';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const StackedBar: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "StackedBar", import('@orbcharts/plugins-basic-types').StackedBarParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const StackedValueAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "StackedValueAxis", import('@orbcharts/plugins-basic-types').StackedValueAxisParams>;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { MultiGridLegendParams, MultiBarsParams,
|
1
|
+
import { MultiGridLegendParams, MultiBarsParams, MultiStackedBarParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiGridTooltipParams, MultiValueAxisParams, MultiStackedValueAxisParams, OverlappingValueAxesParams, OverlappingStackedValueAxesParams } from '../../lib/plugins-basic-types';
|
2
2
|
|
3
3
|
export declare const DEFAULT_MULTI_GRID_LEGEND_PARAMS: MultiGridLegendParams;
|
4
4
|
export declare const DEFAULT_MULTI_GROUP_AXIS_PARAMS: MultiGroupAxisParams;
|
5
5
|
export declare const DEFAULT_MULTI_VALUE_AXIS_PARAMS: MultiValueAxisParams;
|
6
|
-
export declare const
|
6
|
+
export declare const DEFAULT_MULTI_STACKED_VALUE_AXIS_PARAMS: MultiStackedValueAxisParams;
|
7
7
|
export declare const DEFAULT_MULTI_BARS_PARAMS: MultiBarsParams;
|
8
|
-
export declare const
|
8
|
+
export declare const DEFAULT_MULTI_STACKED_BAR_PARAMS: MultiStackedBarParams;
|
9
9
|
export declare const DEFAULT_MULTI_BARS_TRIANGLE_PARAMS: MultiBarsTriangleParams;
|
10
10
|
export declare const DEFAULT_MULTI_LINES_PARAMS: MultiLinesParams;
|
11
11
|
export declare const DEFAULT_MULTI_LINE_AREAS_PARAMS: MultiLineAreasParams;
|
12
12
|
export declare const DEFAULT_MULTI_DOTS_PARAMS: MultiDotsParams;
|
13
13
|
export declare const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams;
|
14
|
-
export declare const
|
14
|
+
export declare const DEFAULT_OVERLAPPING_STACKED_VALUE_AXES_PARAMS: OverlappingStackedValueAxesParams;
|
15
15
|
export declare const DEFAULT_MULTI_GRID_TOOLTIP_PARAMS: MultiGridTooltipParams;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export * from './defaults';
|
2
2
|
export { MultiGridLegend } from './plugins/MultiGridLegend';
|
3
3
|
export { MultiBars } from './plugins/MultiBars';
|
4
|
-
export {
|
4
|
+
export { MultiStackedBar } from './plugins/MultiStackedBar';
|
5
5
|
export { MultiBarsTriangle } from './plugins/MultiBarsTriangle';
|
6
6
|
export { MultiLines } from './plugins/MultiLines';
|
7
7
|
export { MultiLineAreas } from './plugins/MultiLineAreas';
|
@@ -9,6 +9,6 @@ export { MultiDots } from './plugins/MultiDots';
|
|
9
9
|
export { MultiGroupAxis } from './plugins/MultiGroupAxis';
|
10
10
|
export { MultiValueAxis } from './plugins/MultiValueAxis';
|
11
11
|
export { MultiGridTooltip } from './plugins/MultiGridTooltip';
|
12
|
-
export {
|
12
|
+
export { MultiStackedValueAxis } from './plugins/MultiStackedValueAxis';
|
13
13
|
export { OverlappingValueAxes } from './plugins/OverlappingValueAxes';
|
14
|
-
export {
|
14
|
+
export { OverlappingStackedValueAxes } from './plugins/OverlappingStackedValueAxes';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const MultiStackedBar: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiStackedBar", import('@orbcharts/plugins-basic-types').MultiStackedBarParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const MultiStackedValueAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiStackedValueAxis", import('@orbcharts/plugins-basic-types').MultiValueAxisParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const OverlappingStackedValueAxes: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "OverlappingStackedValueAxes", import('@orbcharts/plugins-basic-types').OverlappingStackedValueAxesParams>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const Container: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<any, "Container", import('@orbcharts/plugins-basic-types').ContainerPluginParams>;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { ForceDirectedParams, RelationshipLegendParams, RelationshipTooltipParams } from '../../lib/plugins-basic-types';
|
2
|
+
|
3
|
+
export declare const DEFAULT_FORCE_DIRECTED_PARAMS: ForceDirectedParams;
|
4
|
+
export declare const DEFAULT_RELATIONSHIP_LEGEND_PARAMS: RelationshipLegendParams;
|
5
|
+
export declare const DEFAULT_RELATIONSHIP_TOOLTIP_PARAMS: RelationshipTooltipParams;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const RelationshipLegend: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"relationship", "RelationshipLegend", import('@orbcharts/plugins-basic-types').RelationshipLegendParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const RelationshipTooltip: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"relationship", "RelationshipTooltip", import('@orbcharts/plugins-basic-types').RelationshipTooltipParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export declare function measureTextWidth(text: string, size?: number): number;
|
2
|
-
export declare function
|
2
|
+
export declare function getMinMax(data: number[]): [number, number];
|
@@ -9,5 +9,5 @@ export declare function makeD3Arc({ axisWidth, innerRadius, outerRadius, padAngl
|
|
9
9
|
padAngle: number;
|
10
10
|
cornerRadius: number;
|
11
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;
|
12
|
+
export declare const parseTickFormatValue: (value: any, tickFormat: string | ((text: d3.NumberValue) => string | d3.NumberValue)) => string;
|
13
|
+
export declare const parseDateTickFormatValue: (value: any, tickFormat: string | ((text: d3.NumberValue) => string | d3.NumberValue)) => string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AxisPosition, ColorType, ChartParams, ComputedDatumBase, ComputedDatumBaseValue, ComputedDatumBaseCategory } from '../../lib/core-types';
|
2
2
|
|
3
|
-
export declare function
|
3
|
+
export declare function getMinMaxValue(data: (ComputedDatumBase & ComputedDatumBaseValue)[]): [number, number];
|
4
4
|
export declare function getColor(colorType: ColorType, fullChartParams: ChartParams): string;
|
5
5
|
export declare function getSeriesValueColor(): void;
|
6
6
|
export declare function getCategoryValueColor({ datum, colorType, fullChartParams }: {
|