@visactor/vseed 0.1.36 → 0.1.38

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 (302) 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/buildAdvanced.js +1 -1
  4. package/dist/esm/builder/builder/buildAdvanced.js.map +1 -1
  5. package/dist/esm/builder/builder/builder.d.ts +4183 -965
  6. package/dist/esm/builder/register/all.js +3 -1
  7. package/dist/esm/builder/register/all.js.map +1 -1
  8. package/dist/esm/builder/register/chartType/boxplot.d.ts +1 -0
  9. package/dist/esm/builder/register/chartType/boxplot.js +9 -0
  10. package/dist/esm/builder/register/chartType/boxplot.js.map +1 -0
  11. package/dist/esm/builder/register/chartType/histogram.d.ts +1 -0
  12. package/dist/esm/builder/register/chartType/histogram.js +9 -0
  13. package/dist/esm/builder/register/chartType/histogram.js.map +1 -0
  14. package/dist/esm/builder/register/chartType/index.d.ts +2 -0
  15. package/dist/esm/builder/register/chartType/index.js +3 -1
  16. package/dist/esm/dataReshape/constant.d.ts +10 -0
  17. package/dist/esm/dataReshape/constant.js +11 -1
  18. package/dist/esm/dataReshape/constant.js.map +1 -1
  19. package/dist/esm/dataReshape/unfoldDimensions.js +2 -2
  20. package/dist/esm/dataReshape/unfoldDimensions.js.map +1 -1
  21. package/dist/esm/index.d.ts +1 -1
  22. package/dist/esm/index.js +2 -2
  23. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.d.ts +2 -0
  24. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js +33 -0
  25. package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -0
  26. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.d.ts +2 -0
  27. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +34 -0
  28. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -0
  29. package/dist/esm/pipeline/advanced/chart/pipeline/index.d.ts +2 -0
  30. package/dist/esm/pipeline/advanced/chart/pipeline/index.js +3 -1
  31. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.d.ts +2 -0
  32. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +31 -0
  33. package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -0
  34. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +3 -1
  35. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  36. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +4 -1
  37. package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.d.ts +2 -0
  39. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +33 -0
  40. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -0
  41. package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +3 -1
  42. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +3 -1
  43. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.d.ts +3 -0
  45. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js +80 -0
  46. package/dist/esm/pipeline/advanced/chart/pipes/encoding/boxplot.js.map +1 -0
  47. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.d.ts +3 -0
  48. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js +78 -0
  49. package/dist/esm/pipeline/advanced/chart/pipes/encoding/histogram.js.map +1 -0
  50. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +2 -0
  51. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +3 -1
  52. package/dist/esm/pipeline/advanced/chart/pipes/index.d.ts +1 -0
  53. package/dist/esm/pipeline/advanced/chart/pipes/index.js +1 -0
  54. package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
  55. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/index.d.ts +1 -0
  56. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/index.js +2 -0
  57. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.d.ts +2 -0
  58. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +8 -0
  59. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -0
  60. package/dist/esm/pipeline/advanced/chart/pipes/reshape/index.d.ts +4 -0
  61. package/dist/esm/pipeline/advanced/chart/pipes/reshape/index.js +5 -1
  62. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.d.ts +2 -0
  63. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +96 -0
  64. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -0
  65. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.d.ts +2 -0
  66. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +96 -0
  67. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -0
  68. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.d.ts +2 -0
  69. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js +84 -0
  70. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -0
  71. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.d.ts +2 -0
  72. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +86 -0
  73. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -0
  74. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +2 -2
  75. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  76. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
  77. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  78. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +2 -1
  79. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  80. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.d.ts +2 -0
  81. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +52 -0
  82. package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -0
  83. package/dist/esm/pipeline/spec/chart/pipeline/column.js +2 -1
  84. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  85. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
  86. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  87. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +2 -1
  88. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  89. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +13 -1
  90. package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipeline/histogram.d.ts +2 -0
  92. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +52 -0
  93. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -0
  94. package/dist/esm/pipeline/spec/chart/pipeline/index.d.ts +2 -0
  95. package/dist/esm/pipeline/spec/chart/pipeline/index.js +3 -1
  96. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  97. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  98. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.d.ts +2 -0
  99. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.js +14 -0
  100. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.js.map +1 -0
  101. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.d.ts +2 -0
  102. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.js +14 -0
  103. package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.js.map +1 -0
  104. package/dist/esm/pipeline/spec/chart/pipes/barWidth/index.d.ts +2 -0
  105. package/dist/esm/pipeline/spec/chart/pipes/barWidth/index.js +2 -0
  106. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.d.ts +2 -0
  107. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.js +18 -0
  108. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetBoxplot.js.map +1 -0
  109. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.d.ts +2 -0
  110. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.js +18 -0
  111. package/dist/esm/pipeline/spec/chart/pipes/dataset/datasetHistogram.js.map +1 -0
  112. package/dist/esm/pipeline/spec/chart/pipes/dataset/index.d.ts +2 -0
  113. package/dist/esm/pipeline/spec/chart/pipes/dataset/index.js +3 -1
  114. package/dist/esm/pipeline/spec/chart/pipes/dataset/progressive.js +4 -8
  115. package/dist/esm/pipeline/spec/chart/pipes/dataset/progressive.js.map +1 -1
  116. package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +2 -0
  117. package/dist/esm/pipeline/spec/chart/pipes/index.js +2 -0
  118. package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.d.ts +2 -0
  119. package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js +37 -0
  120. package/dist/esm/pipeline/spec/chart/pipes/init/boxplot.js.map +1 -0
  121. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.d.ts +2 -0
  122. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js +21 -0
  123. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js.map +1 -0
  124. package/dist/esm/pipeline/spec/chart/pipes/init/index.d.ts +2 -0
  125. package/dist/esm/pipeline/spec/chart/pipes/init/index.js +3 -1
  126. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +15 -4
  127. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +2 -1
  128. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  129. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  130. package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -1
  131. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
  132. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  133. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
  134. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointState.js.map +1 -1
  135. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  136. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +37 -14
  137. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  138. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  139. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js.map +1 -1
  140. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +2 -0
  141. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +126 -0
  142. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +1 -0
  143. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +1 -0
  144. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +1 -0
  145. package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js +1 -0
  146. package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js.map +1 -1
  147. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +2 -0
  148. package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +3 -1
  149. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.d.ts +2 -0
  150. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +98 -0
  151. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -0
  152. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.d.ts +2 -0
  153. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +69 -0
  154. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -0
  155. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
  156. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js +1 -2
  157. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js.map +1 -1
  158. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  159. package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js +1 -0
  160. package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js.map +1 -1
  161. package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
  162. package/dist/esm/pipeline/spec/table/pipes/theme/frameStyle.js.map +1 -1
  163. package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
  164. package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
  165. package/dist/esm/pipeline/spec/table/pipes/theme/scrollStyle.js.map +1 -1
  166. package/dist/esm/pipeline/spec/table/pipes/theme/selectionStyle.js.map +1 -1
  167. package/dist/esm/pipeline/spec/table/pipes/theme/type.d.ts +13 -0
  168. package/dist/esm/pipeline/spec/table/pipes/theme/type.js +0 -0
  169. package/dist/esm/pipeline/utils/constant.d.ts +2 -0
  170. package/dist/esm/pipeline/utils/constant.js +3 -1
  171. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  172. package/dist/esm/theme/common/annotaion.d.ts +3 -0
  173. package/dist/esm/theme/common/annotaion.js +33 -49
  174. package/dist/esm/theme/common/annotaion.js.map +1 -1
  175. package/dist/esm/theme/common/label.d.ts +18 -0
  176. package/dist/esm/theme/common/label.js +9 -1
  177. package/dist/esm/theme/common/label.js.map +1 -1
  178. package/dist/esm/theme/common/regressionLine.d.ts +4 -0
  179. package/dist/esm/theme/common/regressionLine.js +16 -0
  180. package/dist/esm/theme/common/regressionLine.js.map +1 -0
  181. package/dist/esm/theme/common/table.d.ts +17 -8
  182. package/dist/esm/theme/common/table.js +11 -8
  183. package/dist/esm/theme/common/table.js.map +1 -1
  184. package/dist/esm/theme/dark/dark.js +20 -2
  185. package/dist/esm/theme/dark/dark.js.map +1 -1
  186. package/dist/esm/theme/light/light.js +20 -2
  187. package/dist/esm/theme/light/light.js.map +1 -1
  188. package/dist/esm/types/advancedVSeed.d.ts +1453 -17
  189. package/dist/esm/types/advancedVSeed.js +3 -2
  190. package/dist/esm/types/advancedVSeed.js.map +1 -1
  191. package/dist/esm/types/chartType/area/zArea.d.ts +9 -0
  192. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +9 -0
  193. package/dist/esm/types/chartType/bar/bar.d.ts +5 -1
  194. package/dist/esm/types/chartType/bar/zBar.d.ts +10 -0
  195. package/dist/esm/types/chartType/bar/zBar.js +2 -1
  196. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  197. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +9 -1
  198. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +11 -0
  199. package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -1
  200. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  201. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +5 -1
  202. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +10 -0
  203. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  204. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  205. package/dist/esm/types/chartType/boxplot/boxplot.d.ts +144 -0
  206. package/dist/esm/types/chartType/boxplot/boxplot.js +0 -0
  207. package/dist/esm/types/chartType/boxplot/index.d.ts +2 -0
  208. package/dist/esm/types/chartType/boxplot/index.js +1 -0
  209. package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +1185 -0
  210. package/dist/esm/types/chartType/boxplot/zBoxplot.js +30 -0
  211. package/dist/esm/types/chartType/boxplot/zBoxplot.js.map +1 -0
  212. package/dist/esm/types/chartType/column/column.d.ts +5 -1
  213. package/dist/esm/types/chartType/column/zColumn.d.ts +26 -0
  214. package/dist/esm/types/chartType/column/zColumn.js +4 -1
  215. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  216. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +9 -1
  217. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +11 -0
  218. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +3 -1
  219. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  220. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +5 -1
  221. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +10 -0
  222. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  223. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  224. package/dist/esm/types/chartType/donut/zDonut.d.ts +9 -0
  225. package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +9 -1
  226. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +2 -0
  227. package/dist/esm/types/chartType/dualAxis/zDualAxis.js +3 -1
  228. package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
  229. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +9 -0
  230. package/dist/esm/types/chartType/histogram/histogram.d.ts +127 -0
  231. package/dist/esm/types/chartType/histogram/histogram.js +0 -0
  232. package/dist/esm/types/chartType/histogram/index.d.ts +2 -0
  233. package/dist/esm/types/chartType/histogram/index.js +1 -0
  234. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +1377 -0
  235. package/dist/esm/types/chartType/histogram/zHistogram.js +32 -0
  236. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -0
  237. package/dist/esm/types/chartType/index.d.ts +3 -0
  238. package/dist/esm/types/chartType/index.js +2 -0
  239. package/dist/esm/types/chartType/line/zLine.d.ts +9 -0
  240. package/dist/esm/types/chartType/pie/zPie.d.ts +9 -0
  241. package/dist/esm/types/chartType/radar/zRadar.d.ts +9 -0
  242. package/dist/esm/types/chartType/rose/zRose.d.ts +9 -0
  243. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +9 -0
  244. package/dist/esm/types/chartType/scatter/zScatter.d.ts +9 -0
  245. package/dist/esm/types/properties/chartType/chartType.d.ts +3 -1
  246. package/dist/esm/types/properties/chartType/chartType.js +3 -1
  247. package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
  248. package/dist/esm/types/properties/config/area.d.ts +4 -0
  249. package/dist/esm/types/properties/config/bar.d.ts +6 -0
  250. package/dist/esm/types/properties/config/barWidth/index.d.ts +5 -0
  251. package/dist/esm/types/properties/config/barWidth/index.js +6 -0
  252. package/dist/esm/types/properties/config/barWidth/index.js.map +1 -0
  253. package/dist/esm/types/properties/config/boxplot.d.ts +326 -0
  254. package/dist/esm/types/properties/config/boxplot.js +27 -0
  255. package/dist/esm/types/properties/config/boxplot.js.map +1 -0
  256. package/dist/esm/types/properties/config/column.d.ts +12 -0
  257. package/dist/esm/types/properties/config/column.js +3 -0
  258. package/dist/esm/types/properties/config/column.js.map +1 -1
  259. package/dist/esm/types/properties/config/config.d.ts +703 -0
  260. package/dist/esm/types/properties/config/config.js +5 -1
  261. package/dist/esm/types/properties/config/config.js.map +1 -1
  262. package/dist/esm/types/properties/config/dualAxis.d.ts +2 -0
  263. package/dist/esm/types/properties/config/funnel.d.ts +2 -0
  264. package/dist/esm/types/properties/config/heatmap.d.ts +2 -0
  265. package/dist/esm/types/properties/config/histogram.d.ts +339 -0
  266. package/dist/esm/types/properties/config/histogram.js +32 -0
  267. package/dist/esm/types/properties/config/histogram.js.map +1 -0
  268. package/dist/esm/types/properties/config/index.d.ts +2 -0
  269. package/dist/esm/types/properties/config/index.js +2 -0
  270. package/dist/esm/types/properties/config/label/label.d.ts +4 -0
  271. package/dist/esm/types/properties/config/line.d.ts +2 -0
  272. package/dist/esm/types/properties/config/pie.d.ts +6 -0
  273. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +2 -0
  274. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +3 -1
  275. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  276. package/dist/esm/types/properties/config/rose.d.ts +4 -0
  277. package/dist/esm/types/properties/config/scatter.d.ts +2 -0
  278. package/dist/esm/types/properties/config/whiskers/index.d.ts +3 -0
  279. package/dist/esm/types/properties/config/whiskers/index.js +5 -0
  280. package/dist/esm/types/properties/config/whiskers/index.js.map +1 -0
  281. package/dist/esm/types/properties/encoding/encoding.d.ts +36 -0
  282. package/dist/esm/types/properties/encoding/measureEncoding.d.ts +1 -1
  283. package/dist/esm/types/properties/encoding/zEncoding.d.ts +9 -0
  284. package/dist/esm/types/properties/encoding/zEncoding.js +10 -1
  285. package/dist/esm/types/properties/encoding/zEncoding.js.map +1 -1
  286. package/dist/esm/types/properties/index.d.ts +1 -0
  287. package/dist/esm/types/properties/index.js +1 -0
  288. package/dist/esm/types/properties/regressionLine/histogramRegressionLine.d.ts +45 -0
  289. package/dist/esm/types/properties/regressionLine/histogramRegressionLine.js +0 -0
  290. package/dist/esm/types/properties/regressionLine/index.d.ts +2 -0
  291. package/dist/esm/types/properties/regressionLine/index.js +1 -0
  292. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +11 -0
  293. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +17 -0
  294. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +1 -0
  295. package/dist/esm/types/properties/theme/customTheme.d.ts +1950 -544
  296. package/dist/esm/types/vseed.d.ts +2 -2
  297. package/dist/esm/types/zVseed.d.ts +2727 -0
  298. package/dist/esm/types/zVseed.js +4 -2
  299. package/dist/esm/types/zVseed.js.map +1 -1
  300. package/dist/umd/index.js +1850 -208
  301. package/dist/umd/index.js.map +1 -1
  302. package/package.json +6 -4
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/columns/measuresToColumns.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/columns/measuresToColumns.ts"],"sourcesContent":["import type { ColumnsDefine, ListTableConstructorOptions } from '@visactor/vtable'\nimport type { FieldFormat } from '@visactor/vtable/es/ts-types'\nimport { createFormatterByMeasure, isMeasure } from 'src/pipeline/utils'\nimport type { MeasureGroup, Measure, MeasureTree, SpecPipe, Datum } from 'src/types'\n\nexport const measureTreeToColumns: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const measures = (advancedVSeed as unknown as { measures: MeasureTree }).measures\n const result = { ...spec } as ListTableConstructorOptions\n\n const eachNode = (node: Measure | MeasureGroup) => {\n if (isMeasure(node)) {\n return {\n width: 'auto',\n fieldFormat: fieldFormat(node),\n }\n }\n\n return {}\n }\n const columns = treeTreeToColumns<Measure, MeasureGroup>(measures, eachNode)\n return {\n ...result,\n columns: [...(result.columns || []), ...columns] as ListTableConstructorOptions['columns'],\n }\n}\n\nconst fieldFormat = (node: Measure): FieldFormat => {\n const formatter = createFormatterByMeasure(node)\n\n return (datum: Datum) => {\n const { id } = node\n const value = datum[id] as number | string | undefined\n return formatter(value)\n }\n}\nconst treeTreeToColumns = <\n T extends { id: string; alias?: string },\n U extends { id: string; alias?: string; children?: (T | U)[] },\n>(\n tree: (T | U)[],\n callback?: (node: T | U) => object,\n): ColumnsDefine[] => {\n const result = tree.map((item) => {\n if ('children' in item && Array.isArray(item.children)) {\n const groupNode = item as unknown as U\n const field = groupNode.id\n const title = groupNode.alias ?? groupNode.id\n const props = callback?.(groupNode) || {}\n // group\n return {\n field,\n title,\n columns: treeTreeToColumns(item.children, callback),\n ...props,\n }\n } else {\n const field = item.id\n const title = item.alias ?? item.id\n const props = callback?.(item) || {}\n // leaf\n return {\n field,\n title,\n ...props,\n }\n }\n }) as unknown as ColumnsDefine[]\n\n return result || []\n}\n"],"names":["measureTreeToColumns","spec","context","advancedVSeed","measures","result","eachNode","node","isMeasure","fieldFormat","columns","treeTreeToColumns","formatter","createFormatterByMeasure","datum","id","value","tree","callback","item","Array","groupNode","field","title","props"],"mappings":";AAKO,MAAMA,uBAAiC,CAACC,MAAMC;IACnD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAME,WAAYD,cAAuD,QAAQ;IACjF,MAAME,SAAS;QAAE,GAAGJ,IAAI;IAAC;IAEzB,MAAMK,WAAW,CAACC;QAChB,IAAIC,UAAUD,OACZ,OAAO;YACL,OAAO;YACP,aAAaE,YAAYF;QAC3B;QAGF,OAAO,CAAC;IACV;IACA,MAAMG,UAAUC,kBAAyCP,UAAUE;IACnE,OAAO;QACL,GAAGD,MAAM;QACT,SAAS;eAAKA,OAAO,OAAO,IAAI,EAAE;eAAMK;SAAQ;IAClD;AACF;AAEA,MAAMD,cAAc,CAACF;IACnB,MAAMK,YAAYC,yBAAyBN;IAE3C,OAAO,CAACO;QACN,MAAM,EAAEC,EAAE,EAAE,GAAGR;QACf,MAAMS,QAAQF,KAAK,CAACC,GAAG;QACvB,OAAOH,UAAUI;IACnB;AACF;AACA,MAAML,oBAAoB,CAIxBM,MACAC;IAEA,MAAMb,SAASY,KAAK,GAAG,CAAC,CAACE;QACvB,IAAI,cAAcA,QAAQC,MAAM,OAAO,CAACD,KAAK,QAAQ,GAAG;YACtD,MAAME,YAAYF;YAClB,MAAMG,QAAQD,UAAU,EAAE;YAC1B,MAAME,QAAQF,UAAU,KAAK,IAAIA,UAAU,EAAE;YAC7C,MAAMG,QAAQN,WAAWG,cAAc,CAAC;YAExC,OAAO;gBACLC;gBACAC;gBACA,SAASZ,kBAAkBQ,KAAK,QAAQ,EAAED;gBAC1C,GAAGM,KAAK;YACV;QACF;QAAO;YACL,MAAMF,QAAQH,KAAK,EAAE;YACrB,MAAMI,QAAQJ,KAAK,KAAK,IAAIA,KAAK,EAAE;YACnC,MAAMK,QAAQN,WAAWC,SAAS,CAAC;YAEnC,OAAO;gBACLG;gBACAC;gBACA,GAAGC,KAAK;YACV;QACF;IACF;IAEA,OAAOnB,UAAU,EAAE;AACrB"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/columns/measuresToColumns.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/columns/measuresToColumns.ts"],"sourcesContent":["import type { ColumnsDefine, ListTableConstructorOptions } from '@visactor/vtable'\nimport { createFormatterByMeasure, isMeasure } from 'src/pipeline/utils'\nimport type { MeasureGroup, Measure, MeasureTree, SpecPipe, Datum } from 'src/types'\n\nexport const measureTreeToColumns: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const measures = (advancedVSeed as unknown as { measures: MeasureTree }).measures\n const result = { ...spec } as ListTableConstructorOptions\n\n const eachNode = (node: Measure | MeasureGroup) => {\n if (isMeasure(node)) {\n return {\n width: 'auto',\n fieldFormat: fieldFormat(node),\n }\n }\n\n return {}\n }\n const columns = treeTreeToColumns<Measure, MeasureGroup>(measures, eachNode)\n return {\n ...result,\n columns: [...(result.columns || []), ...columns] as ListTableConstructorOptions['columns'],\n }\n}\n\nconst fieldFormat = (node: Measure) => {\n const formatter = createFormatterByMeasure(node)\n\n return (datum: Datum) => {\n const { id } = node\n const value = datum[id] as number | string | undefined\n return formatter(value)\n }\n}\nconst treeTreeToColumns = <\n T extends { id: string; alias?: string },\n U extends { id: string; alias?: string; children?: (T | U)[] },\n>(\n tree: (T | U)[],\n callback?: (node: T | U) => object,\n): ColumnsDefine[] => {\n const result = tree.map((item) => {\n if ('children' in item && Array.isArray(item.children)) {\n const groupNode = item as unknown as U\n const field = groupNode.id\n const title = groupNode.alias ?? groupNode.id\n const props = callback?.(groupNode) || {}\n // group\n return {\n field,\n title,\n columns: treeTreeToColumns(item.children, callback),\n ...props,\n }\n } else {\n const field = item.id\n const title = item.alias ?? item.id\n const props = callback?.(item) || {}\n // leaf\n return {\n field,\n title,\n ...props,\n }\n }\n }) as unknown as ColumnsDefine[]\n\n return result || []\n}\n"],"names":["measureTreeToColumns","spec","context","advancedVSeed","measures","result","eachNode","node","isMeasure","fieldFormat","columns","treeTreeToColumns","formatter","createFormatterByMeasure","datum","id","value","tree","callback","item","Array","groupNode","field","title","props"],"mappings":";AAIO,MAAMA,uBAAiC,CAACC,MAAMC;IACnD,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAME,WAAYD,cAAuD,QAAQ;IACjF,MAAME,SAAS;QAAE,GAAGJ,IAAI;IAAC;IAEzB,MAAMK,WAAW,CAACC;QAChB,IAAIC,UAAUD,OACZ,OAAO;YACL,OAAO;YACP,aAAaE,YAAYF;QAC3B;QAGF,OAAO,CAAC;IACV;IACA,MAAMG,UAAUC,kBAAyCP,UAAUE;IACnE,OAAO;QACL,GAAGD,MAAM;QACT,SAAS;eAAKA,OAAO,OAAO,IAAI,EAAE;eAAMK;SAAQ;IAClD;AACF;AAEA,MAAMD,cAAc,CAACF;IACnB,MAAMK,YAAYC,yBAAyBN;IAE3C,OAAO,CAACO;QACN,MAAM,EAAEC,EAAE,EAAE,GAAGR;QACf,MAAMS,QAAQF,KAAK,CAACC,GAAG;QACvB,OAAOH,UAAUI;IACnB;AACF;AACA,MAAML,oBAAoB,CAIxBM,MACAC;IAEA,MAAMb,SAASY,KAAK,GAAG,CAAC,CAACE;QACvB,IAAI,cAAcA,QAAQC,MAAM,OAAO,CAACD,KAAK,QAAQ,GAAG;YACtD,MAAME,YAAYF;YAClB,MAAMG,QAAQD,UAAU,EAAE;YAC1B,MAAME,QAAQF,UAAU,KAAK,IAAIA,UAAU,EAAE;YAC7C,MAAMG,QAAQN,WAAWG,cAAc,CAAC;YAExC,OAAO;gBACLC;gBACAC;gBACA,SAASZ,kBAAkBQ,KAAK,QAAQ,EAAED;gBAC1C,GAAGM,KAAK;YACV;QACF;QAAO;YACL,MAAMF,QAAQH,KAAK,EAAE;YACrB,MAAMI,QAAQJ,KAAK,KAAK,IAAIA,KAAK,EAAE;YACnC,MAAMK,QAAQN,WAAWC,SAAS,CAAC;YAEnC,OAAO;gBACLG;gBACAC;gBACA,GAAGC,KAAK;YACV;QACF;IACF;IAEA,OAAOnB,UAAU,EAAE;AACrB"}
@@ -1,11 +1,10 @@
1
- import { AggregationType } from "@visactor/vtable/es/ts-types";
2
1
  import { findAllMeasures } from "../../../../utils/index.js";
3
2
  const dataConfig = (spec, context)=>{
4
3
  const { advancedVSeed } = context;
5
4
  const measures = findAllMeasures(advancedVSeed.measures);
6
5
  const aggregationRules = measures.map((measure)=>({
7
6
  field: measure.id,
8
- aggregationType: AggregationType.NONE,
7
+ aggregationType: 'NONE',
9
8
  indicatorKey: measure.id
10
9
  }));
11
10
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotDataConfig.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotDataConfig.ts"],"sourcesContent":["import { AggregationType } from '@visactor/vtable/es/ts-types'\nimport { findAllMeasures } from 'src/pipeline/utils'\nimport type { SpecPipe } from 'src/types'\n\nexport const dataConfig: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const measures = findAllMeasures(advancedVSeed.measures)\n\n const aggregationRules = measures.map((measure) => ({\n field: measure.id,\n aggregationType: AggregationType.NONE,\n indicatorKey: measure.id,\n }))\n\n return {\n ...spec,\n dataConfig: {\n aggregationRules,\n },\n }\n}\n"],"names":["dataConfig","spec","context","advancedVSeed","measures","findAllMeasures","aggregationRules","measure","AggregationType"],"mappings":";;AAIO,MAAMA,aAAuB,CAACC,MAAMC;IACzC,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAME,WAAWC,gBAAgBF,cAAc,QAAQ;IAEvD,MAAMG,mBAAmBF,SAAS,GAAG,CAAC,CAACG,UAAa;YAClD,OAAOA,QAAQ,EAAE;YACjB,iBAAiBC,gBAAgB,IAAI;YACrC,cAAcD,QAAQ,EAAE;QAC1B;IAEA,OAAO;QACL,GAAGN,IAAI;QACP,YAAY;YACVK;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotDataConfig.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotDataConfig.ts"],"sourcesContent":["import { findAllMeasures } from 'src/pipeline/utils'\nimport type { SpecPipe } from 'src/types'\n\nexport const dataConfig: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const measures = findAllMeasures(advancedVSeed.measures)\n\n const aggregationRules = measures.map((measure) => ({\n field: measure.id,\n aggregationType: 'NONE',\n indicatorKey: measure.id,\n }))\n\n return {\n ...spec,\n dataConfig: {\n aggregationRules,\n },\n }\n}\n"],"names":["dataConfig","spec","context","advancedVSeed","measures","findAllMeasures","aggregationRules","measure"],"mappings":";AAGO,MAAMA,aAAuB,CAACC,MAAMC;IACzC,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAME,WAAWC,gBAAgBF,cAAc,QAAQ;IAEvD,MAAMG,mBAAmBF,SAAS,GAAG,CAAC,CAACG,UAAa;YAClD,OAAOA,QAAQ,EAAE;YACjB,iBAAiB;YACjB,cAAcA,QAAQ,EAAE;QAC1B;IAEA,OAAO;QACL,GAAGN,IAAI;QACP,YAAY;YACVK;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotIndicators.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotIndicators.ts"],"sourcesContent":["import type { PivotChartConstructorOptions } from '@visactor/vtable'\nimport type { BaseTableAPI, FieldFormat } from '@visactor/vtable/es/ts-types'\nimport { isNumber } from 'remeda'\nimport { intl } from 'src/i18n'\nimport { createFormatterByMeasure, findMeasureById } from 'src/pipeline/utils'\nimport type { Datum, FoldInfo, MeasureTree, SpecPipe } from 'src/types'\n\nexport const pivotIndicators: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { measures, datasetReshapeInfo } = advancedVSeed\n const { foldInfo } = datasetReshapeInfo[0]\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n const hasRow = ((spec as any)?.rows as any[])?.length > 0\n const foldMapValues = Object.values(foldInfo.foldMap)\n\n return {\n ...spec,\n indicatorTitle: intl.i18n`指标名称`,\n indicatorsAsCol: hasRow,\n hideIndicatorName: hasRow,\n indicators: [\n {\n cellType: 'text',\n indicatorKey: foldInfo.measureValue,\n title: foldMapValues.length > 1 ? '' : foldMapValues[0],\n width: 'auto',\n format: fieldFormat(measures, foldInfo as FoldInfo),\n },\n ] as unknown as PivotChartConstructorOptions['indicators'],\n }\n}\n\nconst fieldFormat = (measures: MeasureTree, foldInfo: FoldInfo): FieldFormat => {\n return (value: number | string, col?: number, row?: number, table?: BaseTableAPI) => {\n if (!isNumber(col) || !isNumber(row) || !table) {\n return value\n }\n\n const datum = table.getCellOriginRecord(col, row) as Datum[]\n if (!datum[0]) {\n return value\n }\n const { measureId: foldMeasureId } = foldInfo\n const measureId = datum[0][foldMeasureId] as string\n const measure = findMeasureById(measures, measureId)\n const formatter = createFormatterByMeasure(measure)\n return formatter(value)\n }\n}\n"],"names":["pivotIndicators","spec","context","advancedVSeed","measures","datasetReshapeInfo","foldInfo","hasRow","foldMapValues","Object","intl","fieldFormat","value","col","row","table","isNumber","datum","foldMeasureId","measureId","measure","findMeasureById","formatter","createFormatterByMeasure"],"mappings":";;;AAOO,MAAMA,kBAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,QAAQ,EAAEC,kBAAkB,EAAE,GAAGF;IACzC,MAAM,EAAEG,QAAQ,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAE1C,MAAME,SAAWN,MAAc,MAAgB,SAAS;IACxD,MAAMO,gBAAgBC,OAAO,MAAM,CAACH,SAAS,OAAO;IAEpD,OAAO;QACL,GAAGL,IAAI;QACP,gBAAgBS,KAAK,IAAI,CAAC,IAAI,CAAC;QAC/B,iBAAiBH;QACjB,mBAAmBA;QACnB,YAAY;YACV;gBACE,UAAU;gBACV,cAAcD,SAAS,YAAY;gBACnC,OAAOE,cAAc,MAAM,GAAG,IAAI,KAAKA,aAAa,CAAC,EAAE;gBACvD,OAAO;gBACP,QAAQG,YAAYP,UAAUE;YAChC;SACD;IACH;AACF;AAEA,MAAMK,cAAc,CAACP,UAAuBE,WACnC,CAACM,OAAwBC,KAAcC,KAAcC;QAC1D,IAAI,CAACC,SAASH,QAAQ,CAACG,SAASF,QAAQ,CAACC,OACvC,OAAOH;QAGT,MAAMK,QAAQF,MAAM,mBAAmB,CAACF,KAAKC;QAC7C,IAAI,CAACG,KAAK,CAAC,EAAE,EACX,OAAOL;QAET,MAAM,EAAE,WAAWM,aAAa,EAAE,GAAGZ;QACrC,MAAMa,YAAYF,KAAK,CAAC,EAAE,CAACC,cAAc;QACzC,MAAME,UAAUC,gBAAgBjB,UAAUe;QAC1C,MAAMG,YAAYC,yBAAyBH;QAC3C,OAAOE,UAAUV;IACnB"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotIndicators.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotIndicators.ts"],"sourcesContent":["import type { PivotChartConstructorOptions, BaseTableAPI } from '@visactor/vtable'\nimport { isNumber } from 'remeda'\nimport { intl } from 'src/i18n'\nimport { createFormatterByMeasure, findMeasureById } from 'src/pipeline/utils'\nimport type { Datum, FoldInfo, MeasureTree, SpecPipe } from 'src/types'\n\nexport const pivotIndicators: SpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { measures, datasetReshapeInfo } = advancedVSeed\n const { foldInfo } = datasetReshapeInfo[0]\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n const hasRow = ((spec as any)?.rows as any[])?.length > 0\n const foldMapValues = Object.values(foldInfo.foldMap)\n\n return {\n ...spec,\n indicatorTitle: intl.i18n`指标名称`,\n indicatorsAsCol: hasRow,\n hideIndicatorName: hasRow,\n indicators: [\n {\n cellType: 'text',\n indicatorKey: foldInfo.measureValue,\n title: foldMapValues.length > 1 ? '' : foldMapValues[0],\n width: 'auto',\n format: fieldFormat(measures, foldInfo as FoldInfo),\n },\n ] as unknown as PivotChartConstructorOptions['indicators'],\n }\n}\n\nconst fieldFormat = (measures: MeasureTree, foldInfo: FoldInfo) => {\n return (value: number | string, col?: number, row?: number, table?: BaseTableAPI) => {\n if (!isNumber(col) || !isNumber(row) || !table) {\n return value\n }\n\n const datum = table.getCellOriginRecord(col, row) as Datum[]\n if (!datum[0]) {\n return value\n }\n const { measureId: foldMeasureId } = foldInfo\n const measureId = datum[0][foldMeasureId] as string\n const measure = findMeasureById(measures, measureId)\n const formatter = createFormatterByMeasure(measure)\n return formatter(value)\n }\n}\n"],"names":["pivotIndicators","spec","context","advancedVSeed","measures","datasetReshapeInfo","foldInfo","hasRow","foldMapValues","Object","intl","fieldFormat","value","col","row","table","isNumber","datum","foldMeasureId","measureId","measure","findMeasureById","formatter","createFormatterByMeasure"],"mappings":";;;AAMO,MAAMA,kBAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,QAAQ,EAAEC,kBAAkB,EAAE,GAAGF;IACzC,MAAM,EAAEG,QAAQ,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAE1C,MAAME,SAAWN,MAAc,MAAgB,SAAS;IACxD,MAAMO,gBAAgBC,OAAO,MAAM,CAACH,SAAS,OAAO;IAEpD,OAAO;QACL,GAAGL,IAAI;QACP,gBAAgBS,KAAK,IAAI,CAAC,IAAI,CAAC;QAC/B,iBAAiBH;QACjB,mBAAmBA;QACnB,YAAY;YACV;gBACE,UAAU;gBACV,cAAcD,SAAS,YAAY;gBACnC,OAAOE,cAAc,MAAM,GAAG,IAAI,KAAKA,aAAa,CAAC,EAAE;gBACvD,OAAO;gBACP,QAAQG,YAAYP,UAAUE;YAChC;SACD;IACH;AACF;AAEA,MAAMK,cAAc,CAACP,UAAuBE,WACnC,CAACM,OAAwBC,KAAcC,KAAcC;QAC1D,IAAI,CAACC,SAASH,QAAQ,CAACG,SAASF,QAAQ,CAACC,OACvC,OAAOH;QAGT,MAAMK,QAAQF,MAAM,mBAAmB,CAACF,KAAKC;QAC7C,IAAI,CAACG,KAAK,CAAC,EAAE,EACX,OAAOL;QAET,MAAM,EAAE,WAAWM,aAAa,EAAE,GAAGZ;QACrC,MAAMa,YAAYF,KAAK,CAAC,EAAE,CAACC,cAAc;QACzC,MAAME,UAAUC,gBAAgBjB,UAAUe;QAC1C,MAAMG,YAAYC,yBAAyBH;QAC3C,OAAOE,UAAUV;IACnB"}
@@ -12,6 +12,7 @@ const bodyStyle = (spec, context)=>{
12
12
  const fontSize = themeConfig.bodyFontSize || 12;
13
13
  const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff';
14
14
  const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff';
15
+ if (!result.theme) result.theme = {};
15
16
  result.theme.bodyStyle = {
16
17
  borderColor: borderColor,
17
18
  borderLineWidth: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/bodyStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/bodyStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const bodyStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { chartType, config } = advancedVSeed\n const themeConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themeConfig) return result\n\n // basic\n const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themeConfig.bodyBackgroundColor || '#fff'\n const fontColor = themeConfig.bodyFontColor || '#1B1F23'\n const fontSize = themeConfig.bodyFontSize || 12\n // Interaction\n const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff'\n const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff'\n\n result.theme.bodyStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'right',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n color: fontColor,\n fontSize: fontSize,\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontVariant: 'normal',\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["bodyStyle","spec","context","result","advancedVSeed","chartType","config","themeConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,YAAsB,CAACC,MAAMC;IACxC,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGF;IAC9B,MAAMG,cAAcD,QAAQ,CAACD,UAAU;IAEvC,IAAI,CAACF,OAAO,KAAK,IAAI,CAACI,aAAa,OAAOJ;IAG1C,MAAMK,cAAcD,YAAY,WAAW,IAAI;IAC/C,MAAME,kBAAkBF,YAAY,mBAAmB,IAAI;IAC3D,MAAMG,YAAYH,YAAY,aAAa,IAAI;IAC/C,MAAMI,WAAWJ,YAAY,YAAY,IAAI;IAE7C,MAAMK,mBAAmBL,YAAY,wBAAwB,IAAI;IACjE,MAAMM,mBAAmBN,YAAY,8BAA8B,IAAI;IAEvEJ,OAAO,KAAK,CAAC,SAAS,GAAG;QACvB,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,OAAOH;QACP,UAAUC;QACV,WAAW;QACX,YAAY;QACZ,aAAa;QACb,SAASF;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/bodyStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/bodyStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const bodyStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { chartType, config } = advancedVSeed\n const themeConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themeConfig) return result\n\n // basic\n const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themeConfig.bodyBackgroundColor || '#fff'\n const fontColor = themeConfig.bodyFontColor || '#1B1F23'\n const fontSize = themeConfig.bodyFontSize || 12\n // Interaction\n const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff'\n const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff'\n\n if (!result.theme) result.theme = {}\n ;(result.theme as ThemeLike).bodyStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'right',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n color: fontColor,\n fontSize: fontSize,\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontVariant: 'normal',\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["bodyStyle","spec","context","result","advancedVSeed","chartType","config","themeConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,YAAsB,CAACC,MAAMC;IACxC,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,SAAS,EAAEC,MAAM,EAAE,GAAGF;IAC9B,MAAMG,cAAcD,QAAQ,CAACD,UAAU;IAEvC,IAAI,CAACF,OAAO,KAAK,IAAI,CAACI,aAAa,OAAOJ;IAG1C,MAAMK,cAAcD,YAAY,WAAW,IAAI;IAC/C,MAAME,kBAAkBF,YAAY,mBAAmB,IAAI;IAC3D,MAAMG,YAAYH,YAAY,aAAa,IAAI;IAC/C,MAAMI,WAAWJ,YAAY,YAAY,IAAI;IAE7C,MAAMK,mBAAmBL,YAAY,wBAAwB,IAAI;IACjE,MAAMM,mBAAmBN,YAAY,8BAA8B,IAAI;IAEvE,IAAI,CAACJ,OAAO,KAAK,EAAEA,OAAO,KAAK,GAAG,CAAC;IACjCA,OAAO,KAAK,CAAe,SAAS,GAAG;QACvC,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,OAAOH;QACP,UAAUC;QACV,WAAW;QACX,YAAY;QACZ,aAAa;QACb,SAASF;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/cornerHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/cornerHeaderStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const cornerHeaderStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor\n const hoverCellColor = themConfig.hoverHeaderBackgroundColor\n\n result.theme.cornerHeaderStyle = {\n borderColor: [borderColor, borderColor],\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellColor || undefined,\n inlineRowBgColor: hoverInlineColor || undefined,\n inlineColumnBgColor: hoverInlineColor || undefined,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 1, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["cornerHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverInlineColor","hoverCellColor","undefined"],"mappings":"AAGO,MAAMA,oBAA8B,CAACC,MAAMC;IAChD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,gCAAgC;IACpE,MAAMM,iBAAiBN,WAAW,0BAA0B;IAE5DJ,OAAO,KAAK,CAAC,iBAAiB,GAAG;QAC/B,aAAa;YAACK;YAAaA;SAAY;QACvC,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaK,kBAAkBC;YAC/B,kBAAkBF,oBAAoBE;YACtC,qBAAqBF,oBAAoBE;QAC3C;QACA,YAAY;YACV,aAAaN;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/cornerHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/cornerHeaderStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const cornerHeaderStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor\n const hoverCellColor = themConfig.hoverHeaderBackgroundColor\n\n ;(result.theme as ThemeLike).cornerHeaderStyle = {\n borderColor: [borderColor, borderColor],\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellColor || undefined,\n inlineRowBgColor: hoverInlineColor || undefined,\n inlineColumnBgColor: hoverInlineColor || undefined,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 1, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["cornerHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverInlineColor","hoverCellColor","undefined"],"mappings":"AAGO,MAAMA,oBAA8B,CAACC,MAAMC;IAChD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,gCAAgC;IACpE,MAAMM,iBAAiBN,WAAW,0BAA0B;IAE1DJ,OAAO,KAAK,CAAe,iBAAiB,GAAG;QAC/C,aAAa;YAACK;YAAaA;SAAY;QACvC,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaK,kBAAkBC;YAC/B,kBAAkBF,oBAAoBE;YACtC,qBAAqBF,oBAAoBE;QAC3C;QACA,YAAY;YACV,aAAaN;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/frameStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/frameStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const frameStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n\n result.theme.frameStyle = {\n borderColor,\n borderLineWidth: 1,\n cornerRadius: 4,\n }\n\n return result\n}\n"],"names":["frameStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor"],"mappings":"AAGO,MAAMA,aAAuB,CAACC,MAAMC;IACzC,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAEzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAE9CJ,OAAO,KAAK,CAAC,UAAU,GAAG;QACxBK;QACA,iBAAiB;QACjB,cAAc;IAChB;IAEA,OAAOL;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/frameStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/frameStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const frameStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n\n ;(result.theme as ThemeLike).frameStyle = {\n borderColor,\n borderLineWidth: 1,\n cornerRadius: 4,\n }\n\n return result\n}\n"],"names":["frameStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor"],"mappings":"AAGO,MAAMA,aAAuB,CAACC,MAAMC;IACzC,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAEzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAE5CJ,OAAO,KAAK,CAAe,UAAU,GAAG;QACxCK;QACA,iBAAiB;QACjB,cAAc;IAChB;IAEA,OAAOL;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/headerStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/headerStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const headerStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n result.theme.headerStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'center',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 0, 1, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["headerStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,cAAwB,CAACC,MAAMC;IAC1C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,0BAA0B,IAAI;IAClE,MAAMM,mBAAmBN,WAAW,gCAAgC,IAAI;IAExEJ,OAAO,KAAK,CAAC,WAAW,GAAG;QACzB,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaL;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/headerStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/headerStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const headerStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).headerStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'center',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 0, 1, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["headerStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,cAAwB,CAACC,MAAMC;IAC1C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,0BAA0B,IAAI;IAClE,MAAMM,mBAAmBN,WAAW,gCAAgC,IAAI;IAEtEJ,OAAO,KAAK,CAAe,WAAW,GAAG;QACzC,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaL;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/rowHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/rowHeaderStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const rowHeaderStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n result.theme.rowHeaderStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 0, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["rowHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,iBAA2B,CAACC,MAAMC;IAC7C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,0BAA0B,IAAI;IAClE,MAAMM,mBAAmBN,WAAW,gCAAgC,IAAI;IAExEJ,OAAO,KAAK,CAAC,cAAc,GAAG;QAC5B,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaL;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/rowHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/rowHeaderStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const rowHeaderStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).rowHeaderStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 0, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["rowHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,iBAA2B,CAACC,MAAMC;IAC7C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAE9C,MAAMK,mBAAmBL,WAAW,0BAA0B,IAAI;IAClE,MAAMM,mBAAmBN,WAAW,gCAAgC,IAAI;IAEtEJ,OAAO,KAAK,CAAe,cAAc,GAAG;QAC5C,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaI;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaL;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOD;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/scrollStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/scrollStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe } from 'src/types'\n\nexport const frameStyle: SpecPipe = (spec) => {\n const result = { ...spec } as BaseTableConstructorOptions\n if (!result.theme) return result\n\n result.theme.scrollStyle = {\n hoverOn: true,\n visible: 'focus',\n width: 7,\n }\n\n return result\n}\n"],"names":["frameStyle","spec","result"],"mappings":"AAGO,MAAMA,aAAuB,CAACC;IACnC,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IACzB,IAAI,CAACC,OAAO,KAAK,EAAE,OAAOA;IAE1BA,OAAO,KAAK,CAAC,WAAW,GAAG;QACzB,SAAS;QACT,SAAS;QACT,OAAO;IACT;IAEA,OAAOA;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/scrollStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/scrollStyle.ts"],"sourcesContent":["import type { SpecPipe } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const frameStyle: SpecPipe = (spec) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n if (!result.theme) return result\n ;(result.theme as ThemeLike).scrollStyle = {\n hoverOn: true,\n visible: 'focus',\n width: 7,\n }\n\n return result\n}\n"],"names":["frameStyle","spec","result"],"mappings":"AAGO,MAAMA,aAAuB,CAACC;IACnC,MAAMC,SAAS;QAAE,GAAGD,IAAI;IAAC;IACzB,IAAI,CAACC,OAAO,KAAK,EAAE,OAAOA;IACxBA,OAAO,KAAK,CAAe,WAAW,GAAG;QACzC,SAAS;QACT,SAAS;QACT,OAAO;IACT;IAEA,OAAOA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/table/pipes/theme/selectionStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/selectionStyle.ts"],"sourcesContent":["import type { BaseTableConstructorOptions } from '@visactor/vtable/es/ts-types'\nimport type { SpecPipe, TableConfig } from 'src/types'\n\nexport const selectionStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as BaseTableConstructorOptions\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)'\n\n result.theme.selectionStyle = {\n cellBorderColor: borderColor,\n cellBorderLineWidth: 2,\n cellBgColor: backgroundColor,\n }\n\n return result\n}\n"],"names":["selectionStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor"],"mappings":"AAGO,MAAMA,iBAA2B,CAACC,MAAMC;IAC7C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAEzC,MAAMK,cAAcD,WAAW,mBAAmB,IAAI;IACtD,MAAME,kBAAkBF,WAAW,uBAAuB,IAAI;IAE9DJ,OAAO,KAAK,CAAC,cAAc,GAAG;QAC5B,iBAAiBK;QACjB,qBAAqB;QACrB,aAAaC;IACf;IAEA,OAAON;AACT"}
1
+ {"version":3,"file":"pipeline/spec/table/pipes/theme/selectionStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/selectionStyle.ts"],"sourcesContent":["import type { SpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const selectionStyle: SpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)'\n\n ;(result.theme as ThemeLike).selectionStyle = {\n cellBorderColor: borderColor,\n cellBorderLineWidth: 2,\n cellBgColor: backgroundColor,\n }\n\n return result\n}\n"],"names":["selectionStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor"],"mappings":"AAGO,MAAMA,iBAA2B,CAACC,MAAMC;IAC7C,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAEzC,MAAMK,cAAcD,WAAW,mBAAmB,IAAI;IACtD,MAAME,kBAAkBF,WAAW,uBAAuB,IAAI;IAE5DJ,OAAO,KAAK,CAAe,cAAc,GAAG;QAC5C,iBAAiBK;QACjB,qBAAqB;QACrB,aAAaC;IACf;IAEA,OAAON;AACT"}
@@ -0,0 +1,13 @@
1
+ export type ThemeLike = {
2
+ bodyStyle?: unknown;
3
+ headerStyle?: unknown;
4
+ rowHeaderStyle?: unknown;
5
+ cornerHeaderStyle?: unknown;
6
+ frameStyle?: unknown;
7
+ selectionStyle?: unknown;
8
+ scrollStyle?: unknown;
9
+ [key: string]: unknown;
10
+ };
11
+ export type WithTheme = {
12
+ theme?: ThemeLike;
13
+ };
@@ -25,5 +25,7 @@ export declare const ChartTypeEnum: {
25
25
  readonly Radar: "radar";
26
26
  readonly Funnel: "funnel";
27
27
  readonly Heatmap: "heatmap";
28
+ readonly Boxplot: "boxPlot";
29
+ readonly Histogram: "histogram";
28
30
  };
