@orbcharts/plugins-basic 3.0.0-alpha.55 → 3.0.0-alpha.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-plugins-basic.es.js +7072 -7073
  3. package/dist/orbcharts-plugins-basic.umd.js +10 -10
  4. package/dist/src/base/BaseLineAreas.d.ts +1 -0
  5. package/dist/src/base/BaseLines.d.ts +3 -1
  6. package/dist/src/grid/gridObservables.d.ts +19 -2
  7. package/dist/src/grid/types.d.ts +1 -0
  8. package/dist/vite.config.d.mts +2 -0
  9. package/package.json +43 -42
  10. package/src/base/BaseBarStack.ts +778 -778
  11. package/src/base/BaseBars.ts +764 -764
  12. package/src/base/BaseBarsTriangle.ts +672 -672
  13. package/src/base/BaseDots.ts +513 -513
  14. package/src/base/BaseGroupAxis.ts +558 -558
  15. package/src/base/BaseLegend.ts +641 -641
  16. package/src/base/BaseLineAreas.ts +628 -625
  17. package/src/base/BaseLines.ts +704 -699
  18. package/src/base/BaseValueAxis.ts +478 -478
  19. package/src/base/types.ts +2 -2
  20. package/src/grid/defaults.ts +128 -127
  21. package/src/grid/gridObservables.ts +539 -248
  22. package/src/grid/index.ts +15 -15
  23. package/src/grid/plugins/BarStack.ts +43 -43
  24. package/src/grid/plugins/Bars.ts +44 -44
  25. package/src/grid/plugins/BarsPN.ts +41 -41
  26. package/src/grid/plugins/BarsTriangle.ts +42 -42
  27. package/src/grid/plugins/Dots.ts +37 -37
  28. package/src/grid/plugins/GridLegend.ts +59 -59
  29. package/src/grid/plugins/GroupAux.ts +976 -922
  30. package/src/grid/plugins/GroupAxis.ts +35 -35
  31. package/src/grid/plugins/LineAreas.ts +40 -39
  32. package/src/grid/plugins/Lines.ts +40 -38
  33. package/src/grid/plugins/ScalingArea.ts +173 -173
  34. package/src/grid/plugins/ValueAxis.ts +36 -36
  35. package/src/grid/plugins/ValueStackAxis.ts +38 -38
  36. package/src/grid/types.ts +123 -122
  37. package/src/index.ts +9 -9
  38. package/src/multiGrid/defaults.ts +158 -158
  39. package/src/multiGrid/index.ts +13 -13
  40. package/src/multiGrid/multiGridObservables.ts +49 -49
  41. package/src/multiGrid/plugins/MultiBarStack.ts +78 -78
  42. package/src/multiGrid/plugins/MultiBars.ts +77 -77
  43. package/src/multiGrid/plugins/MultiBarsTriangle.ts +77 -77
  44. package/src/multiGrid/plugins/MultiDots.ts +65 -65
  45. package/src/multiGrid/plugins/MultiGridLegend.ts +89 -89
  46. package/src/multiGrid/plugins/MultiGroupAxis.ts +69 -69
  47. package/src/multiGrid/plugins/MultiLineAreas.ts +77 -67
  48. package/src/multiGrid/plugins/MultiLines.ts +77 -66
  49. package/src/multiGrid/plugins/MultiValueAxis.ts +69 -69
  50. package/src/multiGrid/plugins/MultiValueStackAxis.ts +69 -69
  51. package/src/multiGrid/plugins/OverlappingValueAxes.ts +167 -166
  52. package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +168 -167
  53. package/src/multiGrid/types.ts +72 -72
  54. package/src/noneData/defaults.ts +102 -102
  55. package/src/noneData/index.ts +3 -3
  56. package/src/noneData/plugins/Container.ts +10 -10
  57. package/src/noneData/plugins/Tooltip.ts +310 -310
  58. package/src/noneData/types.ts +26 -26
  59. package/src/series/defaults.ts +144 -144
  60. package/src/series/index.ts +9 -9
  61. package/src/series/plugins/Bubbles.ts +545 -545
  62. package/src/series/plugins/Pie.ts +576 -576
  63. package/src/series/plugins/PieEventTexts.ts +262 -262
  64. package/src/series/plugins/PieLabels.ts +304 -304
  65. package/src/series/plugins/Rose.ts +472 -472
  66. package/src/series/plugins/RoseLabels.ts +362 -362
  67. package/src/series/plugins/SeriesLegend.ts +59 -59
  68. package/src/series/seriesObservables.ts +145 -145
  69. package/src/series/seriesUtils.ts +51 -51
  70. package/src/series/types.ts +83 -83
  71. package/src/tree/defaults.ts +23 -23
  72. package/src/tree/index.ts +3 -3
  73. package/src/tree/plugins/TreeLegend.ts +59 -59
  74. package/src/tree/plugins/TreeMap.ts +305 -305
  75. package/src/tree/types.ts +23 -23
  76. package/src/utils/commonUtils.ts +21 -21
  77. package/src/utils/d3Graphics.ts +124 -124
  78. package/src/utils/d3Utils.ts +73 -73
  79. package/src/utils/observables.ts +14 -14
  80. package/src/utils/orbchartsUtils.ts +100 -100
  81. package/{tsconfig.json → tsconfig.base.json} +13 -13
  82. package/tsconfig.json.bak.vite-plugin-tsconfig +8 -0
  83. package/tsconfig.prod.json +2 -13
  84. package/vite.config.mjs +41 -0
  85. package/dist/vite.config.d.ts +0 -2
  86. package/tsconfig.dev.json +0 -17
  87. package/vite.config.js +0 -50
