@visactor/vseed 0.1.43 → 0.1.44

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 (213) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +4380 -0
  4. package/dist/esm/dataSelector/selector.d.ts +1 -1
  5. package/dist/esm/dataSelector/selector.js +1 -2
  6. package/dist/esm/dataSelector/selector.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +2 -0
  8. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.d.ts +1 -0
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +35 -2
  11. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
  12. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +1 -1
  13. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  14. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +22 -2
  15. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  16. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +22 -3
  17. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js +3 -2
  19. package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/table/pipeline/table.js +2 -1
  21. package/dist/esm/pipeline/advanced/table/pipeline/table.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/table/pipes/{default/defaultMeasureName.d.ts → cellStyle/cellStyle.d.ts} +1 -1
  23. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/cellStyle.js +16 -0
  24. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/cellStyle.js.map +1 -0
  25. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/index.d.ts +1 -0
  26. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/index.js +2 -0
  27. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.d.ts +2 -0
  28. package/dist/esm/pipeline/advanced/table/pipes/default/{defaultMeasureName.js → defaultMeasureId.js} +5 -5
  29. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.js.map +1 -0
  30. package/dist/esm/pipeline/advanced/table/pipes/default/index.d.ts +1 -1
  31. package/dist/esm/pipeline/advanced/table/pipes/default/index.js +2 -2
  32. package/dist/esm/pipeline/advanced/table/pipes/index.d.ts +1 -0
  33. package/dist/esm/pipeline/advanced/table/pipes/index.js +1 -0
  34. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +2 -0
  36. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +2 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +22 -3
  40. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +2 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  43. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +20 -1
  44. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
  45. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js +23 -7
  46. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +2 -1
  48. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  49. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +2 -1
  50. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  51. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +2 -1
  52. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  53. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +2 -1
  54. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  55. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +2 -1
  56. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  57. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +2 -1
  58. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  59. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js +4 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js.map +1 -1
  61. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +2 -1
  62. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  63. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  65. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js +1 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
  67. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js +5 -7
  68. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js.map +1 -1
  69. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +23 -6
  70. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +39 -34
  72. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +10 -3
  74. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +1 -1
  76. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +1 -1
  78. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +4 -2
  80. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +2 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
  83. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  85. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +2 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  87. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +2 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -1
  89. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +2 -0
  90. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.d.ts +3 -0
  92. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.js +31 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.js.map +1 -0
  94. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js +3 -2
  95. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js.map +1 -1
  96. package/dist/esm/pipeline/spec/table/pipeline/table.js +3 -2
  97. package/dist/esm/pipeline/spec/table/pipeline/table.js.map +1 -1
  98. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.d.ts +2 -0
  99. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.js +14 -0
  100. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.js.map +1 -0
  101. package/dist/esm/pipeline/spec/table/pipes/cellStyle/index.d.ts +2 -0
  102. package/dist/esm/pipeline/spec/table/pipes/cellStyle/index.js +2 -0
  103. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.d.ts +2 -0
  104. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.js +49 -0
  105. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.js.map +1 -0
  106. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.d.ts +2 -0
  107. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.js +41 -0
  108. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.js.map +1 -0
  109. package/dist/esm/pipeline/spec/table/pipes/index.d.ts +1 -0
  110. package/dist/esm/pipeline/spec/table/pipes/index.js +1 -0
  111. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js +13 -3
  112. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
  113. package/dist/esm/pipeline/utils/constant.d.ts +3 -1
  114. package/dist/esm/pipeline/utils/constant.js +4 -2
  115. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  116. package/dist/esm/pipeline/utils/measures/depth.js.map +1 -1
  117. package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
  118. package/dist/esm/pipeline/utils/tree/traverse.d.ts +1 -11
  119. package/dist/esm/pipeline/utils/tree/traverse.js +3 -4
  120. package/dist/esm/pipeline/utils/tree/traverse.js.map +1 -1
  121. package/dist/esm/theme/common/axes.js +2 -2
  122. package/dist/esm/theme/common/axes.js.map +1 -1
  123. package/dist/esm/theme/common/table.d.ts +30 -22
  124. package/dist/esm/theme/common/table.js +12 -2
  125. package/dist/esm/theme/common/table.js.map +1 -1
  126. package/dist/esm/theme/common/tooltip.d.ts +3 -2
  127. package/dist/esm/theme/common/tooltip.js +24 -2
  128. package/dist/esm/theme/common/tooltip.js.map +1 -1
  129. package/dist/esm/theme/dark/dark.js +2 -2
  130. package/dist/esm/theme/dark/dark.js.map +1 -1
  131. package/dist/esm/theme/light/light.js +2 -2
  132. package/dist/esm/theme/light/light.js.map +1 -1
  133. package/dist/esm/types/advancedVSeed.d.ts +3442 -0
  134. package/dist/esm/types/advancedVSeed.js +2 -0
  135. package/dist/esm/types/advancedVSeed.js.map +1 -1
  136. package/dist/esm/types/chartType/area/zArea.d.ts +80 -0
  137. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +80 -0
  138. package/dist/esm/types/chartType/bar/zBar.d.ts +80 -0
  139. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +80 -0
  140. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +80 -0
  141. package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +80 -0
  142. package/dist/esm/types/chartType/column/zColumn.d.ts +82 -0
  143. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +80 -0
  144. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +80 -0
  145. package/dist/esm/types/chartType/donut/zDonut.d.ts +80 -0
  146. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +80 -0
  147. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +80 -0
  148. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +80 -0
  149. package/dist/esm/types/chartType/histogram/histogram.d.ts +2 -2
  150. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +88 -4
  151. package/dist/esm/types/chartType/histogram/zHistogram.js +2 -2
  152. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  153. package/dist/esm/types/chartType/line/zLine.d.ts +80 -0
  154. package/dist/esm/types/chartType/pie/zPie.d.ts +80 -0
  155. package/dist/esm/types/chartType/pivotTable/pivotTable.d.ts +5 -1
  156. package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +76 -0
  157. package/dist/esm/types/chartType/pivotTable/zPivotTable.js +2 -1
  158. package/dist/esm/types/chartType/pivotTable/zPivotTable.js.map +1 -1
  159. package/dist/esm/types/chartType/radar/zRadar.d.ts +80 -0
  160. package/dist/esm/types/chartType/rose/zRose.d.ts +80 -0
  161. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +80 -0
  162. package/dist/esm/types/chartType/scatter/zScatter.d.ts +88 -0
  163. package/dist/esm/types/chartType/table/table.d.ts +5 -1
  164. package/dist/esm/types/chartType/table/zTable.d.ts +76 -0
  165. package/dist/esm/types/chartType/table/zTable.js +2 -1
  166. package/dist/esm/types/chartType/table/zTable.js.map +1 -1
  167. package/dist/esm/types/properties/cellStyle/bodyCellStyle.d.ts +138 -0
  168. package/dist/esm/types/properties/cellStyle/bodyCellStyle.js +16 -0
  169. package/dist/esm/types/properties/cellStyle/bodyCellStyle.js.map +1 -0
  170. package/dist/esm/types/properties/cellStyle/cellStyle.d.ts +80 -0
  171. package/dist/esm/types/properties/cellStyle/cellStyle.js +8 -0
  172. package/dist/esm/types/properties/cellStyle/cellStyle.js.map +1 -0
  173. package/dist/esm/types/properties/cellStyle/index.d.ts +1 -0
  174. package/dist/esm/types/properties/cellStyle/index.js +1 -0
  175. package/dist/esm/types/properties/config/area.d.ts +164 -0
  176. package/dist/esm/types/properties/config/bar.d.ts +246 -0
  177. package/dist/esm/types/properties/config/boxplot.d.ts +82 -0
  178. package/dist/esm/types/properties/config/column.d.ts +258 -0
  179. package/dist/esm/types/properties/config/config.d.ts +1676 -0
  180. package/dist/esm/types/properties/config/dualAxis.d.ts +82 -0
  181. package/dist/esm/types/properties/config/funnel.d.ts +82 -0
  182. package/dist/esm/types/properties/config/heatmap.d.ts +82 -0
  183. package/dist/esm/types/properties/config/histogram.d.ts +94 -0
  184. package/dist/esm/types/properties/config/label/label.d.ts +5 -0
  185. package/dist/esm/types/properties/config/label/zLabel.d.ts +69 -0
  186. package/dist/esm/types/properties/config/label/zLabel.js +6 -1
  187. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  188. package/dist/esm/types/properties/config/label/zPieLabel.d.ts +69 -0
  189. package/dist/esm/types/properties/config/line.d.ts +82 -0
  190. package/dist/esm/types/properties/config/pie.d.ts +246 -0
  191. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +2 -0
  192. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +3 -1
  193. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  194. package/dist/esm/types/properties/config/rose.d.ts +164 -0
  195. package/dist/esm/types/properties/config/scatter.d.ts +94 -0
  196. package/dist/esm/types/properties/config/tooltip/tooltip.d.ts +12 -0
  197. package/dist/esm/types/properties/config/tooltip/tooltip.js +12 -1
  198. package/dist/esm/types/properties/config/tooltip/tooltip.js.map +1 -1
  199. package/dist/esm/types/properties/index.d.ts +1 -0
  200. package/dist/esm/types/properties/index.js +1 -0
  201. package/dist/esm/types/properties/markStyle/barStyle.d.ts +5 -0
  202. package/dist/esm/types/properties/markStyle/barStyle.js.map +1 -1
  203. package/dist/esm/types/properties/regressionLine/ecdfRegressionLine.d.ts +4 -0
  204. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +4 -0
  205. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +18 -0
  206. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +1 -0
  207. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -1
  208. package/dist/esm/types/properties/theme/customTheme.d.ts +3352 -0
  209. package/dist/esm/types/zVseed.d.ts +1890 -124
  210. package/dist/umd/index.js +726 -349
  211. package/dist/umd/index.js.map +1 -1
  212. package/package.json +3 -3
  213. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +0 -1
