@visactor/vseed 0.1.31 → 0.1.32
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/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +6156 -0
- package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js +1 -1
- package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +4 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +4 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +20 -9
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +4 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +20 -8
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js +11 -13
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js.map +1 -1
- package/dist/esm/theme/common/annotaion.d.ts +22 -0
- package/dist/esm/theme/common/annotaion.js +106 -0
- package/dist/esm/theme/common/annotaion.js.map +1 -0
- package/dist/esm/theme/common/crosshair.js +5 -5
- package/dist/esm/theme/common/crosshair.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +23 -11
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +23 -11
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +2260 -0
- package/dist/esm/types/chartType/area/zArea.d.ts +3 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +3 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +2 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +2 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +2 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +2 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +2 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +3 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +3 -0
- package/dist/esm/types/properties/annotation/annotationArea.d.ts +1 -1
- package/dist/esm/types/properties/config/annotation/annotation.d.ts +76 -0
- package/dist/esm/types/properties/config/annotation/annotation.js +0 -0
- package/dist/esm/types/properties/config/annotation/index.d.ts +2 -0
- package/dist/esm/types/properties/config/annotation/index.js +1 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.d.ts +167 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.js +57 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.js.map +1 -0
- package/dist/esm/types/properties/config/axes/bandAxis.d.ts +4 -0
- package/dist/esm/types/properties/config/axes/linearAxis.d.ts +4 -0
- package/dist/esm/types/properties/config/axes/zBandAxis.d.ts +2 -0
- package/dist/esm/types/properties/config/axes/zBandAxis.js +2 -1
- package/dist/esm/types/properties/config/axes/zBandAxis.js.map +1 -1
- package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +2 -0
- package/dist/esm/types/properties/config/axes/zLinearAxis.js +2 -1
- package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +2260 -0
- package/dist/esm/types/properties/config/config.js +15 -7
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/crosshair/zCrosshair.d.ts +1 -0
- package/dist/esm/types/properties/config/crosshair/zCrosshair.js +2 -1
- package/dist/esm/types/properties/config/crosshair/zCrosshair.js.map +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +2260 -0
- package/dist/esm/types/zVseed.d.ts +29 -0
- package/dist/umd/index.js +474 -260
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,6 +8,7 @@ import { zLabel, zPieLabel } from "./label/index.js";
|
|
|
8
8
|
import { zLegend } from "./legend/legend.js";
|
|
9
9
|
import { zTooltip } from "./tooltip/tooltip.js";
|
|
10
10
|
import { zDualChartType } from "../chartType/index.js";
|
|
11
|
+
import { zAnnotaionConfig } from "./annotation/zAnnotaion.js";
|
|
11
12
|
const zTableConfig = z.object({
|
|
12
13
|
backgroundColor: zBackgroundColor.nullish(),
|
|
13
14
|
borderColor: z.string().nullish(),
|
|
@@ -42,7 +43,8 @@ const zLineConfig = z.object({
|
|
|
42
43
|
xAxis: zXBandAxis.nullish(),
|
|
43
44
|
yAxis: zYLinearAxis.nullish(),
|
|
44
45
|
crosshairLine: zCrosshairLine.nullish(),
|
|
45
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
46
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
47
|
+
annotation: zAnnotaionConfig.nullish()
|
|
46
48
|
});
|
|
47
49
|
const zColumnConfig = z.object({
|
|
48
50
|
backgroundColor: zBackgroundColor.nullish(),
|
|
@@ -54,7 +56,8 @@ const zColumnConfig = z.object({
|
|
|
54
56
|
yAxis: zYLinearAxis.nullish(),
|
|
55
57
|
crosshairRect: zCrosshairRect.nullish(),
|
|
56
58
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
57
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
59
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
60
|
+
annotation: zAnnotaionConfig.nullish()
|
|
58
61
|
});
|
|
59
62
|
const zColumnParallelConfig = zColumnConfig;
|
|
60
63
|
const zColumnPercentConfig = zColumnConfig;
|
|
@@ -68,7 +71,8 @@ const zBarConfig = z.object({
|
|
|
68
71
|
yAxis: zYBandAxis.nullish(),
|
|
69
72
|
crosshairRect: zCrosshairRect.nullish(),
|
|
70
73
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
71
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
74
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
75
|
+
annotation: zAnnotaionConfig.nullish()
|
|
72
76
|
});
|
|
73
77
|
const zBarParallelConfig = zBarConfig;
|
|
74
78
|
const zBarPercentConfig = zBarConfig;
|
|
@@ -81,7 +85,8 @@ const zAreaConfig = z.object({
|
|
|
81
85
|
xAxis: zXBandAxis.nullish(),
|
|
82
86
|
yAxis: zYLinearAxis.nullish(),
|
|
83
87
|
crosshairLine: zCrosshairLine.nullish(),
|
|
84
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
88
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
89
|
+
annotation: zAnnotaionConfig.nullish()
|
|
85
90
|
});
|
|
86
91
|
const zAreaPercentConfig = zAreaConfig;
|
|
87
92
|
const zDualAxisConfig = z.object({
|
|
@@ -96,7 +101,8 @@ const zDualAxisConfig = z.object({
|
|
|
96
101
|
secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
|
97
102
|
xAxis: zXBandAxis.nullish(),
|
|
98
103
|
crosshairRect: zCrosshairRect.nullish(),
|
|
99
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
104
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
105
|
+
annotation: zAnnotaionConfig.nullish()
|
|
100
106
|
});
|
|
101
107
|
const zScatterConfig = z.object({
|
|
102
108
|
backgroundColor: zBackgroundColor.nullish(),
|
|
@@ -109,7 +115,8 @@ const zScatterConfig = z.object({
|
|
|
109
115
|
crosshairLine: zCrosshairLine.nullish(),
|
|
110
116
|
size: z.number().or(z.array(z.number())).nullish(),
|
|
111
117
|
sizeRange: z.number().or(z.array(z.number())).nullish(),
|
|
112
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
118
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
119
|
+
annotation: zAnnotaionConfig.nullish()
|
|
113
120
|
});
|
|
114
121
|
const zRoseConfig = z.object({
|
|
115
122
|
backgroundColor: zBackgroundColor.nullish(),
|
|
@@ -126,7 +133,8 @@ const zPieConfig = z.object({
|
|
|
126
133
|
color: zColor.nullish(),
|
|
127
134
|
tooltip: zTooltip.nullish(),
|
|
128
135
|
legend: zLegend.nullish(),
|
|
129
|
-
pivotGrid: zPivotChartGridConfig.nullish()
|
|
136
|
+
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
137
|
+
cornerRadius: z.number().nullish()
|
|
130
138
|
});
|
|
131
139
|
const zDonutConfig = zPieConfig;
|
|
132
140
|
const zRadarConfig = zPieConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYBandAxis, zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine, zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel, zPieLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zDualChartType } from '../chartType'\n\n/**\n * zConfig by 图表类型\n */\nexport const zTableConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n\n // Border\n borderColor: z.string().nullish(),\n\n // Body\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n // Body interaction\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n\n // Header\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n // Header interaction\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n\n // Interaction\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n})\nexport const zPivotTableConfig = zTableConfig\n\nexport const zPivotChartGridConfig = z.object({\n borderColor: z.string().nullish(),\n bodyFontColor: z.string().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n})\n\nexport const zLineConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zColumnConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zColumnParallelConfig = zColumnConfig\nexport const zColumnPercentConfig = zColumnConfig\nexport const zBarConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\nexport const zAreaConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\nexport const zFunnelConfig = zAreaConfig\nexport const zHeatmapConfig = zAreaConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\nexport type PivotChartGridConfig = z.infer<typeof zPivotChartGridConfig>\n// cartesian\nexport type LineConfig = z.infer<typeof zLineConfig>\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n// polar\nexport type RoseConfig = z.infer<typeof zRoseConfig>\nexport type RoseParallelConfig = z.infer<typeof zRoseParallelConfig>\nexport type PieConfig = z.infer<typeof zPieConfig>\nexport type DonutConfig = z.infer<typeof zDonutConfig>\nexport type RadarConfig = z.infer<typeof zRadarConfig>\n// other\nexport type FunnelConfig = z.infer<typeof zFunnelConfig>\nexport type HeatmapConfig = z.infer<typeof zHeatmapConfig>\n\n/**\n * config and type\n */\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zTableConfig","z","zBackgroundColor","zPivotTableConfig","zPivotChartGridConfig","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","zPieLabel","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;AAcO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,iBAAiBC,iBAAiB,OAAO;IAGzC,aAAaD,EAAE,MAAM,GAAG,OAAO;IAG/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IAEvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAGlD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IAGpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;AAC7C;AACO,MAAME,oBAAoBH;AAE1B,MAAMI,wBAAwBH,EAAE,MAAM,CAAC;IAC5C,aAAaA,EAAE,MAAM,GAAG,OAAO;IAC/B,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,OAAO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B,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAO2B,UAAU,OAAO;IACxB,OAAOtB,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IACvB,WAAWL,sBAAsB,OAAO;AAC1C;AACO,MAAM0B,sBAAsBF;AAC5B,MAAMG,aAAa9B,EAAE,MAAM,CAAC;IACjC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAO2B,UAAU,OAAO;IACxB,OAAOtB,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IACvB,WAAWL,sBAAsB,OAAO;AAC1C;AACO,MAAM4B,eAAeD;AACrB,MAAME,eAAeF;AAErB,MAAMG,gBAAgBX;AACtB,MAAMY,iBAAiBZ;AAoCvB,MAAMa,UAAUnC,EAAE,MAAM,CAAC;IAC9B,OAAOD,aAAa,OAAO;IAC3B,YAAYG,kBAAkB,OAAO;IAGrC,MAAME,YAAY,OAAO;IACzB,QAAQQ,cAAc,OAAO;IAC7B,gBAAgBG,sBAAsB,OAAO;IAC7C,eAAeC,qBAAqB,OAAO;IAC3C,KAAKC,WAAW,OAAO;IACvB,aAAaG,mBAAmB,OAAO;IACvC,YAAYC,kBAAkB,OAAO;IACrC,MAAMC,YAAY,OAAO;IACzB,aAAaC,mBAAmB,OAAO;IAEvC,SAASG,eAAe,OAAO;IAC/B,UAAUF,gBAAgB,OAAO;IAGjC,MAAMG,YAAY,OAAO;IACzB,cAAcE,oBAAoB,OAAO;IACzC,KAAKC,WAAW,OAAO;IACvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAE3B,QAAQC,cAAc,OAAO;IAC7B,SAASC,eAAe,OAAO;AACjC"}
|
|
1
|
+
{"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYBandAxis, zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine, zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel, zPieLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zDualChartType } from '../chartType'\nimport { zAnnotaionConfig } from './annotation/zAnnotaion'\n\n/**\n * zConfig by 图表类型\n */\nexport const zTableConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n\n // Border\n borderColor: z.string().nullish(),\n\n // Body\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n // Body interaction\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n\n // Header\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n // Header interaction\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n\n // Interaction\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n})\nexport const zPivotTableConfig = zTableConfig\n\nexport const zPivotChartGridConfig = z.object({\n borderColor: z.string().nullish(),\n bodyFontColor: z.string().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n})\n\nexport const zLineConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zColumnConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zColumnParallelConfig = zColumnConfig\nexport const zColumnPercentConfig = zColumnConfig\nexport const zBarConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\nexport const zAreaConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n cornerRadius: z.number().nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\nexport const zFunnelConfig = zAreaConfig\nexport const zHeatmapConfig = zAreaConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\nexport type PivotChartGridConfig = z.infer<typeof zPivotChartGridConfig>\n// cartesian\nexport type LineConfig = z.infer<typeof zLineConfig>\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n// polar\nexport type RoseConfig = z.infer<typeof zRoseConfig>\nexport type RoseParallelConfig = z.infer<typeof zRoseParallelConfig>\nexport type PieConfig = z.infer<typeof zPieConfig>\nexport type DonutConfig = z.infer<typeof zDonutConfig>\nexport type RadarConfig = z.infer<typeof zRadarConfig>\n// other\nexport type FunnelConfig = z.infer<typeof zFunnelConfig>\nexport type HeatmapConfig = z.infer<typeof zHeatmapConfig>\n\n/**\n * config and type\n */\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zTableConfig","z","zBackgroundColor","zPivotTableConfig","zPivotChartGridConfig","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zAnnotaionConfig","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","zPieLabel","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;;AAeO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,iBAAiBC,iBAAiB,OAAO;IAGzC,aAAaD,EAAE,MAAM,GAAG,OAAO;IAG/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IAEvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAGlD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IAGpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;AAC7C;AACO,MAAME,oBAAoBH;AAE1B,MAAMI,wBAAwBH,EAAE,MAAM,CAAC;IAC5C,aAAaA,EAAE,MAAM,GAAG,OAAO;IAC/B,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IACzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;AACtD;AAEO,MAAMI,cAAcJ,EAAE,MAAM,CA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;
|
|
6
6
|
labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7
7
|
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
export declare const zCrosshairRect: z.ZodObject<{
|
|
10
11
|
visible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -4,7 +4,8 @@ const zCrosshairLine = z.object({
|
|
|
4
4
|
lineColor: z.string().nullish(),
|
|
5
5
|
labelColor: z.string().nullish(),
|
|
6
6
|
labelVisible: z.boolean().nullish(),
|
|
7
|
-
labelBackgroundColor: z.string().nullish()
|
|
7
|
+
labelBackgroundColor: z.string().nullish(),
|
|
8
|
+
lineDash: z.array(z.number()).nullish()
|
|
8
9
|
});
|
|
9
10
|
const zCrosshairRect = z.object({
|
|
10
11
|
visible: z.boolean().nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/crosshair/zCrosshair.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/crosshair/zCrosshair.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zCrosshairLine = z.object({\n visible: z.boolean().nullish(),\n lineColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelVisible: z.boolean().nullish(),\n labelBackgroundColor: z.string().nullish(),\n})\n\nexport const zCrosshairRect = z.object({\n visible: z.boolean().nullish(),\n rectColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelVisible: z.boolean().nullish(),\n labelBackgroundColor: z.string().nullish(),\n})\n"],"names":["zCrosshairLine","z","zCrosshairRect"],"mappings":";AAEO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,SAASA,EAAE,OAAO,GAAG,OAAO;IAC5B,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,cAAcA,EAAE,OAAO,GAAG,OAAO;IACjC,sBAAsBA,EAAE,MAAM,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"types/properties/config/crosshair/zCrosshair.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/crosshair/zCrosshair.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zCrosshairLine = z.object({\n visible: z.boolean().nullish(),\n lineColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelVisible: z.boolean().nullish(),\n labelBackgroundColor: z.string().nullish(),\n lineDash: z.array(z.number()).nullish(),\n})\n\nexport const zCrosshairRect = z.object({\n visible: z.boolean().nullish(),\n rectColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelVisible: z.boolean().nullish(),\n labelBackgroundColor: z.string().nullish(),\n})\n"],"names":["zCrosshairLine","z","zCrosshairRect"],"mappings":";AAEO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,SAASA,EAAE,OAAO,GAAG,OAAO;IAC5B,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,cAAcA,EAAE,OAAO,GAAG,OAAO;IACjC,sBAAsBA,EAAE,MAAM,GAAG,OAAO;IACxC,UAAUA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;AACvC;AAEO,MAAMC,iBAAiBD,EAAE,MAAM,CAAC;IACrC,SAASA,EAAE,OAAO,GAAG,OAAO;IAC5B,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,cAAcA,EAAE,OAAO,GAAG,OAAO;IACjC,sBAAsBA,EAAE,MAAM,GAAG,OAAO;AAC1C"}
|