@visactor/vseed 0.1.2 → 0.1.3
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 -28
- package/dist/dataReshape/dataReshapeByEncoding.d.ts +1 -0
- package/dist/dataReshape/foldMeasures.d.ts +5 -4
- package/dist/index.cjs +335 -250
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +335 -247
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +0 -3
- package/dist/pipeline/advanced/chart/pipes/{init/autoMeasures.d.ts → measures/buildMeasures.d.ts} +1 -1
- package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +3 -0
- package/dist/pipeline/advanced/chart/pipes/measures/utils.d.ts +28 -0
- package/dist/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +2 -1
- package/dist/pipeline/spec/chart/pipes/color/index.d.ts +2 -1
- package/dist/pipeline/spec/chart/pipes/color/linearColorForDualAxis.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +1 -1
- package/dist/types/advancedVSeed.d.ts +13 -14
- package/dist/types/chartType/area/zArea.d.ts +13 -0
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +13 -0
- package/dist/types/chartType/bar/zBar.d.ts +13 -0
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +13 -0
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +13 -0
- package/dist/types/chartType/column/zColumn.d.ts +13 -0
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +13 -0
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +13 -0
- package/dist/types/chartType/donut/zDonut.d.ts +13 -0
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +65 -0
- package/dist/types/chartType/funnel/zFunnel.d.ts +13 -0
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +13 -0
- package/dist/types/chartType/line/line.d.ts +0 -1
- package/dist/types/chartType/line/zLine.d.ts +13 -0
- package/dist/types/chartType/pie/zPie.d.ts +13 -0
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +13 -0
- package/dist/types/chartType/radar/zRadar.d.ts +13 -0
- package/dist/types/chartType/rose/zRose.d.ts +13 -0
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +13 -0
- package/dist/types/chartType/scatter/zScatter.d.ts +65 -0
- package/dist/types/chartType/table/zTable.d.ts +13 -0
- package/dist/types/properties/encoding/encoding.d.ts +0 -1
- package/dist/types/properties/encoding/index.d.ts +2 -2
- package/dist/types/properties/encoding/zEncoding.d.ts +0 -14
- package/dist/types/properties/measures/dualMeasures.d.ts +1 -0
- package/dist/types/properties/measures/measures.d.ts +19 -0
- package/dist/types/properties/measures/scatterMeasures.d.ts +1 -0
- package/dist/types/properties/measures/zDualMeasures.d.ts +104 -0
- package/dist/types/properties/measures/zMeasures.d.ts +39 -0
- package/dist/types/properties/measures/zScatterMeasures.d.ts +104 -0
- package/dist/types/zVseed.d.ts +364 -0
- package/dist/umd/index.js +335 -248
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/chart/pipes/init/autoDualMeasures.d.ts +0 -2
- package/dist/pipeline/advanced/chart/pipes/init/autoScatterMeasures.d.ts +0 -2
@@ -99,6 +99,8 @@ export declare class Builder implements VSeedBuilder {
|
|
99
99
|
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
100
100
|
};
|
101
101
|
alias?: string | undefined;
|
102
|
+
encoding?: "primaryYAxis" | "secondaryYAxis" | "xAxis" | "yAxis" | "angle" | "radius" | "size" | "color" | "label" | "tooltip" | undefined;
|
103
|
+
parentId?: string | undefined;
|
102
104
|
})[];
|
103
105
|
encoding: {
|
104
106
|
x?: string[] | null | undefined;
|
@@ -114,20 +116,6 @@ export declare class Builder implements VSeedBuilder {
|
|
114
116
|
column?: string[] | null | undefined;
|
115
117
|
group?: string[] | null | undefined;
|
116
118
|
};
|
117
|
-
encodings: {
|
118
|
-
x?: string[] | null | undefined;
|
119
|
-
y?: string[] | null | undefined;
|
120
|
-
angle?: string[] | null | undefined;
|
121
|
-
radius?: string[] | null | undefined;
|
122
|
-
detail?: string[] | null | undefined;
|
123
|
-
color?: string[] | null | undefined;
|
124
|
-
size?: string[] | null | undefined;
|
125
|
-
tooltip?: string[] | null | undefined;
|
126
|
-
label?: string[] | null | undefined;
|
127
|
-
row?: string[] | null | undefined;
|
128
|
-
column?: string[] | null | undefined;
|
129
|
-
group?: string[] | null | undefined;
|
130
|
-
}[];
|
131
119
|
config: {
|
132
120
|
table?: {
|
133
121
|
backgroundColor?: string | null | undefined;
|
@@ -3833,6 +3821,8 @@ export declare class Builder implements VSeedBuilder {
|
|
3833
3821
|
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
3834
3822
|
};
|
3835
3823
|
alias?: string | undefined;
|
3824
|
+
encoding?: "primaryYAxis" | "secondaryYAxis" | "xAxis" | "yAxis" | "angle" | "radius" | "size" | "color" | "label" | "tooltip" | undefined;
|
3825
|
+
parentId?: string | undefined;
|
3836
3826
|
})[];
|
3837
3827
|
encoding: {
|
3838
3828
|
x?: string[] | null | undefined;
|
@@ -3848,20 +3838,6 @@ export declare class Builder implements VSeedBuilder {
|
|
3848
3838
|
column?: string[] | null | undefined;
|
3849
3839
|
group?: string[] | null | undefined;
|
3850
3840
|
};
|
3851
|
-
encodings: {
|
3852
|
-
x?: string[] | null | undefined;
|
3853
|
-
y?: string[] | null | undefined;
|
3854
|
-
angle?: string[] | null | undefined;
|
3855
|
-
radius?: string[] | null | undefined;
|
3856
|
-
detail?: string[] | null | undefined;
|
3857
|
-
color?: string[] | null | undefined;
|
3858
|
-
size?: string[] | null | undefined;
|
3859
|
-
tooltip?: string[] | null | undefined;
|
3860
|
-
label?: string[] | null | undefined;
|
3861
|
-
row?: string[] | null | undefined;
|
3862
|
-
column?: string[] | null | undefined;
|
3863
|
-
group?: string[] | null | undefined;
|
3864
|
-
}[];
|
3865
3841
|
config: {
|
3866
3842
|
table?: {
|
3867
3843
|
backgroundColor?: string | null | undefined;
|
@@ -3,10 +3,11 @@ import type { Dataset, FoldInfo, Dimension, Encoding } from '../types';
|
|
3
3
|
* 折叠指定的指标
|
4
4
|
* @description 合并指定的指标为1个, 无论多少个, 都能转换为1个, 取名为fold, 意为折叠后混合在一起.
|
5
5
|
*/
|
6
|
-
export declare const foldMeasures: (dataset: Dataset, measures: Dimension[], encoding: Encoding, options
|
7
|
-
measureId
|
8
|
-
measureName
|
9
|
-
measureValue
|
6
|
+
export declare const foldMeasures: (dataset: Dataset, measures: Dimension[], encoding: Encoding, options: {
|
7
|
+
measureId: string;
|
8
|
+
measureName: string;
|
9
|
+
measureValue: string;
|
10
|
+
colorMeasureId?: string;
|
10
11
|
}) => {
|
11
12
|
dataset: Dataset;
|
12
13
|
foldInfo: FoldInfo;
|