@orbcharts/plugins-basic 3.0.0-alpha.49 → 3.0.0-alpha.51

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.
Files changed (91) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-plugins-basic.es.js +6325 -6272
  3. package/dist/orbcharts-plugins-basic.umd.js +8 -8
  4. package/dist/src/base/BaseGroupAxis.d.ts +1 -0
  5. package/dist/src/grid/index.d.ts +1 -1
  6. package/dist/src/grid/plugins/BarsPN.d.ts +1 -0
  7. package/dist/src/grid/types.d.ts +3 -2
  8. package/dist/src/multiGrid/defaults.d.ts +2 -1
  9. package/dist/src/multiGrid/index.d.ts +2 -0
  10. package/dist/src/multiGrid/multiGridObservables.d.ts +1 -1
  11. package/dist/src/multiGrid/plugins/MultiValueStackAxis.d.ts +1 -0
  12. package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -0
  13. package/dist/src/multiGrid/types.d.ts +3 -0
  14. package/dist/src/series/types.d.ts +2 -3
  15. package/package.json +42 -42
  16. package/src/base/BaseBarStack.ts +778 -778
  17. package/src/base/BaseBars.ts +764 -764
  18. package/src/base/BaseBarsTriangle.ts +672 -672
  19. package/src/base/BaseDots.ts +513 -502
  20. package/src/base/BaseGroupAxis.ts +562 -496
  21. package/src/base/BaseLegend.ts +641 -641
  22. package/src/base/BaseLineAreas.ts +625 -625
  23. package/src/base/BaseLines.ts +699 -699
  24. package/src/base/BaseValueAxis.ts +478 -478
  25. package/src/base/types.ts +2 -2
  26. package/src/grid/defaults.ts +125 -121
  27. package/src/grid/gridObservables.ts +248 -247
  28. package/src/grid/index.ts +15 -15
  29. package/src/grid/plugins/BarStack.ts +43 -50
  30. package/src/grid/plugins/Bars.ts +44 -51
  31. package/src/grid/plugins/{BarsDiverging.ts → BarsPN.ts} +41 -41
  32. package/src/grid/plugins/BarsTriangle.ts +42 -50
  33. package/src/grid/plugins/Dots.ts +37 -37
  34. package/src/grid/plugins/GridLegend.ts +59 -59
  35. package/src/grid/plugins/GroupAux.ts +645 -645
  36. package/src/grid/plugins/GroupAxis.ts +35 -42
  37. package/src/grid/plugins/LineAreas.ts +39 -39
  38. package/src/grid/plugins/Lines.ts +38 -38
  39. package/src/grid/plugins/ScalingArea.ts +173 -173
  40. package/src/grid/plugins/ValueAxis.ts +36 -43
  41. package/src/grid/plugins/ValueStackAxis.ts +38 -79
  42. package/src/grid/types.ts +122 -120
  43. package/src/index.ts +9 -9
  44. package/src/multiGrid/defaults.ts +152 -147
  45. package/src/multiGrid/index.ts +14 -12
  46. package/src/multiGrid/multiGridObservables.ts +44 -43
  47. package/src/multiGrid/plugins/MultiBarStack.ts +78 -78
  48. package/src/multiGrid/plugins/MultiBars.ts +77 -77
  49. package/src/multiGrid/plugins/MultiBarsTriangle.ts +77 -77
  50. package/src/multiGrid/plugins/MultiDots.ts +65 -65
  51. package/src/multiGrid/plugins/MultiGridLegend.ts +89 -89
  52. package/src/multiGrid/plugins/MultiGroupAxis.ts +69 -69
  53. package/src/multiGrid/plugins/MultiLineAreas.ts +67 -67
  54. package/src/multiGrid/plugins/MultiLines.ts +66 -66
  55. package/src/multiGrid/plugins/MultiValueAxis.ts +69 -69
  56. package/src/multiGrid/plugins/MultiValueStackAxis.ts +69 -0
  57. package/src/multiGrid/plugins/OverlappingValueAxes.ts +166 -173
  58. package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +167 -0
  59. package/src/multiGrid/types.ts +71 -67
  60. package/src/noneData/defaults.ts +64 -64
  61. package/src/noneData/index.ts +3 -3
  62. package/src/noneData/plugins/Container.ts +10 -10
  63. package/src/noneData/plugins/Tooltip.ts +310 -310
  64. package/src/noneData/types.ts +26 -26
  65. package/src/series/defaults.ts +126 -126
  66. package/src/series/index.ts +9 -9
  67. package/src/series/plugins/Bubbles.ts +545 -602
  68. package/src/series/plugins/Pie.ts +576 -576
  69. package/src/series/plugins/PieEventTexts.ts +262 -262
  70. package/src/series/plugins/PieLabels.ts +304 -304
  71. package/src/series/plugins/Rose.ts +472 -472
  72. package/src/series/plugins/RoseLabels.ts +362 -362
  73. package/src/series/plugins/SeriesLegend.ts +59 -59
  74. package/src/series/seriesObservables.ts +145 -145
  75. package/src/series/seriesUtils.ts +51 -51
  76. package/src/series/types.ts +83 -83
  77. package/src/tree/defaults.ts +22 -22
  78. package/src/tree/index.ts +3 -3
  79. package/src/tree/plugins/TreeLegend.ts +59 -59
  80. package/src/tree/plugins/TreeMap.ts +305 -305
  81. package/src/tree/types.ts +23 -23
  82. package/src/utils/commonUtils.ts +21 -21
  83. package/src/utils/d3Graphics.ts +124 -124
  84. package/src/utils/d3Utils.ts +73 -73
  85. package/src/utils/observables.ts +14 -14
  86. package/src/utils/orbchartsUtils.ts +100 -100
  87. package/tsconfig.dev.json +16 -16
  88. package/tsconfig.json +13 -13
  89. package/tsconfig.prod.json +13 -13
  90. package/vite.config.js +49 -49
  91. package/dist/src/grid/plugins/BarsDiverging.d.ts +0 -1
@@ -7,6 +7,7 @@ export interface BaseGroupAxisParams {
7
7
  labelColorType: ColorType;
8
8
  axisLineVisible: boolean;
9
9
  axisLineColorType: ColorType;
10
+ ticks: number | null | 'all';
10
11
  tickFormat: string | ((text: any) => string);
11
12
  tickLineVisible: boolean;
12
13
  tickPadding: number;
@@ -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 { BarsDiverging } from './plugins/BarsDiverging';
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>;
@@ -31,7 +31,7 @@ export interface BarsParams {
31
31
  barGroupPadding: number;
32
32
  barRadius: number | boolean;
33
33
  }
34
- export interface BarsDivergingParams extends BarsParams {
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 multiGridPluginObservables: (observer: ContextObserverMultiGrid<MultiGridPluginParams>) => Observable<ContextObserverMultiGridDetail[]>;
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
- mouseoverOuterRadius: number;
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
- mouseoverOuterRadius: number;
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.49",
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.47",
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
+ }