@orbcharts/plugins-basic 3.0.0-alpha.49 → 3.0.0-alpha.51
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 +6325 -6272
- package/dist/orbcharts-plugins-basic.umd.js +8 -8
- package/dist/src/base/BaseGroupAxis.d.ts +1 -0
- package/dist/src/grid/index.d.ts +1 -1
- package/dist/src/grid/plugins/BarsPN.d.ts +1 -0
- package/dist/src/grid/types.d.ts +3 -2
- package/dist/src/multiGrid/defaults.d.ts +2 -1
- package/dist/src/multiGrid/index.d.ts +2 -0
- package/dist/src/multiGrid/multiGridObservables.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiValueStackAxis.d.ts +1 -0
- package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -0
- package/dist/src/multiGrid/types.d.ts +3 -0
- package/dist/src/series/types.d.ts +2 -3
- package/package.json +42 -42
- package/src/base/BaseBarStack.ts +778 -778
- package/src/base/BaseBars.ts +764 -764
- package/src/base/BaseBarsTriangle.ts +672 -672
- package/src/base/BaseDots.ts +513 -502
- package/src/base/BaseGroupAxis.ts +562 -496
- package/src/base/BaseLegend.ts +641 -641
- package/src/base/BaseLineAreas.ts +625 -625
- package/src/base/BaseLines.ts +699 -699
- package/src/base/BaseValueAxis.ts +478 -478
- package/src/base/types.ts +2 -2
- package/src/grid/defaults.ts +125 -121
- package/src/grid/gridObservables.ts +248 -247
- package/src/grid/index.ts +15 -15
- package/src/grid/plugins/BarStack.ts +43 -50
- package/src/grid/plugins/Bars.ts +44 -51
- package/src/grid/plugins/{BarsDiverging.ts → BarsPN.ts} +41 -41
- package/src/grid/plugins/BarsTriangle.ts +42 -50
- package/src/grid/plugins/Dots.ts +37 -37
- package/src/grid/plugins/GridLegend.ts +59 -59
- package/src/grid/plugins/GroupAux.ts +645 -645
- package/src/grid/plugins/GroupAxis.ts +35 -42
- package/src/grid/plugins/LineAreas.ts +39 -39
- package/src/grid/plugins/Lines.ts +38 -38
- package/src/grid/plugins/ScalingArea.ts +173 -173
- package/src/grid/plugins/ValueAxis.ts +36 -43
- package/src/grid/plugins/ValueStackAxis.ts +38 -79
- package/src/grid/types.ts +122 -120
- package/src/index.ts +9 -9
- package/src/multiGrid/defaults.ts +152 -147
- package/src/multiGrid/index.ts +14 -12
- package/src/multiGrid/multiGridObservables.ts +44 -43
- package/src/multiGrid/plugins/MultiBarStack.ts +78 -78
- package/src/multiGrid/plugins/MultiBars.ts +77 -77
- package/src/multiGrid/plugins/MultiBarsTriangle.ts +77 -77
- package/src/multiGrid/plugins/MultiDots.ts +65 -65
- package/src/multiGrid/plugins/MultiGridLegend.ts +89 -89
- package/src/multiGrid/plugins/MultiGroupAxis.ts +69 -69
- package/src/multiGrid/plugins/MultiLineAreas.ts +67 -67
- package/src/multiGrid/plugins/MultiLines.ts +66 -66
- package/src/multiGrid/plugins/MultiValueAxis.ts +69 -69
- package/src/multiGrid/plugins/MultiValueStackAxis.ts +69 -0
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +166 -173
- package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +167 -0
- package/src/multiGrid/types.ts +71 -67
- package/src/noneData/defaults.ts +64 -64
- package/src/noneData/index.ts +3 -3
- package/src/noneData/plugins/Container.ts +10 -10
- package/src/noneData/plugins/Tooltip.ts +310 -310
- package/src/noneData/types.ts +26 -26
- package/src/series/defaults.ts +126 -126
- package/src/series/index.ts +9 -9
- package/src/series/plugins/Bubbles.ts +545 -602
- package/src/series/plugins/Pie.ts +576 -576
- package/src/series/plugins/PieEventTexts.ts +262 -262
- package/src/series/plugins/PieLabels.ts +304 -304
- package/src/series/plugins/Rose.ts +472 -472
- package/src/series/plugins/RoseLabels.ts +362 -362
- package/src/series/plugins/SeriesLegend.ts +59 -59
- package/src/series/seriesObservables.ts +145 -145
- package/src/series/seriesUtils.ts +51 -51
- package/src/series/types.ts +83 -83
- package/src/tree/defaults.ts +22 -22
- package/src/tree/index.ts +3 -3
- package/src/tree/plugins/TreeLegend.ts +59 -59
- package/src/tree/plugins/TreeMap.ts +305 -305
- 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
- package/dist/src/grid/plugins/BarsDiverging.d.ts +0 -1
package/dist/src/grid/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ export * from './types';
|
|
3
3
|
export { Lines } from './plugins/Lines';
|
4
4
|
export { LineAreas } from './plugins/LineAreas';
|
5
5
|
export { Bars } from './plugins/Bars';
|
6
|
-
export {
|
6
|
+
export { BarsPN } from './plugins/BarsPN';
|
7
7
|
export { BarStack } from './plugins/BarStack';
|
8
8
|
export { BarsTriangle } from './plugins/BarsTriangle';
|
9
9
|
export { Dots } from './plugins/Dots';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const BarsPN: import('@orbcharts/core').PluginConstructor<"grid", string, import('..').BarsParams>;
|
package/dist/src/grid/types.d.ts
CHANGED
@@ -31,7 +31,7 @@ export interface BarsParams {
|
|
31
31
|
barGroupPadding: number;
|
32
32
|
barRadius: number | boolean;
|
33
33
|
}
|
34
|
-
export interface
|
34
|
+
export interface BarsPNParams extends BarsParams {
|
35
35
|
}
|
36
36
|
export interface BarStackParams {
|
37
37
|
barWidth: number;
|
@@ -49,6 +49,7 @@ export interface GroupAxisParams {
|
|
49
49
|
labelColorType: ColorType;
|
50
50
|
axisLineVisible: boolean;
|
51
51
|
axisLineColorType: ColorType;
|
52
|
+
ticks: number | null | 'all';
|
52
53
|
tickFormat: string | ((text: any) => string);
|
53
54
|
tickLineVisible: boolean;
|
54
55
|
tickPadding: number;
|
@@ -63,7 +64,7 @@ export interface ValueAxisParams {
|
|
63
64
|
labelColorType: ColorType;
|
64
65
|
axisLineVisible: boolean;
|
65
66
|
axisLineColorType: ColorType;
|
66
|
-
ticks: number;
|
67
|
+
ticks: number | null;
|
67
68
|
tickFormat: string | ((text: d3.NumberValue) => string);
|
68
69
|
tickLineVisible: boolean;
|
69
70
|
tickPadding: number;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, OverlappingValueAxesParams } from './types';
|
1
|
+
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, MultiValueStackAxisParams, 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;
|
5
5
|
export declare const DEFAULT_MULTI_VALUE_AXIS_PARAMS: MultiValueAxisParams;
|
6
|
+
export declare const DEFAULT_MULTI_VALUE_STACK_AXIS_PARAMS: MultiValueStackAxisParams;
|
6
7
|
export declare const DEFAULT_MULTI_BARS_PARAMS: MultiBarsParams;
|
7
8
|
export declare const DEFAULT_MULTI_BAR_STACK_PARAMS: MultiBarStackParams;
|
8
9
|
export declare const DEFAULT_MULTI_BARS_TRIANGLE_PARAMS: MultiBarsTriangleParams;
|
@@ -9,4 +9,6 @@ export { MultiLineAreas } from './plugins/MultiLineAreas';
|
|
9
9
|
export { MultiDots } from './plugins/MultiDots';
|
10
10
|
export { MultiGroupAxis } from './plugins/MultiGroupAxis';
|
11
11
|
export { MultiValueAxis } from './plugins/MultiValueAxis';
|
12
|
+
export { MultiValueStackAxis } from './plugins/MultiValueStackAxis';
|
12
13
|
export { OverlappingValueAxes } from './plugins/OverlappingValueAxes';
|
14
|
+
export { OverlappingValueStackAxes } from './plugins/OverlappingValueStackAxes';
|
@@ -4,5 +4,5 @@ import { ContextObserverMultiGrid, ContextObserverMultiGridDetail } from '@orbch
|
|
4
4
|
interface MultiGridPluginParams {
|
5
5
|
gridIndexes: number[];
|
6
6
|
}
|
7
|
-
export declare const
|
7
|
+
export declare const multiGridPluginDetailObservables: (observer: ContextObserverMultiGrid<MultiGridPluginParams>) => Observable<ContextObserverMultiGridDetail[]>;
|
8
8
|
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const MultiValueStackAxis: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').MultiValueAxisParams>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const OverlappingValueStackAxes: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').OverlappingValueAxesParams>;
|
@@ -31,6 +31,9 @@ export interface MultiGroupAxisParams extends BaseGroupAxisParams {
|
|
31
31
|
export interface MultiValueAxisParams extends BaseValueAxisParams {
|
32
32
|
gridIndexes: number[];
|
33
33
|
}
|
34
|
+
export interface MultiValueStackAxisParams extends BaseValueAxisParams {
|
35
|
+
gridIndexes: number[];
|
36
|
+
}
|
34
37
|
export interface MultiBarsParams extends BaseBarsParams {
|
35
38
|
gridIndexes: number[];
|
36
39
|
}
|
@@ -12,13 +12,12 @@ export interface BubblesParams {
|
|
12
12
|
lineHeight: number;
|
13
13
|
lineLengthMin: number;
|
14
14
|
};
|
15
|
-
highlightRIncrease: number;
|
16
15
|
arcScaleType: ArcScaleType;
|
17
16
|
}
|
18
17
|
export interface PieParams {
|
19
18
|
outerRadius: number;
|
20
19
|
innerRadius: number;
|
21
|
-
|
20
|
+
outerRadiusWhileHighlight: number;
|
22
21
|
startAngle: number;
|
23
22
|
endAngle: number;
|
24
23
|
padAngle: number;
|
@@ -35,7 +34,7 @@ export interface PieEventTextsParams {
|
|
35
34
|
}
|
36
35
|
export interface PieLabelsParams {
|
37
36
|
outerRadius: number;
|
38
|
-
|
37
|
+
outerRadiusWhileHighlight: number;
|
39
38
|
startAngle: number;
|
40
39
|
endAngle: number;
|
41
40
|
labelCentroid: number;
|
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.51",
|
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.48",
|
39
|
+
"d3": "^7.8.5",
|
40
|
+
"rxjs": "^7.8.1"
|
41
|
+
}
|
42
|
+
}
|