29
31
  export declare const DATUM_HIDE_KEY = "__VSEED_HideItem__";
@@ -24,7 +24,9 @@ const ChartTypeEnum = {
24
24
  Donut: 'donut',
25
25
  Radar: 'radar',
26
26
  Funnel: 'funnel',
27
- Heatmap: 'heatmap'
27
+ Heatmap: 'heatmap',
28
+ Boxplot: 'boxPlot',
29
+ Histogram: 'histogram'
28
30
  };
29
31
  const DATUM_HIDE_KEY = '__VSEED_HideItem__';
30
32
  export { ANNOTATION_Z_INDEX, ChartTypeEnum, DATUM_HIDE_KEY, DEFAULT_PARENT_ID, DUAL_AXIS_CHART_COLUMN_Z_INDEX, DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX, DUAL_AXIS_LABEL_Z_INDEX, LINEAR_AXIS_INNER_OFFSET_TOP };
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/utils/constant.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/constant.ts"],"sourcesContent":["// 标注层 z-index\nexport const ANNOTATION_Z_INDEX = 1000\n// 线性轴 顶部空隙 预留5px\nexport const LINEAR_AXIS_INNER_OFFSET_TOP = 7\n// 双轴图 柱图 ZIndex\nexport const DUAL_AXIS_CHART_COLUMN_Z_INDEX = 1000\n// 双轴图 非柱图 ZIndex\nexport const DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX = 1001\n// 双轴图 标注层 ZIndex\nexport const DUAL_AXIS_LABEL_Z_INDEX = 1002\n// 默认父级id\nexport const DEFAULT_PARENT_ID = '__DefaultParentId__'\n\n// 图表类型枚举\nexport const ChartTypeEnum = {\n Table: 'table',\n PivotTable: 'pivotTable',\n // cartesian\n Line: 'line',\n Column: 'column',\n ColumnPercent: 'columnPercent',\n ColumnParallel: 'columnParallel',\n Bar: 'bar',\n BarPercent: 'barPercent',\n BarParallel: 'barParallel',\n Area: 'area',\n AreaPercent: 'areaPercent',\n DualAxis: 'dualAxis',\n Scatter: 'scatter',\n // polar\n Rose: 'rose',\n RoseParallel: 'roseParallel',\n Pie: 'pie',\n Donut: 'donut',\n Radar: 'radar',\n // other\n Funnel: 'funnel',\n Heatmap: 'heatmap',\n} as const\n\n// Heatmap hide cell\nexport const DATUM_HIDE_KEY = '__VSEED_HideItem__'\n"],"names":["ANNOTATION_Z_INDEX","LINEAR_AXIS_INNER_OFFSET_TOP","DUAL_AXIS_CHART_COLUMN_Z_INDEX","DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX","DUAL_AXIS_LABEL_Z_INDEX","DEFAULT_PARENT_ID","ChartTypeEnum","DATUM_HIDE_KEY"],"mappings":"AACO,MAAMA,qBAAqB;AAE3B,MAAMC,+BAA+B;AAErC,MAAMC,iCAAiC;AAEvC,MAAMC,qCAAqC;AAE3C,MAAMC,0BAA0B;AAEhC,MAAMC,oBAAoB;AAG1B,MAAMC,gBAAgB;IAC3B,OAAO;IACP,YAAY;IAEZ,MAAM;IACN,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,KAAK;IACL,YAAY;IACZ,aAAa;IACb,MAAM;IACN,aAAa;IACb,UAAU;IACV,SAAS;IAET,MAAM;IACN,cAAc;IACd,KAAK;IACL,OAAO;IACP,OAAO;IAEP,QAAQ;IACR,SAAS;AACX;AAGO,MAAMC,iBAAiB"}
1
+ {"version":3,"file":"pipeline/utils/constant.js","sources":["webpack://@visactor/vseed/./src/pipeline/utils/constant.ts"],"sourcesContent":["// 标注层 z-index\nexport const ANNOTATION_Z_INDEX = 1000\n// 线性轴 顶部空隙 预留5px\nexport const LINEAR_AXIS_INNER_OFFSET_TOP = 7\n// 双轴图 柱图 ZIndex\nexport const DUAL_AXIS_CHART_COLUMN_Z_INDEX = 1000\n// 双轴图 非柱图 ZIndex\nexport const DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX = 1001\n// 双轴图 标注层 ZIndex\nexport const DUAL_AXIS_LABEL_Z_INDEX = 1002\n// 默认父级id\nexport const DEFAULT_PARENT_ID = '__DefaultParentId__'\n\n// 图表类型枚举\nexport const ChartTypeEnum = {\n Table: 'table',\n PivotTable: 'pivotTable',\n // cartesian\n Line: 'line',\n Column: 'column',\n ColumnPercent: 'columnPercent',\n ColumnParallel: 'columnParallel',\n Bar: 'bar',\n BarPercent: 'barPercent',\n BarParallel: 'barParallel',\n Area: 'area',\n AreaPercent: 'areaPercent',\n DualAxis: 'dualAxis',\n Scatter: 'scatter',\n // polar\n Rose: 'rose',\n RoseParallel: 'roseParallel',\n Pie: 'pie',\n Donut: 'donut',\n Radar: 'radar',\n // other\n Funnel: 'funnel',\n Heatmap: 'heatmap',\n Boxplot: 'boxPlot',\n Histogram: 'histogram',\n} as const\n\n// Heatmap hide cell\nexport const DATUM_HIDE_KEY = '__VSEED_HideItem__'\n"],"names":["ANNOTATION_Z_INDEX","LINEAR_AXIS_INNER_OFFSET_TOP","DUAL_AXIS_CHART_COLUMN_Z_INDEX","DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX","DUAL_AXIS_LABEL_Z_INDEX","DEFAULT_PARENT_ID","ChartTypeEnum","DATUM_HIDE_KEY"],"mappings":"AACO,MAAMA,qBAAqB;AAE3B,MAAMC,+BAA+B;AAErC,MAAMC,iCAAiC;AAEvC,MAAMC,qCAAqC;AAE3C,MAAMC,0BAA0B;AAEhC,MAAMC,oBAAoB;AAG1B,MAAMC,gBAAgB;IAC3B,OAAO;IACP,YAAY;IAEZ,MAAM;IACN,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,KAAK;IACL,YAAY;IACZ,aAAa;IACb,MAAM;IACN,aAAa;IACb,UAAU;IACV,SAAS;IAET,MAAM;IACN,cAAc;IACd,KAAK;IACL,OAAO;IACP,OAAO;IAEP,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;AACb;AAGO,MAAMC,iBAAiB"}
@@ -1,7 +1,10 @@
1
1
  import type { AnnotationAreaConfig, AnnotationHorizontalLineConfig, AnnotationPointConfig } from '../../types/properties/config/annotation/annotation';
