@orbcharts/plugin-basic 4.0.0-pre-alpha.0
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.
- package/LICENSE +201 -0
- package/dist/orbcharts-plugin-basic.es.js +25335 -0
- package/dist/orbcharts-plugin-basic.umd.js +341 -0
- package/dist/plugin-basic/src/baseLayers/BaseBars.d.ts +38 -0
- package/dist/plugin-basic/src/baseLayers/BaseBarsTriangle.d.ts +37 -0
- package/dist/plugin-basic/src/baseLayers/BaseCategoryAxis.d.ts +42 -0
- package/dist/plugin-basic/src/baseLayers/BaseDots.d.ts +38 -0
- package/dist/plugin-basic/src/baseLayers/BaseLegend.d.ts +31 -0
- package/dist/plugin-basic/src/baseLayers/BaseLineAreas.d.ts +36 -0
- package/dist/plugin-basic/src/baseLayers/BaseLines.d.ts +36 -0
- package/dist/plugin-basic/src/baseLayers/BaseStackedBars.d.ts +41 -0
- package/dist/plugin-basic/src/baseLayers/BaseTooltip.d.ts +47 -0
- package/dist/plugin-basic/src/baseLayers/BaseValueAxis.d.ts +38 -0
- package/dist/plugin-basic/src/baseLayers/BaseXAxis.d.ts +25 -0
- package/dist/plugin-basic/src/baseLayers/BaseXZoom.d.ts +22 -0
- package/dist/plugin-basic/src/baseLayers/BaseYAxis.d.ts +23 -0
- package/dist/plugin-basic/src/baseLayers/types.d.ts +171 -0
- package/dist/plugin-basic/src/const/layerIndex.d.ts +10 -0
- package/dist/plugin-basic/src/const/sharedPluginParams.d.ts +6 -0
- package/dist/plugin-basic/src/index.d.ts +2 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/CompositionPlot.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/contextObservables.d.ts +40 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/defaults.d.ts +10 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/Bubbles.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/Indicator.d.ts +0 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/Pie.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/PieEventTexts.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/PieLabels.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/Rose.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/RoseLabels.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/layers/Waffle.d.ts +0 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/types.d.ts +110 -0
- package/dist/plugin-basic/src/plugins/CompositionPlot/utils.d.ts +19 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/HierarchyPlot.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/contextObservables.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/defaults.d.ts +4 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/layers/TreeMap.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/HierarchyPlot/types.d.ts +29 -0
- package/dist/plugin-basic/src/plugins/Legend/Legend.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/Legend/contextObservables.d.ts +9 -0
- package/dist/plugin-basic/src/plugins/Legend/defaults.d.ts +4 -0
- package/dist/plugin-basic/src/plugins/Legend/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/Legend/layers/Legend.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/Legend/types.d.ts +31 -0
- package/dist/plugin-basic/src/plugins/Legend/utils.d.ts +19 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/NetworkPlot.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/contextObservables.d.ts +19 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/defaults.d.ts +5 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/layers/ForceDirected.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/layers/ForceDirectedBubbles.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/NetworkPlot/types.d.ts +117 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/ScatterPlot.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/contextObservables.d.ts +140 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/defaults.d.ts +8 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/layers/Scatter.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/layers/ScatterBubbles.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/layers/XYAux.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/layers/XYAxes.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/layers/XZoom.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/ScatterPlot/types.d.ts +146 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/SeriesPlot.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/contextObservables.d.ts +77 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/defaults.d.ts +15 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/Bars.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/BarsPN.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/BarsTriangle.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/CategoryAux.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/CategoryAxis.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/CategoryZoom.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/Dots.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/LineAreas.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/Lines.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/StackedBars.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/StackedValueAxis.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/layers/ValueAxis.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/SeriesPlot/types.d.ts +140 -0
- package/dist/plugin-basic/src/plugins/Tooltip/Tooltip.d.ts +22 -0
- package/dist/plugin-basic/src/plugins/Tooltip/contextObservables.d.ts +9 -0
- package/dist/plugin-basic/src/plugins/Tooltip/defaults.d.ts +4 -0
- package/dist/plugin-basic/src/plugins/Tooltip/index.d.ts +3 -0
- package/dist/plugin-basic/src/plugins/Tooltip/layers/Tooltip.d.ts +16 -0
- package/dist/plugin-basic/src/plugins/Tooltip/types.d.ts +35 -0
- package/dist/plugin-basic/src/plugins/Tooltip/utils.d.ts +19 -0
- package/dist/plugin-basic/src/plugins/index.d.ts +7 -0
- package/dist/plugin-basic/src/types/BaseLayer.d.ts +3 -0
- package/dist/plugin-basic/src/types/Common.d.ts +14 -0
- package/dist/plugin-basic/src/types/ComputedData.d.ts +27 -0
- package/dist/plugin-basic/src/types/PluginParams.d.ts +66 -0
- package/dist/plugin-basic/src/types/index.d.ts +3 -0
- package/dist/plugin-basic/src/utils/commonUtils.d.ts +3 -0
- package/dist/plugin-basic/src/utils/d3Graphics.d.ts +24 -0
- package/dist/plugin-basic/src/utils/d3Scale.d.ts +28 -0
- package/dist/plugin-basic/src/utils/d3Utils.d.ts +14 -0
- package/dist/plugin-basic/src/utils/graphObservables.d.ts +0 -0
- package/dist/plugin-basic/src/utils/gridObservables.d.ts +51 -0
- package/dist/plugin-basic/src/utils/multivariateObservables.d.ts +74 -0
- package/dist/plugin-basic/src/utils/observables.d.ts +34 -0
- package/dist/plugin-basic/src/utils/orbchartsUtils.d.ts +26 -0
- package/dist/plugin-basic/src/utils/seriesObservables.d.ts +22 -0
- package/dist/plugin-basic/vite.config.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +62 -0
- package/src/baseLayers/BaseBars.ts +783 -0
- package/src/baseLayers/BaseBarsTriangle.ts +692 -0
- package/src/baseLayers/BaseCategoryAxis.ts +708 -0
- package/src/baseLayers/BaseDots.ts +495 -0
- package/src/baseLayers/BaseLegend.ts +684 -0
- package/src/baseLayers/BaseLineAreas.ts +644 -0
- package/src/baseLayers/BaseLines.ts +721 -0
- package/src/baseLayers/BaseStackedBars.ts +818 -0
- package/src/baseLayers/BaseTooltip.ts +435 -0
- package/src/baseLayers/BaseValueAxis.ts +612 -0
- package/src/baseLayers/BaseXAxis.ts +412 -0
- package/src/baseLayers/BaseXZoom.ts +250 -0
- package/src/baseLayers/BaseYAxis.ts +371 -0
- package/src/baseLayers/types.ts +174 -0
- package/src/const/layerIndex.ts +36 -0
- package/src/const/sharedPluginParams.ts +29 -0
- package/src/index.ts +3 -0
- package/src/plugins/CompositionPlot/CompositionPlot.ts +308 -0
- package/src/plugins/CompositionPlot/contextObservables.ts +251 -0
- package/src/plugins/CompositionPlot/defaults.ts +162 -0
- package/src/plugins/CompositionPlot/index.ts +3 -0
- package/src/plugins/CompositionPlot/layers/Bubbles.ts +808 -0
- package/src/plugins/CompositionPlot/layers/Indicator.ts +0 -0
- package/src/plugins/CompositionPlot/layers/Pie.ts +776 -0
- package/src/plugins/CompositionPlot/layers/PieEventTexts.ts +326 -0
- package/src/plugins/CompositionPlot/layers/PieLabels.ts +651 -0
- package/src/plugins/CompositionPlot/layers/Rose.ts +546 -0
- package/src/plugins/CompositionPlot/layers/RoseLabels.ts +616 -0
- package/src/plugins/CompositionPlot/layers/Waffle.ts +0 -0
- package/src/plugins/CompositionPlot/types.ts +129 -0
- package/src/plugins/CompositionPlot/utils.ts +53 -0
- package/src/plugins/HierarchyPlot/HierarchyPlot.ts +190 -0
- package/src/plugins/HierarchyPlot/contextObservables.ts +136 -0
- package/src/plugins/HierarchyPlot/defaults.ts +31 -0
- package/src/plugins/HierarchyPlot/index.ts +3 -0
- package/src/plugins/HierarchyPlot/layers/TreeMap.ts +371 -0
- package/src/plugins/HierarchyPlot/types.ts +36 -0
- package/src/plugins/Legend/Legend.ts +151 -0
- package/src/plugins/Legend/contextObservables.ts +55 -0
- package/src/plugins/Legend/defaults.ts +37 -0
- package/src/plugins/Legend/index.ts +3 -0
- package/src/plugins/Legend/layers/Legend.ts +114 -0
- package/src/plugins/Legend/types.ts +45 -0
- package/src/plugins/Legend/utils.ts +53 -0
- package/src/plugins/NetworkPlot/NetworkPlot.ts +228 -0
- package/src/plugins/NetworkPlot/contextObservables.ts +123 -0
- package/src/plugins/NetworkPlot/defaults.ts +147 -0
- package/src/plugins/NetworkPlot/index.ts +3 -0
- package/src/plugins/NetworkPlot/layers/ForceDirected.ts +1048 -0
- package/src/plugins/NetworkPlot/layers/ForceDirectedBubbles.ts +1318 -0
- package/src/plugins/NetworkPlot/types.ts +146 -0
- package/src/plugins/ScatterPlot/ScatterPlot.ts +569 -0
- package/src/plugins/ScatterPlot/contextObservables.ts +901 -0
- package/src/plugins/ScatterPlot/defaults.ts +212 -0
- package/src/plugins/ScatterPlot/index.ts +3 -0
- package/src/plugins/ScatterPlot/layers/Scatter.ts +518 -0
- package/src/plugins/ScatterPlot/layers/ScatterBubbles.ts +670 -0
- package/src/plugins/ScatterPlot/layers/XYAux.ts +686 -0
- package/src/plugins/ScatterPlot/layers/XYAxes.ts +205 -0
- package/src/plugins/ScatterPlot/layers/XZoom.ts +48 -0
- package/src/plugins/ScatterPlot/types.ts +179 -0
- package/src/plugins/SeriesPlot/SeriesPlot.ts +494 -0
- package/src/plugins/SeriesPlot/contextObservables.ts +726 -0
- package/src/plugins/SeriesPlot/defaults.ts +142 -0
- package/src/plugins/SeriesPlot/index.ts +3 -0
- package/src/plugins/SeriesPlot/layers/Bars.ts +84 -0
- package/src/plugins/SeriesPlot/layers/BarsPN.ts +85 -0
- package/src/plugins/SeriesPlot/layers/BarsTriangle.ts +89 -0
- package/src/plugins/SeriesPlot/layers/CategoryAux.ts +1131 -0
- package/src/plugins/SeriesPlot/layers/CategoryAxis.ts +92 -0
- package/src/plugins/SeriesPlot/layers/CategoryZoom.ts +233 -0
- package/src/plugins/SeriesPlot/layers/Dots.ts +91 -0
- package/src/plugins/SeriesPlot/layers/LineAreas.ts +82 -0
- package/src/plugins/SeriesPlot/layers/Lines.ts +75 -0
- package/src/plugins/SeriesPlot/layers/StackedBars.ts +85 -0
- package/src/plugins/SeriesPlot/layers/StackedValueAxis.ts +111 -0
- package/src/plugins/SeriesPlot/layers/ValueAxis.ts +111 -0
- package/src/plugins/SeriesPlot/types.ts +201 -0
- package/src/plugins/Tooltip/Tooltip.ts +159 -0
- package/src/plugins/Tooltip/contextObservables.ts +55 -0
- package/src/plugins/Tooltip/defaults.ts +458 -0
- package/src/plugins/Tooltip/index.ts +3 -0
- package/src/plugins/Tooltip/layers/Tooltip.ts +90 -0
- package/src/plugins/Tooltip/types.ts +55 -0
- package/src/plugins/Tooltip/utils.ts +53 -0
- package/src/plugins/index.ts +8 -0
- package/src/types/BaseLayer.ts +3 -0
- package/src/types/Common.ts +20 -0
- package/src/types/ComputedData.ts +55 -0
- package/src/types/PluginParams.ts +81 -0
- package/src/types/index.ts +3 -0
- package/src/utils/commonUtils.ts +31 -0
- package/src/utils/d3Graphics.ts +177 -0
- package/src/utils/d3Scale.ts +198 -0
- package/src/utils/d3Utils.ts +92 -0
- package/src/utils/graphObservables.ts +0 -0
- package/src/utils/gridObservables.ts +637 -0
- package/src/utils/multivariateObservables.ts +790 -0
- package/src/utils/observables.ts +357 -0
- package/src/utils/orbchartsUtils.ts +335 -0
- package/src/utils/seriesObservables.ts +172 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ColorType } from '../../../../core/src/index.ts';
|
|
3
|
+
import { GraphicStyles, Layout, VisibleFilter } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedData, ComputedDatumGraphNode, ComputedDatumGraphEdge } from '../../types';
|
|
5
|
+
|
|
6
|
+
export interface NetworkPlotExtendContext {
|
|
7
|
+
layout$: Observable<Layout>;
|
|
8
|
+
computedData$: Observable<ComputedData<'graph'>>;
|
|
9
|
+
fontSizePx$: Observable<number>;
|
|
10
|
+
graphHighlightNodes$: Observable<ComputedDatumGraphNode[]>;
|
|
11
|
+
graphHighlightEdges$: Observable<ComputedDatumGraphEdge[]>;
|
|
12
|
+
categoryLabels$: Observable<string[]>;
|
|
13
|
+
CategoryNodeMap$: Observable<Map<string, ComputedDatumGraphNode[]>>;
|
|
14
|
+
CategoryEdgeMap$: Observable<Map<string, ComputedDatumGraphEdge[]>>;
|
|
15
|
+
NodeMap$: Observable<Map<string, ComputedDatumGraphNode>>;
|
|
16
|
+
EdgeMap$: Observable<Map<string, ComputedDatumGraphEdge>>;
|
|
17
|
+
visibleComputedData$: Observable<ComputedData<'graph'>>;
|
|
18
|
+
}
|
|
19
|
+
export interface NetworkPlotPluginParams {
|
|
20
|
+
styles: GraphicStyles;
|
|
21
|
+
visibleFilter: VisibleFilter<'grid'>;
|
|
22
|
+
datasetIndex: number;
|
|
23
|
+
}
|
|
24
|
+
export interface NetworkPlotAllLayerParams {
|
|
25
|
+
ForceDirected: ForceDirectedParams;
|
|
26
|
+
ForceDirectedBubbles: ForceDirectedBubblesParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ForceDirectedParams {
|
|
29
|
+
dot: {
|
|
30
|
+
radius: number;
|
|
31
|
+
fillColorType: ColorType;
|
|
32
|
+
strokeColorType: ColorType;
|
|
33
|
+
strokeWidth: number;
|
|
34
|
+
styleFn: (node: ComputedDatumGraphNode) => string;
|
|
35
|
+
};
|
|
36
|
+
dotLabel: {
|
|
37
|
+
colorType: ColorType;
|
|
38
|
+
sizeFixed: boolean;
|
|
39
|
+
styleFn: (node: ComputedDatumGraphNode) => string;
|
|
40
|
+
};
|
|
41
|
+
arrow: {
|
|
42
|
+
colorType: ColorType;
|
|
43
|
+
strokeWidth: number;
|
|
44
|
+
pointerWidth: number;
|
|
45
|
+
pointerHeight: number;
|
|
46
|
+
styleFn: (edge: ComputedDatumGraphEdge) => string;
|
|
47
|
+
};
|
|
48
|
+
arrowLabel: {
|
|
49
|
+
colorType: ColorType;
|
|
50
|
+
sizeFixed: boolean;
|
|
51
|
+
styleFn: (edge: ComputedDatumGraphEdge) => string;
|
|
52
|
+
};
|
|
53
|
+
force: {
|
|
54
|
+
nodeStrength: number;
|
|
55
|
+
linkDistance: number;
|
|
56
|
+
velocityDecay: number;
|
|
57
|
+
alphaDecay: number;
|
|
58
|
+
};
|
|
59
|
+
zoomable: boolean;
|
|
60
|
+
transform: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
k: number;
|
|
64
|
+
};
|
|
65
|
+
scaleExtent: {
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface ForceDirectedBubblesParams {
|
|
71
|
+
bubble: {
|
|
72
|
+
radiusMin: number;
|
|
73
|
+
radiusMax: number;
|
|
74
|
+
arcScaleType: 'area' | 'radius';
|
|
75
|
+
fillColorType: ColorType;
|
|
76
|
+
strokeColorType: ColorType;
|
|
77
|
+
strokeWidth: number;
|
|
78
|
+
styleFn: (node: ComputedDatumGraphNode) => string;
|
|
79
|
+
};
|
|
80
|
+
bubbleLabel: {
|
|
81
|
+
fillRate: number;
|
|
82
|
+
lineHeight: number;
|
|
83
|
+
maxLineLength: number;
|
|
84
|
+
wordBreakAll: boolean;
|
|
85
|
+
colorType: ColorType;
|
|
86
|
+
styleFn: (node: ComputedDatumGraphNode) => string;
|
|
87
|
+
};
|
|
88
|
+
arrow: {
|
|
89
|
+
colorType: ColorType;
|
|
90
|
+
strokeWidthMin: number;
|
|
91
|
+
strokeWidthMax: number;
|
|
92
|
+
pointerWidth: number;
|
|
93
|
+
pointerHeight: number;
|
|
94
|
+
styleFn: (edge: ComputedDatumGraphEdge) => string;
|
|
95
|
+
};
|
|
96
|
+
arrowLabel: {
|
|
97
|
+
colorType: ColorType;
|
|
98
|
+
sizeFixed: boolean;
|
|
99
|
+
styleFn: (edge: ComputedDatumGraphEdge) => string;
|
|
100
|
+
};
|
|
101
|
+
force: {
|
|
102
|
+
nodeStrength: number;
|
|
103
|
+
linkDistance: number;
|
|
104
|
+
velocityDecay: number;
|
|
105
|
+
alphaDecay: number;
|
|
106
|
+
};
|
|
107
|
+
zoomable: boolean;
|
|
108
|
+
transform: {
|
|
109
|
+
x: number;
|
|
110
|
+
y: number;
|
|
111
|
+
k: number;
|
|
112
|
+
};
|
|
113
|
+
scaleExtent: {
|
|
114
|
+
min: number;
|
|
115
|
+
max: number;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const ScatterPlot: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<ScatterPlotPluginParams | ScatterPlotAllLayerParams>): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_elementType: "svg";
|
|
7
|
+
_getId: () => string;
|
|
8
|
+
_setId: (id: string) => void;
|
|
9
|
+
_injectContext: (context: import('../../../../core/src/index.ts').ChartContext<{}>) => void;
|
|
10
|
+
show: (names: keyof ScatterPlotAllLayerParams | (keyof ScatterPlotAllLayerParams)[]) => void;
|
|
11
|
+
showOnly: (names: keyof ScatterPlotAllLayerParams | (keyof ScatterPlotAllLayerParams)[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: keyof ScatterPlotAllLayerParams | (keyof ScatterPlotAllLayerParams)[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: keyof ScatterPlotAllLayerParams | (keyof ScatterPlotAllLayerParams)[]) => void;
|
|
16
|
+
getShownLayerNames: () => (keyof ScatterPlotAllLayerParams)[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<ScatterPlotPluginParams | ScatterPlotAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: ScatterPlotPluginParams | ScatterPlotAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<ScatterPlotPluginParams | ScatterPlotAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ContainerSize, ComputedDatumMultivariate, ComputedData, XYAxis, TransformData, Layout } from '../../types';
|
|
3
|
+
import { ContainerPositionScaled } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedXYDatumMultivariate, ComputedXYDataMultivariate, ScatterPlotPluginParams } from './types';
|
|
5
|
+
import { Encoding, ModelDataMultivariate } from '../../../../core/src/index.ts';
|
|
6
|
+
|
|
7
|
+
interface ComputedDatumWithSumMultivariate extends ComputedDatumMultivariate {
|
|
8
|
+
sum: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const multivariateComputedDataObservable: ({ selectedMultivariateData$, pluginParams$ }: {
|
|
11
|
+
selectedMultivariateData$: Observable<ModelDataMultivariate>;
|
|
12
|
+
pluginParams$: Observable<ScatterPlotPluginParams>;
|
|
13
|
+
}) => Observable<ComputedDatumMultivariate[][]>;
|
|
14
|
+
export declare const valueLabelsObservable: ({ encoding$ }: {
|
|
15
|
+
encoding$: Observable<Encoding>;
|
|
16
|
+
}) => Observable<string[]>;
|
|
17
|
+
export declare const xyMinMaxObservable: ({ computedData$, xyValueIndex$ }: {
|
|
18
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
19
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
20
|
+
}) => Observable<{
|
|
21
|
+
minX: number;
|
|
22
|
+
maxX: number;
|
|
23
|
+
minY: number;
|
|
24
|
+
maxY: number;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const computedXYDataObservable: ({ computedData$, xyMinMax$, xyValueIndex$, layout$ }: {
|
|
27
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
28
|
+
xyMinMax$: Observable<{
|
|
29
|
+
minX: number;
|
|
30
|
+
maxX: number;
|
|
31
|
+
minY: number;
|
|
32
|
+
maxY: number;
|
|
33
|
+
}>;
|
|
34
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
35
|
+
layout$: Observable<Layout>;
|
|
36
|
+
}) => Observable<ComputedXYDataMultivariate>;
|
|
37
|
+
export declare const seriesLabelsObservable: ({ computedData$ }: {
|
|
38
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
39
|
+
}) => Observable<string[]>;
|
|
40
|
+
export declare const visibleComputedDataObservable: ({ computedData$ }: {
|
|
41
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
42
|
+
}) => Observable<ComputedDatumMultivariate[][]>;
|
|
43
|
+
export declare const ordinalScaleDomainObservable: ({ visibleComputedData$, xAxis$ }: {
|
|
44
|
+
visibleComputedData$: Observable<ComputedData<"multivariate">>;
|
|
45
|
+
xAxis$: Observable<XYAxis>;
|
|
46
|
+
}) => Observable<[number, number]>;
|
|
47
|
+
export declare const visibleComputedSumDataObservable: ({ visibleComputedData$, ordinalScaleDomain$ }: {
|
|
48
|
+
visibleComputedData$: Observable<ComputedData<"multivariate">>;
|
|
49
|
+
ordinalScaleDomain$: Observable<[number, number]>;
|
|
50
|
+
}) => Observable<ComputedDatumWithSumMultivariate[][]>;
|
|
51
|
+
export declare const visibleComputedRankingByIndexDataObservable: ({ xyValueIndex$, isSeriesSeprate$, visibleComputedData$ }: {
|
|
52
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
53
|
+
isSeriesSeprate$: Observable<boolean>;
|
|
54
|
+
visibleComputedData$: Observable<ComputedDatumMultivariate[][]>;
|
|
55
|
+
}) => Observable<ComputedDatumMultivariate[][]>;
|
|
56
|
+
export declare const visibleComputedRankingBySumDataObservable: ({ isSeriesSeprate$, visibleComputedSumData$ }: {
|
|
57
|
+
isSeriesSeprate$: Observable<boolean>;
|
|
58
|
+
visibleComputedSumData$: Observable<ComputedDatumWithSumMultivariate[][]>;
|
|
59
|
+
}) => Observable<ComputedDatumWithSumMultivariate[][]>;
|
|
60
|
+
export declare const visibleComputedXYDataObservable: ({ computedXYData$ }: {
|
|
61
|
+
computedXYData$: Observable<ComputedXYDataMultivariate>;
|
|
62
|
+
}) => Observable<ComputedXYDatumMultivariate[][]>;
|
|
63
|
+
export declare const containerPositionObservable: ({ computedData$, pluginParams$, layout$ }: {
|
|
64
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
65
|
+
pluginParams$: Observable<ScatterPlotPluginParams>;
|
|
66
|
+
layout$: Observable<Layout>;
|
|
67
|
+
}) => Observable<ContainerPositionScaled[]>;
|
|
68
|
+
export declare const filteredXYMinMaxDataObservable: ({ visibleComputedXYData$, xyMinMax$, xyValueIndex$, xAxis$, yAxis$ }: {
|
|
69
|
+
visibleComputedXYData$: Observable<ComputedXYDataMultivariate>;
|
|
70
|
+
xyMinMax$: Observable<{
|
|
71
|
+
minX: number;
|
|
72
|
+
maxX: number;
|
|
73
|
+
minY: number;
|
|
74
|
+
maxY: number;
|
|
75
|
+
}>;
|
|
76
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
77
|
+
xAxis$: Observable<XYAxis>;
|
|
78
|
+
yAxis$: Observable<XYAxis>;
|
|
79
|
+
}) => Observable<{
|
|
80
|
+
datumList: ComputedXYDatumMultivariate[];
|
|
81
|
+
minXDatum: ComputedXYDatumMultivariate;
|
|
82
|
+
maxXDatum: ComputedXYDatumMultivariate;
|
|
83
|
+
minYDatum: ComputedXYDatumMultivariate;
|
|
84
|
+
maxYDatum: ComputedXYDatumMultivariate;
|
|
85
|
+
}>;
|
|
86
|
+
export declare const graphicTransformObservable: ({ xyMinMax$, xyValueIndex$, filteredXYMinMaxData$, xAxis$, yAxis$, layout$ }: {
|
|
87
|
+
xyMinMax$: Observable<{
|
|
88
|
+
minX: number;
|
|
89
|
+
maxX: number;
|
|
90
|
+
minY: number;
|
|
91
|
+
maxY: number;
|
|
92
|
+
}>;
|
|
93
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
94
|
+
filteredXYMinMaxData$: Observable<{
|
|
95
|
+
minXDatum: ComputedXYDatumMultivariate;
|
|
96
|
+
maxXDatum: ComputedXYDatumMultivariate;
|
|
97
|
+
minYDatum: ComputedXYDatumMultivariate;
|
|
98
|
+
maxYDatum: ComputedXYDatumMultivariate;
|
|
99
|
+
}>;
|
|
100
|
+
xAxis$: Observable<XYAxis>;
|
|
101
|
+
yAxis$: Observable<XYAxis>;
|
|
102
|
+
layout$: Observable<Layout>;
|
|
103
|
+
}) => Observable<TransformData>;
|
|
104
|
+
export declare const graphicReverseScaleObservable: ({ containerPosition$, graphicTransform$ }: {
|
|
105
|
+
containerPosition$: Observable<ContainerPositionScaled[]>;
|
|
106
|
+
graphicTransform$: Observable<TransformData>;
|
|
107
|
+
}) => Observable<[number, number][]>;
|
|
108
|
+
export declare const xScaleObservable: ({ visibleComputedSumData$, filteredXYMinMaxData$, xAxis$, containerSize$ }: {
|
|
109
|
+
visibleComputedSumData$: Observable<ComputedDatumMultivariate[][]>;
|
|
110
|
+
filteredXYMinMaxData$: Observable<{
|
|
111
|
+
minXDatum: ComputedXYDatumMultivariate;
|
|
112
|
+
maxXDatum: ComputedXYDatumMultivariate;
|
|
113
|
+
minYDatum: ComputedXYDatumMultivariate;
|
|
114
|
+
maxYDatum: ComputedXYDatumMultivariate;
|
|
115
|
+
}>;
|
|
116
|
+
xAxis$: Observable<XYAxis>;
|
|
117
|
+
containerSize$: Observable<ContainerSize>;
|
|
118
|
+
}) => Observable<import('d3').ScaleLinear<number, number, never>>;
|
|
119
|
+
export declare const yScaleObservable: ({ yAxis$, filteredXYMinMaxData$, containerSize$ }: {
|
|
120
|
+
yAxis$: Observable<XYAxis>;
|
|
121
|
+
filteredXYMinMaxData$: Observable<{
|
|
122
|
+
minXDatum: ComputedXYDatumMultivariate;
|
|
123
|
+
maxXDatum: ComputedXYDatumMultivariate;
|
|
124
|
+
minYDatum: ComputedXYDatumMultivariate;
|
|
125
|
+
maxYDatum: ComputedXYDatumMultivariate;
|
|
126
|
+
}>;
|
|
127
|
+
containerSize$: Observable<ContainerSize>;
|
|
128
|
+
}) => Observable<import('d3').ScaleLinear<number, number, never>>;
|
|
129
|
+
export declare const ordinalPaddingObservable: ({ ordinalScaleDomain$, computedData$, containerSize$ }: {
|
|
130
|
+
ordinalScaleDomain$: Observable<[number, number]>;
|
|
131
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
132
|
+
containerSize$: Observable<ContainerSize>;
|
|
133
|
+
}) => Observable<number>;
|
|
134
|
+
export declare const ordinalScaleObservable: ({ ordinalScaleDomain$, computedData$, containerSize$, ordinalPadding$ }: {
|
|
135
|
+
ordinalScaleDomain$: Observable<[number, number]>;
|
|
136
|
+
computedData$: Observable<ComputedData<"multivariate">>;
|
|
137
|
+
containerSize$: Observable<ContainerSize>;
|
|
138
|
+
ordinalPadding$: Observable<number>;
|
|
139
|
+
}) => Observable<import('d3').ScaleLinear<number, number, never>>;
|
|
140
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, XZoomParams, XYAxesParams, XYAuxParams, ScatterBubblesParams, ScatterParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_SCATTER_PLOT_PARAMS: ScatterPlotPluginParams;
|
|
4
|
+
export declare const DEFAULT_SCATTER_PARAMS: ScatterParams;
|
|
5
|
+
export declare const DEFAULT_SCATTER_BUBBLES_PARAMS: ScatterBubblesParams;
|
|
6
|
+
export declare const DEFAULT_X_Y_AUX_PARAMS: XYAuxParams;
|
|
7
|
+
export declare const DEFAULT_X_Y_AXES_PARAMS: XYAxesParams;
|
|
8
|
+
export declare const DEFAULT_X_ZOOM_PARAMS: XZoomParams;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotExtendContext, ScatterParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Scatter: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: ScatterParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<ScatterPlotExtendContext, ScatterPlotPluginParams, ScatterParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<ScatterParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: ScatterParams) => void;
|
|
13
|
+
_getParams: () => Readonly<ScatterParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotExtendContext, ScatterBubblesParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const ScatterBubbles: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: ScatterBubblesParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<ScatterPlotExtendContext, ScatterPlotPluginParams, ScatterBubblesParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<ScatterBubblesParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: ScatterBubblesParams) => void;
|
|
13
|
+
_getParams: () => Readonly<ScatterBubblesParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotExtendContext, XYAuxParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const XYAux: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: XYAuxParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<ScatterPlotExtendContext, ScatterPlotPluginParams, XYAuxParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<XYAuxParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: XYAuxParams) => void;
|
|
13
|
+
_getParams: () => Readonly<XYAuxParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotExtendContext, XYAxesParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const XYAxes: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: XYAxesParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<ScatterPlotExtendContext, ScatterPlotPluginParams, XYAxesParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<XYAxesParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: XYAxesParams) => void;
|
|
13
|
+
_getParams: () => Readonly<XYAxesParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ScatterPlotPluginParams, ScatterPlotExtendContext, XZoomParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const XZoom: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: XZoomParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<ScatterPlotExtendContext, ScatterPlotPluginParams, XZoomParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<XZoomParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: XZoomParams) => void;
|
|
13
|
+
_getParams: () => Readonly<XZoomParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ColorType } from '../../../../core/src/index.ts';
|
|
3
|
+
import { ContainerPositionScaled, Container, GraphicStyles, Layout, VisibleFilter, XYAxis } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedDatumMultivariate } from '../../types/ComputedData';
|
|
5
|
+
import { ArcScaleType, ContainerSize, TransformData } from '../../types/Common';
|
|
6
|
+
|
|
7
|
+
export interface ComputedXYDatumMultivariate extends ComputedDatumMultivariate {
|
|
8
|
+
axisX: number;
|
|
9
|
+
axisY: number;
|
|
10
|
+
}
|
|
11
|
+
export type ComputedXYDataMultivariate = ComputedXYDatumMultivariate[][];
|
|
12
|
+
export interface ScatterPlotExtendContext {
|
|
13
|
+
layout$: Observable<Layout>;
|
|
14
|
+
computedData$: Observable<ComputedDatumMultivariate[][]>;
|
|
15
|
+
fontSizePx$: Observable<number>;
|
|
16
|
+
isSeriesSeprate$: Observable<boolean>;
|
|
17
|
+
containerPosition$: Observable<ContainerPositionScaled[]>;
|
|
18
|
+
containerSize$: Observable<ContainerSize>;
|
|
19
|
+
highlight$: Observable<ComputedDatumMultivariate[]>;
|
|
20
|
+
seriesLabels$: Observable<string[]>;
|
|
21
|
+
SeriesDataMap$: Observable<Map<string, ComputedDatumMultivariate[]>>;
|
|
22
|
+
valueLabels$: Observable<string[]>;
|
|
23
|
+
xyMinMax$: Observable<{
|
|
24
|
+
minX: number;
|
|
25
|
+
maxX: number;
|
|
26
|
+
minY: number;
|
|
27
|
+
maxY: number;
|
|
28
|
+
}>;
|
|
29
|
+
xyValueIndex$: Observable<[number, number]>;
|
|
30
|
+
filteredXYMinMaxData$: Observable<{
|
|
31
|
+
datumList: ComputedXYDatumMultivariate[];
|
|
32
|
+
minXDatum: ComputedXYDatumMultivariate | null;
|
|
33
|
+
maxXDatum: ComputedXYDatumMultivariate | null;
|
|
34
|
+
minYDatum: ComputedXYDatumMultivariate | null;
|
|
35
|
+
maxYDatum: ComputedXYDatumMultivariate | null;
|
|
36
|
+
}>;
|
|
37
|
+
visibleComputedData$: Observable<ComputedDatumMultivariate[][]>;
|
|
38
|
+
visibleComputedRankingByIndexData$: Observable<ComputedDatumMultivariate[][]>;
|
|
39
|
+
visibleComputedXYData$: Observable<ComputedXYDataMultivariate>;
|
|
40
|
+
graphicTransform$: Observable<TransformData>;
|
|
41
|
+
graphicReverseScale$: Observable<[number, number][]>;
|
|
42
|
+
xScale$: Observable<d3.ScaleLinear<number, number>>;
|
|
43
|
+
yScale$: Observable<d3.ScaleLinear<number, number>>;
|
|
44
|
+
zoomedXAxis$: Observable<XYAxis>;
|
|
45
|
+
yAxis$: Observable<XYAxis>;
|
|
46
|
+
}
|
|
47
|
+
export interface ScatterPlotPluginParams {
|
|
48
|
+
styles: GraphicStyles;
|
|
49
|
+
visibleFilter: VisibleFilter<'grid'>;
|
|
50
|
+
container: Container;
|
|
51
|
+
xAxis: XYAxis;
|
|
52
|
+
yAxis: XYAxis;
|
|
53
|
+
separateSeries: boolean;
|
|
54
|
+
datasetIndex: number;
|
|
55
|
+
}
|
|
56
|
+
export interface ScatterPlotAllLayerParams {
|
|
57
|
+
Scatter: ScatterParams;
|
|
58
|
+
ScatterBubbles: ScatterBubblesParams;
|
|
59
|
+
XYAux: XYAuxParams;
|
|
60
|
+
XYAxes: XYAxesParams;
|
|
61
|
+
XZoom: XZoomParams;
|
|
62
|
+
}
|
|
63
|
+
export interface OrdinalBubblesParams {
|
|
64
|
+
bubble: {
|
|
65
|
+
sizeAdjust: number;
|
|
66
|
+
arcScaleType: 'area' | 'radius';
|
|
67
|
+
valueLinearOpacity: [number, number];
|
|
68
|
+
};
|
|
69
|
+
itemLabel: {
|
|
70
|
+
padding: number;
|
|
71
|
+
colorType: ColorType;
|
|
72
|
+
};
|
|
73
|
+
axisLabel: {
|
|
74
|
+
offset: [number, number];
|
|
75
|
+
colorType: ColorType;
|
|
76
|
+
};
|
|
77
|
+
rankingAmount: 'auto' | number;
|
|
78
|
+
}
|
|
79
|
+
export interface ScatterParams {
|
|
80
|
+
radius: number;
|
|
81
|
+
fillColorType: ColorType;
|
|
82
|
+
strokeColorType: ColorType;
|
|
83
|
+
strokeWidth: number;
|
|
84
|
+
}
|
|
85
|
+
export interface ScatterBubblesParams {
|
|
86
|
+
fillColorType: ColorType;
|
|
87
|
+
strokeColorType: ColorType;
|
|
88
|
+
strokeWidth: number;
|
|
89
|
+
valueLinearOpacity: [number, number];
|
|
90
|
+
arcScaleType: ArcScaleType;
|
|
91
|
+
sizeAdjust: number;
|
|
92
|
+
}
|
|
93
|
+
export interface XYAuxParams {
|
|
94
|
+
xAxis: {
|
|
95
|
+
showLine: boolean;
|
|
96
|
+
showLabel: boolean;
|
|
97
|
+
lineDashArray: string;
|
|
98
|
+
lineColorType: ColorType;
|
|
99
|
+
labelColorType: ColorType;
|
|
100
|
+
labelTextColorType: ColorType;
|
|
101
|
+
labelTextFormat: string | ((text: any) => string);
|
|
102
|
+
labelPadding: number;
|
|
103
|
+
};
|
|
104
|
+
yAxis: {
|
|
105
|
+
showLine: boolean;
|
|
106
|
+
showLabel: boolean;
|
|
107
|
+
lineDashArray: string;
|
|
108
|
+
lineColorType: ColorType;
|
|
109
|
+
labelColorType: ColorType;
|
|
110
|
+
labelTextColorType: ColorType;
|
|
111
|
+
labelTextFormat: string | ((text: any) => string);
|
|
112
|
+
labelPadding: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export interface XYAxesParams {
|
|
116
|
+
xAxis: {
|
|
117
|
+
labelOffset: [number, number];
|
|
118
|
+
labelColorType: ColorType;
|
|
119
|
+
axisLineVisible: boolean;
|
|
120
|
+
axisLineColorType: ColorType;
|
|
121
|
+
ticks: number | null;
|
|
122
|
+
tickFormat: string | ((text: d3.NumberValue) => string | d3.NumberValue);
|
|
123
|
+
tickLineVisible: boolean;
|
|
124
|
+
tickPadding: number;
|
|
125
|
+
tickFullLine: boolean;
|
|
126
|
+
tickFullLineDasharray: string;
|
|
127
|
+
tickColorType: ColorType;
|
|
128
|
+
tickTextColorType: ColorType;
|
|
129
|
+
};
|
|
130
|
+
yAxis: {
|
|
131
|
+
labelOffset: [number, number];
|
|
132
|
+
labelColorType: ColorType;
|
|
133
|
+
axisLineVisible: boolean;
|
|
134
|
+
axisLineColorType: ColorType;
|
|
135
|
+
ticks: number | null;
|
|
136
|
+
tickFormat: string | ((text: d3.NumberValue) => string | d3.NumberValue);
|
|
137
|
+
tickLineVisible: boolean;
|
|
138
|
+
tickPadding: number;
|
|
139
|
+
tickFullLine: boolean;
|
|
140
|
+
tickFullLineDasharray: string;
|
|
141
|
+
tickColorType: ColorType;
|
|
142
|
+
tickTextColorType: ColorType;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
export interface XZoomParams {
|
|
146
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SeriesPlotPluginParams, SeriesPlotAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const SeriesPlot: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<SeriesPlotPluginParams | SeriesPlotAllLayerParams>): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_elementType: "svg";
|
|
7
|
+
_getId: () => string;
|
|
8
|
+
_setId: (id: string) => void;
|
|
9
|
+
_injectContext: (context: import('../../../../core/src/index.ts').ChartContext<{}>) => void;
|
|
10
|
+
show: (names: keyof SeriesPlotAllLayerParams | (keyof SeriesPlotAllLayerParams)[]) => void;
|
|
11
|
+
showOnly: (names: keyof SeriesPlotAllLayerParams | (keyof SeriesPlotAllLayerParams)[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: keyof SeriesPlotAllLayerParams | (keyof SeriesPlotAllLayerParams)[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: keyof SeriesPlotAllLayerParams | (keyof SeriesPlotAllLayerParams)[]) => void;
|
|
16
|
+
getShownLayerNames: () => (keyof SeriesPlotAllLayerParams)[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<SeriesPlotPluginParams | SeriesPlotAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: SeriesPlotPluginParams | SeriesPlotAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<SeriesPlotPluginParams | SeriesPlotAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ModelDataGrid } from '../../../../core/src/index.ts';
|
|
3
|
+
import { ComputedData, ComputedDatumGrid } from '../../types/ComputedData';
|
|
4
|
+
import { ComputedLayoutDatumGrid, ComputedAxesDataGrid, SeriesPlotPluginParams } from './types';
|
|
5
|
+
import { ValueAxis, CategoryAxis, Layout, ContainerPositionScaled } from '../../types/PluginParams';
|
|
6
|
+
import { ContainerSize, TransformData } from '../..';
|
|
7
|
+
|
|
8
|
+
export declare const gridComputedDataObservable: ({ selectedGridData$, pluginParams$ }: {
|
|
9
|
+
selectedGridData$: Observable<ModelDataGrid>;
|
|
10
|
+
pluginParams$: Observable<SeriesPlotPluginParams>;
|
|
11
|
+
}) => Observable<ComputedDatumGrid[][]>;
|
|
12
|
+
export declare const gridComputedAxesDataObservable: ({ computedData$, categoryAxis$, valueAxis$, layout$ }: {
|
|
13
|
+
computedData$: Observable<ComputedDatumGrid[][]>;
|
|
14
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
15
|
+
valueAxis$: Observable<ValueAxis>;
|
|
16
|
+
layout$: Observable<Layout>;
|
|
17
|
+
}) => Observable<ComputedLayoutDatumGrid[][]>;
|
|
18
|
+
export declare const gridAxesSizeObservable: ({ categoryAxis$, valueAxis$, layout$ }: {
|
|
19
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
20
|
+
valueAxis$: Observable<ValueAxis>;
|
|
21
|
+
layout$: Observable<Layout>;
|
|
22
|
+
}) => Observable<{
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const gridAxesContainerSizeObservable: ({ categoryAxis$, valueAxis$, containerSize$ }: {
|
|
27
|
+
containerSize$: Observable<ContainerSize>;
|
|
28
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
29
|
+
valueAxis$: Observable<ValueAxis>;
|
|
30
|
+
}) => Observable<ContainerSize>;
|
|
31
|
+
export declare const gridSeriesLabelsObservable: ({ computedData$ }: {
|
|
32
|
+
computedData$: Observable<ComputedData<"grid">>;
|
|
33
|
+
}) => Observable<string[]>;
|
|
34
|
+
export declare const gridVisibleComputedDataObservable: ({ computedData$ }: {
|
|
35
|
+
computedData$: Observable<ComputedData<"grid">>;
|
|
36
|
+
}) => Observable<ComputedDatumGrid[][]>;
|
|
37
|
+
export declare const gridVisibleComputedAxesDataObservable: ({ computedAxesData$ }: {
|
|
38
|
+
computedAxesData$: Observable<ComputedAxesDataGrid>;
|
|
39
|
+
}) => Observable<ComputedLayoutDatumGrid[][]>;
|
|
40
|
+
export declare const gridContainerPositionObservable: ({ selectedGridData$, pluginParams$, layout$ }: {
|
|
41
|
+
selectedGridData$: Observable<ModelDataGrid>;
|
|
42
|
+
pluginParams$: Observable<SeriesPlotPluginParams>;
|
|
43
|
+
layout$: Observable<Layout>;
|
|
44
|
+
}) => Observable<ContainerPositionScaled[]>;
|
|
45
|
+
export declare const computedStackedDataObservables: ({ isSeriesSeprate$, computedData$ }: {
|
|
46
|
+
isSeriesSeprate$: Observable<boolean>;
|
|
47
|
+
computedData$: Observable<ComputedData<"grid">>;
|
|
48
|
+
}) => Observable<ComputedData<"grid">>;
|
|
49
|
+
export declare const categoryScaleDomainValueObservable: ({ selectedGridData$, categoryAxis$ }: {
|
|
50
|
+
selectedGridData$: Observable<ModelDataGrid>;
|
|
51
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
52
|
+
}) => Observable<[number, number]>;
|
|
53
|
+
export declare const filteredMinMaxValueObservable: ({ computedData$, categoryScaleDomainValue$ }: {
|
|
54
|
+
computedData$: Observable<ComputedData<"grid">>;
|
|
55
|
+
categoryScaleDomainValue$: Observable<[number, number]>;
|
|
56
|
+
}) => Observable<[number, number]>;
|
|
57
|
+
export declare const gridAxesTransformObservable: ({ categoryAxis$, valueAxis$, layout$ }: {
|
|
58
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
59
|
+
valueAxis$: Observable<ValueAxis>;
|
|
60
|
+
layout$: Observable<Layout>;
|
|
61
|
+
}) => Observable<TransformData>;
|
|
62
|
+
export declare const gridAxesReverseTransformObservable: ({ gridAxesTransform$ }: {
|
|
63
|
+
gridAxesTransform$: Observable<TransformData>;
|
|
64
|
+
}) => Observable<TransformData>;
|
|
65
|
+
export declare const gridGraphicTransformObservable: ({ computedData$, categoryScaleDomainValue$, filteredMinMaxValue$, categoryAxis$, valueAxis$, layout$ }: {
|
|
66
|
+
computedData$: Observable<ComputedData<"grid">>;
|
|
67
|
+
categoryScaleDomainValue$: Observable<[number, number]>;
|
|
68
|
+
filteredMinMaxValue$: Observable<[number, number]>;
|
|
69
|
+
categoryAxis$: Observable<CategoryAxis>;
|
|
70
|
+
valueAxis$: Observable<ValueAxis>;
|
|
71
|
+
layout$: Observable<Layout>;
|
|
72
|
+
}) => Observable<TransformData>;
|
|
73
|
+
export declare const gridGraphicReverseScaleObservable: ({ gridContainerPosition$, gridAxesTransform$, gridGraphicTransform$ }: {
|
|
74
|
+
gridContainerPosition$: Observable<ContainerPositionScaled[]>;
|
|
75
|
+
gridAxesTransform$: Observable<TransformData>;
|
|
76
|
+
gridGraphicTransform$: Observable<TransformData>;
|
|
77
|
+
}) => Observable<[number, number][]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BarsParams, BarsTriangleParams, DotsParams, SeriesPlotPluginParams, CategoryAuxParams, CategoryAxisParams, CategoryZoomParams, LineAreasParams, LinesParams, StackedBarsParams, StackedValueAxisParams, ValueAxisParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_SERIES_PLOT_PARAMS: SeriesPlotPluginParams;
|
|
4
|
+
export declare const DEFAULT_LINES_PARAMS: LinesParams;
|
|
5
|
+
export declare const DEFAULT_LINE_AREAS_PARAMS: LineAreasParams;
|
|
6
|
+
export declare const DEFAULT_DOTS_PARAMS: DotsParams;
|
|
7
|
+
export declare const DEFAULT_CATEGORY_AUX_PARAMS: CategoryAuxParams;
|
|
8
|
+
export declare const DEFAULT_BARS_PARAMS: BarsParams;
|
|
9
|
+
export declare const DEFAULT_BARS_DIVERGING_PARAMS: BarsParams;
|
|
10
|
+
export declare const DEFAULT_STACKED_BARS_PARAMS: StackedBarsParams;
|
|
11
|
+
export declare const DEFAULT_BARS_TRIANGLE_PARAMS: BarsTriangleParams;
|
|
12
|
+
export declare const DEFAULT_CATEGORY_AXIS_PARAMS: CategoryAxisParams;
|
|
13
|
+
export declare const DEFAULT_VALUE_AXIS_PARAMS: ValueAxisParams;
|
|
14
|
+
export declare const DEFAULT_STACKED_VALUE_AXIS_PARAMS: StackedValueAxisParams;
|
|
15
|
+
export declare const DEFAULT_CATEGORY_ZOOM_PARAMS: CategoryZoomParams;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BarsParams, SeriesPlotPluginParams, SeriesPlotExtendContext } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Bars: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: BarsParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<SeriesPlotExtendContext, SeriesPlotPluginParams, BarsParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<BarsParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: BarsParams) => void;
|
|
13
|
+
_getParams: () => Readonly<BarsParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|