@@ -35,28 +35,36 @@ export declare const getDarkTableConfig: () => {
35
35
  headerFontSize: number;
36
36
  };
37
37
  export declare const getLightPivotChartGridConfig: () => {
38
- outlineBorderLineWidth: number;
39
- frameCornerRadius: number;
40
- borderColor: any;
41
- bodyFontColor: any;
42
- headerFontColor: any;
43
- headerBackgroundColor: string;
44
- hoverHeaderBackgroundColor: any;
45
- hoverHeaderInlineBackgroundColor: any;
46
- titleFontColor: any;
47
- titleFontSize: any;
48
- titleFontWeight: string;
38
+ borderColor?: string | null | undefined;
39
+ bodyFontColor?: string | null | undefined;
40
+ headerFontColor?: string | null | undefined;
41
+ headerBackgroundColor?: string | null | undefined;
42
+ hoverHeaderBackgroundColor?: string | null | undefined;
43
+ hoverHeaderInlineBackgroundColor?: string | null | undefined;
44
+ outlineBorderLineWidth?: number | null | undefined;
45
+ frameCornerRadius?: number | null | undefined;
46
+ minChartWidth?: number | null | undefined;
47
+ minChartHeight?: number | null | undefined;
48
+ titleFontColor?: string | null | undefined;
49
+ titleFontSize?: number | null | undefined;
50
+ titleFontWeight?: string | null | undefined;
51
+ chartGridColor?: string | null | undefined;
52
+ axisLabelColor?: string | null | undefined;
49
53
  };
