@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
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, DimensionTree, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 百分比面积图类型定义
|
@@ -40,10 +40,10 @@ export interface AreaPercent {
|
|
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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -151,17 +151,16 @@ export interface AreaPercent {
|
|
151
151
|
export declare const zAreaPercent: z.ZodObject<{
|
152
152
|
chartType: z.ZodLiteral<"areaPercent">;
|
153
153
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
154
|
-
dimensions: z.ZodOptional<z.
|
154
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
155
155
|
id: z.ZodString;
|
156
156
|
alias: z.ZodOptional<z.ZodString>;
|
157
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
158
157
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
159
158
|
dimension: "dimension";
|
160
159
|
rowDimension: "rowDimension";
|
161
160
|
columnDimension: "columnDimension";
|
162
161
|
}>>>;
|
163
|
-
}, z.core.$strip
|
164
|
-
measures: z.ZodOptional<z.
|
162
|
+
}, z.core.$strip>>>;
|
163
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
165
164
|
id: z.ZodString;
|
166
165
|
alias: z.ZodOptional<z.ZodString>;
|
167
166
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -233,7 +232,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
233
232
|
halfEven: "halfEven";
|
234
233
|
}>>>;
|
235
234
|
}, z.core.$strip>>>>;
|
236
|
-
}, z.core.$strip>]
|
235
|
+
}, z.core.$strip>]>>>;
|
237
236
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
238
237
|
color: z.ZodOptional<z.ZodObject<{
|
239
238
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type Locale } from '../../i18n';
|
2
|
-
import { type AnnotationArea, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type BarStyle, type Color, type CrosshairRect, type Dataset, type Dimensions, type Label, type Legend, type
|
2
|
+
import { type AnnotationArea, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type BarStyle, type Color, type CrosshairRect, type Dataset, type Dimensions, type Label, type Legend, type DimensionTree, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 条形图类型定义
|
@@ -40,10 +40,10 @@ export interface Bar {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 条形图指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: "value", alias: "数值"}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ export interface Bar {
|
|
139
139
|
export declare const zBar: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"bar">;
|
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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zBar: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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 { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, DimensionTree, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 并列条形图类型定义
|
6
6
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -40,10 +40,10 @@ export interface BarParallel {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 并列条形图指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ export interface BarParallel {
|
|
139
139
|
export declare const zBarParallel: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"barParallel">;
|
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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zBarParallel: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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 { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, DimensionTree, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 百分比条形图类型定义
|
6
6
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -40,10 +40,10 @@ export interface BarPercent {
|
|
40
40
|
/**
|
41
41
|
* 指标
|
42
42
|
* @description 指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
43
|
+
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ export interface BarPercent {
|
|
139
139
|
export declare const zBarPercent: z.ZodObject<{
|
140
140
|
chartType: z.ZodLiteral<"barPercent">;
|
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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zBarPercent: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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, DimensionTree, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zColumn: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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, DimensionTree, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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, DimensionTree, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,17 +139,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
145
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
146
|
dimension: "dimension";
|
148
147
|
rowDimension: "rowDimension";
|
149
148
|
columnDimension: "columnDimension";
|
150
149
|
}>>>;
|
151
|
-
}, z.core.$strip
|
152
|
-
measures: z.ZodOptional<z.
|
150
|
+
}, z.core.$strip>>>;
|
151
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
153
152
|
id: z.ZodString;
|
154
153
|
alias: z.ZodOptional<z.ZodString>;
|
155
154
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -221,7 +220,7 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
221
220
|
halfEven: "halfEven";
|
222
221
|
}>>>;
|
223
222
|
}, z.core.$strip>>>>;
|
224
|
-
}, z.core.$strip>]
|
223
|
+
}, z.core.$strip>]>>>;
|
225
224
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
225
|
color: z.ZodOptional<z.ZodObject<{
|
227
226
|
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, DimensionTree, 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -89,17 +89,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
95
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
97
96
|
dimension: "dimension";
|
98
97
|
rowDimension: "rowDimension";
|
99
98
|
columnDimension: "columnDimension";
|
100
99
|
}>>>;
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
100
|
+
}, z.core.$strip>>>;
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
103
102
|
id: z.ZodString;
|
104
103
|
alias: z.ZodOptional<z.ZodString>;
|
105
104
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -171,7 +170,7 @@ export declare const zDonut: z.ZodObject<{
|
|
171
170
|
halfEven: "halfEven";
|
172
171
|
}>>>;
|
173
172
|
}, z.core.$strip>>>>;
|
174
|
-
}, z.core.$strip>]
|
173
|
+
}, z.core.$strip>]>>>;
|
175
174
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
175
|
color: z.ZodOptional<z.ZodObject<{
|
177
176
|
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, DimensionTree, 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?: DimensionTree;
|
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, DimensionTree, 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?: DimensionTree;
|
46
46
|
/**
|
47
47
|
* 图表的背景颜色
|
48
48
|
* @default transparent 默认为透明背景
|
@@ -88,17 +88,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
95
94
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
96
95
|
dimension: "dimension";
|
97
96
|
rowDimension: "rowDimension";
|
98
97
|
columnDimension: "columnDimension";
|
99
98
|
}>>>;
|
100
|
-
}, z.core.$strip
|
101
|
-
measures: z.ZodOptional<z.
|
99
|
+
}, z.core.$strip>>>;
|
100
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
102
101
|
id: z.ZodString;
|
103
102
|
alias: z.ZodOptional<z.ZodString>;
|
104
103
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -170,7 +169,7 @@ export declare const zFunnel: z.ZodObject<{
|
|
170
169
|
halfEven: "halfEven";
|
171
170
|
}>>>;
|
172
171
|
}, z.core.$strip>>>>;
|
173
|
-
}, z.core.$strip>]
|
172
|
+
}, z.core.$strip>]>>>;
|
174
173
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
174
|
color: z.ZodOptional<z.ZodObject<{
|
176
175
|
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, DimensionTree, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis } 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -142,17 +142,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
149
148
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
150
149
|
dimension: "dimension";
|
151
150
|
rowDimension: "rowDimension";
|
152
151
|
columnDimension: "columnDimension";
|
153
152
|
}>>>;
|
154
|
-
}, z.core.$strip
|
155
|
-
measures: z.ZodOptional<z.
|
153
|
+
}, z.core.$strip>>>;
|
154
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
156
155
|
id: z.ZodString;
|
157
156
|
alias: z.ZodOptional<z.ZodString>;
|
158
157
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -224,7 +223,7 @@ export declare const zLine: z.ZodObject<{
|
|
224
223
|
halfEven: "halfEven";
|
225
224
|
}>>>;
|
226
225
|
}, z.core.$strip>>>>;
|
227
|
-
}, z.core.$strip>]
|
226
|
+
}, z.core.$strip>]>>>;
|
228
227
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
229
228
|
color: z.ZodOptional<z.ZodObject<{
|
230
229
|
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, DimensionTree, 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?: DimensionTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -89,17 +89,16 @@ 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
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
95
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
97
96
|
dimension: "dimension";
|
98
97
|
rowDimension: "rowDimension";
|
99
98
|
columnDimension: "columnDimension";
|
100
99
|
}>>>;
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
100
|
+
}, z.core.$strip>>>;
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
103
102
|
id: z.ZodString;
|
104
103
|
alias: z.ZodOptional<z.ZodString>;
|
105
104
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -171,7 +170,7 @@ export declare const zPie: z.ZodObject<{
|
|
171
170
|
halfEven: "halfEven";
|
172
171
|
}>>>;
|
173
172
|
}, z.core.$strip>>>>;
|
174
|
-
}, z.core.$strip>]
|
173
|
+
}, z.core.$strip>]>>>;
|
175
174
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
175
|
color: z.ZodOptional<z.ZodObject<{
|
177
176
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from './pivotTable';
|