@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,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 柱状图类型定义
|
@@ -40,10 +40,10 @@ export interface Column {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: "value", alias: "数值"}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,59 +139,20 @@ export interface Column {
|
|
139
139
|
export declare const zColumn: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"column">;
|
141
141
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
142
|
-
dimensions: z.ZodOptional<z.
|
142
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
143
143
|
id: z.ZodString;
|
144
144
|
alias: z.ZodOptional<z.ZodString>;
|
145
|
-
|
146
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
|
+
location: z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
|
-
}
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
153
|
-
id: z.ZodString;
|
154
|
-
alias: z.ZodOptional<z.ZodString>;
|
155
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
156
|
-
id: z.ZodString;
|
157
|
-
alias: z.ZodOptional<z.ZodString>;
|
158
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
159
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
160
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
161
|
-
number: "number";
|
162
|
-
percent: "percent";
|
163
|
-
permille: "permille";
|
164
|
-
scientific: "scientific";
|
165
|
-
}>>>;
|
166
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
167
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
168
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
169
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
170
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
171
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
172
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
173
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
|
-
morePrecision: "morePrecision";
|
175
|
-
lessPrecision: "lessPrecision";
|
176
|
-
}>>>;
|
177
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
178
|
-
floor: "floor";
|
179
|
-
ceil: "ceil";
|
180
|
-
expand: "expand";
|
181
|
-
trunc: "trunc";
|
182
|
-
halfCeil: "halfCeil";
|
183
|
-
halfFloor: "halfFloor";
|
184
|
-
halfExpand: "halfExpand";
|
185
|
-
halfTrunc: "halfTrunc";
|
186
|
-
halfEven: "halfEven";
|
187
|
-
}>>>;
|
188
|
-
}, z.core.$strip>>>>;
|
189
|
-
}, z.core.$strip>]>>>;
|
190
|
-
}, z.core.$strip>, z.ZodObject<{
|
149
|
+
}>>;
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
191
152
|
id: z.ZodString;
|
192
153
|
alias: z.ZodOptional<z.ZodString>;
|
193
|
-
autoFormat: z.
|
194
|
-
format: z.
|
154
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
155
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
195
156
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
196
157
|
number: "number";
|
197
158
|
percent: "percent";
|
@@ -220,8 +181,8 @@ export declare const zColumn: z.ZodObject<{
|
|
220
181
|
halfTrunc: "halfTrunc";
|
221
182
|
halfEven: "halfEven";
|
222
183
|
}>>>;
|
223
|
-
}, z.core.$strip
|
224
|
-
}, z.core.$strip>]
|
184
|
+
}, z.core.$strip>>>;
|
185
|
+
}, z.core.$strip>]>>>;
|
225
186
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
187
|
color: z.ZodOptional<z.ZodObject<{
|
227
188
|
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, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 并列柱状图类型定义
|
@@ -40,10 +40,10 @@ export interface ColumnParallel {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 并列柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,59 +139,20 @@ export interface ColumnParallel {
|
|
139
139
|
export declare const zColumnParallel: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"columnParallel">;
|
141
141
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
142
|
-
dimensions: z.ZodOptional<z.
|
142
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
143
143
|
id: z.ZodString;
|
144
144
|
alias: z.ZodOptional<z.ZodString>;
|
145
|
-
|
146
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
|
+
location: z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
|
-
}
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
153
|
-
id: z.ZodString;
|
154
|
-
alias: z.ZodOptional<z.ZodString>;
|
155
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
156
|
-
id: z.ZodString;
|
157
|
-
alias: z.ZodOptional<z.ZodString>;
|
158
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
159
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
160
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
161
|
-
number: "number";
|
162
|
-
percent: "percent";
|
163
|
-
permille: "permille";
|
164
|
-
scientific: "scientific";
|
165
|
-
}>>>;
|
166
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
167
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
168
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
169
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
170
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
171
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
172
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
173
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
|
-
morePrecision: "morePrecision";
|
175
|
-
lessPrecision: "lessPrecision";
|
176
|
-
}>>>;
|
177
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
178
|
-
floor: "floor";
|
179
|
-
ceil: "ceil";
|
180
|
-
expand: "expand";
|
181
|
-
trunc: "trunc";
|
182
|
-
halfCeil: "halfCeil";
|
183
|
-
halfFloor: "halfFloor";
|
184
|
-
halfExpand: "halfExpand";
|
185
|
-
halfTrunc: "halfTrunc";
|
186
|
-
halfEven: "halfEven";
|
187
|
-
}>>>;
|
188
|
-
}, z.core.$strip>>>>;
|
189
|
-
}, z.core.$strip>]>>>;
|
190
|
-
}, z.core.$strip>, z.ZodObject<{
|
149
|
+
}>>;
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
191
152
|
id: z.ZodString;
|
192
153
|
alias: z.ZodOptional<z.ZodString>;
|
193
|
-
autoFormat: z.
|
194
|
-
format: z.
|
154
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
155
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
195
156
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
196
157
|
number: "number";
|
197
158
|
percent: "percent";
|
@@ -220,8 +181,8 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
220
181
|
halfTrunc: "halfTrunc";
|
221
182
|
halfEven: "halfEven";
|
222
183
|
}>>>;
|
223
|
-
}, z.core.$strip
|
224
|
-
}, z.core.$strip>]
|
184
|
+
}, z.core.$strip>>>;
|
185
|
+
}, z.core.$strip>]>>>;
|
225
186
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
187
|
color: z.ZodOptional<z.ZodObject<{
|
227
188
|
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, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 百分比柱状图类型定义
|
@@ -40,10 +40,10 @@ export interface ColumnPercent {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 百分比柱状图指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
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 默认为透明背景
|
@@ -139,59 +139,20 @@ export interface ColumnPercent {
|
|
139
139
|
export declare const zColumnPercent: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"columnPercent">;
|
141
141
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
142
|
-
dimensions: z.ZodOptional<z.
|
142
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
143
143
|
id: z.ZodString;
|
144
144
|
alias: z.ZodOptional<z.ZodString>;
|
145
|
-
|
146
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
|
+
location: z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
|
-
}
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
153
|
-
id: z.ZodString;
|
154
|
-
alias: z.ZodOptional<z.ZodString>;
|
155
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
156
|
-
id: z.ZodString;
|
157
|
-
alias: z.ZodOptional<z.ZodString>;
|
158
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
159
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
160
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
161
|
-
number: "number";
|
162
|
-
percent: "percent";
|
163
|
-
permille: "permille";
|
164
|
-
scientific: "scientific";
|
165
|
-
}>>>;
|
166
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
167
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
168
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
169
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
170
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
171
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
172
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
173
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
|
-
morePrecision: "morePrecision";
|
175
|
-
lessPrecision: "lessPrecision";
|
176
|
-
}>>>;
|
177
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
178
|
-
floor: "floor";
|
179
|
-
ceil: "ceil";
|
180
|
-
expand: "expand";
|
181
|
-
trunc: "trunc";
|
182
|
-
halfCeil: "halfCeil";
|
183
|
-
halfFloor: "halfFloor";
|
184
|
-
halfExpand: "halfExpand";
|
185
|
-
halfTrunc: "halfTrunc";
|
186
|
-
halfEven: "halfEven";
|
187
|
-
}>>>;
|
188
|
-
}, z.core.$strip>>>>;
|
189
|
-
}, z.core.$strip>]>>>;
|
190
|
-
}, z.core.$strip>, z.ZodObject<{
|
149
|
+
}>>;
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
191
152
|
id: z.ZodString;
|
192
153
|
alias: z.ZodOptional<z.ZodString>;
|
193
|
-
autoFormat: z.
|
194
|
-
format: z.
|
154
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
155
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
195
156
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
196
157
|
number: "number";
|
197
158
|
percent: "percent";
|
@@ -220,8 +181,8 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
220
181
|
halfTrunc: "halfTrunc";
|
221
182
|
halfEven: "halfEven";
|
222
183
|
}>>>;
|
223
|
-
}, z.core.$strip
|
224
|
-
}, z.core.$strip>]
|
184
|
+
}, z.core.$strip>>>;
|
185
|
+
}, z.core.$strip>]>>>;
|
225
186
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
187
|
color: z.ZodOptional<z.ZodObject<{
|
227
188
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -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 Donut {
|
|
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 Donut {
|
|
89
89
|
export declare const zDonut: z.ZodObject<{
|
90
90
|
chartType: z.ZodLiteral<"donut">;
|
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 zDonut: 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,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
3
3
|
/**
|
4
4
|
* 双轴图类型定义
|
5
5
|
* @description 双轴图,适用于展示两个不同量级或不同单位指标的对比关系,包含主坐标轴和次坐标轴
|
@@ -41,10 +41,10 @@ export interface DualAxis {
|
|
41
41
|
/**
|
42
42
|
* 指标
|
43
43
|
* @description 双轴图如果有2组指标组, 则每个组内的所有指标分别自动合并为一个指标, 分别映射到双轴图的左右轴, 如果指标不成组, 则会当作一组指标处理.
|
44
|
-
* @type {
|
44
|
+
* @type {DimensionTree}
|
45
45
|
* @example [{id: 'value', alias: '数值', axis: 'left'}, {id: 'growth', alias: '增长率', axis: 'right', format: 'percent'}]
|
46
46
|
*/
|
47
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
48
48
|
/**
|
49
49
|
* 图表的背景颜色
|
50
50
|
* @default transparent 默认为透明背景
|
@@ -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 漏斗图,用于展示单一维度数据的占比关系
|
@@ -39,10 +39,10 @@ export interface Funnel {
|
|
39
39
|
/**
|
40
40
|
* 指标
|
41
41
|
* @description 漏斗图的所有指标会自动合并为一个指标, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
42
|
-
* @type {
|
42
|
+
* @type {DimensionTree}
|
43
43
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
44
44
|
*/
|
45
|
-
measures?:
|
45
|
+
measures?: MeasureTree;
|
46
46
|
/**
|
47
47
|
* 图表的背景颜色
|
48
48
|
* @default transparent 默认为透明背景
|
@@ -88,59 +88,20 @@ export interface Funnel {
|
|
88
88
|
export declare const zFunnel: z.ZodObject<{
|
89
89
|
chartType: z.ZodLiteral<"funnel">;
|
90
90
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
91
|
-
dimensions: z.ZodOptional<z.
|
91
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
92
92
|
id: z.ZodString;
|
93
93
|
alias: z.ZodOptional<z.ZodString>;
|
94
|
-
|
95
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
94
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
95
|
dimension: "dimension";
|
97
96
|
rowDimension: "rowDimension";
|
98
97
|
columnDimension: "columnDimension";
|
99
|
-
}
|
100
|
-
}, z.core.$strip
|
101
|
-
measures: z.ZodOptional<z.
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
105
|
-
id: z.ZodString;
|
106
|
-
alias: z.ZodOptional<z.ZodString>;
|
107
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
108
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
|
-
number: "number";
|
111
|
-
percent: "percent";
|
112
|
-
permille: "permille";
|
113
|
-
scientific: "scientific";
|
114
|
-
}>>>;
|
115
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
116
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
-
morePrecision: "morePrecision";
|
124
|
-
lessPrecision: "lessPrecision";
|
125
|
-
}>>>;
|
126
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
127
|
-
floor: "floor";
|
128
|
-
ceil: "ceil";
|
129
|
-
expand: "expand";
|
130
|
-
trunc: "trunc";
|
131
|
-
halfCeil: "halfCeil";
|
132
|
-
halfFloor: "halfFloor";
|
133
|
-
halfExpand: "halfExpand";
|
134
|
-
halfTrunc: "halfTrunc";
|
135
|
-
halfEven: "halfEven";
|
136
|
-
}>>>;
|
137
|
-
}, z.core.$strip>>>>;
|
138
|
-
}, z.core.$strip>]>>>;
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
98
|
+
}>>;
|
99
|
+
}, z.core.$strip>>>;
|
100
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
101
|
id: z.ZodString;
|
141
102
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
103
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
104
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
105
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
106
|
number: "number";
|
146
107
|
percent: "percent";
|
@@ -169,8 +130,8 @@ export declare const zFunnel: z.ZodObject<{
|
|
169
130
|
halfTrunc: "halfTrunc";
|
170
131
|
halfEven: "halfEven";
|
171
132
|
}>>>;
|
172
|
-
}, z.core.$strip
|
173
|
-
}, z.core.$strip>]
|
133
|
+
}, z.core.$strip>>>;
|
134
|
+
}, z.core.$strip>]>>>;
|
174
135
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
136
|
color: z.ZodOptional<z.ZodObject<{
|
176
137
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export type * from './dualAxis';
|
1
|
+
export * from './table';
|
2
|
+
export * from './pivotTable';
|
4
3
|
export * from './line';
|
5
4
|
export * from './column';
|
6
5
|
export * from './columnParallel';
|
@@ -16,3 +15,4 @@ export * from './pie';
|
|
16
15
|
export * from './donut';
|
17
16
|
export * from './scatter';
|
18
17
|
export * from './funnel';
|
18
|
+
export type * from './dualAxis';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 折线图类型定义
|
@@ -40,10 +40,10 @@ export interface Line {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 折线图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: "value", alias: "数值"}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -142,59 +142,20 @@ export interface Line {
|
|
142
142
|
export declare const zLine: z.ZodObject<{
|
143
143
|
chartType: z.ZodLiteral<"line">;
|
144
144
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
145
|
-
dimensions: z.ZodOptional<z.
|
145
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
146
146
|
id: z.ZodString;
|
147
147
|
alias: z.ZodOptional<z.ZodString>;
|
148
|
-
|
149
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
148
|
+
location: z.ZodDefault<z.ZodEnum<{
|
150
149
|
dimension: "dimension";
|
151
150
|
rowDimension: "rowDimension";
|
152
151
|
columnDimension: "columnDimension";
|
153
|
-
}
|
154
|
-
}, z.core.$strip
|
155
|
-
measures: z.ZodOptional<z.
|
156
|
-
id: z.ZodString;
|
157
|
-
alias: z.ZodOptional<z.ZodString>;
|
158
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
159
|
-
id: z.ZodString;
|
160
|
-
alias: z.ZodOptional<z.ZodString>;
|
161
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
162
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
163
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
164
|
-
number: "number";
|
165
|
-
percent: "percent";
|
166
|
-
permille: "permille";
|
167
|
-
scientific: "scientific";
|
168
|
-
}>>>;
|
169
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
170
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
171
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
172
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
173
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
174
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
175
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
176
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
177
|
-
morePrecision: "morePrecision";
|
178
|
-
lessPrecision: "lessPrecision";
|
179
|
-
}>>>;
|
180
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
181
|
-
floor: "floor";
|
182
|
-
ceil: "ceil";
|
183
|
-
expand: "expand";
|
184
|
-
trunc: "trunc";
|
185
|
-
halfCeil: "halfCeil";
|
186
|
-
halfFloor: "halfFloor";
|
187
|
-
halfExpand: "halfExpand";
|
188
|
-
halfTrunc: "halfTrunc";
|
189
|
-
halfEven: "halfEven";
|
190
|
-
}>>>;
|
191
|
-
}, z.core.$strip>>>>;
|
192
|
-
}, z.core.$strip>]>>>;
|
193
|
-
}, z.core.$strip>, z.ZodObject<{
|
152
|
+
}>>;
|
153
|
+
}, z.core.$strip>>>;
|
154
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
194
155
|
id: z.ZodString;
|
195
156
|
alias: z.ZodOptional<z.ZodString>;
|
196
|
-
autoFormat: z.
|
197
|
-
format: z.
|
157
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
158
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
198
159
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
199
160
|
number: "number";
|
200
161
|
percent: "percent";
|
@@ -223,8 +184,8 @@ export declare const zLine: z.ZodObject<{
|
|
223
184
|
halfTrunc: "halfTrunc";
|
224
185
|
halfEven: "halfEven";
|
225
186
|
}>>>;
|
226
|
-
}, z.core.$strip
|
227
|
-
}, z.core.$strip>]
|
187
|
+
}, z.core.$strip>>>;
|
188
|
+
}, z.core.$strip>]>>>;
|
228
189
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
229
190
|
color: z.ZodOptional<z.ZodObject<{
|
230
191
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|