50
54
  export declare const getDarkPivotChartGridConfig: () => {
51
- outlineBorderLineWidth: number;
52
- frameCornerRadius: number;
53
- borderColor: any;
54
- bodyFontColor: any;
55
- headerFontColor: any;
56
- headerBackgroundColor: string;
57
- hoverHeaderBackgroundColor: any;
58
- hoverHeaderInlineBackgroundColor: any;
59
- titleFontColor: any;
60
- titleFontSize: any;
61
- titleFontWeight: string;
55
+ borderColor?: string | null | undefined;
56
+ bodyFontColor?: string | null | undefined;
57
+ headerFontColor?: string | null | undefined;
58
+ headerBackgroundColor?: string | null | undefined;
59
+ hoverHeaderBackgroundColor?: string | null | undefined;
60
+ hoverHeaderInlineBackgroundColor?: string | null | undefined;
61
+ outlineBorderLineWidth?: number | null | undefined;
62
+ frameCornerRadius?: number | null | undefined;
63
+ minChartWidth?: number | null | undefined;
64
+ minChartHeight?: number | null | undefined;
65
+ titleFontColor?: string | null | undefined;
66
+ titleFontSize?: number | null | undefined;
67
+ titleFontWeight?: string | null | undefined;
68
+ chartGridColor?: string | null | undefined;
69
+ axisLabelColor?: string | null | undefined;
62
70
  };
@@ -43,8 +43,18 @@ const pickPivotChartGridConfig = (tableConfig)=>({
43
43
  titleFontSize: tableConfig.headerFontSize,
44
44
  titleFontWeight: 'bold'
45
45
  });
46
- const getLightPivotChartGridConfig = ()=>pickPivotChartGridConfig(getLightTableConfig());
47
- const getDarkPivotChartGridConfig = ()=>pickPivotChartGridConfig(getDarkTableConfig());
46
+ const getLightPivotChartGridConfig = ()=>{
47
+ const res = pickPivotChartGridConfig(getLightTableConfig());
48
+ res.chartGridColor = '#F0F1F6';
49
+ res.axisLabelColor = '#BCC1CB';
50
+ return res;
51
+ };
52
+ const getDarkPivotChartGridConfig = ()=>{
53
+ const res = pickPivotChartGridConfig(getDarkTableConfig());
54
+ res.chartGridColor = '#303339';
55
+ res.axisLabelColor = '#E2E3E6';
56
+ return res;
57
+ };
48
58
  export { getDarkPivotChartGridConfig, getDarkTableConfig, getDefaultTableConfig, getLightPivotChartGridConfig, getLightTableConfig };
49
59
 
