@orbcharts/plugins-basic 3.0.0-alpha.56 → 3.0.0-alpha.57
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 +7064 -7067
- package/dist/orbcharts-plugins-basic.umd.js +10 -10
- package/dist/src/base/BaseLineAreas.d.ts +1 -0
- package/dist/src/base/BaseLines.d.ts +3 -1
- package/dist/src/grid/gridObservables.d.ts +19 -2
- package/dist/src/grid/types.d.ts +1 -0
- package/dist/vite.config.d.mts +2 -0
- package/package.json +43 -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 -513
- package/src/base/BaseGroupAxis.ts +558 -558
- package/src/base/BaseLegend.ts +641 -641
- package/src/base/BaseLineAreas.ts +628 -625
- package/src/base/BaseLines.ts +704 -699
- package/src/base/BaseValueAxis.ts +478 -478
- package/src/base/types.ts +2 -2
- package/src/grid/defaults.ts +128 -127
- package/src/grid/gridObservables.ts +539 -248
- package/src/grid/index.ts +15 -15
- package/src/grid/plugins/BarStack.ts +43 -43
- package/src/grid/plugins/Bars.ts +44 -44
- package/src/grid/plugins/BarsPN.ts +41 -41
- package/src/grid/plugins/BarsTriangle.ts +42 -42
- package/src/grid/plugins/Dots.ts +37 -37
- package/src/grid/plugins/GridLegend.ts +59 -59
- package/src/grid/plugins/GroupAux.ts +976 -922
- package/src/grid/plugins/GroupAxis.ts +35 -35
- package/src/grid/plugins/LineAreas.ts +40 -39
- package/src/grid/plugins/Lines.ts +40 -38
- package/src/grid/plugins/ScalingArea.ts +173 -173
- package/src/grid/plugins/ValueAxis.ts +36 -36
- package/src/grid/plugins/ValueStackAxis.ts +38 -38
- package/src/grid/types.ts +123 -122
- package/src/index.ts +9 -9
- package/src/multiGrid/defaults.ts +158 -158
- package/src/multiGrid/index.ts +13 -13
- package/src/multiGrid/multiGridObservables.ts +49 -49
- 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 +77 -67
- package/src/multiGrid/plugins/MultiLines.ts +77 -66
- package/src/multiGrid/plugins/MultiValueAxis.ts +69 -69
- package/src/multiGrid/plugins/MultiValueStackAxis.ts +69 -69
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +167 -167
- package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +168 -168
- package/src/multiGrid/types.ts +72 -72
- package/src/noneData/defaults.ts +102 -102
- 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 +144 -144
- package/src/series/index.ts +9 -9
- package/src/series/plugins/Bubbles.ts +545 -545
- 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 +23 -23
- 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.json → tsconfig.base.json} +13 -13
- package/tsconfig.json.bak.vite-plugin-tsconfig +8 -0
- package/tsconfig.prod.json +2 -13
- package/vite.config.mjs +41 -0
- package/dist/vite.config.d.ts +0 -2
- package/tsconfig.dev.json +0 -17
- 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
|
+
}>;
|
package/dist/src/grid/types.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,42 +1,43 @@
|
|
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
|
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
|
-
|
38
|
-
|
39
|
-
"
|
40
|
-
"
|
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
|
+
}
|