@orbcharts/plugins-basic 3.0.0-alpha.42 → 3.0.0-alpha.43
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +200 -200
- package/dist/orbcharts-plugins-basic.es.js +5477 -5426
- package/dist/orbcharts-plugins-basic.umd.js +8 -8
- package/dist/src/base/BaseBarStack.d.ts +1 -1
- package/dist/src/base/BaseBars.d.ts +1 -1
- package/dist/src/base/BaseBarsTriangle.d.ts +1 -1
- package/dist/src/base/BaseDots.d.ts +1 -1
- package/dist/src/base/BaseLineAreas.d.ts +1 -1
- package/dist/src/base/BaseLines.d.ts +1 -1
- package/dist/src/multiGrid/defaults.d.ts +2 -1
- package/dist/src/multiGrid/index.d.ts +1 -0
- package/dist/src/multiGrid/plugins/MultiLineAreas.d.ts +1 -0
- package/dist/src/multiGrid/types.d.ts +4 -4
- package/package.json +42 -42
- package/src/base/BaseBarStack.ts +881 -879
- package/src/base/BaseBars.ts +750 -748
- package/src/base/BaseBarsTriangle.ts +659 -657
- package/src/base/BaseDots.ts +639 -637
- package/src/base/BaseGroupAxis.ts +496 -496
- package/src/base/BaseLegend.ts +636 -636
- package/src/base/BaseLineAreas.ts +621 -624
- package/src/base/BaseLines.ts +692 -695
- package/src/base/BaseValueAxis.ts +479 -479
- package/src/base/types.ts +2 -2
- package/src/grid/defaults.ts +121 -121
- package/src/grid/gridObservables.ts +263 -263
- package/src/grid/index.ts +15 -15
- package/src/grid/plugins/BarStack.ts +37 -37
- package/src/grid/plugins/Bars.ts +37 -37
- package/src/grid/plugins/BarsDiverging.ts +39 -39
- package/src/grid/plugins/BarsTriangle.ts +34 -34
- package/src/grid/plugins/Dots.ts +35 -35
- package/src/grid/plugins/GridLegend.ts +58 -58
- package/src/grid/plugins/GroupAux.ts +643 -643
- package/src/grid/plugins/GroupAxis.ts +30 -30
- package/src/grid/plugins/LineAreas.ts +36 -36
- package/src/grid/plugins/Lines.ts +35 -35
- package/src/grid/plugins/ScalingArea.ts +174 -174
- package/src/grid/plugins/ValueAxis.ts +31 -31
- package/src/grid/plugins/ValueStackAxis.ts +70 -70
- package/src/grid/types.ts +120 -120
- package/src/index.ts +9 -9
- package/src/multiGrid/defaults.ts +147 -140
- package/src/multiGrid/index.ts +11 -10
- package/src/multiGrid/multiGridObservables.ts +289 -278
- package/src/multiGrid/plugins/MultiBarStack.ts +60 -60
- package/src/multiGrid/plugins/MultiBars.ts +59 -59
- package/src/multiGrid/plugins/MultiBarsTriangle.ts +58 -58
- package/src/multiGrid/plugins/MultiDots.ts +58 -58
- package/src/multiGrid/plugins/MultiGridLegend.ts +88 -88
- package/src/multiGrid/plugins/MultiGroupAxis.ts +53 -53
- package/src/multiGrid/plugins/MultiLineAreas.ts +59 -0
- package/src/multiGrid/plugins/MultiLines.ts +58 -58
- package/src/multiGrid/plugins/MultiValueAxis.ts +53 -53
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +164 -165
- package/src/multiGrid/types.ts +67 -67
- package/src/noneData/defaults.ts +61 -61
- package/src/noneData/index.ts +3 -3
- package/src/noneData/plugins/Container.ts +10 -10
- package/src/noneData/plugins/Tooltip.ts +304 -304
- package/src/noneData/types.ts +26 -26
- package/src/series/defaults.ts +99 -99
- package/src/series/index.ts +6 -6
- package/src/series/plugins/Bubbles.ts +551 -549
- package/src/series/plugins/Pie.ts +600 -598
- package/src/series/plugins/PieEventTexts.ts +194 -194
- package/src/series/plugins/PieLabels.ts +288 -285
- package/src/series/plugins/SeriesLegend.ts +58 -58
- package/src/series/seriesUtils.ts +50 -50
- package/src/series/types.ts +67 -67
- package/src/tree/defaults.ts +22 -22
- package/src/tree/index.ts +3 -3
- package/src/tree/plugins/TreeLegend.ts +58 -58
- package/src/tree/plugins/TreeMap.ts +302 -300
- package/src/tree/types.ts +23 -23
- package/src/utils/commonUtils.ts +21 -21
- package/src/utils/d3Graphics.ts +124 -124
- package/src/utils/d3Utils.ts +73 -73
- package/src/utils/observables.ts +14 -14
- package/src/utils/orbchartsUtils.ts +100 -100
- package/tsconfig.dev.json +16 -16
- package/tsconfig.json +13 -13
- package/tsconfig.prod.json +13 -13
- package/vite.config.js +49 -49
@@ -24,7 +24,7 @@ interface BaseBarStackContext {
|
|
24
24
|
width: number;
|
25
25
|
height: number;
|
26
26
|
}>;
|
27
|
-
gridHighlight$: Observable<
|
27
|
+
gridHighlight$: Observable<ComputedDatumGrid[]>;
|
28
28
|
gridContainer$: Observable<ContainerPosition[]>;
|
29
29
|
isSeriesPositionSeprate$: Observable<boolean>;
|
30
30
|
event$: Subject<EventGrid>;
|
@@ -24,7 +24,7 @@ interface BaseBarsContext {
|
|
24
24
|
width: number;
|
25
25
|
height: number;
|
26
26
|
}>;
|
27
|
-
gridHighlight$: Observable<
|
27
|
+
gridHighlight$: Observable<ComputedDatumGrid[]>;
|
28
28
|
gridContainer$: Observable<ContainerPosition[]>;
|
29
29
|
isSeriesPositionSeprate$: Observable<boolean>;
|
30
30
|
event$: Subject<EventGrid>;
|
@@ -23,7 +23,7 @@ interface BaseBarsContext {
|
|
23
23
|
width: number;
|
24
24
|
height: number;
|
25
25
|
}>;
|
26
|
-
gridHighlight$: Observable<
|
26
|
+
gridHighlight$: Observable<ComputedDatumGrid[]>;
|
27
27
|
gridContainer$: Observable<ContainerPosition[]>;
|
28
28
|
isSeriesPositionSeprate$: Observable<boolean>;
|
29
29
|
event$: Subject<EventGrid>;
|
@@ -21,7 +21,7 @@ interface BaseLineAreasContext {
|
|
21
21
|
width: number;
|
22
22
|
height: number;
|
23
23
|
}>;
|
24
|
-
gridHighlight$: Observable<
|
24
|
+
gridHighlight$: Observable<ComputedDatumGrid[]>;
|
25
25
|
gridContainer$: Observable<ContainerPosition[]>;
|
26
26
|
layout$: Observable<Layout>;
|
27
27
|
event$: Subject<EventGrid>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, OverlappingValueAxesParams } from './types';
|
1
|
+
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, OverlappingValueAxesParams } from './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;
|
@@ -7,5 +7,6 @@ export declare const DEFAULT_MULTI_BARS_PARAMS: MultiBarsParams;
|
|
7
7
|
export declare const DEFAULT_MULTI_BAR_STACK_PARAMS: MultiBarStackParams;
|
8
8
|
export declare const DEFAULT_MULTI_BARS_TRIANGLE_PARAMS: MultiBarsTriangleParams;
|
9
9
|
export declare const DEFAULT_MULTI_LINES_PARAMS: MultiLinesParams;
|
10
|
+
export declare const DEFAULT_MULTI_LINE_AREAS_PARAMS: MultiLineAreasParams;
|
10
11
|
export declare const DEFAULT_MULTI_DOTS_PARAMS: MultiDotsParams;
|
11
12
|
export declare const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams;
|
@@ -5,6 +5,7 @@ export { MultiBars } from './plugins/MultiBars';
|
|
5
5
|
export { MultiBarStack } from './plugins/MultiBarStack';
|
6
6
|
export { MultiBarsTriangle } from './plugins/MultiBarsTriangle';
|
7
7
|
export { MultiLines } from './plugins/MultiLines';
|
8
|
+
export { MultiLineAreas } from './plugins/MultiLineAreas';
|
8
9
|
export { MultiDots } from './plugins/MultiDots';
|
9
10
|
export { MultiGroupAxis } from './plugins/MultiGroupAxis';
|
10
11
|
export { MultiValueAxis } from './plugins/MultiValueAxis';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const MultiLineAreas: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiLineAreasParams>;
|
@@ -2,15 +2,12 @@ import { BaseBarsParams } from '../base/BaseBars';
|
|
2
2
|
import { BaseBarStackParams } from '../base/BaseBarStack';
|
3
3
|
import { BaseBarsTriangleParams } from '../base/BaseBarsTriangle';
|
4
4
|
import { BaseLinesParams } from '../base/BaseLines';
|
5
|
+
import { BaseLineAreasParams } from '../base/BaseLineAreas';
|
5
6
|
import { BaseDotsParams } from '../base/BaseDots';
|
6
7
|
import { BaseGroupAxisParams } from '../base/BaseGroupAxis';
|
7
8
|
import { BaseValueAxisParams } from '../base/BaseValueAxis';
|
8
9
|
import { ColorType } from '@orbcharts/core';
|
9
10
|
|
10
|
-
export interface BarsAndLinesParams {
|
11
|
-
bars: BaseBarsParams;
|
12
|
-
lines: BaseLinesParams;
|
13
|
-
}
|
14
11
|
export interface MultiGridLegendParams {
|
15
12
|
position: 'top' | 'bottom' | 'left' | 'right';
|
16
13
|
justify: 'start' | 'center' | 'end';
|
@@ -46,6 +43,9 @@ export interface MultiBarsTriangleParams extends BaseBarsTriangleParams {
|
|
46
43
|
export interface MultiLinesParams extends BaseLinesParams {
|
47
44
|
gridIndexes: number[];
|
48
45
|
}
|
46
|
+
export interface MultiLineAreasParams extends BaseLineAreasParams {
|
47
|
+
gridIndexes: number[];
|
48
|
+
}
|
49
49
|
export interface MultiDotsParams extends BaseDotsParams {
|
50
50
|
gridIndexes: number[];
|
51
51
|
}
|
package/package.json
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
{
|
2
|
-
"name": "@orbcharts/plugins-basic",
|
3
|
-
"version": "3.0.0-alpha.
|
4
|
-
"description": "plugins for OrbCharts",
|
5
|
-
"author": "Blue Planet Inc.",
|
6
|
-
"license": "Apache-2.0",
|
7
|
-
"keywords": [
|
8
|
-
"d3",
|
9
|
-
"rxjs",
|
10
|
-
"svg",
|
11
|
-
"visualization",
|
12
|
-
"infographic",
|
13
|
-
"graph",
|
14
|
-
"chart"
|
15
|
-
],
|
16
|
-
"private": false,
|
17
|
-
"publishConfig": {
|
18
|
-
"access": "public",
|
19
|
-
"registry": "https://registry.npmjs.org/"
|
20
|
-
},
|
21
|
-
"files": [
|
22
|
-
"*"
|
23
|
-
],
|
24
|
-
"module": "./dist/orbcharts-plugins-basic.es.js",
|
25
|
-
"types": "./dist/src/index.d.ts",
|
26
|
-
"scripts": {
|
27
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
28
|
-
"build": "vite build --mode release"
|
29
|
-
},
|
30
|
-
"devDependencies": {
|
31
|
-
"@types/d3": "^7.4.0",
|
32
|
-
"ts-loader": "^9.4.2",
|
33
|
-
"typescript": "^5.0.4",
|
34
|
-
"vite": "^5.3.5",
|
35
|
-
"vite-plugin-dts": "^3.7.3"
|
36
|
-
},
|
37
|
-
"dependencies": {
|
38
|
-
"@orbcharts/core": "^3.0.0-alpha.
|
39
|
-
"d3": "^7.8.5",
|
40
|
-
"rxjs": "^7.8.1"
|
41
|
-
}
|
42
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@orbcharts/plugins-basic",
|
3
|
+
"version": "3.0.0-alpha.43",
|
4
|
+
"description": "plugins for OrbCharts",
|
5
|
+
"author": "Blue Planet Inc.",
|
6
|
+
"license": "Apache-2.0",
|
7
|
+
"keywords": [
|
8
|
+
"d3",
|
9
|
+
"rxjs",
|
10
|
+
"svg",
|
11
|
+
"visualization",
|
12
|
+
"infographic",
|
13
|
+
"graph",
|
14
|
+
"chart"
|
15
|
+
],
|
16
|
+
"private": false,
|
17
|
+
"publishConfig": {
|
18
|
+
"access": "public",
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
20
|
+
},
|
21
|
+
"files": [
|
22
|
+
"*"
|
23
|
+
],
|
24
|
+
"module": "./dist/orbcharts-plugins-basic.es.js",
|
25
|
+
"types": "./dist/src/index.d.ts",
|
26
|
+
"scripts": {
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
28
|
+
"build": "vite build --mode release"
|
29
|
+
},
|
30
|
+
"devDependencies": {
|
31
|
+
"@types/d3": "^7.4.0",
|
32
|
+
"ts-loader": "^9.4.2",
|
33
|
+
"typescript": "^5.0.4",
|
34
|
+
"vite": "^5.3.5",
|
35
|
+
"vite-plugin-dts": "^3.7.3"
|
36
|
+
},
|
37
|
+
"dependencies": {
|
38
|
+
"@orbcharts/core": "^3.0.0-alpha.40",
|
39
|
+
"d3": "^7.8.5",
|
40
|
+
"rxjs": "^7.8.1"
|
41
|
+
}
|
42
|
+
}
|