50
60
  //# sourceMappingURL=table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme/common/table.js","sources":["webpack://@visactor/vseed/./src/theme/common/table.ts"],"sourcesContent":["export const getDefaultTableConfig = () => ({\n bodyFontSize: 12,\n bodyBackgroundColor: 'transparent',\n headerFontSize: 12,\n})\n\nexport const getLightTableConfig = () => ({\n ...getDefaultTableConfig(),\n borderColor: '#e3e5eb',\n\n bodyFontColor: '#141414',\n\n headerFontColor: '#21252c',\n headerBackgroundColor: '#f6f7f9',\n\n hoverBodyBackgroundColor: '#bedaff',\n hoverBodyInlineBackgroundColor: '#bedaff33',\n hoverHeaderBackgroundColor: '#D9DDE4',\n hoverHeaderInlineBackgroundColor: '#D9DDE455',\n\n selectedBorderColor: '#4080ff',\n selectedBackgroundColor: '#bedaff33',\n\n backgroundColor: 'transparent',\n})\n\nexport const getDarkTableConfig = () => ({\n ...getDefaultTableConfig(),\n borderColor: '#4b4e53',\n\n bodyFontColor: '#fdfdfd',\n headerFontColor: '#fdfdfd',\n headerBackgroundColor: '#36393e',\n\n hoverBodyBackgroundColor: '#4284ff66',\n hoverBodyInlineBackgroundColor: '#4284ff10',\n hoverHeaderBackgroundColor: '#6f7984cc',\n hoverHeaderInlineBackgroundColor: '#4b4f54',\n\n selectedBorderColor: '#3073f2',\n selectedBackgroundColor: '#4284ff33',\n})\n\nconst pickPivotChartGridConfig = (tableConfig: any) => {\n return {\n outlineBorderLineWidth: 0,\n frameCornerRadius: 0,\n borderColor: tableConfig.borderColor,\n bodyFontColor: tableConfig.bodyFontColor,\n headerFontColor: tableConfig.headerFontColor,\n\n headerBackgroundColor: 'transparent',\n hoverHeaderBackgroundColor: tableConfig.hoverHeaderBackgroundColor,\n hoverHeaderInlineBackgroundColor: tableConfig.hoverHeaderInlineBackgroundColor,\n\n titleFontColor: tableConfig.headerFontColor,\n titleFontSize: tableConfig.headerFontSize,\n titleFontWeight: 'bold',\n }\n}\n\nexport const getLightPivotChartGridConfig = () => {\n return pickPivotChartGridConfig(getLightTableConfig())\n}\n\nexport const getDarkPivotChartGridConfig = () => {\n return pickPivotChartGridConfig(getDarkTableConfig())\n}\n"],"names":["getDefaultTableConfig","getLightTableConfig","getDarkTableConfig","pickPivotChartGridConfig","tableConfig","getLightPivotChartGridConfig","getDarkPivotChartGridConfig"],"mappings":"AAAO,MAAMA,wBAAwB,IAAO;QAC1C,cAAc;QACd,qBAAqB;QACrB,gBAAgB;IAClB;AAEO,MAAMC,sBAAsB,IAAO;QACxC,GAAGD,uBAAuB;QAC1B,aAAa;QAEb,eAAe;QAEf,iBAAiB;QACjB,uBAAuB;QAEvB,0BAA0B;QAC1B,gCAAgC;QAChC,4BAA4B;QAC5B,kCAAkC;QAElC,qBAAqB;QACrB,yBAAyB;QAEzB,iBAAiB;IACnB;AAEO,MAAME,qBAAqB,IAAO;QACvC,GAAGF,uBAAuB;QAC1B,aAAa;QAEb,eAAe;QACf,iBAAiB;QACjB,uBAAuB;QAEvB,0BAA0B;QAC1B,gCAAgC;QAChC,4BAA4B;QAC5B,kCAAkC;QAElC,qBAAqB;QACrB,yBAAyB;IAC3B;AAEA,MAAMG,2BAA2B,CAACC,cACzB;QACL,wBAAwB;QACxB,mBAAmB;QACnB,aAAaA,YAAY,WAAW;QACpC,eAAeA,YAAY,aAAa;QACxC,iBAAiBA,YAAY,eAAe;QAE5C,uBAAuB;QACvB,4BAA4BA,YAAY,0BAA0B;QAClE,kCAAkCA,YAAY,gCAAgC;QAE9E,gBAAgBA,YAAY,eAAe;QAC3C,eAAeA,YAAY,cAAc;QACzC,iBAAiB;IACnB;AAGK,MAAMC,+BAA+B,IACnCF,yBAAyBF;AAG3B,MAAMK,8BAA8B,IAClCH,yBAAyBD"}
