@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
@@ -36,59 +36,20 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
36
36
|
groupName: z.ZodString;
|
37
37
|
}, z.core.$strip>;
|
38
38
|
}, z.core.$strip>>;
|
39
|
-
dimensions: z.
|
39
|
+
dimensions: z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").DimensionGroup, unknown, z.core.$ZodTypeInternals<import("./properties").DimensionGroup, unknown>>, z.ZodObject<{
|
40
40
|
id: z.ZodString;
|
41
41
|
alias: z.ZodOptional<z.ZodString>;
|
42
|
-
|
43
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
42
|
+
location: z.ZodDefault<z.ZodEnum<{
|
44
43
|
dimension: "dimension";
|
45
44
|
rowDimension: "rowDimension";
|
46
45
|
columnDimension: "columnDimension";
|
47
|
-
}
|
48
|
-
}, z.core.$strip
|
49
|
-
measures: z.
|
46
|
+
}>>;
|
47
|
+
}, z.core.$strip>]>>;
|
48
|
+
measures: z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("./properties").MeasureGroup, unknown>>, z.ZodObject<{
|
50
49
|
id: z.ZodString;
|
51
50
|
alias: z.ZodOptional<z.ZodString>;
|
52
|
-
|
53
|
-
|
54
|
-
alias: z.ZodOptional<z.ZodString>;
|
55
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
56
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
57
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
58
|
-
number: "number";
|
59
|
-
percent: "percent";
|
60
|
-
permille: "permille";
|
61
|
-
scientific: "scientific";
|
62
|
-
}>>>;
|
63
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
64
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
65
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
66
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
67
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
68
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
69
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
70
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
71
|
-
morePrecision: "morePrecision";
|
72
|
-
lessPrecision: "lessPrecision";
|
73
|
-
}>>>;
|
74
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
75
|
-
floor: "floor";
|
76
|
-
ceil: "ceil";
|
77
|
-
expand: "expand";
|
78
|
-
trunc: "trunc";
|
79
|
-
halfCeil: "halfCeil";
|
80
|
-
halfFloor: "halfFloor";
|
81
|
-
halfExpand: "halfExpand";
|
82
|
-
halfTrunc: "halfTrunc";
|
83
|
-
halfEven: "halfEven";
|
84
|
-
}>>>;
|
85
|
-
}, z.core.$strip>>>>;
|
86
|
-
}, z.core.$strip>]>>>;
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
88
|
-
id: z.ZodString;
|
89
|
-
alias: z.ZodOptional<z.ZodString>;
|
90
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
91
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
51
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
52
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
92
53
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
93
54
|
number: "number";
|
94
55
|
percent: "percent";
|
@@ -117,8 +78,8 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
117
78
|
halfTrunc: "halfTrunc";
|
118
79
|
halfEven: "halfEven";
|
119
80
|
}>>>;
|
120
|
-
}, z.core.$strip
|
121
|
-
}, z.core.$strip>]
|
81
|
+
}, z.core.$strip>>>;
|
82
|
+
}, z.core.$strip>]>>;
|
122
83
|
encoding: z.ZodArray<z.ZodObject<{
|
123
84
|
x: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
124
85
|
y: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -130,8 +91,30 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
130
91
|
size: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
131
92
|
}, z.core.$strip>>;
|
132
93
|
config: z.ZodObject<{
|
133
|
-
table: z.ZodOptional<z.ZodObject<{
|
134
|
-
|
94
|
+
table: z.ZodOptional<z.ZodObject<{
|
95
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
96
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
97
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
98
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
99
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
100
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
101
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
102
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
103
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
104
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
105
|
+
}, z.core.$strip>>;
|
106
|
+
pivotTable: z.ZodOptional<z.ZodObject<{
|
107
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
108
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
109
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
110
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
111
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
112
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
113
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
114
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
115
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
116
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
117
|
+
}, z.core.$strip>>;
|
135
118
|
line: z.ZodOptional<z.ZodObject<{
|
136
119
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
137
120
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -2695,8 +2678,30 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
2695
2678
|
}, z.core.$strip>;
|
2696
2679
|
customTheme: z.ZodObject<{
|
2697
2680
|
config: z.ZodOptional<z.ZodObject<{
|
2698
|
-
table: z.ZodOptional<z.ZodObject<{
|
2699
|
-
|
2681
|
+
table: z.ZodOptional<z.ZodObject<{
|
2682
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
2683
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
2684
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
2685
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
2686
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
2687
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
2688
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
2689
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
2690
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
2691
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
2692
|
+
}, z.core.$strip>>;
|
2693
|
+
pivotTable: z.ZodOptional<z.ZodObject<{
|
2694
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
2695
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
2696
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
2697
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
2698
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
2699
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
2700
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
2701
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
2702
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
2703
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
2704
|
+
}, z.core.$strip>>;
|
2700
2705
|
line: z.ZodOptional<z.ZodObject<{
|
2701
2706
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
2702
2707
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -11,6 +11,7 @@ export interface VSeedBuilder {
|
|
11
11
|
getSpecPipeline: (chartType: ChartType) => SpecPipeline;
|
12
12
|
getTheme: (themeKey: string) => CustomThemeConfig;
|
13
13
|
getThemeMap: () => Record<string, CustomThemeConfig>;
|
14
|
+
getColorItems: () => string[];
|
14
15
|
get spec(): Spec | null;
|
15
16
|
set spec(value: Spec | null);
|
16
17
|
get vseed(): VSeed;
|
@@ -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, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 面积图类型定义
|
@@ -41,10 +41,10 @@ export interface Area {
|
|
41
41
|
/**
|
42
42
|
* 指标
|
43
43
|
* @description 面积图的指标会自动合并为一个指标, 映射到Y轴, 指标名称会与其余维度合并, 作为图例项展示.
|
44
|
-
* @type {
|
44
|
+
* @type {DimensionTree}
|
45
45
|
* @example [{id: 'value', alias: '数值'}]
|
46
46
|
*/
|
47
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
48
48
|
/**
|
49
49
|
* 图表的背景颜色
|
50
50
|
* @default transparent 默认为透明背景
|
@@ -152,59 +152,20 @@ export interface Area {
|
|
152
152
|
export declare const zArea: z.ZodObject<{
|
153
153
|
chartType: z.ZodLiteral<"area">;
|
154
154
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
155
|
-
dimensions: z.ZodOptional<z.
|
155
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
156
156
|
id: z.ZodString;
|
157
157
|
alias: z.ZodOptional<z.ZodString>;
|
158
|
-
|
159
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
158
|
+
location: z.ZodDefault<z.ZodEnum<{
|
160
159
|
dimension: "dimension";
|
161
160
|
rowDimension: "rowDimension";
|
162
161
|
columnDimension: "columnDimension";
|
163
|
-
}
|
164
|
-
}, z.core.$strip
|
165
|
-
measures: z.ZodOptional<z.
|
166
|
-
id: z.ZodString;
|
167
|
-
alias: z.ZodOptional<z.ZodString>;
|
168
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
169
|
-
id: z.ZodString;
|
170
|
-
alias: z.ZodOptional<z.ZodString>;
|
171
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
172
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
173
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
|
-
number: "number";
|
175
|
-
percent: "percent";
|
176
|
-
permille: "permille";
|
177
|
-
scientific: "scientific";
|
178
|
-
}>>>;
|
179
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
180
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
181
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
182
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
183
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
184
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
185
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
186
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
187
|
-
morePrecision: "morePrecision";
|
188
|
-
lessPrecision: "lessPrecision";
|
189
|
-
}>>>;
|
190
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
191
|
-
floor: "floor";
|
192
|
-
ceil: "ceil";
|
193
|
-
expand: "expand";
|
194
|
-
trunc: "trunc";
|
195
|
-
halfCeil: "halfCeil";
|
196
|
-
halfFloor: "halfFloor";
|
197
|
-
halfExpand: "halfExpand";
|
198
|
-
halfTrunc: "halfTrunc";
|
199
|
-
halfEven: "halfEven";
|
200
|
-
}>>>;
|
201
|
-
}, z.core.$strip>>>>;
|
202
|
-
}, z.core.$strip>]>>>;
|
203
|
-
}, z.core.$strip>, z.ZodObject<{
|
162
|
+
}>>;
|
163
|
+
}, z.core.$strip>>>;
|
164
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
204
165
|
id: z.ZodString;
|
205
166
|
alias: z.ZodOptional<z.ZodString>;
|
206
|
-
autoFormat: z.
|
207
|
-
format: z.
|
167
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
168
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
208
169
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
209
170
|
number: "number";
|
210
171
|
percent: "percent";
|
@@ -233,8 +194,8 @@ export declare const zArea: z.ZodObject<{
|
|
233
194
|
halfTrunc: "halfTrunc";
|
234
195
|
halfEven: "halfEven";
|
235
196
|
}>>>;
|
236
|
-
}, z.core.$strip
|
237
|
-
}, z.core.$strip>]
|
197
|
+
}, z.core.$strip>>>;
|
198
|
+
}, z.core.$strip>]>>>;
|
238
199
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
239
200
|
color: z.ZodOptional<z.ZodObject<{
|
240
201
|
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, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } 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?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -151,59 +151,20 @@ 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
|
-
|
158
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
157
|
+
location: z.ZodDefault<z.ZodEnum<{
|
159
158
|
dimension: "dimension";
|
160
159
|
rowDimension: "rowDimension";
|
161
160
|
columnDimension: "columnDimension";
|
162
|
-
}
|
163
|
-
}, z.core.$strip
|
164
|
-
measures: z.ZodOptional<z.
|
165
|
-
id: z.ZodString;
|
166
|
-
alias: z.ZodOptional<z.ZodString>;
|
167
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
168
|
-
id: z.ZodString;
|
169
|
-
alias: z.ZodOptional<z.ZodString>;
|
170
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
171
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
172
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
173
|
-
number: "number";
|
174
|
-
percent: "percent";
|
175
|
-
permille: "permille";
|
176
|
-
scientific: "scientific";
|
177
|
-
}>>>;
|
178
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
179
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
180
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
181
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
182
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
183
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
184
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
185
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
186
|
-
morePrecision: "morePrecision";
|
187
|
-
lessPrecision: "lessPrecision";
|
188
|
-
}>>>;
|
189
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
190
|
-
floor: "floor";
|
191
|
-
ceil: "ceil";
|
192
|
-
expand: "expand";
|
193
|
-
trunc: "trunc";
|
194
|
-
halfCeil: "halfCeil";
|
195
|
-
halfFloor: "halfFloor";
|
196
|
-
halfExpand: "halfExpand";
|
197
|
-
halfTrunc: "halfTrunc";
|
198
|
-
halfEven: "halfEven";
|
199
|
-
}>>>;
|
200
|
-
}, z.core.$strip>>>>;
|
201
|
-
}, z.core.$strip>]>>>;
|
202
|
-
}, z.core.$strip>, z.ZodObject<{
|
161
|
+
}>>;
|
162
|
+
}, z.core.$strip>>>;
|
163
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
203
164
|
id: z.ZodString;
|
204
165
|
alias: z.ZodOptional<z.ZodString>;
|
205
|
-
autoFormat: z.
|
206
|
-
format: z.
|
166
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
167
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
207
168
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
208
169
|
number: "number";
|
209
170
|
percent: "percent";
|
@@ -232,8 +193,8 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
232
193
|
halfTrunc: "halfTrunc";
|
233
194
|
halfEven: "halfEven";
|
234
195
|
}>>>;
|
235
|
-
}, z.core.$strip
|
236
|
-
}, z.core.$strip>]
|
196
|
+
}, z.core.$strip>>>;
|
197
|
+
}, z.core.$strip>]>>>;
|
237
198
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
238
199
|
color: z.ZodOptional<z.ZodObject<{
|
239
200
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { type Locale } from '../../i18n';
|
2
|
-
import
|
2
|
+
import type { MeasureTree } from '../../properties';
|
3
|
+
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 StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis } from '../../properties';
|
3
4
|
import { z } from 'zod';
|
4
5
|
/**
|
5
6
|
* 条形图类型定义
|
@@ -40,10 +41,10 @@ export interface Bar {
|
|
40
41
|
/**
|
41
42
|
* 指标
|
42
43
|
* @description 条形图指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
44
|
+
* @type {DimensionTree}
|
44
45
|
* @example [{id: "value", alias: "数值"}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -139,59 +140,20 @@ export interface Bar {
|
|
139
140
|
export declare const zBar: z.ZodObject<{
|
140
141
|
chartType: z.ZodLiteral<"bar">;
|
141
142
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
142
|
-
dimensions: z.ZodOptional<z.
|
143
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
143
144
|
id: z.ZodString;
|
144
145
|
alias: z.ZodOptional<z.ZodString>;
|
145
|
-
|
146
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
146
|
+
location: z.ZodDefault<z.ZodEnum<{
|
147
147
|
dimension: "dimension";
|
148
148
|
rowDimension: "rowDimension";
|
149
149
|
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<{
|
150
|
+
}>>;
|
151
|
+
}, z.core.$strip>>>;
|
152
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
191
153
|
id: z.ZodString;
|
192
154
|
alias: z.ZodOptional<z.ZodString>;
|
193
|
-
autoFormat: z.
|
194
|
-
format: z.
|
155
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
156
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
195
157
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
196
158
|
number: "number";
|
197
159
|
percent: "percent";
|
@@ -220,8 +182,8 @@ export declare const zBar: z.ZodObject<{
|
|
220
182
|
halfTrunc: "halfTrunc";
|
221
183
|
halfEven: "halfEven";
|
222
184
|
}>>>;
|
223
|
-
}, z.core.$strip
|
224
|
-
}, z.core.$strip>]
|
185
|
+
}, z.core.$strip>>>;
|
186
|
+
}, z.core.$strip>]>>>;
|
225
187
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
226
188
|
color: z.ZodOptional<z.ZodObject<{
|
227
189
|
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, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, MeasureTree } 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?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,59 +139,20 @@ 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
|
-
|
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 zBarParallel: 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 { 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, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, MeasureTree } 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?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -139,59 +139,20 @@ 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
|
-
|
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 zBarPercent: 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>>;
|