2
+ export declare const getDefaultAnnotationPoint: () => AnnotationPointConfig;
2
3
  export declare const getLightAnnotationPoint: () => AnnotationPointConfig;
4
+ export declare const getDefaultAnnotationLine: () => AnnotationHorizontalLineConfig;
3
5
  export declare const getLightAnnotationHorizontalLine: () => AnnotationHorizontalLineConfig;
4
6
  export declare const getLightAnnotationVerticalLine: () => AnnotationHorizontalLineConfig;
7
+ export declare const getDefaultAnnotationArea: () => AnnotationAreaConfig;
5
8
  export declare const getLightAnnotationArea: () => AnnotationAreaConfig;
6
9
  export declare const getLightAnnotation: () => {
7
10
  annotationPoint: AnnotationPointConfig;
@@ -1,45 +1,45 @@
1
- const getLightAnnotationPoint = ()=>({
2
- textColor: '#ffffff',
1
+ const getDefaultAnnotationPoint = ()=>({
3
2
  textBackgroundVisible: true,
4
- textBackgroundColor: '#364159',
5
- textBackgroundBorderColor: '#3641594d',
6
3
  textFontSize: 12,
7
4
  textFontWeight: 400,
8
5
  textBackgroundBorderRadius: 4,
9
6
  textBackgroundBorderWidth: 1,
10
7
  textBackgroundPadding: 2
11
8
  });
12
- const getLightAnnotationHorizontalLine = ()=>({
13
- lineColor: '#BCC1CB',
9
+ const getLightAnnotationPoint = ()=>({
10
+ ...getDefaultAnnotationPoint(),
11
+ textColor: '#ffffff',
12
+ textBackgroundColor: '#364159',
13
+ textBackgroundBorderColor: '#3641594d'
14
+ });
15
+ const getDefaultAnnotationLine = ()=>({
16
+ lineVisible: true,
14
17
  lineWidth: 1,
15
18
  lineStyle: 'solid',
16
- lineVisible: true,
17
- textColor: '#ffffff',
18
19
  textFontSize: 12,
19
20
  textFontWeight: 400,
20
21
  startSymbolVisible: true,
21
22
  endSymbolVisible: false,
22
23
  textBackgroundVisible: true,
23
- textBackgroundColor: '#BCC1CB',
24
- textBackgroundBorderColor: '#BCC1CB',
25
24
  textBackgroundBorderWidth: 1,
26
25
  textBackgroundBorderRadius: 0,
27
26
  textBackgroundPadding: 2
28
27
  });
29
- const getLightAnnotationVerticalLine = ()=>getLightAnnotationHorizontalLine();
30
- const getLightAnnotationArea = ()=>({
28
+ const getLightAnnotationHorizontalLine = ()=>({
29
+ ...getDefaultAnnotationLine(),
30
+ lineColor: '#BCC1CB',
31
31
  textColor: '#ffffff',
32
+ textBackgroundColor: '#BCC1CB',
33
+ textBackgroundBorderColor: '#BCC1CB'
34
+ });
35
+ const getLightAnnotationVerticalLine = ()=>getLightAnnotationHorizontalLine();
36
+ const getDefaultAnnotationArea = ()=>({
32
37
  textFontSize: 12,
33
38
  textFontWeight: 400,
34
39
  textBackgroundVisible: true,
35
- textBackgroundColor: '#BCC1CB',
36
- textBackgroundBorderColor: '#BCC1CB',
37
40
  textBackgroundBorderWidth: 1,
38
41
  textBackgroundBorderRadius: 0,
39
42
  textBackgroundPadding: 4,
40
- areaColor: '#BCC1CB',
41
- areaColorOpacity: 0.12,
42
- areaBorderColor: '#BCC1CB',
43
43
  areaBorderWidth: 0,
44
44
  areaBorderRadius: 0,
45
45
  areaLineDash: [
@@ -48,6 +48,15 @@ const getLightAnnotationArea = ()=>({
48
48
  ],
49
49
  outerPadding: 4
50
50
  });
51
+ const getLightAnnotationArea = ()=>({
52
+ ...getDefaultAnnotationArea(),
53
+ textColor: '#ffffff',
54
+ textBackgroundColor: '#BCC1CB',
55
+ textBackgroundBorderColor: '#BCC1CB',
56
+ areaColor: '#BCC1CB',
57
+ areaColorOpacity: 0.12,
58
+ areaBorderColor: '#BCC1CB'
59
+ });
51
60
  const getLightAnnotation = ()=>({
52
61
  annotationPoint: getLightAnnotationPoint(),
53
62
  annotationHorizontalLine: getLightAnnotationHorizontalLine(),
@@ -55,52 +64,27 @@ const getLightAnnotation = ()=>({
55
64
  annotationArea: getLightAnnotationArea()
56
65
  });
57
66
  const getDarkAnnotationPoint = ()=>({
67
+ ...getDefaultAnnotationPoint(),
58
68
  textColor: '#4B4F54',
59
- textBackgroundVisible: true,
60
69
  textBackgroundColor: '#ffffff',
61
- textBackgroundBorderColor: '#ffffff',
62
- textFontSize: 12,
63
- textFontWeight: 400,
64
- textBackgroundBorderRadius: 4,
65
- textBackgroundBorderWidth: 1,
66
- textBackgroundPadding: 2
70
+ textBackgroundBorderColor: '#ffffff'
67
71
  });
68
72
  const getDarkAnnotationHorizontalLine = ()=>({
73
+ ...getDefaultAnnotationLine(),
69
74
  lineColor: '#55595F',
70
- lineWidth: 1,
71
- lineStyle: 'solid',
72
- lineVisible: true,
73
- textFontSize: 12,
74
- textFontWeight: 400,
75
- textBackgroundVisible: true,
76
75
  textColor: '#E2E3E6',
77
76
  textBackgroundColor: '#55595F',
78
- textBackgroundBorderColor: '#55595F',
79
- textBackgroundBorderWidth: 1,
80
- textBackgroundBorderRadius: 0,
81
- textBackgroundPadding: 2
77
+ textBackgroundBorderColor: '#55595F'
82
78
  });
83
79
  const getDarkAnnotationVerticalLine = ()=>getDarkAnnotationHorizontalLine();
84
80
  const getDarkAnnotationArea = ()=>({
81
+ ...getDefaultAnnotationArea(),
85
82
  textColor: '#E2E3E6',
86
- textFontSize: 12,
87
- textFontWeight: 400,
88
- textBackgroundVisible: true,
89
83
  textBackgroundColor: '#55595F',
90
84
  textBackgroundBorderColor: '#55595F',
91
- textBackgroundBorderWidth: 1,
92
- textBackgroundBorderRadius: 0,
93
- textBackgroundPadding: 4,
94
85
  areaColor: '#E2E3E6',
95
86
  areaColorOpacity: 0.15,
96
- areaBorderColor: '#E2E3E6',
97
- areaBorderWidth: 0,
98
- areaBorderRadius: 0,
99
- areaLineDash: [
100
- 2,
101
- 2
102
- ],
103
- outerPadding: 4
87
+ areaBorderColor: '#E2E3E6'
104
88
  });
105
89
  const getDarkAnnotation = ()=>({
106
90
  annotationPoint: getDarkAnnotationPoint(),
@@ -109,6 +93,6 @@ const getDarkAnnotation = ()=>({
109
93
  annotationArea: getDarkAnnotationArea()
110
94
  });
111
95
  const annotaion = getLightAnnotation;
112
- export { annotaion as default, getDarkAnnotation, getDarkAnnotationArea, getDarkAnnotationHorizontalLine, getDarkAnnotationPoint, getDarkAnnotationVerticalLine, getLightAnnotation, getLightAnnotationArea, getLightAnnotationHorizontalLine, getLightAnnotationPoint, getLightAnnotationVerticalLine };
96
+ export { annotaion as default, getDarkAnnotation, getDarkAnnotationArea, getDarkAnnotationHorizontalLine, getDarkAnnotationPoint, getDarkAnnotationVerticalLine, getDefaultAnnotationArea, getDefaultAnnotationLine, getDefaultAnnotationPoint, getLightAnnotation, getLightAnnotationArea, getLightAnnotationHorizontalLine, getLightAnnotationPoint, getLightAnnotationVerticalLine };
113
97
 
114
98
  //# sourceMappingURL=annotaion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme/common/annotaion.js","sources":["webpack://@visactor/vseed/./src/theme/common/annotaion.ts"],"sourcesContent":["import type {\n AnnotationAreaConfig,\n AnnotationHorizontalLineConfig,\n AnnotationPointConfig,\n} from 'src/types/properties/config/annotation/annotation'\n\nexport const getLightAnnotationPoint = (): AnnotationPointConfig => ({\n textColor: '#ffffff',\n\n textBackgroundVisible: true,\n textBackgroundColor: '#364159',\n textBackgroundBorderColor: '#3641594d',\n\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundBorderRadius: 4,\n textBackgroundBorderWidth: 1,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n lineColor: '#BCC1CB',\n lineWidth: 1,\n lineStyle: 'solid' as const,\n lineVisible: true,\n\n textColor: '#ffffff',\n textFontSize: 12,\n textFontWeight: 400,\n\n startSymbolVisible: true,\n endSymbolVisible: false,\n\n textBackgroundVisible: true,\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationVerticalLine = () => getLightAnnotationHorizontalLine()\n\nexport const getLightAnnotationArea = (): AnnotationAreaConfig => ({\n textColor: '#ffffff',\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundVisible: true,\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 4,\n\n areaColor: '#BCC1CB',\n areaColorOpacity: 0.12,\n areaBorderColor: '#BCC1CB',\n areaBorderWidth: 0,\n areaBorderRadius: 0,\n areaLineDash: [2, 2],\n\n outerPadding: 4,\n})\n\nexport const getLightAnnotation = () => ({\n annotationPoint: getLightAnnotationPoint(),\n annotationHorizontalLine: getLightAnnotationHorizontalLine(),\n annotationVerticalLine: getLightAnnotationVerticalLine(),\n annotationArea: getLightAnnotationArea(),\n})\n\n// --- dark ---\nexport const getDarkAnnotationPoint = (): AnnotationPointConfig => ({\n textColor: '#4B4F54',\n\n textBackgroundVisible: true,\n textBackgroundColor: '#ffffff',\n textBackgroundBorderColor: '#ffffff',\n\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundBorderRadius: 4,\n textBackgroundBorderWidth: 1,\n textBackgroundPadding: 2,\n})\n\nexport const getDarkAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n lineColor: '#55595F',\n lineWidth: 1,\n lineStyle: 'solid' as const,\n lineVisible: true,\n\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundVisible: true,\n textColor: '#E2E3E6',\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n})\n\nexport const getDarkAnnotationVerticalLine = () => getDarkAnnotationHorizontalLine()\n\nexport const getDarkAnnotationArea = (): AnnotationAreaConfig => ({\n textColor: '#E2E3E6',\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundVisible: true,\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 4,\n\n areaColor: '#E2E3E6',\n areaColorOpacity: 0.15,\n areaBorderColor: '#E2E3E6',\n areaBorderWidth: 0,\n areaBorderRadius: 0,\n areaLineDash: [2, 2],\n\n outerPadding: 4,\n})\n\nexport const getDarkAnnotation = () => ({\n annotationPoint: getDarkAnnotationPoint(),\n annotationHorizontalLine: getDarkAnnotationHorizontalLine(),\n annotationVerticalLine: getDarkAnnotationVerticalLine(),\n annotationArea: getDarkAnnotationArea(),\n})\n\nexport default getLightAnnotation\n"],"names":["getLightAnnotationPoint","getLightAnnotationHorizontalLine","getLightAnnotationVerticalLine","getLightAnnotationArea","getLightAnnotation","getDarkAnnotationPoint","getDarkAnnotationHorizontalLine","getDarkAnnotationVerticalLine","getDarkAnnotationArea","getDarkAnnotation"],"mappings":"AAMO,MAAMA,0BAA0B,IAA8B;QACnE,WAAW;QAEX,uBAAuB;QACvB,qBAAqB;QACrB,2BAA2B;QAE3B,cAAc;QACd,gBAAgB;QAEhB,4BAA4B;QAC5B,2BAA2B;QAC3B,uBAAuB;IACzB;AAEO,MAAMC,mCAAmC,IAAuC;QACrF,WAAW;QACX,WAAW;QACX,WAAW;QACX,aAAa;QAEb,WAAW;QACX,cAAc;QACd,gBAAgB;QAEhB,oBAAoB;QACpB,kBAAkB;QAElB,uBAAuB;QACvB,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;IACzB;AAEO,MAAMC,iCAAiC,IAAMD;AAE7C,MAAME,yBAAyB,IAA6B;QACjE,WAAW;QACX,cAAc;QACd,gBAAgB;QAEhB,uBAAuB;QACvB,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QAEvB,WAAW;QACX,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;YAAC;YAAG;SAAE;QAEpB,cAAc;IAChB;AAEO,MAAMC,qBAAqB,IAAO;QACvC,iBAAiBJ;QACjB,0BAA0BC;QAC1B,wBAAwBC;QACxB,gBAAgBC;IAClB;AAGO,MAAME,yBAAyB,IAA8B;QAClE,WAAW;QAEX,uBAAuB;QACvB,qBAAqB;QACrB,2BAA2B;QAE3B,cAAc;QACd,gBAAgB;QAEhB,4BAA4B;QAC5B,2BAA2B;QAC3B,uBAAuB;IACzB;AAEO,MAAMC,kCAAkC,IAAuC;QACpF,WAAW;QACX,WAAW;QACX,WAAW;QACX,aAAa;QAEb,cAAc;QACd,gBAAgB;QAEhB,uBAAuB;QACvB,WAAW;QACX,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;IACzB;AAEO,MAAMC,gCAAgC,IAAMD;AAE5C,MAAME,wBAAwB,IAA6B;QAChE,WAAW;QACX,cAAc;QACd,gBAAgB;QAEhB,uBAAuB;QACvB,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QAEvB,WAAW;QACX,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;YAAC;YAAG;SAAE;QAEpB,cAAc;IAChB;AAEO,MAAMC,oBAAoB,IAAO;QACtC,iBAAiBJ;QACjB,0BAA0BC;QAC1B,wBAAwBC;QACxB,gBAAgBC;IAClB;AAEA,kBAAeJ"}
1
+ {"version":3,"file":"theme/common/annotaion.js","sources":["webpack://@visactor/vseed/./src/theme/common/annotaion.ts"],"sourcesContent":["import type {\n AnnotationAreaConfig,\n AnnotationHorizontalLineConfig,\n AnnotationPointConfig,\n} from 'src/types/properties/config/annotation/annotation'\n\nexport const getDefaultAnnotationPoint = (): AnnotationPointConfig => ({\n textBackgroundVisible: true,\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundBorderRadius: 4,\n textBackgroundBorderWidth: 1,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#ffffff',\n textBackgroundColor: '#364159',\n textBackgroundBorderColor: '#3641594d',\n})\n\nexport const getDefaultAnnotationLine = (): AnnotationHorizontalLineConfig => ({\n lineVisible: true,\n lineWidth: 1,\n lineStyle: 'solid' as const,\n\n textFontSize: 12,\n textFontWeight: 400,\n startSymbolVisible: true,\n endSymbolVisible: false,\n\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#BCC1CB',\n\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotationVerticalLine = () => getLightAnnotationHorizontalLine()\n\nexport const getDefaultAnnotationArea = (): AnnotationAreaConfig => ({\n textFontSize: 12,\n textFontWeight: 400,\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 4,\n areaBorderWidth: 0,\n areaBorderRadius: 0,\n areaLineDash: [2, 2],\n\n outerPadding: 4,\n})\n\nexport const getLightAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n\n areaColor: '#BCC1CB',\n areaColorOpacity: 0.12,\n areaBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotation = () => ({\n annotationPoint: getLightAnnotationPoint(),\n annotationHorizontalLine: getLightAnnotationHorizontalLine(),\n annotationVerticalLine: getLightAnnotationVerticalLine(),\n annotationArea: getLightAnnotationArea(),\n})\n\n// --- dark ---\nexport const getDarkAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#4B4F54',\n\n textBackgroundColor: '#ffffff',\n textBackgroundBorderColor: '#ffffff',\n})\n\nexport const getDarkAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#55595F',\n\n textColor: '#E2E3E6',\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n})\n\nexport const getDarkAnnotationVerticalLine = () => getDarkAnnotationHorizontalLine()\n\nexport const getDarkAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#E2E3E6',\n\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n\n areaColor: '#E2E3E6',\n areaColorOpacity: 0.15,\n areaBorderColor: '#E2E3E6',\n})\n\nexport const getDarkAnnotation = () => ({\n annotationPoint: getDarkAnnotationPoint(),\n annotationHorizontalLine: getDarkAnnotationHorizontalLine(),\n annotationVerticalLine: getDarkAnnotationVerticalLine(),\n annotationArea: getDarkAnnotationArea(),\n})\n\nexport default getLightAnnotation\n"],"names":["getDefaultAnnotationPoint","getLightAnnotationPoint","getDefaultAnnotationLine","getLightAnnotationHorizontalLine","getLightAnnotationVerticalLine","getDefaultAnnotationArea","getLightAnnotationArea","getLightAnnotation","getDarkAnnotationPoint","getDarkAnnotationHorizontalLine","getDarkAnnotationVerticalLine","getDarkAnnotationArea","getDarkAnnotation"],"mappings":"AAMO,MAAMA,4BAA4B,IAA8B;QACrE,uBAAuB;QACvB,cAAc;QACd,gBAAgB;QAEhB,4BAA4B;QAC5B,2BAA2B;QAC3B,uBAAuB;IACzB;AAEO,MAAMC,0BAA0B,IAA8B;QACnE,GAAGD,2BAA2B;QAC9B,WAAW;QACX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAME,2BAA2B,IAAuC;QAC7E,aAAa;QACb,WAAW;QACX,WAAW;QAEX,cAAc;QACd,gBAAgB;QAChB,oBAAoB;QACpB,kBAAkB;QAElB,uBAAuB;QACvB,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;IACzB;AAEO,MAAMC,mCAAmC,IAAuC;QACrF,GAAGD,0BAA0B;QAC7B,WAAW;QAEX,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAME,iCAAiC,IAAMD;AAE7C,MAAME,2BAA2B,IAA6B;QACnE,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;YAAC;YAAG;SAAE;QAEpB,cAAc;IAChB;AAEO,MAAMC,yBAAyB,IAA6B;QACjE,GAAGD,0BAA0B;QAC7B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;QAE3B,WAAW;QACX,kBAAkB;QAClB,iBAAiB;IACnB;AAEO,MAAME,qBAAqB,IAAO;QACvC,iBAAiBN;QACjB,0BAA0BE;QAC1B,wBAAwBC;QACxB,gBAAgBE;IAClB;AAGO,MAAME,yBAAyB,IAA8B;QAClE,GAAGR,2BAA2B;QAC9B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAMS,kCAAkC,IAAuC;QACpF,GAAGP,0BAA0B;QAC7B,WAAW;QAEX,WAAW;QACX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAMQ,gCAAgC,IAAMD;AAE5C,MAAME,wBAAwB,IAA6B;QAChE,GAAGN,0BAA0B;QAC7B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;QAE3B,WAAW;QACX,kBAAkB;QAClB,iBAAiB;IACnB;AAEO,MAAMO,oBAAoB,IAAO;QACtC,iBAAiBJ;QACjB,0BAA0BC;QAC1B,wBAAwBC;QACxB,gBAAgBC;IAClB;AAEA,kBAAeJ"}
@@ -6,3 +6,21 @@ export declare const getDefaultLabel: () => {
6
6
  labelColorSmartInvert: boolean;
7
7
  labelOverlap: boolean;
8
8
  };
9
+ export declare const getDarkLabel: () => {
10
+ labelStroke: string;
11
+ enable: boolean;
12
+ wrap: boolean;
13
+ showValue: boolean;
14
+ showValuePercent: boolean;
15
+ labelColorSmartInvert: boolean;
16
+ labelOverlap: boolean;
17
+ };
18
+ export declare const getLightLabel: () => {
19
+ labelStroke: string;
20
+ enable: boolean;
21
+ wrap: boolean;
22
+ showValue: boolean;
23
+ showValuePercent: boolean;
24
+ labelColorSmartInvert: boolean;
25
+ labelOverlap: boolean;
26
+ };
@@ -6,6 +6,14 @@ const getDefaultLabel = ()=>({
6
6
  labelColorSmartInvert: false,
7
7
  labelOverlap: true
8
8
  });
9
- export { getDefaultLabel };
9
+ const getDarkLabel = ()=>({
10
+ ...getDefaultLabel(),
11
+ labelStroke: '#21252C'
12
+ });
13
+ const getLightLabel = ()=>({
14
+ ...getDefaultLabel(),
15
+ labelStroke: '#fff'
16
+ });
17
+ export { getDarkLabel, getDefaultLabel, getLightLabel };
10
18
 
11
19
  //# sourceMappingURL=label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme/common/label.js","sources":["webpack://@visactor/vseed/./src/theme/common/label.ts"],"sourcesContent":["export const getDefaultLabel = () => ({\n enable: true,\n wrap: true,\n showValue: true,\n showValuePercent: false,\n labelColorSmartInvert: false,\n labelOverlap: true,\n})\n"],"names":["getDefaultLabel"],"mappings":"AAAO,MAAMA,kBAAkB,IAAO;QACpC,QAAQ;QACR,MAAM;QACN,WAAW;QACX,kBAAkB;QAClB,uBAAuB;QACvB,cAAc;IAChB"}
1
+ {"version":3,"file":"theme/common/label.js","sources":["webpack://@visactor/vseed/./src/theme/common/label.ts"],"sourcesContent":["export const getDefaultLabel = () => ({\n enable: true,\n wrap: true,\n showValue: true,\n showValuePercent: false,\n labelColorSmartInvert: false,\n labelOverlap: true,\n})\n\nexport const getDarkLabel = () => ({\n ...getDefaultLabel(),\n labelStroke: '#21252C',\n})\n\nexport const getLightLabel = () => ({\n ...getDefaultLabel(),\n labelStroke: '#fff',\n})\n"],"names":["getDefaultLabel","getDarkLabel","getLightLabel"],"mappings":"AAAO,MAAMA,kBAAkB,IAAO;QACpC,QAAQ;QACR,MAAM;QACN,WAAW;QACX,kBAAkB;QAClB,uBAAuB;QACvB,cAAc;IAChB;AAEO,MAAMC,eAAe,IAAO;QACjC,GAAGD,iBAAiB;QACpB,aAAa;IACf;AAEO,MAAME,gBAAgB,IAAO;QAClC,GAAGF,iBAAiB;QACpB,aAAa;IACf"}
@@ -0,0 +1,4 @@
1
+ import type { HistogramRegressionLine } from '../../types/properties/regressionLine';
2
+ export declare const getDefaultHistogramRegressionLine: () => Partial<HistogramRegressionLine>;
3
+ export declare const getLightHistogramRegressionLine: () => Partial<HistogramRegressionLine>;
4
+ export declare const getDarkHistogramRegressionLine: () => Partial<HistogramRegressionLine>;
@@ -0,0 +1,16 @@
1
+ const getDefaultHistogramRegressionLine = ()=>({
2
+ lineWidth: 2,
3
+ textFontSize: 12,
4
+ textFontWeight: 400
5
+ });
6
+ const getLightHistogramRegressionLine = ()=>({
7
+ ...getDefaultHistogramRegressionLine(),
8
+ textColor: '#364159'
9
+ });
10
+ const getDarkHistogramRegressionLine = ()=>({
11
+ ...getDefaultHistogramRegressionLine(),
12
+ textColor: '#ffffff'
13
+ });
14
+ export { getDarkHistogramRegressionLine, getDefaultHistogramRegressionLine, getLightHistogramRegressionLine };
15
+
16
+ //# sourceMappingURL=regressionLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme/common/regressionLine.js","sources":["webpack://@visactor/vseed/./src/theme/common/regressionLine.ts"],"sourcesContent":["import type { HistogramRegressionLine } from 'src/types/properties/regressionLine'\n\nexport const getDefaultHistogramRegressionLine = (): Partial<HistogramRegressionLine> => {\n return {\n lineWidth: 2,\n textFontSize: 12,\n textFontWeight: 400,\n }\n}\n\nexport const getLightHistogramRegressionLine = (): Partial<HistogramRegressionLine> => {\n return {\n ...getDefaultHistogramRegressionLine(),\n textColor: '#364159',\n }\n}\n\nexport const getDarkHistogramRegressionLine = (): Partial<HistogramRegressionLine> => {\n return {\n ...getDefaultHistogramRegressionLine(),\n textColor: '#ffffff',\n }\n}\n"],"names":["getDefaultHistogramRegressionLine","getLightHistogramRegressionLine","getDarkHistogramRegressionLine"],"mappings":"AAEO,MAAMA,oCAAoC,IACxC;QACL,WAAW;QACX,cAAc;QACd,gBAAgB;IAClB;AAGK,MAAMC,kCAAkC,IACtC;QACL,GAAGD,mCAAmC;QACtC,WAAW;IACb;AAGK,MAAME,iCAAiC,IACrC;QACL,GAAGF,mCAAmC;QACtC,WAAW;IACb"}
@@ -1,9 +1,11 @@
1
- export declare const getLightTableConfig: () => {
2
- borderColor: string;
1
+ export declare const getDefaultTableConfig: () => {
3
2
  bodyFontSize: number;
4
- bodyFontColor: string;
5
3
  bodyBackgroundColor: string;
6
4
  headerFontSize: number;
5
+ };
6
+ export declare const getLightTableConfig: () => {
7
+ borderColor: string;
8
+ bodyFontColor: string;
7
9
  headerFontColor: string;
8
10
  headerBackgroundColor: string;
9
11
  hoverBodyBackgroundColor: string;
@@ -13,13 +15,13 @@ export declare const getLightTableConfig: () => {
13
15
  selectedBorderColor: string;
14
16
  selectedBackgroundColor: string;
15
17
  backgroundColor: string;
18
+ bodyFontSize: number;
19
+ bodyBackgroundColor: string;
20
+ headerFontSize: number;
16
21
  };
17
22
  export declare const getDarkTableConfig: () => {
18
23
  borderColor: string;
19
- bodyFontSize: number;
20
24
  bodyFontColor: string;
21
- bodyBackgroundColor: string;
22
- headerFontSize: number;
23
25
  headerFontColor: string;
24
26
  headerBackgroundColor: string;
25
27
  hoverBodyBackgroundColor: string;
@@ -28,20 +30,27 @@ export declare const getDarkTableConfig: () => {
28
30
  hoverHeaderInlineBackgroundColor: string;
29
31
  selectedBorderColor: string;
30
32
  selectedBackgroundColor: string;
33
+ bodyFontSize: number;
34
+ bodyBackgroundColor: string;
35
+ headerFontSize: number;
31
36
  };
32
37
  export declare const getLightPivotChartGridConfig: () => {
38
+ outlineBorderLineWidth: number;
39
+ frameCornerRadius: number;
33
40
  borderColor: any;
34
41
  bodyFontColor: any;
35
42
  headerFontColor: any;
36
- headerBackgroundColor: any;
43
+ headerBackgroundColor: string;
37
44
  hoverHeaderBackgroundColor: any;
38
45
  hoverHeaderInlineBackgroundColor: any;
39
46
  };
40
47
  export declare const getDarkPivotChartGridConfig: () => {
48
+ outlineBorderLineWidth: number;
49
+ frameCornerRadius: number;
41
50
  borderColor: any;
42
51
  bodyFontColor: any;
43
52
  headerFontColor: any;
44
- headerBackgroundColor: any;
53
+ headerBackgroundColor: string;
45
54
  hoverHeaderBackgroundColor: any;
46
55
  hoverHeaderInlineBackgroundColor: any;
47
56
  };
@@ -1,9 +1,12 @@
1
+ const getDefaultTableConfig = ()=>({
2
+ bodyFontSize: 12,
3
+ bodyBackgroundColor: 'transparent',
4
+ headerFontSize: 12
5
+ });
1
6
  const getLightTableConfig = ()=>({
7
+ ...getDefaultTableConfig(),
2
8
  borderColor: '#e3e5eb',
3
- bodyFontSize: 12,
4
9
  bodyFontColor: '#141414',
5
- bodyBackgroundColor: 'transparent',
6
- headerFontSize: 12,
7
10
  headerFontColor: '#21252c',
8
11
  headerBackgroundColor: '#f6f7f9',
9
12
  hoverBodyBackgroundColor: '#bedaff',
@@ -15,11 +18,9 @@ const getLightTableConfig = ()=>({
15
18
  backgroundColor: 'transparent'
16
19
  });
17
20
  const getDarkTableConfig = ()=>({
21
+ ...getDefaultTableConfig(),
18
22
  borderColor: '#4b4e53',
19
- bodyFontSize: 12,
20
23
  bodyFontColor: '#fdfdfd',
21
- bodyBackgroundColor: 'transparent',
22
- headerFontSize: 12,
23
24
  headerFontColor: '#fdfdfd',
24
25
  headerBackgroundColor: '#36393e',
25
26
  hoverBodyBackgroundColor: '#4284ff66',
@@ -30,15 +31,17 @@ const getDarkTableConfig = ()=>({
30
31
  selectedBackgroundColor: '#4284ff33'
31
32
  });
32
33
  const pickPivotChartGridConfig = (tableConfig)=>({
34
+ outlineBorderLineWidth: 0,
35
+ frameCornerRadius: 0,
33
36
  borderColor: tableConfig.borderColor,
34
37
  bodyFontColor: tableConfig.bodyFontColor,
35
38
  headerFontColor: tableConfig.headerFontColor,
36
- headerBackgroundColor: tableConfig.headerBackgroundColor,
39
+ headerBackgroundColor: 'transparent',
37
40
  hoverHeaderBackgroundColor: tableConfig.hoverHeaderBackgroundColor,
38
41
  hoverHeaderInlineBackgroundColor: tableConfig.hoverHeaderInlineBackgroundColor
39
42
  });
40
43
  const getLightPivotChartGridConfig = ()=>pickPivotChartGridConfig(getLightTableConfig());
41
44
  const getDarkPivotChartGridConfig = ()=>pickPivotChartGridConfig(getDarkTableConfig());
42
- export { getDarkPivotChartGridConfig, getDarkTableConfig, getLightPivotChartGridConfig, getLightTableConfig };
45
+ export { getDarkPivotChartGridConfig, getDarkTableConfig, getDefaultTableConfig, getLightPivotChartGridConfig, getLightTableConfig };
43
46
 
44
47
  //# sourceMappingURL=table.js.map