1
+ {"version":3,"file":"theme/common/table.js","sources":["webpack://@visactor/vseed/./src/theme/common/table.ts"],"sourcesContent":["import type { PivotChartGridConfig } from 'src/types'\n\nexport const getDefaultTableConfig = () => ({\n bodyFontSize: 12,\n bodyBackgroundColor: 'transparent',\n headerFontSize: 12,\n})\n\nexport const getLightTableConfig = () => ({\n ...getDefaultTableConfig(),\n borderColor: '#e3e5eb',\n\n bodyFontColor: '#141414',\n\n headerFontColor: '#21252c',\n headerBackgroundColor: '#f6f7f9',\n\n hoverBodyBackgroundColor: '#bedaff',\n hoverBodyInlineBackgroundColor: '#bedaff33',\n hoverHeaderBackgroundColor: '#D9DDE4',\n hoverHeaderInlineBackgroundColor: '#D9DDE455',\n\n selectedBorderColor: '#4080ff',\n selectedBackgroundColor: '#bedaff33',\n\n backgroundColor: 'transparent',\n})\n\nexport const getDarkTableConfig = () => ({\n ...getDefaultTableConfig(),\n borderColor: '#4b4e53',\n\n bodyFontColor: '#fdfdfd',\n headerFontColor: '#fdfdfd',\n headerBackgroundColor: '#36393e',\n\n hoverBodyBackgroundColor: '#4284ff66',\n hoverBodyInlineBackgroundColor: '#4284ff10',\n hoverHeaderBackgroundColor: '#6f7984cc',\n hoverHeaderInlineBackgroundColor: '#4b4f54',\n\n selectedBorderColor: '#3073f2',\n selectedBackgroundColor: '#4284ff33',\n})\n\nconst pickPivotChartGridConfig = (tableConfig: any) => {\n return {\n outlineBorderLineWidth: 0,\n frameCornerRadius: 0,\n borderColor: tableConfig.borderColor,\n bodyFontColor: tableConfig.bodyFontColor,\n headerFontColor: tableConfig.headerFontColor,\n\n headerBackgroundColor: 'transparent',\n hoverHeaderBackgroundColor: tableConfig.hoverHeaderBackgroundColor,\n hoverHeaderInlineBackgroundColor: tableConfig.hoverHeaderInlineBackgroundColor,\n\n titleFontColor: tableConfig.headerFontColor,\n titleFontSize: tableConfig.headerFontSize,\n titleFontWeight: 'bold',\n }\n}\n\nexport const getLightPivotChartGridConfig = () => {\n const res = pickPivotChartGridConfig(getLightTableConfig()) as PivotChartGridConfig\n\n res.chartGridColor = '#F0F1F6'\n res.axisLabelColor = '#BCC1CB'\n\n return res\n}\n\nexport const getDarkPivotChartGridConfig = () => {\n const res = pickPivotChartGridConfig(getDarkTableConfig()) as PivotChartGridConfig\n\n res.chartGridColor = '#303339'\n res.axisLabelColor = '#E2E3E6'\n\n return res\n}\n"],"names":["getDefaultTableConfig","getLightTableConfig","getDarkTableConfig","pickPivotChartGridConfig","tableConfig","getLightPivotChartGridConfig","res","getDarkPivotChartGridConfig"],"mappings":"AAEO,MAAMA,wBAAwB,IAAO;QAC1C,cAAc;QACd,qBAAqB;QACrB,gBAAgB;IAClB;AAEO,MAAMC,sBAAsB,IAAO;QACxC,GAAGD,uBAAuB;QAC1B,aAAa;QAEb,eAAe;QAEf,iBAAiB;QACjB,uBAAuB;QAEvB,0BAA0B;QAC1B,gCAAgC;QAChC,4BAA4B;QAC5B,kCAAkC;QAElC,qBAAqB;QACrB,yBAAyB;QAEzB,iBAAiB;IACnB;AAEO,MAAME,qBAAqB,IAAO;QACvC,GAAGF,uBAAuB;QAC1B,aAAa;QAEb,eAAe;QACf,iBAAiB;QACjB,uBAAuB;QAEvB,0BAA0B;QAC1B,gCAAgC;QAChC,4BAA4B;QAC5B,kCAAkC;QAElC,qBAAqB;QACrB,yBAAyB;IAC3B;AAEA,MAAMG,2BAA2B,CAACC,cACzB;QACL,wBAAwB;QACxB,mBAAmB;QACnB,aAAaA,YAAY,WAAW;QACpC,eAAeA,YAAY,aAAa;QACxC,iBAAiBA,YAAY,eAAe;QAE5C,uBAAuB;QACvB,4BAA4BA,YAAY,0BAA0B;QAClE,kCAAkCA,YAAY,gCAAgC;QAE9E,gBAAgBA,YAAY,eAAe;QAC3C,eAAeA,YAAY,cAAc;QACzC,iBAAiB;IACnB;AAGK,MAAMC,+BAA+B;IAC1C,MAAMC,MAAMH,yBAAyBF;IAErCK,IAAI,cAAc,GAAG;IACrBA,IAAI,cAAc,GAAG;IAErB,OAAOA;AACT;AAEO,MAAMC,8BAA8B;IACzC,MAAMD,MAAMH,yBAAyBD;IAErCI,IAAI,cAAc,GAAG;IACrBA,IAAI,cAAc,GAAG;IAErB,OAAOA;AACT"}
@@ -1,2 +1,3 @@
1
- import type { Tooltip } from '../../types';
2
- export declare const getDefaultTooltip: () => Tooltip;
1
+ import type { TooltipConfig } from '../../types';
2
+ export declare const getLightTooltip: () => TooltipConfig;
3
+ export declare const getDarkTooltip: () => TooltipConfig;
@@ -1,6 +1,28 @@
1
1
  const getDefaultTooltip = ()=>({
2
- enable: true
2
+ enable: true,
3
+ borderRadius: 12,
4
+ borderWidth: 1,
5
+ padding: 7,
6
+ lineHeight: 12,
7
+ fontSize: 12,
8
+ lineSpace: 6
3
9
  });
4
- export { getDefaultTooltip };
10
+ const getLightTooltip = ()=>({
11
+ ...getDefaultTooltip(),
12
+ borderColor: '#e3e5e8',
13
+ backgroundColor: '#fff',
14
+ keyColor: '#606773',
15
+ valueColor: '#21252c',
16
+ titleColor: '#21252c'
17
+ });
18
+ const getDarkTooltip = ()=>({
19
+ ...getDefaultTooltip(),
20
+ borderColor: '#3c3f44',
21
+ backgroundColor: '#2b2d30',
22
+ keyColor: '#89909D',
23
+ valueColor: '#E2E3E6',
24
+ titleColor: '#E2E3E6'
25
+ });
26
+ export { getDarkTooltip, getLightTooltip };
5
27
 
