@visactor/vseed 0.0.23 → 0.0.24
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/dist/builder/builder/builder.d.ts +1125 -757
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/dataReshape/dataReshapeFor2D1M0Name.d.ts +19 -0
- package/dist/dataReshape/index.d.ts +1 -0
- package/dist/dataReshape/unfoldZeroDimensions.d.ts +10 -0
- package/dist/index.cjs +586 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +541 -105
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipeline/heatmap.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipeline/radar.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/config/config.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingAR.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/reshape/index.d.ts +3 -1
- package/dist/pipeline/advanced/chart/pipes/reshape/pivotReshapeTo2D1M0Name.d.ts +8 -0
- package/dist/pipeline/advanced/chart/pipes/reshape/reshapeTo2D1M0Name.d.ts +8 -0
- package/dist/pipeline/spec/chart/pipeline/heatmap.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/index.d.ts +3 -1
- package/dist/pipeline/spec/chart/pipeline/radar.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/index.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/radarAngle.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/radarRadius.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/init/index.d.ts +3 -2
- package/dist/pipeline/spec/chart/pipes/{axes/a.d.ts → init/radar.d.ts} +1 -1
- package/dist/types/advancedVSeed.d.ts +455 -185
- package/dist/types/chartType/heatmap/heatmap.d.ts +207 -0
- package/dist/types/chartType/heatmap/index.d.ts +1 -0
- package/dist/types/chartType/index.d.ts +4 -2
- package/dist/types/chartType/radar/index.d.ts +1 -0
- package/dist/types/chartType/radar/radar.d.ts +207 -0
- package/dist/types/properties/chartType/chartType.d.ts +10 -6
- package/dist/types/properties/config/config.d.ts +519 -238
- package/dist/types/properties/theme/customTheme.d.ts +496 -228
- package/dist/types/vseed.d.ts +1018 -784
- package/dist/umd/index.js +564 -117
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -16,3 +16,5 @@ export declare const registerFunnel: () => void;
|
|
16
16
|
export declare const registerScatter: () => void;
|
17
17
|
export declare const registerTable: () => void;
|
18
18
|
export declare const registerPivotTable: () => void;
|
19
|
+
export declare const registerHeatmap: () => void;
|
20
|
+
export declare const registerRadar: () => void;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { Dataset, Dimension, FoldInfo, Measure, UnfoldInfo } from '../types';
|
2
|
+
/**
|
3
|
+
* 数据重塑为2个维度1个指标, 并且不根据指标名称展开出一个新维度
|
4
|
+
* @param dataset
|
5
|
+
* @param dimensions
|
6
|
+
* @param measures
|
7
|
+
* @returns
|
8
|
+
*/
|
9
|
+
export declare const dataReshapeFor2D1M0Name: (dataset: Dataset, dimensions: Dimension[], measures: Measure[], options?: {
|
10
|
+
foldMeasureId?: string;
|
11
|
+
foldMeasureName?: string;
|
12
|
+
foldMeasureValue?: string;
|
13
|
+
unfoldDimensionGroup?: string;
|
14
|
+
unfoldDimensionGroupId?: string;
|
15
|
+
}) => {
|
16
|
+
dataset: Dataset;
|
17
|
+
foldInfo: FoldInfo;
|
18
|
+
unfoldInfo: UnfoldInfo;
|
19
|
+
};
|
@@ -4,4 +4,5 @@ export { dataReshapeFor2D1M } from './dataReshapeFor2D1M';
|
|
4
4
|
export { dataReshapeFor1D1M } from './dataReshapeFor1D1M';
|
5
5
|
export { dataReshapeFor1D2M } from './dataReshapeFor1D2M';
|
6
6
|
export { dataReshapeFor1D } from './dataReshapeFor1D';
|
7
|
+
export { dataReshapeFor2D1M0Name } from './dataReshapeFor2D1M0Name';
|
7
8
|
export * from './constant';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Dataset, Measure } from '../types';
|
2
|
+
import type { UnfoldInfo } from '../types';
|
3
|
+
/**
|
4
|
+
* 展开0个维度的特殊情况, 折线图、面积图、雷达图只有指标没有维度的情况, 应该所有的指标应该作为一个维度
|
5
|
+
* @description
|
6
|
+
*/
|
7
|
+
export declare const unfoldZeroDimensions: (dataset: Dataset, measures: Measure[], measureName: string, unfoldGroupName?: string, unfoldGroupId?: string) => {
|
8
|
+
dataset: Dataset;
|
9
|
+
unfoldInfo: UnfoldInfo;
|
10
|
+
};
|