@visactor/vseed 0.0.19 → 0.0.21
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 +259 -145
- 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 +930 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +845 -135
- 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 +5 -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/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
- package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/selectionStyle.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 +57 -52
- package/dist/types/builder/builder.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +12 -51
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +12 -51
- package/dist/types/chartType/bar/bar.d.ts +13 -51
- package/dist/types/chartType/barParallel/barParallel.d.ts +12 -51
- package/dist/types/chartType/barPercent/barPercent.d.ts +12 -51
- package/dist/types/chartType/column/column.d.ts +12 -51
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +12 -51
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +12 -51
- package/dist/types/chartType/donut/donut.d.ts +12 -51
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
- package/dist/types/chartType/funnel/funnel.d.ts +12 -51
- package/dist/types/chartType/index.d.ts +3 -3
- package/dist/types/chartType/line/line.d.ts +12 -51
- package/dist/types/chartType/pie/pie.d.ts +12 -51
- package/dist/types/chartType/pivotTable/index.d.ts +1 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -2
- package/dist/types/chartType/rose/rose.d.ts +12 -50
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +13 -51
- package/dist/types/chartType/scatter/scatter.d.ts +12 -51
- package/dist/types/chartType/table/index.d.ts +1 -1
- package/dist/types/chartType/table/table.d.ts +60 -4
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +28 -10
- package/dist/types/properties/dimensions/index.d.ts +1 -2
- package/dist/types/properties/measures/measures.d.ts +44 -84
- package/dist/types/properties/theme/customTheme.d.ts +48 -4
- package/dist/types/vseed.d.ts +241 -720
- package/dist/umd/index.js +1202 -144
- 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
@@ -1,6 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { Locale } from '../../i18n';
|
3
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 饼图类型定义
|
6
6
|
* @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
|
@@ -40,10 +40,10 @@ export interface Pie {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 饼图的所有指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -89,59 +89,20 @@ export interface Pie {
|
|
89
89
|
export declare const zPie: z.ZodObject<{
|
90
90
|
chartType: z.ZodLiteral<"pie">;
|
91
91
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.
|
92
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
93
|
id: z.ZodString;
|
94
94
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
|
96
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
95
|
+
location: z.ZodDefault<z.ZodEnum<{
|
97
96
|
dimension: "dimension";
|
98
97
|
rowDimension: "rowDimension";
|
99
98
|
columnDimension: "columnDimension";
|
100
|
-
}
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
103
|
-
id: z.ZodString;
|
104
|
-
alias: z.ZodOptional<z.ZodString>;
|
105
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
106
|
-
id: z.ZodString;
|
107
|
-
alias: z.ZodOptional<z.ZodString>;
|
108
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
109
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
110
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
111
|
-
number: "number";
|
112
|
-
percent: "percent";
|
113
|
-
permille: "permille";
|
114
|
-
scientific: "scientific";
|
115
|
-
}>>>;
|
116
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
117
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
118
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
119
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
121
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
123
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
124
|
-
morePrecision: "morePrecision";
|
125
|
-
lessPrecision: "lessPrecision";
|
126
|
-
}>>>;
|
127
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
128
|
-
floor: "floor";
|
129
|
-
ceil: "ceil";
|
130
|
-
expand: "expand";
|
131
|
-
trunc: "trunc";
|
132
|
-
halfCeil: "halfCeil";
|
133
|
-
halfFloor: "halfFloor";
|
134
|
-
halfExpand: "halfExpand";
|
135
|
-
halfTrunc: "halfTrunc";
|
136
|
-
halfEven: "halfEven";
|
137
|
-
}>>>;
|
138
|
-
}, z.core.$strip>>>>;
|
139
|
-
}, z.core.$strip>]>>>;
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
99
|
+
}>>;
|
100
|
+
}, z.core.$strip>>>;
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
141
102
|
id: z.ZodString;
|
142
103
|
alias: z.ZodOptional<z.ZodString>;
|
143
|
-
autoFormat: z.
|
144
|
-
format: z.
|
104
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
105
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
145
106
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
146
107
|
number: "number";
|
147
108
|
percent: "percent";
|
@@ -170,8 +131,8 @@ export declare const zPie: z.ZodObject<{
|
|
170
131
|
halfTrunc: "halfTrunc";
|
171
132
|
halfEven: "halfEven";
|
172
133
|
}>>>;
|
173
|
-
}, z.core.$strip
|
174
|
-
}, z.core.$strip>]
|
134
|
+
}, z.core.$strip>>>;
|
135
|
+
}, z.core.$strip>]>>>;
|
175
136
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
137
|
color: z.ZodOptional<z.ZodObject<{
|
177
138
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from './pivotTable';
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Locale } from '../../i18n';
|
3
|
+
import type { Measures } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
|
3
5
|
/**
|
4
6
|
* 透视表类型定义
|
5
7
|
* @description 透视表,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
|
@@ -65,3 +67,57 @@ export interface PivotTable {
|
|
65
67
|
*/
|
66
68
|
locale?: Locale;
|
67
69
|
}
|
70
|
+
export declare const zPivotTable: z.ZodObject<{
|
71
|
+
chartType: z.ZodLiteral<"pivotTable">;
|
72
|
+
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
73
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
74
|
+
id: z.ZodString;
|
75
|
+
alias: z.ZodOptional<z.ZodString>;
|
76
|
+
location: z.ZodDefault<z.ZodEnum<{
|
77
|
+
dimension: "dimension";
|
78
|
+
rowDimension: "rowDimension";
|
79
|
+
columnDimension: "columnDimension";
|
80
|
+
}>>;
|
81
|
+
}, z.core.$strip>>>;
|
82
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
83
|
+
id: z.ZodString;
|
84
|
+
alias: z.ZodOptional<z.ZodString>;
|
85
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
87
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
88
|
+
number: "number";
|
89
|
+
percent: "percent";
|
90
|
+
permille: "permille";
|
91
|
+
scientific: "scientific";
|
92
|
+
}>>>;
|
93
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
94
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
95
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
99
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
100
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
101
|
+
morePrecision: "morePrecision";
|
102
|
+
lessPrecision: "lessPrecision";
|
103
|
+
}>>>;
|
104
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
105
|
+
floor: "floor";
|
106
|
+
ceil: "ceil";
|
107
|
+
expand: "expand";
|
108
|
+
trunc: "trunc";
|
109
|
+
halfCeil: "halfCeil";
|
110
|
+
halfFloor: "halfFloor";
|
111
|
+
halfExpand: "halfExpand";
|
112
|
+
halfTrunc: "halfTrunc";
|
113
|
+
halfEven: "halfEven";
|
114
|
+
}>>>;
|
115
|
+
}, z.core.$strip>>>;
|
116
|
+
}, z.core.$strip>>>;
|
117
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
118
|
+
theme: z.ZodOptional<z.ZodString>;
|
119
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
120
|
+
"zh-CN": "zh-CN";
|
121
|
+
"en-US": "en-US";
|
122
|
+
}>>>;
|
123
|
+
}, z.core.$strip>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 堆叠玫瑰图类型定义
|
6
7
|
* @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -43,7 +44,7 @@ export interface Rose {
|
|
43
44
|
* @type {Measures}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -89,59 +90,20 @@ export interface Rose {
|
|
89
90
|
export declare const zRose: z.ZodObject<{
|
90
91
|
chartType: z.ZodLiteral<"rose">;
|
91
92
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.
|
93
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
|
96
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
97
97
|
dimension: "dimension";
|
98
98
|
rowDimension: "rowDimension";
|
99
99
|
columnDimension: "columnDimension";
|
100
|
-
}
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
103
|
-
id: z.ZodString;
|
104
|
-
alias: z.ZodOptional<z.ZodString>;
|
105
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
106
|
-
id: z.ZodString;
|
107
|
-
alias: z.ZodOptional<z.ZodString>;
|
108
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
109
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
110
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
111
|
-
number: "number";
|
112
|
-
percent: "percent";
|
113
|
-
permille: "permille";
|
114
|
-
scientific: "scientific";
|
115
|
-
}>>>;
|
116
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
117
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
118
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
119
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
121
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
123
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
124
|
-
morePrecision: "morePrecision";
|
125
|
-
lessPrecision: "lessPrecision";
|
126
|
-
}>>>;
|
127
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
128
|
-
floor: "floor";
|
129
|
-
ceil: "ceil";
|
130
|
-
expand: "expand";
|
131
|
-
trunc: "trunc";
|
132
|
-
halfCeil: "halfCeil";
|
133
|
-
halfFloor: "halfFloor";
|
134
|
-
halfExpand: "halfExpand";
|
135
|
-
halfTrunc: "halfTrunc";
|
136
|
-
halfEven: "halfEven";
|
137
|
-
}>>>;
|
138
|
-
}, z.core.$strip>>>>;
|
139
|
-
}, z.core.$strip>]>>>;
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
100
|
+
}>>;
|
101
|
+
}, z.core.$strip>>>;
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
141
103
|
id: z.ZodString;
|
142
104
|
alias: z.ZodOptional<z.ZodString>;
|
143
|
-
autoFormat: z.
|
144
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
145
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
146
108
|
number: "number";
|
147
109
|
percent: "percent";
|
@@ -170,8 +132,8 @@ export declare const zRose: z.ZodObject<{
|
|
170
132
|
halfTrunc: "halfTrunc";
|
171
133
|
halfEven: "halfEven";
|
172
134
|
}>>>;
|
173
|
-
}, z.core.$strip
|
174
|
-
}, z.core.$strip>]
|
135
|
+
}, z.core.$strip>>>;
|
136
|
+
}, z.core.$strip>]>>>;
|
175
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
138
|
color: z.ZodOptional<z.ZodObject<{
|
177
139
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 分组玫瑰图类型定义
|
6
7
|
* @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -40,10 +41,10 @@ export interface RoseParallel {
|
|
40
41
|
/**
|
41
42
|
* 指标
|
42
43
|
* @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
44
|
+
* @type {MeasureTree}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -89,59 +90,20 @@ export interface RoseParallel {
|
|
89
90
|
export declare const zRoseParallel: z.ZodObject<{
|
90
91
|
chartType: z.ZodLiteral<"roseParallel">;
|
91
92
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.
|
93
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
|
96
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
97
97
|
dimension: "dimension";
|
98
98
|
rowDimension: "rowDimension";
|
99
99
|
columnDimension: "columnDimension";
|
100
|
-
}
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
103
|
-
id: z.ZodString;
|
104
|
-
alias: z.ZodOptional<z.ZodString>;
|
105
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
106
|
-
id: z.ZodString;
|
107
|
-
alias: z.ZodOptional<z.ZodString>;
|
108
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
109
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
110
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
111
|
-
number: "number";
|
112
|
-
percent: "percent";
|
113
|
-
permille: "permille";
|
114
|
-
scientific: "scientific";
|
115
|
-
}>>>;
|
116
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
117
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
118
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
119
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
121
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
123
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
124
|
-
morePrecision: "morePrecision";
|
125
|
-
lessPrecision: "lessPrecision";
|
126
|
-
}>>>;
|
127
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
128
|
-
floor: "floor";
|
129
|
-
ceil: "ceil";
|
130
|
-
expand: "expand";
|
131
|
-
trunc: "trunc";
|
132
|
-
halfCeil: "halfCeil";
|
133
|
-
halfFloor: "halfFloor";
|
134
|
-
halfExpand: "halfExpand";
|
135
|
-
halfTrunc: "halfTrunc";
|
136
|
-
halfEven: "halfEven";
|
137
|
-
}>>>;
|
138
|
-
}, z.core.$strip>>>>;
|
139
|
-
}, z.core.$strip>]>>>;
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
100
|
+
}>>;
|
101
|
+
}, z.core.$strip>>>;
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
141
103
|
id: z.ZodString;
|
142
104
|
alias: z.ZodOptional<z.ZodString>;
|
143
|
-
autoFormat: z.
|
144
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
145
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
146
108
|
number: "number";
|
147
109
|
percent: "percent";
|
@@ -170,8 +132,8 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
170
132
|
halfTrunc: "halfTrunc";
|
171
133
|
halfEven: "halfEven";
|
172
134
|
}>>>;
|
173
|
-
}, z.core.$strip
|
174
|
-
}, z.core.$strip>]
|
135
|
+
}, z.core.$strip>>>;
|
136
|
+
}, z.core.$strip>]>>>;
|
175
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
138
|
color: z.ZodOptional<z.ZodObject<{
|
177
139
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 散点图类型定义
|
@@ -38,10 +38,10 @@ export interface Scatter {
|
|
38
38
|
/**
|
39
39
|
* 指标
|
40
40
|
* @description 散点图的第一个指标字段会放至X轴, 其余指标会进行合并, 映射至Y轴
|
41
|
-
* @type {
|
41
|
+
* @type {DimensionTree}
|
42
42
|
* @example [{id: "value", alias: "数值"}]
|
43
43
|
*/
|
44
|
-
measures?:
|
44
|
+
measures?: MeasureTree;
|
45
45
|
/**
|
46
46
|
* 图表的背景颜色
|
47
47
|
* @default transparent 默认为透明背景
|
@@ -131,59 +131,20 @@ export interface Scatter {
|
|
131
131
|
export declare const zScatter: z.ZodObject<{
|
132
132
|
chartType: z.ZodLiteral<"scatter">;
|
133
133
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
134
|
-
dimensions: z.ZodOptional<z.
|
134
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
135
135
|
id: z.ZodString;
|
136
136
|
alias: z.ZodOptional<z.ZodString>;
|
137
|
-
|
138
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
137
|
+
location: z.ZodDefault<z.ZodEnum<{
|
139
138
|
dimension: "dimension";
|
140
139
|
rowDimension: "rowDimension";
|
141
140
|
columnDimension: "columnDimension";
|
142
|
-
}
|
143
|
-
}, z.core.$strip
|
144
|
-
measures: z.ZodOptional<z.
|
145
|
-
id: z.ZodString;
|
146
|
-
alias: z.ZodOptional<z.ZodString>;
|
147
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
148
|
-
id: z.ZodString;
|
149
|
-
alias: z.ZodOptional<z.ZodString>;
|
150
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
151
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
152
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
153
|
-
number: "number";
|
154
|
-
percent: "percent";
|
155
|
-
permille: "permille";
|
156
|
-
scientific: "scientific";
|
157
|
-
}>>>;
|
158
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
159
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
160
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
161
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
162
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
163
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
164
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
165
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
166
|
-
morePrecision: "morePrecision";
|
167
|
-
lessPrecision: "lessPrecision";
|
168
|
-
}>>>;
|
169
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
170
|
-
floor: "floor";
|
171
|
-
ceil: "ceil";
|
172
|
-
expand: "expand";
|
173
|
-
trunc: "trunc";
|
174
|
-
halfCeil: "halfCeil";
|
175
|
-
halfFloor: "halfFloor";
|
176
|
-
halfExpand: "halfExpand";
|
177
|
-
halfTrunc: "halfTrunc";
|
178
|
-
halfEven: "halfEven";
|
179
|
-
}>>>;
|
180
|
-
}, z.core.$strip>>>>;
|
181
|
-
}, z.core.$strip>]>>>;
|
182
|
-
}, z.core.$strip>, z.ZodObject<{
|
141
|
+
}>>;
|
142
|
+
}, z.core.$strip>>>;
|
143
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
183
144
|
id: z.ZodString;
|
184
145
|
alias: z.ZodOptional<z.ZodString>;
|
185
|
-
autoFormat: z.
|
186
|
-
format: z.
|
146
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
147
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
187
148
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
188
149
|
number: "number";
|
189
150
|
percent: "percent";
|
@@ -212,8 +173,8 @@ export declare const zScatter: z.ZodObject<{
|
|
212
173
|
halfTrunc: "halfTrunc";
|
213
174
|
halfEven: "halfEven";
|
214
175
|
}>>>;
|
215
|
-
}, z.core.$strip
|
216
|
-
}, z.core.$strip>]
|
176
|
+
}, z.core.$strip>>>;
|
177
|
+
}, z.core.$strip>]>>>;
|
217
178
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
218
179
|
color: z.ZodOptional<z.ZodObject<{
|
219
180
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from './table';
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Locale } from '../../i18n';
|
3
|
+
import type { DimensionTree, MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
|
3
5
|
/**
|
4
6
|
* 表格类型定义
|
5
7
|
* @description 表格,适用于详细数据展示场景,行列分明,便于查看具体数值
|
@@ -35,14 +37,14 @@ export interface Table {
|
|
35
37
|
* @type {Dimensions}
|
36
38
|
* @example [{id: "name", alias: "名称"}]
|
37
39
|
*/
|
38
|
-
dimensions?:
|
40
|
+
dimensions?: DimensionTree;
|
39
41
|
/**
|
40
42
|
* 指标
|
41
43
|
* @description 表格的每个指标会对应一行, 并且天生支持指标组合.
|
42
44
|
* @type {Measures}
|
43
45
|
* @example [{id: "value", alias: "数值"}]
|
44
46
|
*/
|
45
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
46
48
|
/**
|
47
49
|
* 图表的背景颜色
|
48
50
|
* @default transparent 默认为透明背景
|
@@ -65,3 +67,57 @@ export interface Table {
|
|
65
67
|
*/
|
66
68
|
locale?: Locale;
|
67
69
|
}
|
70
|
+
export declare const zTable: z.ZodObject<{
|
71
|
+
chartType: z.ZodLiteral<"table">;
|
72
|
+
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
73
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
74
|
+
id: z.ZodString;
|
75
|
+
alias: z.ZodOptional<z.ZodString>;
|
76
|
+
location: z.ZodDefault<z.ZodEnum<{
|
77
|
+
dimension: "dimension";
|
78
|
+
rowDimension: "rowDimension";
|
79
|
+
columnDimension: "columnDimension";
|
80
|
+
}>>;
|
81
|
+
}, z.core.$strip>>>;
|
82
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
83
|
+
id: z.ZodString;
|
84
|
+
alias: z.ZodOptional<z.ZodString>;
|
85
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
87
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
88
|
+
number: "number";
|
89
|
+
percent: "percent";
|
90
|
+
permille: "permille";
|
91
|
+
scientific: "scientific";
|
92
|
+
}>>>;
|
93
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
94
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
95
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
99
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
100
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
101
|
+
morePrecision: "morePrecision";
|
102
|
+
lessPrecision: "lessPrecision";
|
103
|
+
}>>>;
|
104
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
105
|
+
floor: "floor";
|
106
|
+
ceil: "ceil";
|
107
|
+
expand: "expand";
|
108
|
+
trunc: "trunc";
|
109
|
+
halfCeil: "halfCeil";
|
110
|
+
halfFloor: "halfFloor";
|
111
|
+
halfExpand: "halfExpand";
|
112
|
+
halfTrunc: "halfTrunc";
|
113
|
+
halfEven: "halfEven";
|
114
|
+
}>>>;
|
115
|
+
}, z.core.$strip>>>;
|
116
|
+
}, z.core.$strip>]>>>;
|
117
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
118
|
+
theme: z.ZodOptional<z.ZodString>;
|
119
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
120
|
+
"zh-CN": "zh-CN";
|
121
|
+
"en-US": "en-US";
|
122
|
+
}>>>;
|
123
|
+
}, z.core.$strip>;
|
@@ -1,4 +1,28 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const zTableConfig: z.ZodObject<{
|
3
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
4
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
5
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
6
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
7
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
8
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
9
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
10
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
11
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
12
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
13
|
+
}, z.core.$strip>;
|
14
|
+
export declare const zPivotTableConfig: z.ZodObject<{
|
15
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
16
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
17
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
18
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
19
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
20
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
21
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
22
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
23
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
24
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
25
|
+
}, z.core.$strip>;
|
2
26
|
export declare const zLineConfig: z.ZodObject<{
|
3
27
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
4
28
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -1939,8 +1963,30 @@ export declare const zFunnelConfig: z.ZodObject<{
|
|
1939
1963
|
}, z.core.$strip>>;
|
1940
1964
|
}, z.core.$strip>;
|
1941
1965
|
export declare const zConfig: z.ZodObject<{
|
1942
|
-
table: z.ZodOptional<z.ZodObject<{
|
1943
|
-
|
1966
|
+
table: z.ZodOptional<z.ZodObject<{
|
1967
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
1968
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
1969
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
1970
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1971
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1972
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
1973
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
1974
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
1975
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
1976
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
1977
|
+
}, z.core.$strip>>;
|
1978
|
+
pivotTable: z.ZodOptional<z.ZodObject<{
|
1979
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
1980
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
1981
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
1982
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1983
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1984
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
1985
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
1986
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
1987
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
1988
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
1989
|
+
}, z.core.$strip>>;
|
1944
1990
|
line: z.ZodOptional<z.ZodObject<{
|
1945
1991
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
1946
1992
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -3881,6 +3927,8 @@ export declare const zConfig: z.ZodObject<{
|
|
3881
3927
|
}, z.core.$strip>>;
|
3882
3928
|
}, z.core.$strip>>;
|
3883
3929
|
}, z.core.$strip>;
|
3930
|
+
export type TableConfig = z.infer<typeof zTableConfig>;
|
3931
|
+
export type PivotTableConfig = z.infer<typeof zPivotTableConfig>;
|
3884
3932
|
export type LineConfig = z.infer<typeof zLineConfig>;
|
3885
3933
|
export type ColumnConfig = z.infer<typeof zColumnConfig>;
|
3886
3934
|
export type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>;
|