@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,22 @@
|
|
|
1
|
+
import { CompositionPlotPluginParams, CompositionPlotAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const CompositionPlot: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<CompositionPlotPluginParams | CompositionPlotAllLayerParams>): {
|
|
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 CompositionPlotAllLayerParams | (keyof CompositionPlotAllLayerParams)[]) => void;
|
|
11
|
+
showOnly: (names: keyof CompositionPlotAllLayerParams | (keyof CompositionPlotAllLayerParams)[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: keyof CompositionPlotAllLayerParams | (keyof CompositionPlotAllLayerParams)[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: keyof CompositionPlotAllLayerParams | (keyof CompositionPlotAllLayerParams)[]) => void;
|
|
16
|
+
getShownLayerNames: () => (keyof CompositionPlotAllLayerParams)[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<CompositionPlotPluginParams | CompositionPlotAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: CompositionPlotPluginParams | CompositionPlotAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<CompositionPlotPluginParams | CompositionPlotAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ModelDataSeries } from '../../../../core/src/index.ts';
|
|
3
|
+
import { CompositionPlotPluginParams } from './types';
|
|
4
|
+
import { Layout, ContainerPosition } from '../../types/PluginParams';
|
|
5
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
6
|
+
|
|
7
|
+
export declare const seriesComputedDataObservable: ({ selectedSeriesData$, pluginParams$ }: {
|
|
8
|
+
selectedSeriesData$: Observable<ModelDataSeries>;
|
|
9
|
+
pluginParams$: Observable<CompositionPlotPluginParams>;
|
|
10
|
+
}) => Observable<ComputedDatumSeries[][]>;
|
|
11
|
+
export declare const datumLabelsObservable: ({ selectedSeriesData$ }: {
|
|
12
|
+
selectedSeriesData$: Observable<ModelDataSeries>;
|
|
13
|
+
}) => Observable<string[]>;
|
|
14
|
+
export declare const separateSeriesObservable: ({ pluginParams$ }: {
|
|
15
|
+
pluginParams$: Observable<CompositionPlotPluginParams>;
|
|
16
|
+
}) => Observable<boolean>;
|
|
17
|
+
export declare const separateNameObservable: ({ pluginParams$ }: {
|
|
18
|
+
pluginParams$: Observable<CompositionPlotPluginParams>;
|
|
19
|
+
}) => Observable<boolean>;
|
|
20
|
+
export declare const seriesLabelsObservable: ({ selectedSeriesData$ }: {
|
|
21
|
+
selectedSeriesData$: Observable<ModelDataSeries>;
|
|
22
|
+
}) => Observable<string[]>;
|
|
23
|
+
export declare const seriesVisibleComputedDataObservable: ({ seriesComputedData$ }: {
|
|
24
|
+
seriesComputedData$: Observable<ComputedDatumSeries[][]>;
|
|
25
|
+
}) => Observable<ComputedDatumSeries[][]>;
|
|
26
|
+
export declare const seriesComputedSortedDataObservable: ({ seriesComputedData$, separateSeries$, separateName$, datumLabels$ }: {
|
|
27
|
+
seriesComputedData$: Observable<ComputedDatumSeries[][]>;
|
|
28
|
+
separateSeries$: Observable<boolean>;
|
|
29
|
+
separateName$: Observable<boolean>;
|
|
30
|
+
datumLabels$: Observable<string[]>;
|
|
31
|
+
}) => Observable<ComputedDatumSeries[][]>;
|
|
32
|
+
export declare const seriesContainerPositionObservable: ({ computedSortedData$, pluginParams$, layout$ }: {
|
|
33
|
+
computedSortedData$: Observable<ComputedDatumSeries[][]>;
|
|
34
|
+
pluginParams$: Observable<CompositionPlotPluginParams>;
|
|
35
|
+
layout$: Observable<Layout>;
|
|
36
|
+
}) => Observable<ContainerPosition[]>;
|
|
37
|
+
export declare const datumContainerPositionMapObservable: ({ seriesContainerPosition$, computedSortedData$ }: {
|
|
38
|
+
seriesContainerPosition$: Observable<ContainerPosition[]>;
|
|
39
|
+
computedSortedData$: Observable<ComputedDatumSeries[][]>;
|
|
40
|
+
}) => Observable<Map<string, ContainerPosition>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IndicatorParams, PieEventTextsParams, PieLabelsParams, RoseLabelsParams, RoseParams, CompositionPlotPluginParams, BubblesParams, PieParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_COMPOSITION_PLOT_PARAMS: CompositionPlotPluginParams;
|
|
4
|
+
export declare const DEFAULT_BUBBLES_PARAMS: BubblesParams;
|
|
5
|
+
export declare const DEFAULT_PIE_PARAMS: PieParams;
|
|
6
|
+
export declare const DEFAULT_PIE_EVENT_TEXTS_PARAMS: PieEventTextsParams;
|
|
7
|
+
export declare const DEFAULT_PIE_LABELS_PARAMS: PieLabelsParams;
|
|
8
|
+
export declare const DEFAULT_ROSE_PARAMS: RoseParams;
|
|
9
|
+
export declare const DEFAULT_ROSE_LABELS_PARAMS: RoseLabelsParams;
|
|
10
|
+
export declare const DEFAULT_INDICATOR_PARAMS: IndicatorParams;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, BubblesParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Bubbles: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: BubblesParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, BubblesParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<BubblesParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: BubblesParams) => void;
|
|
13
|
+
_getParams: () => Readonly<BubblesParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, PieParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Pie: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: PieParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, PieParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<PieParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: PieParams) => void;
|
|
13
|
+
_getParams: () => Readonly<PieParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, PieEventTextsParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const PieEventTexts: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: PieEventTextsParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, PieEventTextsParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<PieEventTextsParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: PieEventTextsParams) => void;
|
|
13
|
+
_getParams: () => Readonly<PieEventTextsParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, PieLabelsParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const PieLabels: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: PieLabelsParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, PieLabelsParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<PieLabelsParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: PieLabelsParams) => void;
|
|
13
|
+
_getParams: () => Readonly<PieLabelsParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, RoseParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Rose: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: RoseParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, RoseParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<RoseParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: RoseParams) => void;
|
|
13
|
+
_getParams: () => Readonly<RoseParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompositionPlotExtendContext, CompositionPlotPluginParams, RoseLabelsParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const RoseLabels: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: RoseLabelsParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<CompositionPlotExtendContext, CompositionPlotPluginParams, RoseLabelsParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<RoseLabelsParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: RoseLabelsParams) => void;
|
|
13
|
+
_getParams: () => Readonly<RoseLabelsParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ColorType, ModelDatumSeries, EventData } from '../../../../core/src/index.ts';
|
|
3
|
+
import { ContainerPosition, Container, GraphicStyles, Layout } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
5
|
+
import { ArcScaleType } from '../../types/Common';
|
|
6
|
+
|
|
7
|
+
export interface CompositionPlotExtendContext {
|
|
8
|
+
layout$: Observable<Layout>;
|
|
9
|
+
computedData$: Observable<ComputedDatumSeries[][]>;
|
|
10
|
+
fontSizePx$: Observable<number>;
|
|
11
|
+
datumLabels$: Observable<string[]>;
|
|
12
|
+
separateSeries$: Observable<boolean>;
|
|
13
|
+
separateName$: Observable<boolean>;
|
|
14
|
+
computedSortedData$: Observable<ComputedDatumSeries[][]>;
|
|
15
|
+
visibleComputedSortedData$: Observable<ComputedDatumSeries[][]>;
|
|
16
|
+
datumList$: Observable<ComputedDatumSeries[]>;
|
|
17
|
+
seriesHighlight$: Observable<ComputedDatumSeries[]>;
|
|
18
|
+
seriesLabels$: Observable<string[]>;
|
|
19
|
+
SeriesDataMap$: Observable<Map<string, ComputedDatumSeries[]>>;
|
|
20
|
+
seriesContainerPosition$: Observable<ContainerPosition[]>;
|
|
21
|
+
DatumContainerPositionMap$: Observable<Map<string, ContainerPosition>>;
|
|
22
|
+
}
|
|
23
|
+
export interface CompositionPlotPluginParams {
|
|
24
|
+
styles: GraphicStyles;
|
|
25
|
+
visibleFilter: (datum: ModelDatumSeries) => boolean | null;
|
|
26
|
+
sort: ((a: ModelDatumSeries, b: ModelDatumSeries) => number) | null;
|
|
27
|
+
container: Container;
|
|
28
|
+
separateSeries: boolean;
|
|
29
|
+
separateName: boolean;
|
|
30
|
+
datasetIndex: number;
|
|
31
|
+
}
|
|
32
|
+
export interface CompositionPlotAllLayerParams {
|
|
33
|
+
Bubbles: BubblesParams;
|
|
34
|
+
Pie: PieParams;
|
|
35
|
+
PieEventTexts: PieEventTextsParams;
|
|
36
|
+
PieLabels: PieLabelsParams;
|
|
37
|
+
Rose: RoseParams;
|
|
38
|
+
RoseLabels: RoseLabelsParams;
|
|
39
|
+
Indicator: IndicatorParams;
|
|
40
|
+
}
|
|
41
|
+
export interface BubblesParams {
|
|
42
|
+
force: {
|
|
43
|
+
strength: number;
|
|
44
|
+
velocityDecay: number;
|
|
45
|
+
collisionSpacing: number;
|
|
46
|
+
};
|
|
47
|
+
bubbleLabel: {
|
|
48
|
+
labelFn: ((d: ComputedDatumSeries) => string);
|
|
49
|
+
colorType: ColorType;
|
|
50
|
+
fillRate: number;
|
|
51
|
+
lineHeight: number;
|
|
52
|
+
maxLineLength: number;
|
|
53
|
+
wordBreakAll: boolean;
|
|
54
|
+
};
|
|
55
|
+
arcScaleType: ArcScaleType;
|
|
56
|
+
}
|
|
57
|
+
export interface PieParams {
|
|
58
|
+
outerRadius: number;
|
|
59
|
+
innerRadius: number;
|
|
60
|
+
outerRadiusWhileHighlight: number;
|
|
61
|
+
startAngle: number;
|
|
62
|
+
endAngle: number;
|
|
63
|
+
padAngle: number;
|
|
64
|
+
strokeColorType: ColorType;
|
|
65
|
+
strokeWidth: number;
|
|
66
|
+
cornerRadius: number;
|
|
67
|
+
}
|
|
68
|
+
export interface PieEventTextsParams {
|
|
69
|
+
renderFn: (d: EventData) => string[] | string | null;
|
|
70
|
+
textAttrs: Array<{
|
|
71
|
+
[key: string]: string | number;
|
|
72
|
+
}>;
|
|
73
|
+
textStyles: Array<{
|
|
74
|
+
[key: string]: string | number;
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
export interface PieLabelsParams {
|
|
78
|
+
outerRadius: number;
|
|
79
|
+
outerRadiusWhileHighlight: number;
|
|
80
|
+
startAngle: number;
|
|
81
|
+
endAngle: number;
|
|
82
|
+
labelCentroid: number;
|
|
83
|
+
labelFn: ((d: ComputedDatumSeries) => string);
|
|
84
|
+
labelColorType: ColorType;
|
|
85
|
+
}
|
|
86
|
+
export interface RoseParams {
|
|
87
|
+
outerRadius: number;
|
|
88
|
+
padAngle: number;
|
|
89
|
+
strokeColorType: ColorType;
|
|
90
|
+
strokeWidth: number;
|
|
91
|
+
cornerRadius: number;
|
|
92
|
+
arcScaleType: ArcScaleType;
|
|
93
|
+
angleIncreaseWhileHighlight: number;
|
|
94
|
+
}
|
|
95
|
+
export interface RoseLabelsParams {
|
|
96
|
+
outerRadius: number;
|
|
97
|
+
labelCentroid: number;
|
|
98
|
+
labelFn: ((d: ComputedDatumSeries) => string);
|
|
99
|
+
labelColorType: ColorType;
|
|
100
|
+
arcScaleType: ArcScaleType;
|
|
101
|
+
}
|
|
102
|
+
export interface IndicatorParams {
|
|
103
|
+
startAngle: number;
|
|
104
|
+
endAngle: number;
|
|
105
|
+
radius: number;
|
|
106
|
+
indicatorType: 'line' | 'needle' | 'pin' | 'triangle';
|
|
107
|
+
size: number;
|
|
108
|
+
colorType: ColorType;
|
|
109
|
+
value: number;
|
|
110
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
2
|
+
|
|
3
|
+
export interface D3PieDatum {
|
|
4
|
+
data: any;
|
|
5
|
+
index: number;
|
|
6
|
+
value: number;
|
|
7
|
+
startAngle: number;
|
|
8
|
+
endAngle: number;
|
|
9
|
+
padAngle: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PieDatum extends D3PieDatum {
|
|
12
|
+
data: ComputedDatumSeries;
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function makePieData({ data, startAngle, endAngle }: {
|
|
16
|
+
data: ComputedDatumSeries[];
|
|
17
|
+
startAngle: number;
|
|
18
|
+
endAngle: number;
|
|
19
|
+
}): PieDatum[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HierarchyPlotPluginParams, HierarchyPlotAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const HierarchyPlot: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<HierarchyPlotPluginParams | HierarchyPlotAllLayerParams>): {
|
|
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: "TreeMap" | "TreeMap"[]) => void;
|
|
11
|
+
showOnly: (names: "TreeMap" | "TreeMap"[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: "TreeMap" | "TreeMap"[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: "TreeMap" | "TreeMap"[]) => void;
|
|
16
|
+
getShownLayerNames: () => "TreeMap"[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<HierarchyPlotPluginParams | HierarchyPlotAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: HierarchyPlotPluginParams | HierarchyPlotAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<HierarchyPlotPluginParams | HierarchyPlotAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ModelData } from '../../../../core/src/index.ts';
|
|
3
|
+
import { ComputedData, ComputedDatumTree } from '../../types';
|
|
4
|
+
import { HierarchyPlotPluginParams } from './types';
|
|
5
|
+
|
|
6
|
+
export declare const treeComputedDataObservable: ({ selectedTreeData$, pluginParams$ }: {
|
|
7
|
+
selectedTreeData$: Observable<ModelData<"tree">>;
|
|
8
|
+
pluginParams$: Observable<HierarchyPlotPluginParams>;
|
|
9
|
+
}) => Observable<ComputedData<"tree">>;
|
|
10
|
+
export declare const nodeListObservable: ({ computedData$ }: {
|
|
11
|
+
computedData$: Observable<ComputedData<"tree">>;
|
|
12
|
+
}) => Observable<ComputedDatumTree[]>;
|
|
13
|
+
export declare const categoryLabelsObservable: (CategoryDataMap$: Observable<Map<string, ComputedDatumTree[]>>) => Observable<string[]>;
|
|
14
|
+
export declare const treeVisibleComputedDataObservable: ({ computedData$ }: {
|
|
15
|
+
computedData$: Observable<ComputedData<"tree">>;
|
|
16
|
+
}) => Observable<ComputedDatumTree>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HierarchyPlotPluginParams, HierarchyPlotExtendContext, TreeMapParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const TreeMap: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: TreeMapParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<HierarchyPlotExtendContext, HierarchyPlotPluginParams, TreeMapParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<TreeMapParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: TreeMapParams) => void;
|
|
13
|
+
_getParams: () => Readonly<TreeMapParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ColorType } from '../../../../core/src/index.ts';
|
|
3
|
+
import { GraphicStyles, Layout, VisibleFilter } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedData, ComputedDatumTree } from '../../types';
|
|
5
|
+
|
|
6
|
+
export interface HierarchyPlotExtendContext {
|
|
7
|
+
layout$: Observable<Layout>;
|
|
8
|
+
computedData$: Observable<ComputedData<'tree'>>;
|
|
9
|
+
fontSizePx$: Observable<number>;
|
|
10
|
+
treeHighlight$: Observable<ComputedDatumTree[]>;
|
|
11
|
+
categoryLabels$: Observable<string[]>;
|
|
12
|
+
CategoryDataMap$: Observable<Map<string, ComputedDatumTree[]>>;
|
|
13
|
+
visibleComputedData$: Observable<ComputedData<'tree'>>;
|
|
14
|
+
}
|
|
15
|
+
export interface HierarchyPlotPluginParams {
|
|
16
|
+
styles: GraphicStyles;
|
|
17
|
+
visibleFilter: VisibleFilter<'grid'>;
|
|
18
|
+
datasetIndex: number;
|
|
19
|
+
}
|
|
20
|
+
export interface HierarchyPlotAllLayerParams {
|
|
21
|
+
TreeMap: TreeMapParams;
|
|
22
|
+
}
|
|
23
|
+
export interface TreeMapParams {
|
|
24
|
+
paddingInner: number;
|
|
25
|
+
paddingOuter: number;
|
|
26
|
+
labelColorType: ColorType;
|
|
27
|
+
squarifyRatio: number;
|
|
28
|
+
sort: (a: ComputedDatumTree, b: ComputedDatumTree) => number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LegendPluginParams, LegendAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const Legend: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<LegendPluginParams | LegendAllLayerParams>): {
|
|
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: "Legend" | "Legend"[]) => void;
|
|
11
|
+
showOnly: (names: "Legend" | "Legend"[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: "Legend" | "Legend"[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: "Legend" | "Legend"[]) => void;
|
|
16
|
+
getShownLayerNames: () => "Legend"[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<LegendPluginParams | LegendAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: LegendPluginParams | LegendAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<LegendPluginParams | LegendAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ModelDataSeries } from '../../../../core/src/index.ts';
|
|
3
|
+
import { LegendPluginParams } from './types';
|
|
4
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
5
|
+
|
|
6
|
+
export declare const seriesComputedDataObservable: ({ selectedSeriesData$, pluginParams$ }: {
|
|
7
|
+
selectedSeriesData$: Observable<ModelDataSeries>;
|
|
8
|
+
pluginParams$: Observable<LegendPluginParams>;
|
|
9
|
+
}) => Observable<ComputedDatumSeries[][]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LegendExtendContext, LegendPluginParams, LegendParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const Legend: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: LegendParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<LegendExtendContext, LegendPluginParams, LegendParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<LegendParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: LegendParams) => void;
|
|
13
|
+
_getParams: () => Readonly<LegendParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ColorType, ModelDatumSeries } from '../../../../core/src/index.ts';
|
|
3
|
+
import { GraphicStyles, Layout } from '../../types/PluginParams';
|
|
4
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
5
|
+
import { Placement } from '../../types/Common';
|
|
6
|
+
|
|
7
|
+
export interface LegendExtendContext {
|
|
8
|
+
layout$: Observable<Layout>;
|
|
9
|
+
fontSizePx$: Observable<number>;
|
|
10
|
+
SeriesDataMap$: Observable<Map<string, ComputedDatumSeries[]>>;
|
|
11
|
+
}
|
|
12
|
+
export interface LegendPluginParams {
|
|
13
|
+
styles: GraphicStyles;
|
|
14
|
+
visibleFilter: (datum: ModelDatumSeries) => boolean | null;
|
|
15
|
+
sort: ((a: ModelDatumSeries, b: ModelDatumSeries) => number) | null;
|
|
16
|
+
datasetIndex: number;
|
|
17
|
+
}
|
|
18
|
+
export interface LegendAllLayerParams {
|
|
19
|
+
Legend: LegendParams;
|
|
20
|
+
}
|
|
21
|
+
export interface LegendParams {
|
|
22
|
+
placement: Placement;
|
|
23
|
+
padding: number;
|
|
24
|
+
backgroundFill: ColorType;
|
|
25
|
+
backgroundStroke: ColorType;
|
|
26
|
+
gap: number;
|
|
27
|
+
listRectWidth: number;
|
|
28
|
+
listRectHeight: number;
|
|
29
|
+
listRectRadius: number;
|
|
30
|
+
textColorType: ColorType;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComputedDatumSeries } from '../../types/ComputedData';
|
|
2
|
+
|
|
3
|
+
export interface D3PieDatum {
|
|
4
|
+
data: any;
|
|
5
|
+
index: number;
|
|
6
|
+
value: number;
|
|
7
|
+
startAngle: number;
|
|
8
|
+
endAngle: number;
|
|
9
|
+
padAngle: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PieDatum extends D3PieDatum {
|
|
12
|
+
data: ComputedDatumSeries;
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function makePieData({ data, startAngle, endAngle }: {
|
|
16
|
+
data: ComputedDatumSeries[];
|
|
17
|
+
startAngle: number;
|
|
18
|
+
endAngle: number;
|
|
19
|
+
}): PieDatum[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NetworkPlotPluginParams, NetworkPlotAllLayerParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const NetworkPlot: {
|
|
4
|
+
new (params?: import('../../../../core/src/index.ts').DeepPartial<NetworkPlotPluginParams | NetworkPlotAllLayerParams>): {
|
|
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 NetworkPlotAllLayerParams | (keyof NetworkPlotAllLayerParams)[]) => void;
|
|
11
|
+
showOnly: (names: keyof NetworkPlotAllLayerParams | (keyof NetworkPlotAllLayerParams)[]) => void;
|
|
12
|
+
showAll: () => void;
|
|
13
|
+
hide: (names: keyof NetworkPlotAllLayerParams | (keyof NetworkPlotAllLayerParams)[]) => void;
|
|
14
|
+
hideAll: () => void;
|
|
15
|
+
toggle: (names: keyof NetworkPlotAllLayerParams | (keyof NetworkPlotAllLayerParams)[]) => void;
|
|
16
|
+
getShownLayerNames: () => (keyof NetworkPlotAllLayerParams)[];
|
|
17
|
+
updateParams: (patch: import('../../../../core/src/index.ts').DeepPartial<NetworkPlotPluginParams | NetworkPlotAllLayerParams>) => void;
|
|
18
|
+
forceReplaceParams: (full: NetworkPlotPluginParams | NetworkPlotAllLayerParams) => void;
|
|
19
|
+
getParams: () => Readonly<NetworkPlotPluginParams | NetworkPlotAllLayerParams>;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ModelData } from '../../../../core/src/index.ts';
|
|
3
|
+
import { ComputedData, ComputedDatumGraphNode, ComputedDatumGraphEdge } from '../../types';
|
|
4
|
+
import { NetworkPlotPluginParams } from './types';
|
|
5
|
+
|
|
6
|
+
export declare const multivariateComputedDataObservable: ({ selectedGraphData$, pluginParams$ }: {
|
|
7
|
+
selectedGraphData$: Observable<ModelData<"graph">>;
|
|
8
|
+
pluginParams$: Observable<NetworkPlotPluginParams>;
|
|
9
|
+
}) => Observable<ComputedData<"graph">>;
|
|
10
|
+
export declare const categoryLabelsObservable: (CategoryNodeMap$: Observable<Map<string, ComputedDatumGraphNode[]>>, CategoryEdgeMap$: Observable<Map<string, ComputedDatumGraphEdge[]>>) => Observable<string[]>;
|
|
11
|
+
export declare const NodeMapObservable: (computedData$: Observable<ComputedData<"graph">>) => Observable<Map<string, ComputedDatumGraphNode>>;
|
|
12
|
+
export declare const EdgeMapObservable: (computedData$: Observable<ComputedData<"graph">>) => Observable<Map<string, ComputedDatumGraphEdge>>;
|
|
13
|
+
export declare const graphVisibleComputedDataObservable: ({ computedData$, NodeMap$ }: {
|
|
14
|
+
computedData$: Observable<ComputedData<"graph">>;
|
|
15
|
+
NodeMap$: Observable<Map<string, ComputedDatumGraphNode>>;
|
|
16
|
+
}) => Observable<{
|
|
17
|
+
nodes: ComputedDatumGraphNode[];
|
|
18
|
+
edges: ComputedDatumGraphEdge[];
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ForceDirectedParams, ForceDirectedBubblesParams, NetworkPlotPluginParams } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_NETWORK_PLOT_PARAMS: NetworkPlotPluginParams;
|
|
4
|
+
export declare const DEFAULT_FORCE_DIRECTED_PARAMS: ForceDirectedParams;
|
|
5
|
+
export declare const DEFAULT_FORCE_DIRECTED_BUBBLES_PARAMS: ForceDirectedBubblesParams;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NetworkPlotPluginParams, NetworkPlotExtendContext, ForceDirectedParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const ForceDirected: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: ForceDirectedParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<NetworkPlotExtendContext, NetworkPlotPluginParams, ForceDirectedParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<ForceDirectedParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: ForceDirectedParams) => void;
|
|
13
|
+
_getParams: () => Readonly<ForceDirectedParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NetworkPlotPluginParams, NetworkPlotExtendContext, ForceDirectedBubblesParams } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const ForceDirectedBubbles: {
|
|
4
|
+
new (): {
|
|
5
|
+
_name: string;
|
|
6
|
+
_defaultParams: ForceDirectedBubblesParams;
|
|
7
|
+
_layerIndex: number;
|
|
8
|
+
_initShow: boolean;
|
|
9
|
+
_enable: (enableProps: import('../../../../../core/src/index.ts').SVGLayerEnableProps<NetworkPlotExtendContext, NetworkPlotPluginParams, ForceDirectedBubblesParams>) => void;
|
|
10
|
+
_disable: () => void;
|
|
11
|
+
_updateParams: (params: Partial<ForceDirectedBubblesParams>) => void;
|
|
12
|
+
_forceReplaceParams: (params: ForceDirectedBubblesParams) => void;
|
|
13
|
+
_getParams: () => Readonly<ForceDirectedBubblesParams>;
|
|
14
|
+
_destroy: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|