@visactor/vseed 0.1.3 → 0.1.4
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 +4 -2
- package/dist/dataReshape/foldMeasures.d.ts +2 -2
- package/dist/index.cjs +520 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +533 -383
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +16 -5
- package/dist/types/chartType/area/zArea.d.ts +16 -5
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +16 -5
- package/dist/types/chartType/bar/zBar.d.ts +16 -5
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +16 -5
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +16 -5
- package/dist/types/chartType/column/zColumn.d.ts +16 -5
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +16 -5
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +16 -5
- package/dist/types/chartType/donut/zDonut.d.ts +16 -5
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +36 -25
- package/dist/types/chartType/funnel/zFunnel.d.ts +16 -5
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +16 -5
- package/dist/types/chartType/line/zLine.d.ts +16 -5
- package/dist/types/chartType/pie/zPie.d.ts +16 -5
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +16 -5
- package/dist/types/chartType/radar/zRadar.d.ts +16 -5
- package/dist/types/chartType/rose/zRose.d.ts +16 -5
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +16 -5
- package/dist/types/chartType/scatter/zScatter.d.ts +36 -25
- package/dist/types/chartType/table/zTable.d.ts +16 -5
- package/dist/types/properties/dimensions/dimensions.d.ts +16 -0
- package/dist/types/properties/dimensions/zDimensions.d.ts +33 -0
- package/dist/types/properties/measures/zDualMeasures.d.ts +40 -40
- package/dist/types/properties/measures/zMeasures.d.ts +15 -15
- package/dist/types/properties/measures/zScatterMeasures.d.ts +40 -40
- package/dist/types/zVseed.d.ts +360 -140
- package/dist/umd/index.js +534 -370
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -82,6 +82,7 @@ export declare class Builder implements VSeedBuilder {
|
|
82
82
|
id: string;
|
83
83
|
location: "dimension" | "rowDimension" | "columnDimension";
|
84
84
|
alias?: string | undefined;
|
85
|
+
encoding?: "column" | "xAxis" | "yAxis" | "angle" | "color" | "detail" | "tooltip" | "label" | "row" | undefined;
|
85
86
|
})[];
|
86
87
|
measures: (import("../../types").MeasureGroup | {
|
87
88
|
id: string;
|
@@ -99,7 +100,7 @@ export declare class Builder implements VSeedBuilder {
|
|
99
100
|
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
100
101
|
};
|
101
102
|
alias?: string | undefined;
|
102
|
-
encoding?: "
|
103
|
+
encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
|
103
104
|
parentId?: string | undefined;
|
104
105
|
})[];
|
105
106
|
encoding: {
|
@@ -3804,6 +3805,7 @@ export declare class Builder implements VSeedBuilder {
|
|
3804
3805
|
id: string;
|
3805
3806
|
location: "dimension" | "rowDimension" | "columnDimension";
|
3806
3807
|
alias?: string | undefined;
|
3808
|
+
encoding?: "column" | "xAxis" | "yAxis" | "angle" | "color" | "detail" | "tooltip" | "label" | "row" | undefined;
|
3807
3809
|
})[];
|
3808
3810
|
measures: (import("src/types").MeasureGroup | {
|
3809
3811
|
id: string;
|
@@ -3821,7 +3823,7 @@ export declare class Builder implements VSeedBuilder {
|
|
3821
3823
|
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
3822
3824
|
};
|
3823
3825
|
alias?: string | undefined;
|
3824
|
-
encoding?: "
|
3826
|
+
encoding?: "xAxis" | "yAxis" | "angle" | "color" | "tooltip" | "label" | "primaryYAxis" | "secondaryYAxis" | "radius" | "size" | undefined;
|
3825
3827
|
parentId?: string | undefined;
|
3826
3828
|
})[];
|
3827
3829
|
encoding: {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { Dataset, FoldInfo,
|
1
|
+
import type { Dataset, FoldInfo, Measures } from '../types';
|
2
2
|
/**
|
3
3
|
* 折叠指定的指标
|
4
4
|
* @description 合并指定的指标为1个, 无论多少个, 都能转换为1个, 取名为fold, 意为折叠后混合在一起.
|
5
5
|
*/
|
6
|
-
export declare const foldMeasures: (dataset: Dataset, measures:
|
6
|
+
export declare const foldMeasures: (dataset: Dataset, measures: Measures, options: {
|
7
7
|
measureId: string;
|
8
8
|
measureName: string;
|
9
9
|
measureValue: string;
|