@@ -26,6 +26,7 @@ interface BaseLineAreasContext {
26
26
  }>;
27
27
  gridHighlight$: Observable<ComputedDatumGrid[]>;
28
28
  gridContainerPosition$: Observable<GridContainerPosition[]>;
29
+ allContainerPosition$: Observable<GridContainerPosition[]>;
29
30
  layout$: Observable<Layout>;
30
31
  event$: Subject<EventGrid>;
31
32
  }
@@ -1,6 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { BasePluginFn } from './types';
3
- import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, TransformData } from '@orbcharts/core';
3
+ import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, Layout, TransformData } from '@orbcharts/core';
4
4
  import * as d3 from 'd3';
5
5
  export interface BaseLinesParams {
6
6
  lineCurve: string;
@@ -26,6 +26,8 @@ interface BaseLinesContext {
26
26
  }>;
27
27
  gridHighlight$: Observable<ComputedDatumGrid[]>;
28
28
  gridContainerPosition$: Observable<GridContainerPosition[]>;
29
+ allContainerPosition$: Observable<GridContainerPosition[]>;
30
+ layout$: Observable<Layout>;
29
31
  event$: Subject<EventGrid>;
30
32
  }
31
33
  export declare const createBaseLines: BasePluginFn<BaseLinesContext>;
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ChartParams, DataFormatterGrid, ComputedDataGrid, TransformData, GridContainerPosition } from '@orbcharts/core';
2
+ import { ChartParams, DataFormatterGrid, ComputedDataGrid, TransformData, GridContainerPosition, Layout } from '@orbcharts/core';
3
3
  import * as d3 from 'd3';
4
4
  export declare const gridSelectionsObservable: ({ selection, pluginName, clipPathID, seriesLabels$, gridContainerPosition$, gridAxesTransform$, gridGraphicTransform$ }: {
5
5
  selection: d3.Selection<any, unknown, any, unknown>;
@@ -15,7 +15,7 @@ export declare const gridSelectionsObservable: ({ selection, pluginName, clipPat
15
15
  defsSelection$: Observable<d3.Selection<SVGDefsElement, string, any, unknown>>;
16
16
  graphicGSelection$: Observable<d3.Selection<SVGGElement, string, any, unknown>>;
17
17
  };
18
- export declare const gridGroupPositionFnObservable: ({ fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$ }: {
18
+ export declare const gridGroupPositionFnObservable: ({ fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$, gridContainerPosition$, layout$ }: {
19
19
  fullDataFormatter$: Observable<DataFormatterGrid>;
20
20
  gridAxesSize$: Observable<{
21
21
  width: number;
@@ -23,7 +23,24 @@ export declare const gridGroupPositionFnObservable: ({ fullDataFormatter$, gridA
23
23
  }>;
24
24
  computedData$: Observable<ComputedDataGrid>;
25
25
  fullChartParams$: Observable<ChartParams>;
26
+ gridContainerPosition$: Observable<GridContainerPosition[]>;
27
+ layout$: Observable<Layout>;
26
28
  }) => Observable<(event: any) => {
27
29
  groupIndex: number;
28
30
  groupLabel: string;
29
31
  }>;
32
+ export declare const gridGroupPosition: ({ rootSelection, fullDataFormatter$, gridAxesSize$, computedData$, fullChartParams$, gridContainerPosition$, layout$ }: {
33
+ rootSelection: d3.Selection<any, unknown, any, unknown>;
34
+ fullDataFormatter$: Observable<DataFormatterGrid>;
35
+ gridAxesSize$: Observable<{
36
+ width: number;
37
+ height: number;
38
+ }>;
39
+ computedData$: Observable<ComputedDataGrid>;
40
+ fullChartParams$: Observable<ChartParams>;
41
+ gridContainerPosition$: Observable<GridContainerPosition[]>;
42
+ layout$: Observable<Layout>;
43
+ }) => Observable<{
44
+ groupIndex: number;
45
+ groupLabel: string;
46
+ }>;
@@ -24,6 +24,7 @@ export interface GroupAuxParams {
24
24
  labelTextColorType: ColorType;
25
25
  labelTextFormat: string | ((text: any) => string);
26
26
  labelPadding: number;
27
+ labelRotate: number;
27
28
  }
28
29
  export interface BarsParams {
29
30
  barWidth: number;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfigFnObject;
2
+ export default _default;
package/package.json CHANGED
@@ -1,42 +1,43 @@
1
- {
2
- "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.55",
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.51",
39
- "d3": "^7.8.5",
40
- "rxjs": "^7.8.1"
41
- }
42
- }
1
+ {
2
+ "name": "@orbcharts/plugins-basic",
3
+ "version": "3.0.0-alpha.57",
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 production"
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
+ "vite-plugin-tsconfig": "^1.0.5"
37
+ },
38
+ "dependencies": {
39
+ "@orbcharts/core": "^3.0.0-alpha.53",
40
+ "d3": "^7.8.5",
41
+ "rxjs": "^7.8.1"
42
+ }
43
+ }