6
28
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme/common/tooltip.js","sources":["webpack://@visactor/vseed/./src/theme/common/tooltip.ts"],"sourcesContent":["import type { Tooltip } from 'src/types'\n\nexport const getDefaultTooltip = (): Tooltip => ({\n enable: true,\n})\n"],"names":["getDefaultTooltip"],"mappings":"AAEO,MAAMA,oBAAoB,IAAgB;QAC/C,QAAQ;IACV"}
1
+ {"version":3,"file":"theme/common/tooltip.js","sources":["webpack://@visactor/vseed/./src/theme/common/tooltip.ts"],"sourcesContent":["import type { TooltipConfig } from 'src/types'\n\nconst getDefaultTooltip = (): TooltipConfig => ({\n enable: true,\n borderRadius: 12,\n borderWidth: 1,\n padding: 7,\n lineHeight: 12,\n fontSize: 12,\n lineSpace: 6,\n})\n\nexport const getLightTooltip = (): TooltipConfig => ({\n ...getDefaultTooltip(),\n borderColor: '#e3e5e8',\n backgroundColor: '#fff',\n keyColor: '#606773',\n valueColor: '#21252c',\n titleColor: '#21252c',\n})\n\nexport const getDarkTooltip = (): TooltipConfig => ({\n ...getDefaultTooltip(),\n borderColor: '#3c3f44',\n backgroundColor: '#2b2d30',\n keyColor: '#89909D',\n valueColor: '#E2E3E6',\n titleColor: '#E2E3E6',\n})\n"],"names":["getDefaultTooltip","getLightTooltip","getDarkTooltip"],"mappings":"AAEA,MAAMA,oBAAoB,IAAsB;QAC9C,QAAQ;QACR,cAAc;QACd,aAAa;QACb,SAAS;QACT,YAAY;QACZ,UAAU;QACV,WAAW;IACb;AAEO,MAAMC,kBAAkB,IAAsB;QACnD,GAAGD,mBAAmB;QACtB,aAAa;QACb,iBAAiB;QACjB,UAAU;QACV,YAAY;QACZ,YAAY;IACd;AAEO,MAAME,iBAAiB,IAAsB;QAClD,GAAGF,mBAAmB;QACtB,aAAa;QACb,iBAAiB;QACjB,UAAU;QACV,YAAY;QACZ,YAAY;IACd"}
@@ -1,5 +1,5 @@
1
1
  import { getDarkColor, getDarkCrosshairLine, getDarkCrosshairRect, getDarkLabel, getDarkPivotChartGridConfig, getDarkTableConfig, getDefaultLegend } from "../common/index.js";
2
- import { getDefaultTooltip } from "../common/tooltip.js";
2
+ import { getDarkTooltip } from "../common/tooltip.js";
3
3
  import { getDarkBandAxis, getDarkLinearAxis } from "../common/axes.js";
4
4
  import { getDarkAnnotation } from "../common/annotaion.js";
5
5
  import { getDarkFunnelTransformTheme } from "../common/funnelTransform.js";
@@ -28,7 +28,7 @@ const darkTheme = ()=>{
28
28
  color: getDarkColor(),
29
29
  label: getDarkLabel(),
30
30
  legend: getDefaultLegend(),
31
- tooltip: getDefaultTooltip()
31
+ tooltip: getDarkTooltip()
32
32
  };
33
33
  const tableConfig = getDarkTableConfig();
