@visactor/vseed 0.0.19 → 0.0.20
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/advanced/colorItems.d.ts +2 -0
- package/dist/builder/builder/advanced/index.d.ts +1 -0
- package/dist/builder/builder/builder.d.ts +132 -110
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/builder/register/index.d.ts +1 -1
- package/dist/dataReshape/foldMeasures.d.ts +3 -3
- package/dist/index.cjs +580 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +501 -130
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/area.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/areaPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/bar.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/column.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/donut.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/line.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/pie.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/rose.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/config/config.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingFunnel.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingPie.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingRose.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingXY.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYX.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYY.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/index.d.ts +0 -1
- package/dist/pipeline/advanced/chart/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/markStyle/markStyle.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/pivotAdapter.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/theme/theme.d.ts +2 -0
- package/dist/pipeline/advanced/index.d.ts +2 -1
- package/dist/pipeline/advanced/table/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/index.d.ts +5 -0
- package/dist/pipeline/advanced/table/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/records/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/records/records.d.ts +2 -0
- package/dist/pipeline/spec/chart/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/area.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/column.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/donut.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/line.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/rose.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/index.d.ts +14 -0
- package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/index.d.ts +1 -0
- package/dist/pipeline/spec/index.d.ts +2 -1
- package/dist/pipeline/spec/table/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +3 -0
- package/dist/pipeline/spec/table/pipes/columns/pivotColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/index.d.ts +4 -0
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotIndicators.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/rows/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/rows/pivotRows.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +4 -2
- package/dist/pipeline/utils/dimensions/find.d.ts +4 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/index.d.ts +2 -0
- package/dist/pipeline/utils/measures/find.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -1
- package/dist/pipeline/utils/tree/index.d.ts +1 -0
- package/dist/pipeline/utils/tree/traverse.d.ts +11 -0
- package/dist/types/advancedVSeed.d.ts +16 -5
- package/dist/types/builder/builder.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +7 -8
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +7 -8
- package/dist/types/chartType/bar/bar.d.ts +7 -8
- package/dist/types/chartType/barParallel/barParallel.d.ts +7 -8
- package/dist/types/chartType/barPercent/barPercent.d.ts +7 -8
- package/dist/types/chartType/column/column.d.ts +7 -8
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +7 -8
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +7 -8
- package/dist/types/chartType/donut/donut.d.ts +7 -8
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
- package/dist/types/chartType/funnel/funnel.d.ts +7 -8
- package/dist/types/chartType/index.d.ts +3 -3
- package/dist/types/chartType/line/line.d.ts +7 -8
- package/dist/types/chartType/pie/pie.d.ts +7 -8
- package/dist/types/chartType/pivotTable/index.d.ts +1 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -3
- package/dist/types/chartType/rose/rose.d.ts +4 -5
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -5
- package/dist/types/chartType/scatter/scatter.d.ts +7 -8
- package/dist/types/chartType/table/index.d.ts +1 -1
- package/dist/types/chartType/table/table.d.ts +98 -4
- package/dist/types/properties/dimensions/dimensions.d.ts +48 -6
- package/dist/types/properties/dimensions/index.d.ts +1 -2
- package/dist/types/properties/measures/measures.d.ts +39 -3
- package/dist/types/vseed.d.ts +205 -76
- package/dist/umd/index.js +532 -137
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/utils.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/area.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/bar.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/column.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/donut.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/line.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/pie.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/rose.d.ts +0 -1
- package/dist/pipeline/spec/pipes/index.d.ts +0 -14
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +0 -3
- /package/dist/pipeline/advanced/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/config/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/init/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/theme/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationArea.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationAreaBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationHorizontalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationPoint.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationVerticalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/utils.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/a.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/angle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/radius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/background.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/color.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/dataset.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/datasetPivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/area.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/bar.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/barParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/column.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/columnParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/donut.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/funnel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/line.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pie.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/rose.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/roseParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/scatter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/label.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/discreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/pivotDiscreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/areaStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/barStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/lineStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointState.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/percent.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotAdapter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotColumnDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotGridStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotIndicators.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotRowDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stack.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stackCornerRadius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/tooltip.d.ts +0 -0
- /package/dist/pipeline/{constant.d.ts → utils/constant.d.ts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
export { getColorItems } from './colorItems';
|
@@ -24,6 +24,56 @@ export declare class Builder implements VSeedBuilder {
|
|
24
24
|
groupName: string;
|
25
25
|
};
|
26
26
|
}[];
|
27
|
+
dimensions: ({
|
28
|
+
id: string;
|
29
|
+
alias?: string | undefined;
|
30
|
+
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
31
|
+
} | {
|
32
|
+
id: string;
|
33
|
+
alias?: string | undefined;
|
34
|
+
children?: ({
|
35
|
+
id: string;
|
36
|
+
alias?: string | undefined;
|
37
|
+
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
38
|
+
} | /*elided*/ any)[] | undefined;
|
39
|
+
})[];
|
40
|
+
measures: ({
|
41
|
+
id: string;
|
42
|
+
alias?: string | undefined;
|
43
|
+
autoFormat?: boolean | undefined;
|
44
|
+
format?: {
|
45
|
+
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
46
|
+
ratio?: number | undefined;
|
47
|
+
symbol?: string | undefined;
|
48
|
+
thousandSeparator?: boolean | undefined;
|
49
|
+
prefix?: string | undefined;
|
50
|
+
suffix?: string | undefined;
|
51
|
+
fractionDigits?: number | undefined;
|
52
|
+
significantDigits?: number | undefined;
|
53
|
+
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
54
|
+
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
55
|
+
} | undefined;
|
56
|
+
} | {
|
57
|
+
id: string;
|
58
|
+
alias?: string | undefined;
|
59
|
+
children?: ({
|
60
|
+
id: string;
|
61
|
+
alias?: string | undefined;
|
62
|
+
autoFormat?: boolean | undefined;
|
63
|
+
format?: {
|
64
|
+
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
65
|
+
ratio?: number | undefined;
|
66
|
+
symbol?: string | undefined;
|
67
|
+
thousandSeparator?: boolean | undefined;
|
68
|
+
prefix?: string | undefined;
|
69
|
+
suffix?: string | undefined;
|
70
|
+
fractionDigits?: number | undefined;
|
71
|
+
significantDigits?: number | undefined;
|
72
|
+
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
73
|
+
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
74
|
+
} | undefined;
|
75
|
+
} | /*elided*/ any)[] | undefined;
|
76
|
+
})[];
|
27
77
|
encoding: {
|
28
78
|
x?: string[] | undefined;
|
29
79
|
y?: string[] | undefined;
|
@@ -3056,49 +3106,6 @@ export declare class Builder implements VSeedBuilder {
|
|
3056
3106
|
}[] | undefined;
|
3057
3107
|
};
|
3058
3108
|
locale: "zh-CN" | "en-US";
|
3059
|
-
dimensions?: {
|
3060
|
-
id: string;
|
3061
|
-
alias?: string | undefined;
|
3062
|
-
visible?: boolean | undefined;
|
3063
|
-
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
3064
|
-
}[] | undefined;
|
3065
|
-
measures?: ({
|
3066
|
-
id: string;
|
3067
|
-
alias?: string | undefined;
|
3068
|
-
autoFormat?: boolean | undefined;
|
3069
|
-
format?: {
|
3070
|
-
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
3071
|
-
ratio?: number | undefined;
|
3072
|
-
symbol?: string | undefined;
|
3073
|
-
thousandSeparator?: boolean | undefined;
|
3074
|
-
prefix?: string | undefined;
|
3075
|
-
suffix?: string | undefined;
|
3076
|
-
fractionDigits?: number | undefined;
|
3077
|
-
significantDigits?: number | undefined;
|
3078
|
-
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
3079
|
-
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
3080
|
-
} | undefined;
|
3081
|
-
} | {
|
3082
|
-
id: string;
|
3083
|
-
alias?: string | undefined;
|
3084
|
-
children?: ({
|
3085
|
-
id: string;
|
3086
|
-
alias?: string | undefined;
|
3087
|
-
autoFormat?: boolean | undefined;
|
3088
|
-
format?: {
|
3089
|
-
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
3090
|
-
ratio?: number | undefined;
|
3091
|
-
symbol?: string | undefined;
|
3092
|
-
thousandSeparator?: boolean | undefined;
|
3093
|
-
prefix?: string | undefined;
|
3094
|
-
suffix?: string | undefined;
|
3095
|
-
fractionDigits?: number | undefined;
|
3096
|
-
significantDigits?: number | undefined;
|
3097
|
-
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
3098
|
-
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
3099
|
-
} | undefined;
|
3100
|
-
} | /*elided*/ any)[] | undefined;
|
3101
|
-
})[] | undefined;
|
3102
3109
|
} | null;
|
3103
3110
|
getAdvancedPipeline: (chartType: ChartType) => AdvancedPipeline;
|
3104
3111
|
getSpecPipeline: (chartType: ChartType) => SpecPipeline;
|
@@ -5584,6 +5591,7 @@ export declare class Builder implements VSeedBuilder {
|
|
5584
5591
|
} | undefined;
|
5585
5592
|
} | undefined;
|
5586
5593
|
}>;
|
5594
|
+
getColorItems: () => string[];
|
5587
5595
|
get vseed(): VSeed;
|
5588
5596
|
set vseed(value: VSeed);
|
5589
5597
|
get advancedVSeed(): {
|
@@ -5604,6 +5612,56 @@ export declare class Builder implements VSeedBuilder {
|
|
5604
5612
|
groupName: string;
|
5605
5613
|
};
|
5606
5614
|
}[];
|
5615
|
+
dimensions: ({
|
5616
|
+
id: string;
|
5617
|
+
alias?: string | undefined;
|
5618
|
+
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
5619
|
+
} | {
|
5620
|
+
id: string;
|
5621
|
+
alias?: string | undefined;
|
5622
|
+
children?: ({
|
5623
|
+
id: string;
|
5624
|
+
alias?: string | undefined;
|
5625
|
+
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
5626
|
+
} | /*elided*/ any)[] | undefined;
|
5627
|
+
})[];
|
5628
|
+
measures: ({
|
5629
|
+
id: string;
|
5630
|
+
alias?: string | undefined;
|
5631
|
+
autoFormat?: boolean | undefined;
|
5632
|
+
format?: {
|
5633
|
+
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
5634
|
+
ratio?: number | undefined;
|
5635
|
+
symbol?: string | undefined;
|
5636
|
+
thousandSeparator?: boolean | undefined;
|
5637
|
+
prefix?: string | undefined;
|
5638
|
+
suffix?: string | undefined;
|
5639
|
+
fractionDigits?: number | undefined;
|
5640
|
+
significantDigits?: number | undefined;
|
5641
|
+
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
5642
|
+
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
5643
|
+
} | undefined;
|
5644
|
+
} | {
|
5645
|
+
id: string;
|
5646
|
+
alias?: string | undefined;
|
5647
|
+
children?: ({
|
5648
|
+
id: string;
|
5649
|
+
alias?: string | undefined;
|
5650
|
+
autoFormat?: boolean | undefined;
|
5651
|
+
format?: {
|
5652
|
+
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
5653
|
+
ratio?: number | undefined;
|
5654
|
+
symbol?: string | undefined;
|
5655
|
+
thousandSeparator?: boolean | undefined;
|
5656
|
+
prefix?: string | undefined;
|
5657
|
+
suffix?: string | undefined;
|
5658
|
+
fractionDigits?: number | undefined;
|
5659
|
+
significantDigits?: number | undefined;
|
5660
|
+
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
5661
|
+
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
5662
|
+
} | undefined;
|
5663
|
+
} | /*elided*/ any)[] | undefined;
|
5664
|
+
})[];
|
5607
5665
|
encoding: {
|
5608
5666
|
x?: string[] | undefined;
|
5609
5667
|
y?: string[] | undefined;
|
@@ -8636,13 +8694,39 @@ export declare class Builder implements VSeedBuilder {
|
|
8636
8694
|
}[] | undefined;
|
8637
8695
|
};
|
8638
8696
|
locale: "zh-CN" | "en-US";
|
8639
|
-
|
8697
|
+
} | null;
|
8698
|
+
set advancedVSeed(value: {
|
8699
|
+
chartType: "table" | "pivotTable" | "line" | "column" | "columnPercent" | "columnParallel" | "bar" | "barPercent" | "barParallel" | "area" | "areaPercent" | "rose" | "roseParallel" | "pie" | "donut" | "dualAxis" | "scatter" | "funnel";
|
8700
|
+
dataset: Record<string | number, any>[];
|
8701
|
+
datasetReshapeInfo: {
|
8702
|
+
id: string;
|
8703
|
+
foldInfo: {
|
8704
|
+
foldMap: Record<string, string | undefined>;
|
8705
|
+
measureId: string;
|
8706
|
+
measureName: string;
|
8707
|
+
measureValue: string;
|
8708
|
+
};
|
8709
|
+
unfoldInfo: {
|
8710
|
+
colorItems: string[];
|
8711
|
+
groupId: string;
|
8712
|
+
colorIdMap: Record<string, string>;
|
8713
|
+
groupName: string;
|
8714
|
+
};
|
8715
|
+
}[];
|
8716
|
+
dimensions: ({
|
8640
8717
|
id: string;
|
8641
8718
|
alias?: string | undefined;
|
8642
|
-
visible?: boolean | undefined;
|
8643
8719
|
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
8644
|
-
}
|
8645
|
-
|
8720
|
+
} | {
|
8721
|
+
id: string;
|
8722
|
+
alias?: string | undefined;
|
8723
|
+
children?: ({
|
8724
|
+
id: string;
|
8725
|
+
alias?: string | undefined;
|
8726
|
+
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
8727
|
+
} | /*elided*/ any)[] | undefined;
|
8728
|
+
})[];
|
8729
|
+
measures: ({
|
8646
8730
|
id: string;
|
8647
8731
|
alias?: string | undefined;
|
8648
8732
|
autoFormat?: boolean | undefined;
|
@@ -8678,26 +8762,7 @@ export declare class Builder implements VSeedBuilder {
|
|
8678
8762
|
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
8679
8763
|
} | undefined;
|
8680
8764
|
} | /*elided*/ any)[] | undefined;
|
8681
|
-
})[]
|
8682
|
-
} | null;
|
8683
|
-
set advancedVSeed(value: {
|
8684
|
-
chartType: "table" | "pivotTable" | "line" | "column" | "columnPercent" | "columnParallel" | "bar" | "barPercent" | "barParallel" | "area" | "areaPercent" | "rose" | "roseParallel" | "pie" | "donut" | "dualAxis" | "scatter" | "funnel";
|
8685
|
-
dataset: Record<string | number, any>[];
|
8686
|
-
datasetReshapeInfo: {
|
8687
|
-
id: string;
|
8688
|
-
foldInfo: {
|
8689
|
-
foldMap: Record<string, string | undefined>;
|
8690
|
-
measureId: string;
|
8691
|
-
measureName: string;
|
8692
|
-
measureValue: string;
|
8693
|
-
};
|
8694
|
-
unfoldInfo: {
|
8695
|
-
colorItems: string[];
|
8696
|
-
groupId: string;
|
8697
|
-
colorIdMap: Record<string, string>;
|
8698
|
-
groupName: string;
|
8699
|
-
};
|
8700
|
-
}[];
|
8765
|
+
})[];
|
8701
8766
|
encoding: {
|
8702
8767
|
x?: string[] | undefined;
|
8703
8768
|
y?: string[] | undefined;
|
@@ -11730,49 +11795,6 @@ export declare class Builder implements VSeedBuilder {
|
|
11730
11795
|
}[] | undefined;
|
11731
11796
|
};
|
11732
11797
|
locale: "zh-CN" | "en-US";
|
11733
|
-
dimensions?: {
|
11734
|
-
id: string;
|
11735
|
-
alias?: string | undefined;
|
11736
|
-
visible?: boolean | undefined;
|
11737
|
-
location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
|
11738
|
-
}[] | undefined;
|
11739
|
-
measures?: ({
|
11740
|
-
id: string;
|
11741
|
-
alias?: string | undefined;
|
11742
|
-
autoFormat?: boolean | undefined;
|
11743
|
-
format?: {
|
11744
|
-
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
11745
|
-
ratio?: number | undefined;
|
11746
|
-
symbol?: string | undefined;
|
11747
|
-
thousandSeparator?: boolean | undefined;
|
11748
|
-
prefix?: string | undefined;
|
11749
|
-
suffix?: string | undefined;
|
11750
|
-
fractionDigits?: number | undefined;
|
11751
|
-
significantDigits?: number | undefined;
|
11752
|
-
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
11753
|
-
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
11754
|
-
} | undefined;
|
11755
|
-
} | {
|
11756
|
-
id: string;
|
11757
|
-
alias?: string | undefined;
|
11758
|
-
children?: ({
|
11759
|
-
id: string;
|
11760
|
-
alias?: string | undefined;
|
11761
|
-
autoFormat?: boolean | undefined;
|
11762
|
-
format?: {
|
11763
|
-
type?: "number" | "percent" | "permille" | "scientific" | undefined;
|
11764
|
-
ratio?: number | undefined;
|
11765
|
-
symbol?: string | undefined;
|
11766
|
-
thousandSeparator?: boolean | undefined;
|
11767
|
-
prefix?: string | undefined;
|
11768
|
-
suffix?: string | undefined;
|
11769
|
-
fractionDigits?: number | undefined;
|
11770
|
-
significantDigits?: number | undefined;
|
11771
|
-
roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
|
11772
|
-
roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
11773
|
-
} | undefined;
|
11774
|
-
} | /*elided*/ any)[] | undefined;
|
11775
|
-
})[] | undefined;
|
11776
11798
|
} | null);
|
11777
11799
|
get spec(): Spec | null;
|
11778
11800
|
set spec(value: Spec | null);
|
@@ -13,3 +13,5 @@ export declare const registerRose: () => void;
|
|
13
13
|
export declare const registerRoseParallel: () => void;
|
14
14
|
export declare const registerFunnel: () => void;
|
15
15
|
export declare const registerScatter: () => void;
|
16
|
+
export declare const registerTable: () => void;
|
17
|
+
export declare const registerPivotTable: () => void;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
1
|
+
export * from './chartType';
|
2
2
|
export { registerCustomTheme, registerLightTheme, registerDarkTheme } from './theme';
|
3
3
|
export { registerAll } from './all';
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { Dataset, FoldInfo,
|
1
|
+
import type { Dataset, FoldInfo, Dimension, DimensionTree } 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: Dimension[], measureId?: string, measureName?: string, measureValue?: string) => {
|
7
7
|
dataset: Dataset;
|
8
8
|
foldInfo: FoldInfo;
|
9
9
|
};
|
@@ -16,7 +16,7 @@ export declare const foldMeasures: (dataset: Dataset, measures: Measure[], measu
|
|
16
16
|
* @param measureValue
|
17
17
|
* @returns
|
18
18
|
*/
|
19
|
-
export declare const foldMeasureGroups: (dataset: Dataset, measures: Required<
|
19
|
+
export declare const foldMeasureGroups: (dataset: Dataset, measures: Required<DimensionTree>, measureId?: string, measureName?: string, measureValue?: string) => {
|
20
20
|
dataset: Dataset;
|
21
21
|
foldInfo: FoldInfo;
|
22
22
|
} | {
|