@visactor/vseed 0.1.21 → 0.1.23

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.
Files changed (139) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +12 -0
  4. package/dist/esm/pipeline/advanced/chart/pipeline/area.js +2 -1
  5. package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +2 -1
  7. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +2 -1
  9. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
  10. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +2 -1
  11. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
  12. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +2 -1
  13. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
  14. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +2 -1
  15. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  16. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +2 -1
  17. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +2 -1
  19. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +2 -1
  21. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +2 -1
  23. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
  24. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +2 -1
  25. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
  26. package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +2 -1
  27. package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
  28. package/dist/esm/pipeline/advanced/chart/pipeline/line.js +2 -1
  29. package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
  30. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +2 -1
  31. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
  32. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +2 -1
  33. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
  34. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +2 -1
  35. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
  36. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +2 -1
  37. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +2 -2
  39. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
  40. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +1 -1
  41. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  42. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +2 -2
  43. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +2 -2
  45. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
  46. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +2 -1
  47. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  48. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +2 -2
  49. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipeline/donut.js +2 -1
  51. package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
  52. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +2 -1
  53. package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
  54. package/dist/esm/pipeline/spec/chart/pipeline/pie.js +2 -1
  55. package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
  56. package/dist/esm/pipeline/spec/chart/pipeline/radar.js +2 -1
  57. package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
  58. package/dist/esm/pipeline/spec/chart/pipeline/rose.js +2 -1
  59. package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +2 -1
  61. package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -3
  63. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -3
  65. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +3 -3
  67. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js +8 -6
  68. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
  69. package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js +2 -2
  70. package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js +2 -2
  72. package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js +2 -2
  74. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js.map +1 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js +2 -2
  76. package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js.map +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js +2 -2
  78. package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js +2 -2
  80. package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js.map +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js +2 -2
  82. package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js.map +1 -1
  83. package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js +2 -2
  84. package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js.map +1 -1
  85. package/dist/esm/pipeline/spec/chart/pipes/init/area.js +2 -2
  86. package/dist/esm/pipeline/spec/chart/pipes/init/area.js.map +1 -1
  87. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js +2 -2
  88. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js.map +1 -1
  89. package/dist/esm/pipeline/spec/chart/pipes/init/line.js +2 -2
  90. package/dist/esm/pipeline/spec/chart/pipes/init/line.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/init/radar.js +2 -2
  92. package/dist/esm/pipeline/spec/chart/pipes/init/radar.js.map +1 -1
  93. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js +9 -1
  94. package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js.map +1 -1
  95. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.d.ts +3 -0
  96. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js +12 -0
  97. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js.map +1 -0
  98. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.d.ts +1 -0
  99. package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.js +2 -0
  100. package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js +4 -1
  101. package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js.map +1 -1
  102. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
  104. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +7 -4
  105. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  106. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.d.ts +2 -0
  107. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js +7 -0
  108. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js.map +1 -0
  109. package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js +2 -1
  110. package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js.map +1 -1
  111. package/dist/esm/pipeline/utils/chatType.d.ts +20 -1
  112. package/dist/esm/pipeline/utils/chatType.js +18 -10
  113. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  114. package/dist/esm/pipeline/utils/constant.d.ts +22 -0
  115. package/dist/esm/pipeline/utils/constant.js +23 -1
  116. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  117. package/dist/esm/pipeline/utils/format/createNumFormatter.js +2 -1
  118. package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
  119. package/dist/esm/pipeline/utils/index.d.ts +1 -0
  120. package/dist/esm/pipeline/utils/index.js +1 -0
  121. package/dist/esm/theme/dark.js +5 -1
  122. package/dist/esm/theme/dark.js.map +1 -1
  123. package/dist/esm/theme/light.js +8 -13
  124. package/dist/esm/theme/light.js.map +1 -1
  125. package/dist/esm/types/advancedVSeed.d.ts +4 -0
  126. package/dist/esm/types/chartType/funnel/funnel.d.ts +2 -2
  127. package/dist/esm/types/chartType/heatmap/heatmap.d.ts +2 -2
  128. package/dist/esm/types/properties/chartType/chartType.d.ts +0 -22
  129. package/dist/esm/types/properties/chartType/chartType.js +1 -23
  130. package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
  131. package/dist/esm/types/properties/config/color/color.d.ts +0 -8
  132. package/dist/esm/types/properties/config/color/color.js.map +1 -1
  133. package/dist/esm/types/properties/config/config.d.ts +4 -0
  134. package/dist/esm/types/properties/config/config.js +3 -1
  135. package/dist/esm/types/properties/config/config.js.map +1 -1
  136. package/dist/esm/types/properties/theme/customTheme.d.ts +4 -0
  137. package/dist/umd/index.js +321 -214
  138. package/dist/umd/index.js.map +1 -1
  139. package/package.json +3 -3
@@ -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 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,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;AACvC;AACO,MAAMC,gBAAgBX,EA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C,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'\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 size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).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,e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OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAE3B,QAAQC,cAAc,OAAO;IAC7B,SAASC,eAAe,OAAO;AACjC"}
@@ -2319,6 +2319,8 @@ export declare const zCustomThemeConfig: z.ZodObject<{
2319
2319
  labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2320
2320
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2321
2321
  }, z.core.$strip>>>;
2322
+ size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
2323
+ sizeRange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
2322
2324
  }, z.core.$strip>>>;
2323
2325
  dualAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2324
2326
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
@@ -6107,6 +6109,8 @@ export declare const zCustomTheme: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.Zod
6107
6109
  labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6108
6110
  labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6109
6111
  }, z.core.$strip>>>;
6112
+ size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
6113
+ sizeRange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
6110
6114
  }, z.core.$strip>>>;
6111
6115
  dualAxis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6112
6116
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;