@visactor/vseed 0.1.20 → 0.1.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/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +1270 -172
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +16 -6
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetPivot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js +8 -11
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +0 -4
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js +22 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +0 -2
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +474 -180
- package/dist/esm/types/chartType/area/area.d.ts +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +5 -5
- package/dist/esm/types/chartType/area/zArea.js +1 -3
- package/dist/esm/types/chartType/area/zArea.js.map +1 -1
- package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +1 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -5
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +1 -3
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +1 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +5 -5
- package/dist/esm/types/chartType/bar/zBar.js +1 -3
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +1 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +5 -5
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +1 -3
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +1 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +5 -5
- package/dist/esm/types/chartType/barPercent/zBarPercent.js +1 -3
- package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +1 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +5 -5
- package/dist/esm/types/chartType/column/zColumn.js +1 -3
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +1 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +5 -5
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +1 -3
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +1 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +5 -5
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +1 -3
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
- package/dist/esm/types/chartType/donut/donut.d.ts +2 -2
- package/dist/esm/types/chartType/donut/zDonut.d.ts +1 -5
- package/dist/esm/types/chartType/donut/zDonut.js +2 -2
- package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
- package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +1 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +5 -5
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js +1 -3
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
- package/dist/esm/types/chartType/funnel/funnel.d.ts +1 -1
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +5 -5
- package/dist/esm/types/chartType/funnel/zFunnel.js +1 -3
- package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
- package/dist/esm/types/chartType/heatmap/heatmap.d.ts +1 -1
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +5 -5
- package/dist/esm/types/chartType/heatmap/zHeatmap.js +1 -3
- package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
- package/dist/esm/types/chartType/line/line.d.ts +1 -1
- package/dist/esm/types/chartType/line/zLine.d.ts +5 -5
- package/dist/esm/types/chartType/line/zLine.js +1 -3
- package/dist/esm/types/chartType/line/zLine.js.map +1 -1
- package/dist/esm/types/chartType/pie/pie.d.ts +2 -2
- package/dist/esm/types/chartType/pie/zPie.d.ts +1 -5
- package/dist/esm/types/chartType/pie/zPie.js +2 -2
- package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
- package/dist/esm/types/chartType/radar/radar.d.ts +1 -1
- package/dist/esm/types/chartType/radar/zRadar.d.ts +5 -5
- package/dist/esm/types/chartType/radar/zRadar.js +1 -3
- package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
- package/dist/esm/types/chartType/rose/rose.d.ts +3 -3
- package/dist/esm/types/chartType/rose/zRose.d.ts +5 -5
- package/dist/esm/types/chartType/rose/zRose.js +1 -3
- package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
- package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +3 -3
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +5 -5
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +1 -3
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +1 -1
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -5
- package/dist/esm/types/chartType/scatter/zScatter.js +1 -3
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +474 -180
- package/dist/esm/types/properties/config/config.js +5 -5
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/label/index.d.ts +2 -0
- package/dist/esm/types/properties/config/label/index.js +1 -0
- package/dist/esm/types/properties/config/label/label.d.ts +0 -7
- package/dist/esm/types/properties/config/label/pieLabel.d.ts +10 -0
- package/dist/esm/types/properties/config/label/pieLabel.js +0 -0
- package/dist/esm/types/properties/config/label/zLabel.d.ts +0 -5
- package/dist/esm/types/properties/config/label/zLabel.js +1 -6
- package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
- package/dist/esm/types/properties/config/label/zPieLabel.d.ts +46 -0
- package/dist/esm/types/properties/config/label/zPieLabel.js +12 -0
- package/dist/esm/types/properties/config/label/zPieLabel.js.map +1 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +474 -180
- package/dist/esm/types/zVseed.d.ts +82 -90
- package/dist/umd/index.js +85 -93
- package/dist/umd/index.js.map +1 -1
- package/package.json +7 -3
@@ -4,7 +4,7 @@ import { zCrosshairLine, zCrosshairRect } from "./crosshair/index.js";
|
|
4
4
|
import { zStackCornerRadius } from "./stackCornerRadius/stackCornerRadius.js";
|
5
5
|
import { zBackgroundColor } from "./backgroundColor/backgroundColor.js";
|
6
6
|
import { zColor } from "./color/color.js";
|
7
|
-
import { zLabel } from "./label/index.js";
|
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";
|
@@ -97,7 +97,7 @@ const zScatterConfig = z.object({
|
|
97
97
|
});
|
98
98
|
const zRoseConfig = z.object({
|
99
99
|
backgroundColor: zBackgroundColor.nullish(),
|
100
|
-
label:
|
100
|
+
label: zPieLabel.nullish(),
|
101
101
|
color: zColor.nullish(),
|
102
102
|
tooltip: zTooltip.nullish(),
|
103
103
|
legend: zLegend.nullish()
|
@@ -105,15 +105,15 @@ const zRoseConfig = z.object({
|
|
105
105
|
const zRoseParallelConfig = zRoseConfig;
|
106
106
|
const zPieConfig = z.object({
|
107
107
|
backgroundColor: zBackgroundColor.nullish(),
|
108
|
-
label:
|
108
|
+
label: zPieLabel.nullish(),
|
109
109
|
color: zColor.nullish(),
|
110
110
|
tooltip: zTooltip.nullish(),
|
111
111
|
legend: zLegend.nullish()
|
112
112
|
});
|
113
113
|
const zDonutConfig = zPieConfig;
|
114
114
|
const zRadarConfig = zPieConfig;
|
115
|
-
const zFunnelConfig =
|
116
|
-
const zHeatmapConfig =
|
115
|
+
const zFunnelConfig = zAreaConfig;
|
116
|
+
const zHeatmapConfig = zAreaConfig;
|
117
117
|
const zConfig = z.object({
|
118
118
|
table: zTableConfig.nullish(),
|
119
119
|
pivotTable: zPivotTableConfig.nullish(),
|
@@ -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 } 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 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})\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})\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})\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})\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})\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})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\nexport const zFunnelConfig = zPieConfig\nexport const zHeatmapConfig = zPieConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\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","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","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,uB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zC,OAAOG,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;AACzB;AACO,MAAMsB,eAAeD;AACrB,MAAME,eAAeF;AAErB,MAAMG,gBAAgBH;AACtB,MAAMI,iBAAiBJ;AAmCvB,MAAMK,UAAUjC,EAAE,MAAM,CAAC;IAC9B,OAAOD,aAAa,OAAO;IAC3B,YAAYG,kBAAkB,OAAO;IAGrC,MAAMC,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,cAAcC,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'\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 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})\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})\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})\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})\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})\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})\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})\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})\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>\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","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,cAAcH,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOG,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,WAAW,OAA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AAKC,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"}
|
@@ -54,11 +54,4 @@ export type Label = {
|
|
54
54
|
* @description 标签防重叠功能是否启用
|
55
55
|
*/
|
56
56
|
labelOverlap?: boolean;
|
57
|
-
/**
|
58
|
-
* @description 标签布局方式, 仅对饼图、环形图生效且`labelPosition`为`outside`时生效
|
59
|
-
* - arc: 按弧形为标签布局
|
60
|
-
* - labelLine: 标签两端对齐, 通过引导线连接扇形图元与标签
|
61
|
-
* - edge: 标签两端对齐, 通过引导线连接扇形图元与标签, 并且贴近图表两端边缘
|
62
|
-
*/
|
63
|
-
labelLayout?: 'arc' | 'labelLine' | 'edge';
|
64
57
|
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Label } from './label';
|
2
|
+
export interface PieLabel extends Label {
|
3
|
+
/**
|
4
|
+
* @description 标签布局方式, 仅对饼图、环形图生效且`labelPosition`为`outside`时生效
|
5
|
+
* - arc: 按弧形为标签布局
|
6
|
+
* - labelLine: 标签两端对齐, 通过引导线连接扇形图元与标签
|
7
|
+
* - edge: 标签两端对齐, 通过引导线连接扇形图元与标签, 并且贴近图表两端边缘
|
8
|
+
*/
|
9
|
+
labelLayout?: 'arc' | 'labelLine' | 'edge';
|
10
|
+
}
|
File without changes
|
@@ -42,9 +42,4 @@ export declare const zLabel: z.ZodObject<{
|
|
42
42
|
labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
43
43
|
labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
44
44
|
labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
45
|
-
labelLayout: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
46
|
-
arc: "arc";
|
47
|
-
labelLine: "labelLine";
|
48
|
-
edge: "edge";
|
49
|
-
}>>>;
|
50
45
|
}, z.core.$strip>;
|
@@ -13,12 +13,7 @@ const zLabel = z.object({
|
|
13
13
|
labelColor: z.string().nullish(),
|
14
14
|
labelColorSmartInvert: z.boolean().nullish(),
|
15
15
|
labelPosition: z.string().nullish(),
|
16
|
-
labelOverlap: z.boolean().nullish()
|
17
|
-
labelLayout: z["enum"]([
|
18
|
-
'arc',
|
19
|
-
'labelLine',
|
20
|
-
'edge'
|
21
|
-
]).nullish()
|
16
|
+
labelOverlap: z.boolean().nullish()
|
22
17
|
});
|
23
18
|
export { zLabel };
|
24
19
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../format'\n\nexport const zLabel = z.object({\n enable: z.boolean().nullish(),\n wrap: z.boolean().nullish(),\n showValue: z.boolean().nullish(),\n showValuePercent: z.boolean().nullish(),\n autoFormat: z.boolean().nullish(),\n numFormat: zNumFormat.nullish(),\n labelFontSize: z.number().nullish(),\n labelFontWeight: z.number().or(z.string()).nullish(),\n labelBackgroundColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelColorSmartInvert: z.boolean().nullish(),\n labelPosition: z.string().nullish(),\n labelOverlap: z.boolean().nullish(),\n
|
1
|
+
{"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../format'\n\nexport const zLabel = z.object({\n enable: z.boolean().nullish(),\n wrap: z.boolean().nullish(),\n showValue: z.boolean().nullish(),\n showValuePercent: z.boolean().nullish(),\n autoFormat: z.boolean().nullish(),\n numFormat: zNumFormat.nullish(),\n labelFontSize: z.number().nullish(),\n labelFontWeight: z.number().or(z.string()).nullish(),\n labelBackgroundColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelColorSmartInvert: z.boolean().nullish(),\n labelPosition: z.string().nullish(),\n labelOverlap: z.boolean().nullish(),\n})\n"],"names":["zLabel","z","zNumFormat"],"mappings":";;AAGO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,QAAQA,EAAE,OAAO,GAAG,OAAO;IAC3B,MAAMA,EAAE,OAAO,GAAG,OAAO;IACzB,WAAWA,EAAE,OAAO,GAAG,OAAO;IAC9B,kBAAkBA,EAAE,OAAO,GAAG,OAAO;IACrC,YAAYA,EAAE,OAAO,GAAG,OAAO;IAC/B,WAAWC,WAAW,OAAO;IAC7B,eAAeD,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,MAAM,IAAI,OAAO;IAClD,sBAAsBA,EAAE,MAAM,GAAG,OAAO;IACxC,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,uBAAuBA,EAAE,OAAO,GAAG,OAAO;IAC1C,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,cAAcA,EAAE,OAAO,GAAG,OAAO;AACnC"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zPieLabel: z.ZodObject<{
|
3
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
4
|
+
wrap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
5
|
+
showValue: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
6
|
+
showValuePercent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
7
|
+
autoFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
8
|
+
numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
9
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
10
|
+
number: "number";
|
11
|
+
percent: "percent";
|
12
|
+
permille: "permille";
|
13
|
+
scientific: "scientific";
|
14
|
+
}>>>;
|
15
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
16
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
17
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
18
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
19
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
20
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
21
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
22
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
23
|
+
morePrecision: "morePrecision";
|
24
|
+
lessPrecision: "lessPrecision";
|
25
|
+
}>>>;
|
26
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
27
|
+
floor: "floor";
|
28
|
+
ceil: "ceil";
|
29
|
+
expand: "expand";
|
30
|
+
trunc: "trunc";
|
31
|
+
halfCeil: "halfCeil";
|
32
|
+
halfFloor: "halfFloor";
|
33
|
+
halfExpand: "halfExpand";
|
34
|
+
halfTrunc: "halfTrunc";
|
35
|
+
halfEven: "halfEven";
|
36
|
+
}>>>;
|
37
|
+
}, z.core.$strip>>>>;
|
38
|
+
labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
39
|
+
labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
40
|
+
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
41
|
+
labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
42
|
+
labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
43
|
+
labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
44
|
+
labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
45
|
+
labelLayout: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"arc">, z.ZodLiteral<"labelLine">, z.ZodLiteral<"edge">]>>>;
|
46
|
+
}, z.core.$strip>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
import { zLabel } from "./zLabel.js";
|
3
|
+
const zPieLabel = zLabel.extend({
|
4
|
+
labelLayout: z.union([
|
5
|
+
z.literal('arc'),
|
6
|
+
z.literal('labelLine'),
|
7
|
+
z.literal('edge')
|
8
|
+
]).nullish()
|
9
|
+
});
|
10
|
+
export { zPieLabel };
|
11
|
+
|
12
|
+
//# sourceMappingURL=zPieLabel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types/properties/config/label/zPieLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zPieLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLabel } from './zLabel'\n\nexport const zPieLabel = zLabel.extend({\n labelLayout: z.union([z.literal('arc'), z.literal('labelLine'), z.literal('edge')]).nullish(),\n})\n"],"names":["zPieLabel","zLabel","z"],"mappings":";;AAGO,MAAMA,YAAYC,OAAO,MAAM,CAAC;IACrC,aAAaC,EAAE,KAAK,CAAC;QAACA,EAAE,OAAO,CAAC;QAAQA,EAAE,OAAO,CAAC;QAAcA,EAAE,OAAO,CAAC;KAAQ,EAAE,OAAO;AAC7F"}
|