34
34
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"theme/dark/dark.js","sources":["webpack://@visactor/vseed/./src/theme/dark/dark.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDarkColor,\n getDarkCrosshairLine,\n getDarkCrosshairRect,\n getDarkTableConfig,\n getDefaultLegend,\n getDarkPivotChartGridConfig,\n getDarkLabel,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getDarkBandAxis, getDarkLinearAxis } from '../common/axes'\nimport { getDarkAnnotation } from '../common/annotaion'\nimport { getDarkFunnelTransformTheme } from '../common/funnelTransform'\nimport { getDarkHeatmapCellTheme } from '../common/heatmapCell'\nimport { getDarkRegressionLine } from '../common/regressionLine'\n\nexport const darkTheme = (): CustomThemeConfig => {\n const linearAxis = getDarkLinearAxis()\n const bandAxis = getDarkBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n const crosshairLine = getDarkCrosshairLine()\n const crosshairRect = getDarkCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getDarkColor(),\n label: getDarkLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\n }\n\n const tableConfig = getDarkTableConfig()\n\n return {\n config: {\n table: tableConfig,\n pivotTable: tableConfig,\n\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n column: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n\n regressionLine: getDarkRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n bar: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n area: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n regressionLine: getDarkRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n transform: getDarkFunnelTransformTheme(),\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n cell: getDarkHeatmapCellTheme(),\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n regressionLine: getDarkRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n },\n }\n}\n"],"names":["darkTheme","linearAxis","getDarkLinearAxis","bandAxis","getDarkBandAxis","barBandAxis","undefined","crosshairLine","getDarkCrosshairLine","crosshairRect","getDarkCrosshairRect","baseConfig","getDarkColor","getDarkLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getDarkTableConfig","getDarkPivotChartGridConfig","getDarkAnnotation","getDarkRegressionLine","getDarkFunnelTransformTheme","getDarkHeatmap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GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,WAAWO;YACb;YACA,MAAM;gBACJ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,cAAc;gBACZ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBAEA,WAAWO;YACb;YAEA,QAAQ;gBACN,GAAGP,UAAU;gBACb,WAAWU;gBAEX,WAAWH;YACb;YACA,SAAS;gBACP,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,uBAAuB;gBACzB;gBAEA,MAAMW;gBACN,WAAWJ;YACb;YACA,WAAW;gBACT,GAAGP,UAAU;gBAEb,OAAOV;gBACP,OAAOA;gBACP,eAAeQ;gBACf,WAAWS;gBACX,YAAYC;gBACZ,gBAAgBC;YAClB;YACA,SAAS;gBACP,GAAGT,UAAU;gBAEb,OAAOR;gBACP,OAAOF;gBACP,eAAeQ;gBACf,WAAWS;gBACX,YAAYC;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"theme/dark/dark.js","sources":["webpack://@visactor/vseed/./src/theme/dark/dark.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDarkColor,\n getDarkCrosshairLine,\n getDarkCrosshairRect,\n getDarkTableConfig,\n getDefaultLegend,\n getDarkPivotChartGridConfig,\n getDarkLabel,\n} from '../common'\nimport { getDarkTooltip } from '../common/tooltip'\nimport { getDarkBandAxis, getDarkLinearAxis } from '../common/axes'\nimport { getDarkAnnotation } from '../common/annotaion'\nimport { getDarkFunnelTransformTheme } from '../common/funnelTransform'\nimport { getDarkHeatmapCellTheme } from '../common/heatmapCell'\nimport { getDarkRegressionLine } from '../common/regressionLine'\n\nexport const darkTheme = (): CustomThemeConfig => {\n const linearAxis = getDarkLinearAxis()\n const bandAxis = getDarkBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n const crosshairLine = getDarkCrosshairLine()\n const crosshairRect = getDarkCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getDarkColor(),\n label: getDarkLabel(),\n legend: getDefaultLegend(),\n tooltip: getDarkTooltip(),\n }\n\n const tableConfig = getDarkTableConfig()\n\n return {\n config: {\n table: tableConfig,\n pivotTable: tableConfig,\n\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n column: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n\n regressionLine: getDarkRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n bar: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n area: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n regressionLine: getDarkRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n transform: getDarkFunnelTransformTheme(),\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n cell: getDarkHeatmapCellTheme(),\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n regressionLine: getDarkRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n },\n }\n}\n"],"names":["darkTheme","linearAxis","getDarkLinearAxis","bandAxis","getDarkBandAxis","barBandAxis","undefined","crosshairLine","getDarkCrosshairLine","crosshairRect","getDarkCrosshairRect","baseConfig","getDarkColor","getDarkLabel","getDefaultLegend","getDarkTooltip","tableConfig","getDarkTableConfig","getDarkPivotChartGridConfig","getDarkAnnotation","getDarkRegressionLine","getDarkFunnelTransformTheme","getDarkHeatmapCellTheme"],"mappings":";;;;;;;AAiBO,MAAMA,YAAY;IACvB,MAAMC,aAAaC;IACnB,MAAMC,WAAWC;IACjB,M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gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,WAAWO;YACb;YACA,MAAM;gBACJ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,cAAc;gBACZ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBAEA,WAAWO;YACb;YAEA,QAAQ;gBACN,GAAGP,UAAU;gBACb,WAAWU;gBAEX,WAAWH;YACb;YACA,SAAS;gBACP,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,uBAAuB;gBACzB;gBAEA,MAAMW;gBACN,WAAWJ;YACb;YACA,WAAW;gBACT,GAAGP,UAAU;gBAEb,OAAOV;gBACP,OAAOA;gBACP,eAAeQ;gBACf,WAAWS;gBACX,YAAYC;gBACZ,gBAAgBC;YAClB;YACA,SAAS;gBACP,GAAGT,UAAU;gBAEb,OAAOR;gBACP,OAAOF;gBACP,eAAeQ;gBACf,WAAWS;gBACX,YAAYC;YACd;QACF;IACF;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { getDefaultLegend, getLightColor, getLightCrosshairLine, getLightCrosshairRect, getLightLabel, getLightPivotChartGridConfig, getLightTableConfig } from "../common/index.js";
2
- import { getDefaultTooltip } from "../common/tooltip.js";
2
+ import { getLightTooltip } from "../common/tooltip.js";
3
3
  import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
4
4
  import { getLightAnnotation } from "../common/annotaion.js";
5
5
  import { getLightFunnelTransformTheme } from "../common/funnelTransform.js";
@@ -28,7 +28,7 @@ const lightTheme = ()=>{
28
28
  color: getLightColor(),
29
29
  label: getLightLabel(),
30
30
  legend: getDefaultLegend(),
31
- tooltip: getDefaultTooltip()
31
+ tooltip: getLightTooltip()
32
32
  };
33
33
  const tableConfig = getLightTableConfig();
34
34
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"theme/light/light.js","sources":["webpack://@visactor/vseed/./src/theme/light/light.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDefaultLegend,\n getLightColor,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightLabel,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\nimport { getLightAnnotation } from '../common/annotaion'\nimport { getLightFunnelTransformTheme } from '../common/funnelTransform'\nimport { getLightHeatmapCellTheme } from '../common/heatmapCell'\nimport { getLightRegressionLine } from '../common/regressionLine'\n\nexport const lightTheme = (): CustomThemeConfig => {\n const linearAxis = getLightLinearAxis()\n const bandAxis: YBandAxis = getLightBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n\n const crosshairLine = getLightCrosshairLine()\n const crosshairRect = getLightCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getLightColor(),\n label: getLightLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\n }\n const tableConfig = getLightTableConfig()\n\n return {\n config: {\n // table\n table: tableConfig,\n pivotTable: tableConfig,\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n column: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n bar: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n xAxis: {\n ...linearAxis,\n },\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n area: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getLightPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n\n transform: getLightFunnelTransformTheme(),\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n cell: getLightHeatmapCellTheme(),\n pivotGrid: getLightPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n regressionLine: getLightRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getLightLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getLightTableConfig","getLightPivotChartGridConfig","getLightAnnotation","getLightRegressionLine","getLightFunnelTransformTheme","getLightHeatmapCellTheme"],"mappings":";;;;;;;AAiBO,MAAMA,aAAa;IACxB,MAAMC,aAAaC;IACnB,MAAMC,WAAsBC;IAC5B,MAAMC,cAAyB;QAC7B,GAAGF,QAAQ;QACX,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,sBAAsBG;QACtB,iBAAiB;QACjB,2BAA2B;YAAC;YAAG;YAAK;SAAI;IAC1C;IAEA,MAAMC,gBAAgBC;IACtB,MAAMC,gBAAgBC;IAEtB,MAAMC,aAAa;QACjB,iBAAiB;QACjB,OAAOC;QACP,OAAOC;QACP,QAAQC;QACR,SAASC;IACX;IACA,MAAMC,cAAcC;IAEpB,OAAO;QACL,QAAQ;YAEN,OAAOD;YACP,YAAYA;YAEZ,MAAM;gBACJ,GAAGL,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACPM;gBAEA,WAAWW;gBACX,YAAYC;YACd;YACA,QAAQ;gBACN,GAAGR,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACPQ;gBACA,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;gBAEZ,gBAAgBC;YAClB;YACA,gBAAgB;gBACd,GAAGT,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACPQ;gBACA,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YACA,eAAe;gBACb,GAAGR,UAAU;gBACb,OAAOR;gBACP,OAAO;oBACL,GAAGF,UAAU;gBACf;gBACAQ;gBACA,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YACA,KAAK;gBACH,GAAGR,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BACA,WAAWS;gBACX,YAAYC;YACd;YAEA,KAAK;gBACH,GAAGR,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,WAAWO;YACb;YACA,MAAM;gBACJ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,cAAc;gBACZ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBAEA,WAAWO;YACb;YAEA,QAAQ;gBACN,GAAGP,UAAU;gBAEb,WAAWU;gBAEX,WAAWH;YACb;YACA,SAAS;gBACP,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,uBAAuB;gBACzB;gBACA,MAAMW;gBACN,WAAWJ;YACb;YACA,WAAW;gBACT,GAAGP,UAAU;gBACb,OAAOV;gBACP,OAAOA;gBACPQ;gBACA,WAAWS;gBACX,YAAYC;gBACZ,gBAAgBC;YAClB;YACA,SAAS;gBACP,GAAGT,UAAU;gBACb,OAAOV;gBACP,OAAOA;gBACPQ;gBACA,WAAWS;gBACX,YAAYC;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"theme/light/light.js","sources":["webpack://@visactor/vseed/./src/theme/light/light.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDefaultLegend,\n getLightColor,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightLabel,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n} from '../common'\nimport { getLightTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\nimport { getLightAnnotation } from '../common/annotaion'\nimport { getLightFunnelTransformTheme } from '../common/funnelTransform'\nimport { getLightHeatmapCellTheme } from '../common/heatmapCell'\nimport { getLightRegressionLine } from '../common/regressionLine'\n\nexport const lightTheme = (): CustomThemeConfig => {\n const linearAxis = getLightLinearAxis()\n const bandAxis: YBandAxis = getLightBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n\n const crosshairLine = getLightCrosshairLine()\n const crosshairRect = getLightCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getLightColor(),\n label: getLightLabel(),\n legend: getDefaultLegend(),\n tooltip: getLightTooltip(),\n }\n const tableConfig = getLightTableConfig()\n\n return {\n config: {\n // table\n table: tableConfig,\n pivotTable: tableConfig,\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n column: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n bar: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n xAxis: {\n ...linearAxis,\n },\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n area: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getLightPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n\n transform: getLightFunnelTransformTheme(),\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n cell: getLightHeatmapCellTheme(),\n pivotGrid: getLightPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n regressionLine: getLightRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getLightLabel","getDefaultLegend","getLightTooltip","tableConfig","getLightTableConfig","getLightPivotChartGridConfig","getLightAnnotation","getLightRegressionLine","getLightFunnelTransformTheme","getLightHeatmapCellTheme"],"mappings":";;;;;;;AAiBO,MAAMA,aAAa;IACxB,MAAMC,aAAaC;IACnB,MAAMC,WAAsBC;IA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