@visactor/vseed 0.4.3 → 0.4.4

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 (177) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +2 -15248
  4. package/dist/esm/builder/builder/builder.js.map +1 -1
  5. package/dist/esm/builder/register/all.js +4 -1
  6. package/dist/esm/builder/register/all.js.map +1 -1
  7. package/dist/esm/builder/register/chartType/index.d.ts +3 -0
  8. package/dist/esm/builder/register/chartType/index.js +4 -1
  9. package/dist/esm/builder/register/chartType/raceDonut.d.ts +5 -0
  10. package/dist/esm/builder/register/chartType/raceDonut.js +9 -0
  11. package/dist/esm/builder/register/chartType/raceDonut.js.map +1 -0
  12. package/dist/esm/builder/register/chartType/raceLine.d.ts +5 -0
  13. package/dist/esm/builder/register/chartType/raceLine.js +9 -0
  14. package/dist/esm/builder/register/chartType/raceLine.js.map +1 -0
  15. package/dist/esm/builder/register/chartType/racePie.d.ts +5 -0
  16. package/dist/esm/builder/register/chartType/racePie.js +9 -0
  17. package/dist/esm/builder/register/chartType/racePie.js.map +1 -0
  18. package/dist/esm/pipeline/advanced/chart/pipeline/index.d.ts +3 -0
  19. package/dist/esm/pipeline/advanced/chart/pipeline/index.js +4 -1
  20. package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.d.ts +2 -0
  21. package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.js +33 -0
  22. package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.js.map +1 -0
  23. package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.d.ts +2 -0
  24. package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.js +36 -0
  25. package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.js.map +1 -0
  26. package/dist/esm/pipeline/advanced/chart/pipeline/racePie.d.ts +2 -0
  27. package/dist/esm/pipeline/advanced/chart/pipeline/racePie.js +33 -0
  28. package/dist/esm/pipeline/advanced/chart/pipeline/racePie.js.map +1 -0
  29. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +3 -0
  30. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +4 -1
  31. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceBar.js +0 -3
  32. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceBar.js.map +1 -1
  33. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceColumn.js +0 -3
  34. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceColumn.js.map +1 -1
  35. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.d.ts +3 -0
  36. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.js +74 -0
  37. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.js.map +1 -0
  38. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.d.ts +3 -0
  39. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.js +89 -0
  40. package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.js.map +1 -0
  41. package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.d.ts +3 -0
  42. package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.js +74 -0
  43. package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.js.map +1 -0
  44. package/dist/esm/pipeline/spec/chart/pipeline/index.d.ts +3 -0
  45. package/dist/esm/pipeline/spec/chart/pipeline/index.js +4 -1
  46. package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js +2 -2
  47. package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
  48. package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js +2 -2
  49. package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.d.ts +2 -0
  51. package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js +21 -0
  52. package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -0
  53. package/dist/esm/pipeline/spec/chart/pipeline/raceLine.d.ts +2 -0
  54. package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js +25 -0
  55. package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -0
  56. package/dist/esm/pipeline/spec/chart/pipeline/racePie.d.ts +2 -0
  57. package/dist/esm/pipeline/spec/chart/pipeline/racePie.js +21 -0
  58. package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -0
  59. package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js +2 -2
  60. package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js.map +1 -1
  61. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.js.map +1 -1
  63. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointState.js.map +1 -1
  65. package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointStyle.js.map +1 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/player/index.d.ts +5 -3
  67. package/dist/esm/pipeline/spec/chart/pipes/player/index.js +5 -3
  68. package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.d.ts +2 -2
  69. package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.js +8 -7
  70. package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/player/{playerXY.d.ts → playerBar.d.ts} +1 -1
  72. package/dist/esm/pipeline/spec/chart/pipes/player/{playerYX.js → playerBar.js} +6 -7
  73. package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js.map +1 -0
  74. package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.d.ts +2 -0
  75. package/dist/esm/pipeline/spec/chart/pipes/player/{playerXY.js → playerColumn.js} +6 -7
  76. package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js.map +1 -0
  77. package/dist/esm/pipeline/spec/chart/pipes/player/{playerYX.d.ts → playerLine.d.ts} +1 -1
  78. package/dist/esm/pipeline/spec/chart/pipes/player/playerLine.js +144 -0
  79. package/dist/esm/pipeline/spec/chart/pipes/player/playerLine.js.map +1 -0
  80. package/dist/esm/pipeline/spec/chart/pipes/player/{playerYY.d.ts → playerPie.d.ts} +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js +174 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js.map +1 -0
  83. package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.d.ts +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/player/{playerYY.js → playerScatter.js} +7 -7
  85. package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js.map +1 -0
  86. package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.js.map +1 -1
  87. package/dist/esm/theme/dark/dark.js +10 -5
  88. package/dist/esm/theme/dark/dark.js.map +1 -1
  89. package/dist/esm/theme/dark/raceLine.d.ts +182 -0
  90. package/dist/esm/theme/dark/raceLine.js +39 -0
  91. package/dist/esm/theme/dark/raceLine.js.map +1 -0
  92. package/dist/esm/theme/dark/racePie.d.ts +157 -0
  93. package/dist/esm/theme/dark/racePie.js +18 -0
  94. package/dist/esm/theme/dark/racePie.js.map +1 -0
  95. package/dist/esm/theme/light/light.js +6 -1
  96. package/dist/esm/theme/light/light.js.map +1 -1
  97. package/dist/esm/theme/light/raceLine.d.ts +182 -0
  98. package/dist/esm/theme/light/raceLine.js +39 -0
  99. package/dist/esm/theme/light/raceLine.js.map +1 -0
  100. package/dist/esm/theme/light/racePie.d.ts +157 -0
  101. package/dist/esm/theme/light/racePie.js +18 -0
  102. package/dist/esm/theme/light/racePie.js.map +1 -0
  103. package/dist/esm/types/builder/builder.d.ts +1 -1
  104. package/dist/esm/types/builder/builder.js.map +1 -1
  105. package/dist/esm/types/chartType/column/zColumn.d.ts +1 -0
  106. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +1 -0
  107. package/dist/esm/types/chartType/index.d.ts +7 -0
  108. package/dist/esm/types/chartType/index.js +3 -0
  109. package/dist/esm/types/chartType/raceBar/raceBar.d.ts +2 -2
  110. package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +1 -0
  111. package/dist/esm/types/chartType/raceColumn/raceColumn.d.ts +106 -3
  112. package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +1 -0
  113. package/dist/esm/types/chartType/raceDonut/index.d.ts +2 -0
  114. package/dist/esm/types/chartType/raceDonut/index.js +1 -0
  115. package/dist/esm/types/chartType/raceDonut/raceDonut.d.ts +75 -0
  116. package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +387 -0
  117. package/dist/esm/types/chartType/raceDonut/zRaceDonut.js +23 -0
  118. package/dist/esm/types/chartType/raceDonut/zRaceDonut.js.map +1 -0
  119. package/dist/esm/types/chartType/raceLine/index.d.ts +2 -0
  120. package/dist/esm/types/chartType/raceLine/index.js +1 -0
  121. package/dist/esm/types/chartType/raceLine/raceLine.d.ts +122 -0
  122. package/dist/esm/types/chartType/raceLine/raceLine.js +0 -0
  123. package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +1904 -0
  124. package/dist/esm/types/chartType/raceLine/zRaceLine.js +35 -0
  125. package/dist/esm/types/chartType/raceLine/zRaceLine.js.map +1 -0
  126. package/dist/esm/types/chartType/racePie/index.d.ts +2 -0
  127. package/dist/esm/types/chartType/racePie/index.js +1 -0
  128. package/dist/esm/types/chartType/racePie/racePie.d.ts +75 -0
  129. package/dist/esm/types/chartType/racePie/racePie.js +0 -0
  130. package/dist/esm/types/chartType/racePie/zRacePie.d.ts +387 -0
  131. package/dist/esm/types/chartType/racePie/zRacePie.js +23 -0
  132. package/dist/esm/types/chartType/racePie/zRacePie.js.map +1 -0
  133. package/dist/esm/types/chartType/raceScatter/raceScatter.d.ts +84 -0
  134. package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +1 -0
  135. package/dist/esm/types/chartType/sunburst/sunburst.d.ts +1 -1
  136. package/dist/esm/types/properties/chartType/chartType.d.ts +4 -1
  137. package/dist/esm/types/properties/chartType/chartType.js +3 -0
  138. package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
  139. package/dist/esm/types/properties/config/config.d.ts +2276 -44
  140. package/dist/esm/types/properties/config/config.js +4 -1
  141. package/dist/esm/types/properties/config/config.js.map +1 -1
  142. package/dist/esm/types/properties/config/player/player.d.ts +2 -2
  143. package/dist/esm/types/properties/config/player/zPlayer.d.ts +1 -0
  144. package/dist/esm/types/properties/config/player/zPlayer.js +1 -0
  145. package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -1
  146. package/dist/esm/types/properties/config/race.d.ts +2279 -44
  147. package/dist/esm/types/properties/config/race.js +10 -3
  148. package/dist/esm/types/properties/config/race.js.map +1 -1
  149. package/dist/esm/types/properties/dimensions/index.d.ts +3 -0
  150. package/dist/esm/types/properties/dimensions/raceDonutDimension.d.ts +14 -0
  151. package/dist/esm/types/properties/dimensions/raceDonutDimension.js +0 -0
  152. package/dist/esm/types/properties/dimensions/raceLineDimension.d.ts +15 -0
  153. package/dist/esm/types/properties/dimensions/raceLineDimension.js +0 -0
  154. package/dist/esm/types/properties/dimensions/racePieDimension.d.ts +14 -0
  155. package/dist/esm/types/properties/dimensions/racePieDimension.js +0 -0
  156. package/dist/esm/types/properties/measures/hierarchyMeasure.d.ts +10 -0
  157. package/dist/esm/types/properties/measures/hierarchyMeasure.js +0 -0
  158. package/dist/esm/types/properties/measures/index.d.ts +4 -1
  159. package/dist/esm/types/properties/measures/raceDonutMeasure.d.ts +2 -0
  160. package/dist/esm/types/properties/measures/raceDonutMeasure.js +0 -0
  161. package/dist/esm/types/properties/measures/raceLineMeasure.d.ts +2 -0
  162. package/dist/esm/types/properties/measures/raceLineMeasure.js +0 -0
  163. package/dist/esm/types/properties/measures/racePieMeasure.d.ts +2 -0
  164. package/dist/esm/types/properties/measures/racePieMeasure.js +0 -0
  165. package/dist/esm/types/properties/theme/customTheme.d.ts +7159 -2695
  166. package/dist/esm/types/vseed.d.ts +2 -2
  167. package/dist/esm/types/zVseed.d.ts +2 -5
  168. package/dist/esm/types/zVseed.js +7 -4
  169. package/dist/esm/types/zVseed.js.map +1 -1
  170. package/dist/umd/index.js +1029 -154
  171. package/dist/umd/index.js.map +1 -1
  172. package/package.json +1 -1
  173. package/dist/esm/pipeline/spec/chart/pipes/player/playerXY.js.map +0 -1
  174. package/dist/esm/pipeline/spec/chart/pipes/player/playerYX.js.map +0 -1
  175. package/dist/esm/pipeline/spec/chart/pipes/player/playerYY.js.map +0 -1
  176. package/dist/esm/types/properties/measures/hierarchyMeasures.d.ts +0 -4
  177. /package/dist/esm/types/{properties/measures/hierarchyMeasures.js → chartType/raceDonut/raceDonut.js} +0 -0
@@ -0,0 +1,3 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ export declare const defaultEncodingForRaceLine: AdvancedPipe;
3
+ export declare const encodingForRaceLine: AdvancedPipe;
@@ -0,0 +1,89 @@
1
+ import { unique } from "remeda";
2
+ import { MeasureId } from "../../../../../dataReshape/index.js";
3
+ import { hasMultipleMeasureInSingleView } from "../../../../utils/index.js";
4
+ import { addColorToEncoding } from "./color/index.js";
5
+ import { addDefaultColorEncoding } from "./color/addColorToEncoding.js";
6
+ const defaultEncodingForRaceLine = (advancedVSeed)=>{
7
+ const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed;
8
+ const encoding = {};
9
+ generateDefaultDimensionEncoding(dimensions, encoding, hasMultipleMeasureInSingleView(reshapeMeasures));
10
+ generateDefaultMeasureEncoding(measures, encoding);
11
+ return {
12
+ ...advancedVSeed,
13
+ encoding
14
+ };
15
+ };
16
+ const encodingForRaceLine = (advancedVSeed)=>{
17
+ const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed;
18
+ const hasDimensionEncoding = dimensions.some((item)=>item.encoding);
19
+ const hasMeasureEncoding = measures.some((item)=>item.encoding);
20
+ const encoding = {};
21
+ const hasMulti = hasMultipleMeasureInSingleView(reshapeMeasures);
22
+ if (hasDimensionEncoding) generateDimensionEncoding(dimensions, encoding, hasMulti);
23
+ else generateDefaultDimensionEncoding(dimensions, encoding, hasMulti);
24
+ if (hasMeasureEncoding) generateMeasureEncoding(measures, encoding);
25
+ else generateDefaultMeasureEncoding(measures, encoding);
26
+ return {
27
+ ...advancedVSeed,
28
+ encoding
29
+ };
30
+ };
31
+ const generateDefaultDimensionEncoding = (dimensions, encoding, isMultiMeasure)=>{
32
+ const uniqueDimIds = unique(dimensions.map((d)=>d.id));
33
+ encoding.player = uniqueDimIds.slice(0, 1);
34
+ encoding.x = uniqueDimIds.slice(0, 1);
35
+ encoding.color = uniqueDimIds.slice(1, 2);
36
+ addDefaultColorEncoding(uniqueDimIds, encoding, isMultiMeasure);
37
+ encoding.detail = encoding.color;
38
+ encoding.tooltip = uniqueDimIds.filter((d)=>d !== MeasureId);
39
+ encoding.label = [];
40
+ encoding.row = [];
41
+ encoding.column = [];
42
+ };
43
+ const generateDimensionEncoding = (dimensions, encoding, isMultiMeasure)=>{
44
+ const playerDims = dimensions.filter((item)=>'player' === item.encoding).map((item)=>item.id);
45
+ const xDims = dimensions.filter((item)=>'xAxis' === item.encoding).map((item)=>item.id);
46
+ const merged = unique([
47
+ ...playerDims,
48
+ ...xDims
49
+ ]);
50
+ if (playerDims.length > 0) {
51
+ encoding.player = merged;
52
+ encoding.x = merged;
53
+ } else {
54
+ encoding.player = [];
55
+ encoding.x = [
56
+ dimensions[0].id
57
+ ];
58
+ }
59
+ addColorToEncoding(dimensions, encoding, isMultiMeasure);
60
+ encoding.detail = unique(dimensions.filter((item)=>'detail' === item.encoding).map((item)=>item.id));
61
+ if (0 === encoding.detail.length) encoding.detail = encoding.color;
62
+ encoding.tooltip = unique(dimensions.map((item)=>item.id));
63
+ encoding.tooltip = encoding.tooltip.filter((d)=>d !== MeasureId);
64
+ encoding.label = unique(dimensions.filter((item)=>'label' === item.encoding).map((item)=>item.id));
65
+ encoding.label = encoding.label.filter((d)=>d !== MeasureId);
66
+ };
67
+ const generateDefaultMeasureEncoding = (measures, encoding)=>{
68
+ encoding.y = unique(measures.filter((item)=>'yAxis' === item.encoding || !item.encoding).map((item)=>item.id));
69
+ };
70
+ const generateMeasureEncoding = (measures, encoding)=>{
71
+ encoding.y = unique(measures.filter((item)=>'yAxis' === item.encoding || !item.encoding).map((item)=>item.id));
72
+ const color = unique(measures.filter((item)=>'color' === item.encoding).map((item)=>item.id));
73
+ if (color.length > 0) encoding.color = color;
74
+ const label = unique(measures.filter((item)=>'label' === item.encoding).map((item)=>item.id));
75
+ encoding.label = unique([
76
+ ...encoding.label || [],
77
+ ...label
78
+ ]);
79
+ const tooltip = unique(measures.filter((item)=>'tooltip' === item.encoding).map((item)=>item.id));
80
+ encoding.tooltip = unique([
81
+ ...encoding.tooltip || [],
82
+ ...label,
83
+ ...tooltip,
84
+ ...color
85
+ ]);
86
+ };
87
+ export { defaultEncodingForRaceLine, encodingForRaceLine };
88
+
89
+ //# sourceMappingURL=raceLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/encoding/raceLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/encoding/raceLine.ts"],"sourcesContent":["import { unique } from 'remeda'\nimport { MeasureId } from 'src/dataReshape'\nimport { hasMultipleMeasureInSingleView } from 'src/pipeline/utils'\nimport type { AdvancedPipe, Dimension, Dimensions, Encoding, Measure, Measures } from 'src/types'\nimport { addColorToEncoding } from './color'\nimport { addDefaultColorEncoding } from './color/addColorToEncoding'\n\nexport const defaultEncodingForRaceLine: AdvancedPipe = (advancedVSeed) => {\n const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed\n const encoding: Encoding = {}\n generateDefaultDimensionEncoding(dimensions, encoding, hasMultipleMeasureInSingleView(reshapeMeasures))\n generateDefaultMeasureEncoding(measures, encoding)\n return { ...advancedVSeed, encoding }\n}\n\nexport const encodingForRaceLine: AdvancedPipe = (advancedVSeed) => {\n const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed\n\n const hasDimensionEncoding = dimensions.some((item: Dimension) => item.encoding)\n const hasMeasureEncoding = measures.some((item: Measure) => item.encoding)\n const encoding: Encoding = {}\n const hasMulti = hasMultipleMeasureInSingleView(reshapeMeasures)\n\n if (hasDimensionEncoding) {\n generateDimensionEncoding(dimensions, encoding, hasMulti)\n } else {\n generateDefaultDimensionEncoding(dimensions, encoding, hasMulti)\n }\n\n if (hasMeasureEncoding) {\n generateMeasureEncoding(measures, encoding)\n } else {\n generateDefaultMeasureEncoding(measures, encoding)\n }\n\n return { ...advancedVSeed, encoding }\n}\n\n/**\n * --------------------维度--------------------\n */\nconst generateDefaultDimensionEncoding = (dimensions: Dimensions, encoding: Encoding, isMultiMeasure: boolean) => {\n const uniqueDimIds: string[] = unique(dimensions.map((d) => d.id))\n encoding.player = uniqueDimIds.slice(0, 1) // 第一个维度用于播放\n encoding.x = uniqueDimIds.slice(0, 1) // 第二个维度用于离散的X轴\n encoding.color = uniqueDimIds.slice(1, 2) // 第二个维度用于颜色\n addDefaultColorEncoding(uniqueDimIds, encoding, isMultiMeasure)\n encoding.detail = encoding.color\n encoding.tooltip = uniqueDimIds.filter((d) => d !== MeasureId) // 展示指标名称之外的所有维度\n encoding.label = [] // 默认不展示标签\n encoding.row = [] // 默认不进行行透视\n encoding.column = [] // 默认不进行列透视\n}\nconst generateDimensionEncoding = (dimensions: Dimensions, encoding: Encoding, isMultiMeasure: boolean) => {\n // player & x\n const playerDims = dimensions.filter((item) => item.encoding === 'player').map((item) => item.id)\n const xDims = dimensions.filter((item) => item.encoding === 'xAxis').map((item) => item.id)\n const merged = unique([...playerDims, ...xDims])\n\n if (playerDims.length > 0) {\n encoding.player = merged\n encoding.x = merged\n } else {\n encoding.player = []\n encoding.x = [dimensions[0].id]\n }\n\n // color\n addColorToEncoding(dimensions, encoding, isMultiMeasure)\n\n // detail\n encoding.detail = unique(dimensions.filter((item) => item.encoding === 'detail').map((item) => item.id))\n if (encoding.detail.length === 0) {\n encoding.detail = encoding.color\n }\n\n // tooltip\n encoding.tooltip = unique(dimensions.map((item) => item.id))\n encoding.tooltip = encoding.tooltip.filter((d) => d !== MeasureId)\n\n // label\n encoding.label = unique(dimensions.filter((item) => item.encoding === 'label').map((item) => item.id))\n encoding.label = encoding.label.filter((d) => d !== MeasureId)\n}\n\n/**\n * --------------------指标--------------------\n */\nconst generateDefaultMeasureEncoding = (measures: Measures, encoding: Encoding) => {\n encoding.y = unique(measures.filter((item) => item.encoding === 'yAxis' || !item.encoding).map((item) => item.id))\n}\nconst generateMeasureEncoding = (measures: Measures, encoding: Encoding) => {\n // y\n encoding.y = unique(measures.filter((item) => item.encoding === 'yAxis' || !item.encoding).map((item) => item.id))\n\n // color\n const color = unique(measures.filter((item) => item.encoding === 'color').map((item) => item.id))\n if (color.length > 0) {\n encoding.color = color\n }\n\n // label\n const label = unique(measures.filter((item) => item.encoding === 'label').map((item) => item.id))\n encoding.label = unique([...(encoding.label || []), ...label])\n\n // tooltip\n const tooltip = unique(measures.filter((item) => item.encoding === 'tooltip').map((item) => item.id))\n encoding.tooltip = unique([...(encoding.tooltip || []), ...label, ...tooltip, ...color])\n}\n"],"names":["defaultEncodingForRaceLine","advancedVSeed","measures","reshapeMeasures","dimensions","encoding","generateDefaultDimensionEncoding","hasMultipleMeasureInSingleView","generateDefaultMeasureEncoding","encodingForRaceLine","hasDimensionEncoding","item","hasMeasureEncoding","hasMulti","generateDimensionEncoding","generateMeasureEncoding","isMultiMeasure","uniqueDimIds","unique","d","addDefaultColorEncoding","MeasureId","playerDims","xDims","merged","addColorToEncoding","color","label","tooltip"],"mappings":";;;;;AAOO,MAAMA,6BAA2C,CAACC;IACvD,MAAM,EAAEC,WAAW,EAA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hB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,YAAlBA,KAAK,QAAQ,IAAgB,CAACA,KAAK,QAAQ,EAAE,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;AAClH;AACA,MAAMI,0BAA0B,CAACb,UAAoBG;IAEnDA,SAAS,CAAC,GAAGa,OAAOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,YAAlBA,KAAK,QAAQ,IAAgB,CAACA,KAAK,QAAQ,EAAE,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IAGhH,MAAMe,QAAQR,OAAOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,YAAlBA,KAAK,QAAQ,EAAc,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IAC/F,IAAIe,MAAM,MAAM,GAAG,GACjBrB,SAAS,KAAK,GAAGqB;IAInB,MAAMC,QAAQT,OAAOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,YAAlBA,KAAK,QAAQ,EAAc,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IAC/FN,SAAS,KAAK,GAAGa,OAAO;WAAKb,SAAS,KAAK,IAAI,EAAE;WAAMsB;KAAM;IAG7D,MAAMC,UAAUV,OAAOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,cAAlBA,KAAK,QAAQ,EAAgB,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IACnGN,SAAS,OAAO,GAAGa,OAAO;WAAKb,SAAS,OAAO,IAAI,EAAE;WAAMsB;WAAUC;WAAYF;KAAM;AACzF"}
@@ -0,0 +1,3 @@
1
+ import type { AdvancedPipe } from '../../../../../types';
2
+ export declare const defaultEncodingForRacePie: AdvancedPipe;
3
+ export declare const encodingForRacePie: AdvancedPipe;
@@ -0,0 +1,74 @@
1
+ import { unique } from "remeda";
2
+ import { MeasureId } from "../../../../../dataReshape/index.js";
3
+ import { hasMultipleMeasureInSingleView } from "../../../../utils/index.js";
4
+ import { addColorToEncoding } from "./color/index.js";
5
+ import { addDefaultColorEncoding } from "./color/addColorToEncoding.js";
6
+ const defaultEncodingForRacePie = (advancedVSeed)=>{
7
+ const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed;
8
+ const encoding = {};
9
+ generateDefaultDimensionEncoding(dimensions, encoding, hasMultipleMeasureInSingleView(reshapeMeasures));
10
+ generateDefaultMeasureEncoding(measures, encoding);
11
+ return {
12
+ ...advancedVSeed,
13
+ encoding
14
+ };
15
+ };
16
+ const encodingForRacePie = (advancedVSeed)=>{
17
+ const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed;
18
+ const hasDimensionEncoding = dimensions.some((item)=>item.encoding);
19
+ const hasMeasureEncoding = measures.some((item)=>item.encoding);
20
+ const encoding = {};
21
+ const hasMulti = hasMultipleMeasureInSingleView(reshapeMeasures);
22
+ if (hasDimensionEncoding) generateDimensionEncoding(dimensions, encoding, hasMulti);
23
+ else generateDefaultDimensionEncoding(dimensions, encoding, hasMulti);
24
+ if (hasMeasureEncoding) generateMeasureEncoding(measures, encoding);
25
+ else generateDefaultMeasureEncoding(measures, encoding);
26
+ return {
27
+ ...advancedVSeed,
28
+ encoding
29
+ };
30
+ };
31
+ const generateDefaultDimensionEncoding = (dimensions, encoding, isMultiMeasure)=>{
32
+ const uniqueDimIds = unique(dimensions.map((d)=>d.id));
33
+ encoding.player = uniqueDimIds.slice(0, 1);
34
+ encoding.color = uniqueDimIds.slice(1, 2);
35
+ addDefaultColorEncoding(uniqueDimIds, encoding, isMultiMeasure);
36
+ encoding.detail = encoding.color;
37
+ encoding.tooltip = uniqueDimIds.filter((d)=>d !== MeasureId);
38
+ encoding.label = [];
39
+ encoding.row = [];
40
+ encoding.column = [];
41
+ };
42
+ const generateDimensionEncoding = (dimensions, encoding, isMultiMeasure)=>{
43
+ encoding.player = unique(dimensions.filter((item)=>'player' === item.encoding).map((item)=>item.id));
44
+ addColorToEncoding(dimensions, encoding, isMultiMeasure);
45
+ encoding.detail = unique(dimensions.filter((item)=>'detail' === item.encoding).map((item)=>item.id));
46
+ if (0 === encoding.detail.length) encoding.detail = encoding.color;
47
+ encoding.tooltip = unique(dimensions.map((item)=>item.id));
48
+ encoding.tooltip = encoding.tooltip.filter((d)=>d !== MeasureId);
49
+ encoding.label = unique(dimensions.filter((item)=>'label' === item.encoding).map((item)=>item.id));
50
+ encoding.label = encoding.label.filter((d)=>d !== MeasureId);
51
+ };
52
+ const generateDefaultMeasureEncoding = (measures, encoding)=>{
53
+ encoding.angle = unique(measures.filter((item)=>'angle' === item.encoding || !item.encoding).map((item)=>item.id));
54
+ };
55
+ const generateMeasureEncoding = (measures, encoding)=>{
56
+ encoding.angle = unique(measures.filter((item)=>'angle' === item.encoding || !item.encoding).map((item)=>item.id));
57
+ const color = unique(measures.filter((item)=>'color' === item.encoding).map((item)=>item.id));
58
+ if (color.length > 0) encoding.color = color;
59
+ const label = unique(measures.filter((item)=>'label' === item.encoding).map((item)=>item.id));
60
+ encoding.label = unique([
61
+ ...encoding.label || [],
62
+ ...label
63
+ ]);
64
+ const tooltip = unique(measures.filter((item)=>'tooltip' === item.encoding).map((item)=>item.id));
65
+ encoding.tooltip = unique([
66
+ ...encoding.tooltip || [],
67
+ ...label,
68
+ ...tooltip,
69
+ ...color
70
+ ]);
71
+ };
72
+ export { defaultEncodingForRacePie, encodingForRacePie };
73
+
74
+ //# sourceMappingURL=racePie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/advanced/chart/pipes/encoding/racePie.js","sources":["webpack://@visactor/vseed/./src/pipeline/advanced/chart/pipes/encoding/racePie.ts"],"sourcesContent":["import { unique } from 'remeda'\nimport { MeasureId } from 'src/dataReshape'\nimport { hasMultipleMeasureInSingleView } from 'src/pipeline/utils'\nimport type { AdvancedPipe, Dimension, Dimensions, Encoding, Measure, Measures } from 'src/types'\nimport { addColorToEncoding } from './color'\nimport { addDefaultColorEncoding } from './color/addColorToEncoding'\n\nexport const defaultEncodingForRacePie: AdvancedPipe = (advancedVSeed) => {\n const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed\n const encoding: Encoding = {}\n generateDefaultDimensionEncoding(dimensions, encoding, hasMultipleMeasureInSingleView(reshapeMeasures))\n generateDefaultMeasureEncoding(measures, encoding)\n return { ...advancedVSeed, encoding }\n}\n\nexport const encodingForRacePie: AdvancedPipe = (advancedVSeed) => {\n const { measures = [], reshapeMeasures = [], dimensions = [] } = advancedVSeed\n\n const hasDimensionEncoding = dimensions.some((item: Dimension) => item.encoding)\n const hasMeasureEncoding = measures.some((item: Measure) => item.encoding)\n const encoding: Encoding = {}\n const hasMulti = hasMultipleMeasureInSingleView(reshapeMeasures)\n\n if (hasDimensionEncoding) {\n generateDimensionEncoding(dimensions, encoding, hasMulti)\n } else {\n generateDefaultDimensionEncoding(dimensions, encoding, hasMulti)\n }\n\n if (hasMeasureEncoding) {\n generateMeasureEncoding(measures, encoding)\n } else {\n generateDefaultMeasureEncoding(measures, encoding)\n }\n\n return { ...advancedVSeed, encoding }\n}\n\n/**\n * --------------------维度--------------------\n */\nconst generateDefaultDimensionEncoding = (dimensions: Dimensions, encoding: Encoding, isMultiMeasure: boolean) => {\n const uniqueDimIds: string[] = unique(dimensions.map((d) => d.id))\n encoding.player = uniqueDimIds.slice(0, 1) // 第一个维度用于播放\n encoding.color = uniqueDimIds.slice(1, 2) // 第二个维度用于颜色\n addDefaultColorEncoding(uniqueDimIds, encoding, isMultiMeasure)\n encoding.detail = encoding.color\n encoding.tooltip = uniqueDimIds.filter((d) => d !== MeasureId) // 展示指标名称之外的所有维度\n encoding.label = [] // 默认不展示标签\n encoding.row = [] // 默认不进行行透视\n encoding.column = [] // 默认不进行列透视\n}\nconst generateDimensionEncoding = (dimensions: Dimensions, encoding: Encoding, isMultiMeasure: boolean) => {\n // player\n encoding.player = unique(dimensions.filter((item) => item.encoding === 'player').map((item) => item.id))\n\n // color\n addColorToEncoding(dimensions, encoding, isMultiMeasure)\n\n // detail\n encoding.detail = unique(dimensions.filter((item) => item.encoding === 'detail').map((item) => item.id))\n if (encoding.detail.length === 0) {\n encoding.detail = encoding.color\n }\n\n // tooltip\n encoding.tooltip = unique(dimensions.map((item) => item.id))\n encoding.tooltip = encoding.tooltip.filter((d) => d !== MeasureId)\n\n // label\n encoding.label = unique(dimensions.filter((item) => item.encoding === 'label').map((item) => item.id))\n encoding.label = encoding.label.filter((d) => d !== MeasureId)\n}\n\n/**\n * --------------------指标--------------------\n */\nconst generateDefaultMeasureEncoding = (measures: Measures, encoding: Encoding) => {\n encoding.angle = unique(measures.filter((item) => item.encoding === 'angle' || !item.encoding).map((item) => item.id))\n}\nconst generateMeasureEncoding = (measures: Measures, encoding: Encoding) => {\n // angle\n encoding.angle = unique(measures.filter((item) => item.encoding === 'angle' || !item.encoding).map((item) => item.id))\n\n // color\n const color = unique(measures.filter((item) => item.encoding === 'color').map((item) => item.id))\n if (color.length > 0) {\n encoding.color = color\n }\n\n // label\n const label = unique(measures.filter((item) => item.encoding === 'label').map((item) => item.id))\n encoding.label = unique([...(encoding.label || []), ...label])\n\n // tooltip\n const tooltip = unique(measures.filter((item) => item.encoding === 'tooltip').map((item) => item.id))\n encoding.tooltip = unique([...(encoding.tooltip || []), ...label, ...tooltip, ...color])\n}\n"],"names":["defaultEncodingForRacePie","advancedVSeed","measures","reshapeMeasures","dimensions","encoding","generateDefaultDimensionEncoding","hasMultipleMeasureInSingleView","generateDefaultMeasureEncoding","encodingForRacePie","hasDimensionEncoding","item","hasMeasureEncoding","hasMulti","generateDimensionEncoding","generateMeasureEncoding","isMultiMeasure","uniqueDimIds","unique","d","addDefaultColorEncoding","MeasureId","addColorToEncoding","color","label","tooltip"],"mappings":";;;;;AAOO,MAAMA,4BAA0C,CAACC;IACtD,MAAM,EAAEC,WAAW,EAAE,EAAEC,kBAAkB,EAAE,EAAEC,aAAa,EAAE,EAAE,GAAGH;IACjE,MAAMI,WAAqB,CAAC;IAC5BC,iCAAiCF,YAAYC,UAAUE,+BAA+BJ;IACtFK,+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AOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,YAAlBA,KAAK,QAAQ,EAAc,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IAC/FN,SAAS,KAAK,GAAGa,OAAO;WAAKb,SAAS,KAAK,IAAI,EAAE;WAAMmB;KAAM;IAG7D,MAAMC,UAAUP,OAAOhB,SAAS,MAAM,CAAC,CAACS,OAASA,AAAkB,cAAlBA,KAAK,QAAQ,EAAgB,GAAG,CAAC,CAACA,OAASA,KAAK,EAAE;IACnGN,SAAS,OAAO,GAAGa,OAAO;WAAKb,SAAS,OAAO,IAAI,EAAE;WAAMmB;WAAUC;WAAYF;KAAM;AACzF"}
@@ -6,6 +6,9 @@ export { barSpecPipeline } from './bar';
6
6
  export { raceBarSpecPipeline } from './raceBar';
7
7
  export { raceColumnSpecPipeline } from './raceColumn';
8
8
  export { raceScatterSpecPipeline } from './raceScatter';
9
+ export { raceLineSpecPipeline } from './raceLine';
10
+ export { racePieSpecPipeline } from './racePie';
11
+ export { raceDonutSpecPipeline } from './raceDonut';
9
12
  export { barParallelSpecPipeline } from './barParallel';
10
13
  export { barPercentSpecPipeline } from './barPercent';
11
14
  export { areaSpecPipeline } from './area';
@@ -6,6 +6,9 @@ import { barSpecPipeline } from "./bar.js";
6
6
  import { raceBarSpecPipeline } from "./raceBar.js";
7
7
  import { raceColumnSpecPipeline } from "./raceColumn.js";
8
8
  import { raceScatterSpecPipeline } from "./raceScatter.js";
9
+ import { raceLineSpecPipeline } from "./raceLine.js";
10
+ import { racePieSpecPipeline } from "./racePie.js";
11
+ import { raceDonutSpecPipeline } from "./raceDonut.js";
9
12
  import { barParallelSpecPipeline } from "./barParallel.js";
10
13
  import { barPercentSpecPipeline } from "./barPercent.js";
11
14
  import { areaSpecPipeline } from "./area.js";
@@ -24,4 +27,4 @@ import { histogramSpecPipeline } from "./histogram.js";
24
27
  import { treeMapSpecPipeline } from "./treeMap.js";
25
28
  import { sunburstSpecPipeline } from "./sunburst.js";
26
29
  import { circlePackingSpecPipeline } from "./circlePacking.js";
27
- export { areaPercentSpecPipeline, areaSpecPipeline, barParallelSpecPipeline, barPercentSpecPipeline, barSpecPipeline, boxplotSpecPipeline, circlePackingSpecPipeline, columnParallelSpecPipeline, columnPercentSpecPipeline, columnSpecPipeline, donutSpecPipeline, dualAxisSpecPipeline, funnelSpecPipeline, heatmapSpecPipeline, histogramSpecPipeline, lineSpecPipeline, pieSpecPipeline, raceBarSpecPipeline, raceColumnSpecPipeline, raceScatterSpecPipeline, radarSpecPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterSpecPipeline, sunburstSpecPipeline, treeMapSpecPipeline };
30
+ export { areaPercentSpecPipeline, areaSpecPipeline, barParallelSpecPipeline, barPercentSpecPipeline, barSpecPipeline, boxplotSpecPipeline, circlePackingSpecPipeline, columnParallelSpecPipeline, columnPercentSpecPipeline, columnSpecPipeline, donutSpecPipeline, dualAxisSpecPipeline, funnelSpecPipeline, heatmapSpecPipeline, histogramSpecPipeline, lineSpecPipeline, pieSpecPipeline, raceBarSpecPipeline, raceColumnSpecPipeline, raceDonutSpecPipeline, raceLineSpecPipeline, racePieSpecPipeline, raceScatterSpecPipeline, radarSpecPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterSpecPipeline, sunburstSpecPipeline, treeMapSpecPipeline };
@@ -1,11 +1,11 @@
1
- import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, brush, color, colorAdapter, colorBarStyleFill, colorLegend, discreteLegend, horizontalCrosshairRect, initBar, label, linearColor, playerYX, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
1
+ import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, brush, color, colorAdapter, colorBarStyleFill, colorLegend, datasetYX, discreteLegend, horizontalCrosshairRect, initBar, isPlayer, label, linearColor, playerBar, progressive, stackCornerRadius, tooltip, xLinear, yBand } from "../pipes/index.js";
2
2
  const raceBar = [
3
3
  initBar,
4
4
  stackCornerRadius,
5
5
  barMaxWidth,
6
6
  colorAdapter(color, linearColor),
7
7
  backgroundColor,
8
- playerYX,
8
+ isPlayer(playerBar, datasetYX),
9
9
  progressive,
10
10
  xLinear,
11
11
  yBand,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/raceBar.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceBar.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initBar,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n barMaxWidth,\n brush,\n playerYX,\n xLinear,\n yBand,\n} from '../pipes'\n\nconst raceBar: VChartSpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n playerYX,\n progressive,\n xLinear,\n yBand,\n\n label,\n brush,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nexport const raceBarSpecPipeline = raceBar\n"],"names":["raceBar","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","playerYX","progressive","xLinear","yBand","label","brush","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","raceBarSpecPipeline"],"mappings":";AA2BA,MAAMA,UAA8B;IAClCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IAEAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,sBAAsBxB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/raceBar.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceBar.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initBar,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n horizontalCrosshairRect,\n stackCornerRadius,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n colorBarStyleFill,\n barMaxWidth,\n brush,\n playerBar,\n xLinear,\n yBand,\n datasetYX,\n isPlayer,\n} from '../pipes'\n\nconst raceBar: VChartSpecPipeline = [\n initBar,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerBar, datasetYX),\n progressive,\n xLinear,\n yBand,\n\n label,\n brush,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nexport const raceBarSpecPipeline = raceBar\n"],"names":["raceBar","initBar","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerBar","datasetYX","progressive","xLinear","yBand","label","brush","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","raceBarSpecPipeline"],"mappings":";AA6BA,MAAMA,UAA8B;IAClCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,WAAWC;IACpBC;IACAC;IACAC;IAEAC;IACAC;IACAC;IACAZ,aAAaa,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,sBAAsB1B"}
@@ -1,11 +1,11 @@
1
- import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, brush, color, colorAdapter, colorBarStyleFill, colorLegend, discreteLegend, horizontalCrosshairRect, initColumn, label, linearColor, playerXY, progressive, stackCornerRadius, tooltip, xBand, yLinear } from "../pipes/index.js";
1
+ import { annotationAreaBand, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, barMaxWidth, barStyle, brush, color, colorAdapter, colorBarStyleFill, colorLegend, datasetXY, discreteLegend, horizontalCrosshairRect, initColumn, isPlayer, label, linearColor, playerColumn, progressive, stackCornerRadius, tooltip, xBand, yLinear } from "../pipes/index.js";
2
2
  const raceColumn = [
3
3
  initColumn,
4
4
  stackCornerRadius,
5
5
  barMaxWidth,
6
6
  colorAdapter(color, linearColor),
7
7
  backgroundColor,
8
- playerXY,
8
+ isPlayer(playerColumn, datasetXY),
9
9
  progressive,
10
10
  xBand,
11
11
  yLinear,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/raceColumn.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceColumn.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initColumn,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter,\n color,\n linearColor,\n backgroundColor,\n playerXY,\n progressive,\n label,\n brush,\n tooltip,\n discreteLegend,\n colorLegend,\n horizontalCrosshairRect,\n colorBarStyleFill,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n xBand,\n yLinear,\n} from '../pipes'\n\nconst raceColumn: VChartSpecPipeline = [\n initColumn,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n playerXY,\n progressive,\n xBand,\n yLinear,\n\n label,\n brush,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nexport const raceColumnSpecPipeline = raceColumn\n"],"names":["raceColumn","initColumn","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","playerXY","progressive","xBand","yLinear","label","brush","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","raceColumnSpecPipeline"],"mappings":";AA2BA,MAAMA,aAAiC;IACrCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IAEAC;IACAC;IACAC;IACAV,aAAaW,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,yBAAyBxB"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/raceColumn.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceColumn.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initColumn,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter,\n color,\n linearColor,\n backgroundColor,\n playerColumn,\n progressive,\n label,\n brush,\n tooltip,\n discreteLegend,\n colorLegend,\n horizontalCrosshairRect,\n colorBarStyleFill,\n barStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n xBand,\n yLinear,\n datasetXY,\n isPlayer,\n} from '../pipes'\n\nconst raceColumn: VChartSpecPipeline = [\n initColumn,\n stackCornerRadius,\n barMaxWidth,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerColumn, datasetXY),\n progressive,\n xBand,\n yLinear,\n\n label,\n brush,\n tooltip,\n colorAdapter(discreteLegend, colorLegend),\n horizontalCrosshairRect,\n colorBarStyleFill(barStyle),\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationAreaBand,\n]\n\nexport const raceColumnSpecPipeline = raceColumn\n"],"names":["raceColumn","initColumn","stackCornerRadius","barMaxWidth","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerColumn","datasetXY","progressive","xBand","yLinear","label","brush","tooltip","discreteLegend","colorLegend","horizontalCrosshairRect","colorBarStyleFill","barStyle","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationAreaBand","raceColumnSpecPipeline"],"mappings":";AA6BA,MAAMA,aAAiC;IACrCC;IACAC;IACAC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,cAAcC;IACvBC;IACAC;IACAC;IAEAC;IACAC;IACAC;IACAZ,aAAaa,gBAAgBC;IAC7BC;IACAC,kBAAkBC;IAClBC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,yBAAyB1B"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipeline } from '../../../../types';
2
+ export declare const raceDonutSpecPipeline: VChartSpecPipeline;
@@ -0,0 +1,21 @@
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetXY, discreteLegend, initDonut, isPlayer, labelPie, linearColor, pieStyle, playerPie, progressive, tooltip } from "../pipes/index.js";
2
+ const raceDonut = [
3
+ initDonut,
4
+ colorAdapter(color, linearColor),
5
+ backgroundColor,
6
+ isPlayer(playerPie, datasetXY),
7
+ progressive,
8
+ brush,
9
+ labelPie,
10
+ colorPieStyleFill(pieStyle),
11
+ colorAdapter(discreteLegend, colorLegend),
12
+ tooltip,
13
+ annotationPoint,
14
+ annotationVerticalLine,
15
+ annotationHorizontalLine,
16
+ annotationArea
17
+ ];
18
+ const raceDonutSpecPipeline = raceDonut;
19
+ export { raceDonutSpecPipeline };
20
+
21
+ //# sourceMappingURL=raceDonut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/raceDonut.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceDonut.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initDonut,\n backgroundColor,\n labelPie,\n tooltip,\n discreteLegend,\n color,\n pieStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n brush,\n colorPieStyleFill,\n playerPie,\n annotationArea,\n datasetXY,\n isPlayer,\n} from '../pipes'\n\nconst raceDonut: VChartSpecPipeline = [\n initDonut,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerPie, datasetXY),\n progressive,\n brush,\n labelPie,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nexport const raceDonutSpecPipeline = raceDonut\n"],"names":["raceDonut","initDonut","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerPie","datasetXY","progressive","brush","labelPie","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","raceDonutSpecPipeline"],"mappings":";AAwBA,MAAMA,YAAgC;IACpCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,WAAWC;IACpBC;IACAC;IACAC;IACAC,kBAAkBC;IAClBX,aAAaY,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,wBAAwBrB"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipeline } from '../../../../types';
2
+ export declare const raceLineSpecPipeline: VChartSpecPipeline;
@@ -0,0 +1,25 @@
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorLineStyleFill, datasetXY, discreteLegend, initLine, isPlayer, label, lineStyle, linearColor, playerLine, progressive, splitLine, tooltip, verticalCrosshairLine, xBand, yLinear } from "../pipes/index.js";
2
+ const raceLine = [
3
+ initLine,
4
+ colorAdapter(color, linearColor),
5
+ backgroundColor,
6
+ isPlayer(playerLine, datasetXY),
7
+ progressive,
8
+ xBand,
9
+ yLinear,
10
+ brush,
11
+ verticalCrosshairLine,
12
+ colorAdapter(discreteLegend, colorLegend),
13
+ colorLineStyleFill(lineStyle),
14
+ label,
15
+ tooltip,
16
+ annotationPoint,
17
+ annotationVerticalLine,
18
+ annotationHorizontalLine,
19
+ annotationArea,
20
+ splitLine
21
+ ];
22
+ const raceLineSpecPipeline = raceLine;
23
+ export { raceLineSpecPipeline };
24
+
25
+ //# sourceMappingURL=raceLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/raceLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceLine.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initLine,\n backgroundColor,\n label,\n tooltip,\n discreteLegend,\n color,\n lineStyle,\n annotationVerticalLine,\n annotationHorizontalLine,\n verticalCrosshairLine,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n brush,\n xBand,\n yLinear,\n colorLineStyleFill,\n annotationArea,\n splitLine,\n playerLine,\n annotationPoint,\n datasetXY,\n isPlayer,\n} from '../pipes'\n\nconst raceLine: VChartSpecPipeline = [\n initLine,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerLine, datasetXY),\n progressive,\n xBand,\n yLinear,\n brush,\n verticalCrosshairLine,\n colorAdapter(discreteLegend, colorLegend),\n colorLineStyleFill(lineStyle),\n label,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n splitLine,\n]\n\nexport const raceLineSpecPipeline = raceLine\n"],"names":["raceLine","initLine","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerLine","datasetXY","progressive","xBand","yLinear","brush","verticalCrosshairLine","discreteLegend","colorLegend","colorLineStyleFill","lineStyle","label","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","splitLine","raceLineSpecPipeline"],"mappings":";AA4BA,MAAMA,WAA+B;IACnCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,YAAYC;IACrBC;IACAC;IACAC;IACAC;IACAC;IACAX,aAAaY,gBAAgBC;IAC7BC,mBAAmBC;IACnBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,uBAAuBzB"}
@@ -0,0 +1,2 @@
1
+ import type { VChartSpecPipeline } from '../../../../types';
2
+ export declare const racePieSpecPipeline: VChartSpecPipeline;
@@ -0,0 +1,21 @@
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPieStyleFill, datasetXY, discreteLegend, initPie, isPlayer, labelPie, linearColor, pieStyle, playerPie, progressive, tooltip } from "../pipes/index.js";
2
+ const racePie = [
3
+ initPie,
4
+ colorAdapter(color, linearColor),
5
+ backgroundColor,
6
+ isPlayer(playerPie, datasetXY),
7
+ progressive,
8
+ brush,
9
+ colorPieStyleFill(pieStyle),
10
+ colorAdapter(discreteLegend, colorLegend),
11
+ labelPie,
12
+ tooltip,
13
+ annotationPoint,
14
+ annotationVerticalLine,
15
+ annotationHorizontalLine,
16
+ annotationArea
17
+ ];
18
+ const racePieSpecPipeline = racePie;
19
+ export { racePieSpecPipeline };
20
+
21
+ //# sourceMappingURL=racePie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/racePie.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/racePie.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initPie,\n backgroundColor,\n tooltip,\n discreteLegend,\n color,\n pieStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n progressive,\n colorAdapter,\n linearColor,\n colorLegend,\n brush,\n colorPieStyleFill,\n labelPie,\n playerPie,\n annotationArea,\n datasetXY,\n isPlayer,\n} from '../pipes'\n\nconst racePie: VChartSpecPipeline = [\n initPie,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerPie, datasetXY),\n progressive,\n brush,\n colorPieStyleFill(pieStyle),\n colorAdapter(discreteLegend, colorLegend),\n labelPie,\n tooltip,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n]\n\nexport const racePieSpecPipeline = racePie\n"],"names":["racePie","initPie","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerPie","datasetXY","progressive","brush","colorPieStyleFill","pieStyle","discreteLegend","colorLegend","labelPie","tooltip","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","racePieSpecPipeline"],"mappings":";AAwBA,MAAMA,UAA8B;IAClCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,WAAWC;IACpBC;IACAC;IACAC,kBAAkBC;IAClBV,aAAaW,gBAAgBC;IAC7BC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,sBAAsBrB"}
@@ -1,9 +1,9 @@
1
- import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPointStyleFill, discreteLegend, horizontalCrosshairLine, initScatter, labelScatter, linearColor, linearRegressionLine, logisticRegressionLine, lowessRegressionLine, playerYY, pointStateHover, pointStyle, polynomialRegressionLine, progressive, scatterSize, tooltipScatter, verticalCrosshairLine, xLinear, yLinear } from "../pipes/index.js";
1
+ import { annotationArea, annotationHorizontalLine, annotationPoint, annotationVerticalLine, backgroundColor, brush, color, colorAdapter, colorLegend, colorPointStyleFill, datasetScatter, discreteLegend, horizontalCrosshairLine, initScatter, isPlayer, labelScatter, linearColor, linearRegressionLine, logisticRegressionLine, lowessRegressionLine, playerScatter, pointStateHover, pointStyle, polynomialRegressionLine, progressive, scatterSize, tooltipScatter, verticalCrosshairLine, xLinear, yLinear } from "../pipes/index.js";
2
2
  const raceScatter = [
3
3
  initScatter,
4
4
  colorAdapter(color, linearColor),
5
5
  backgroundColor,
6
- playerYY,
6
+ isPlayer(playerScatter, datasetScatter),
7
7
  progressive,
8
8
  xLinear,
9
9
  yLinear,
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipeline/raceScatter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceScatter.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initScatter,\n colorAdapter,\n color,\n linearColor,\n backgroundColor,\n progressive,\n brush,\n discreteLegend,\n colorLegend,\n verticalCrosshairLine,\n colorPointStyleFill,\n pointStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n playerYY,\n xLinear,\n yLinear,\n scatterSize,\n labelScatter,\n tooltipScatter,\n horizontalCrosshairLine,\n pointStateHover,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n} from '../pipes'\nconst raceScatter: VChartSpecPipeline = [\n initScatter,\n colorAdapter(color, linearColor),\n backgroundColor,\n playerYY,\n progressive,\n xLinear,\n yLinear,\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n]\n\nexport const raceScatterSpecPipeline = raceScatter\n"],"names":["raceScatter","initScatter","colorAdapter","color","linearColor","backgroundColor","playerYY","progressive","xLinear","yLinear","brush","scatterSize","labelScatter","tooltipScatter","discreteLegend","colorLegend","verticalCrosshairLine","horizontalCrosshairLine","colorPointStyleFill","pointStyle","pointStateHover","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","linearRegressionLine","lowessRegressionLine","polynomialRegressionLine","logisticRegressionLine","raceScatterSpecPipeline"],"mappings":";AA+BA,MAAMA,cAAkC;IACtCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAX,aAAaY,gBAAgBC;IAC7BC;IACAC;IACAC,oBAAoBC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,0BAA0B7B"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipeline/raceScatter.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipeline/raceScatter.ts"],"sourcesContent":["import type { VChartSpecPipeline } from 'src/types'\nimport {\n initScatter,\n colorAdapter,\n color,\n linearColor,\n backgroundColor,\n progressive,\n brush,\n discreteLegend,\n colorLegend,\n verticalCrosshairLine,\n colorPointStyleFill,\n pointStyle,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n playerScatter,\n xLinear,\n yLinear,\n scatterSize,\n labelScatter,\n tooltipScatter,\n horizontalCrosshairLine,\n pointStateHover,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n datasetScatter,\n isPlayer,\n} from '../pipes'\nconst raceScatter: VChartSpecPipeline = [\n initScatter,\n colorAdapter(color, linearColor),\n backgroundColor,\n isPlayer(playerScatter, datasetScatter),\n progressive,\n xLinear,\n yLinear,\n brush,\n scatterSize,\n labelScatter,\n tooltipScatter,\n colorAdapter(discreteLegend, colorLegend),\n verticalCrosshairLine,\n horizontalCrosshairLine,\n colorPointStyleFill(pointStyle),\n pointStateHover,\n annotationPoint,\n annotationVerticalLine,\n annotationHorizontalLine,\n annotationArea,\n linearRegressionLine,\n lowessRegressionLine,\n polynomialRegressionLine,\n logisticRegressionLine,\n]\n\nexport const raceScatterSpecPipeline = raceScatter\n"],"names":["raceScatter","initScatter","colorAdapter","color","linearColor","backgroundColor","isPlayer","playerScatter","datasetScatter","progressive","xLinear","yLinear","brush","scatterSize","labelScatter","tooltipScatter","discreteLegend","colorLegend","verticalCrosshairLine","horizontalCrosshairLine","colorPointStyleFill","pointStyle","pointStateHover","annotationPoint","annotationVerticalLine","annotationHorizontalLine","annotationArea","linearRegressionLine","lowessRegressionLine","polynomialRegressionLine","logisticRegressionLine","raceScatterSpecPipeline"],"mappings":";AAiCA,MAAMA,cAAkC;IACtCC;IACAC,aAAaC,OAAOC;IACpBC;IACAC,SAASC,eAAeC;IACxBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAb,aAAac,gBAAgBC;IAC7BC;IACAC;IACAC,oBAAoBC;IACpBC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACD;AAEM,MAAMC,0BAA0B/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/annotation/splitLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/annotation/splitLine.ts"],"sourcesContent":["import type { ICartesianSeries, IChart, ILineChartSpec, IVChart } from '@visactor/vchart'\nimport { array, clamper, Color as VUtilColor } from '@visactor/vutils'\nimport { isNullish, isNumber, isPlainObject } from 'remeda'\nimport type { AnnotationHorizontalLine, VChartSpecPipe, Color } from 'src/types'\n\ninterface SplitConfig {\n points: { x: number; y: number }[]\n splitCoordinate: number\n lineStroke: {\n gradient: string\n x0: number\n x1: number\n y0: number\n y1: number\n stops: {\n color: string\n offset: number\n }[]\n }\n areaFill: {\n gradient: string\n x0: number\n x1: number\n y0: number\n y1: number\n stops: {\n color: string\n offset: number\n }[]\n }\n}\n\nconst formatGradientStops = (stops: { color: string; offset: number }[]) => {\n const firstInvalidateIndex = stops.findIndex((stop) => stop.offset < 0 || stop.offset > 1)\n\n if (firstInvalidateIndex >= 0) {\n if (stops[firstInvalidateIndex].offset > 1) {\n const newStops = stops.slice(0, firstInvalidateIndex + 1)\n newStops[newStops.length - 1].offset = 1\n\n return newStops\n }\n const newStops = stops.slice(firstInvalidateIndex + 1)\n\n newStops[0].offset = 0\n return newStops\n }\n\n return stops\n}\n\nexport const splitLine: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { annotation, chartType, datasetReshapeInfo } = advancedVSeed\n\n if (!annotation || !annotation.annotationHorizontalLine) {\n return spec\n }\n const baseConfig = advancedVSeed.config[chartType] as { color: Color }\n\n const splitLineConfig = array(annotation.annotationHorizontalLine).find(\n (item) => !!(item as AnnotationHorizontalLine).splitLine,\n ) as AnnotationHorizontalLine | undefined\n\n const splitValue = +(splitLineConfig?.yValue as number | string)\n\n if (Number.isNaN(splitValue) || !isNumber(splitValue)) {\n return spec\n }\n const result = { ...spec } as Partial<ILineChartSpec>\n const colorTheme = baseConfig?.color ?? {}\n const colorConfig = {\n positiveColor: colorTheme.positiveColor || 'red',\n negativeColor: colorTheme.negativeColor || 'green',\n ...(isPlainObject(splitLineConfig?.splitLine) ? splitLineConfig?.splitLine : {}),\n }\n\n const groupMark = {\n type: 'group',\n name: 'annotationHorizontalLine-splitLine',\n zIndex: 300,\n style: {\n splitConfig: (datum: any, ctx: any) => {\n const vchart = ctx.vchart as IVChart\n const chart = vchart.getChart() as IChart\n const lineSeries = chart.getAllSeries().find((s) => s.type === 'line' || s.type === 'area') as ICartesianSeries\n\n if (!lineSeries) {\n return\n }\n const lineMark = lineSeries.getMarkInName('line') ?? lineSeries.getMarkInName('area')\n\n if (!lineMark) {\n return\n }\n const lineGraphics = lineMark.getGraphics()\n\n if (!lineGraphics || lineGraphics.length !== 1 || !lineGraphics[0]) {\n return\n }\n const points = ((lineGraphics[0].attribute as any).points ?? []) as { x: number; y: number }[]\n\n if ((lineGraphics[0].attribute as any).segments?.length) {\n ;((lineGraphics[0].attribute as any).segments as any[]).forEach(\n (seg: { points: { x: number; y: number }[] }) => {\n seg.points.forEach((pt: { x: number; y: number }) => {\n points.push({ x: pt.x, y: pt.y })\n })\n },\n )\n }\n\n if (!points || !points.length) {\n return\n }\n const scale = lineSeries.getYAxisHelper().getScale!(0)\n const splitCoordinate = scale.scale(splitValue)\n const minY = Math.min(...points.map((p) => p.y))\n const maxY = Math.max(...points.map((p) => p.y))\n const ratio = (splitCoordinate - minY) / (maxY - minY)\n\n const lineStroke = {\n gradient: 'linear',\n x0: 0,\n x1: 0,\n y0: 0,\n y1: 1,\n stops: formatGradientStops([\n {\n color: colorConfig.positiveColor,\n offset: 0,\n },\n {\n color: colorConfig.positiveColor,\n offset: ratio,\n },\n {\n color: colorConfig.negativeColor,\n offset: ratio + 0.0000001,\n },\n {\n color: colorConfig.negativeColor,\n offset: 1,\n },\n ]),\n }\n const areaFill = {\n gradient: 'linear',\n x0: 0,\n x1: 0,\n y0: 0,\n y1: 1,\n stops: formatGradientStops([\n {\n color: colorConfig.positiveColor,\n offset: 0,\n },\n {\n color: new VUtilColor(colorConfig.positiveColor).setOpacity(0).toRGBA(),\n offset: ratio,\n },\n {\n offset: ratio + 0.0000001,\n color: new VUtilColor(colorConfig.negativeColor).setOpacity(0).toRGBA(),\n },\n {\n color: colorConfig.negativeColor,\n offset: 1,\n },\n ]),\n }\n const attrs: any = {\n segments: null,\n points,\n }\n\n if (lineGraphics[0].type === 'area') {\n attrs.stroke = lineStroke\n attrs.fill = areaFill\n } else {\n attrs.stroke = lineStroke\n }\n\n lineGraphics[0].setAttributes(attrs as unknown as Record<string, any>)\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n lineGraphics[0].setFinalAttributes?.(attrs)\n const start = lineSeries.getRegion().getLayoutStartPoint()\n const range = scale.range() as number[]\n\n return {\n points: points.map((entry) => ({ x: entry.x + start.x, y: entry.y + start.y })),\n splitCoordinate: clamper(range[0], range[range.length - 1])(splitCoordinate as number) + start.y,\n areaFill,\n lineStroke,\n } as SplitConfig\n },\n },\n children: [\n {\n type: 'area',\n interactive: false,\n zIndex: 500,\n style: {\n fillOpacity: 0.5,\n points: (datum: any, ctx: any, opt: any) => {\n const parentNode = opt.mark?._product?.parent\n\n if (parentNode?.attribute?.splitConfig) {\n const { points, splitCoordinate } = parentNode.attribute.splitConfig as SplitConfig\n\n return points.map((entry: { x: number; y: number }) => {\n return {\n ...entry,\n y1: splitCoordinate,\n }\n })\n }\n\n return []\n },\n fill: (datum: any, ctx: any, opt: any) => {\n const parentNode = opt.mark?._product?.parent\n\n if (parentNode?.attribute?.splitConfig) {\n const { areaFill } = parentNode.attribute.splitConfig as SplitConfig\n\n return areaFill\n }\n\n return\n },\n },\n },\n ],\n }\n\n if (!result.customMark) {\n result.customMark = []\n }\n\n ;(result.customMark as any[]).push(groupMark)\n\n const seriesSpec =\n result.type === 'line' || result.type === 'area'\n ? result\n : result.series?.find((s) => s.type === 'line' || s.type === 'area')\n\n if (seriesSpec) {\n if (!seriesSpec.point) {\n seriesSpec.point = {}\n }\n if (!seriesSpec.line) {\n seriesSpec.line = {}\n }\n\n if (!seriesSpec.point.style) {\n seriesSpec.point.style = {}\n }\n if (!seriesSpec.line.style) {\n seriesSpec.line.style = {}\n }\n\n const measureValueKey = datasetReshapeInfo[0].foldInfo.measureValue\n\n seriesSpec.point.style.fill = (datum) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n }\n seriesSpec.line.style.stroke = (datum) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n }\n if (seriesSpec.label && (seriesSpec.label as any).visible && isNullish((seriesSpec.label as any).style?.fill)) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n ;(seriesSpec.label as any).style = {\n ...(seriesSpec.label as any).style,\n fill: (datum: any) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n },\n }\n }\n }\n\n return result\n}\n"],"names":["formatGradientStops","stops","firstInvalidateIndex","stop","newStops","splitLine","spec","context","advancedVSeed","annotation","chartType","datasetReshapeInfo","baseConfig","splitLineConfig","array","item","splitValue","Number","isNumber","result","colorTheme","colorConfig","isPlainObject","groupMark","datum","ctx","vchart","chart","lineSeries","s","lineMark","lineGraphics","points","seg","pt","scale","splitCoordinate","minY","Math","p","maxY","ratio","lineStroke","areaFill","VUtilColor","attrs","start","range","entry","clamper","opt","parentNode","seriesSpec","measureValueKey","isNullish"],"mappings":";;AAgCA,MAAMA,sBAAsB,CAACC;IAC3B,MAAMC,uBAAuBD,MAAM,SAAS,CAAC,CAACE,OAASA,KAAK,MAAM,GAAG,KAAKA,KAAK,MAAM,GAAG;IAExF,IAAID,wBAAwB,GAAG;QAC7B,IAAID,KAAK,CAACC,qBAAqB,CAAC,MAAM,GAAG,GAAG;YAC1C,MAAME,WAAWH,MAAM,KAAK,CAAC,GAAGC,uBAAuB;YACvDE,QAAQ,CAACA,SAAS,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG;YAEvC,OAAOA;QACT;QACA,MAAMA,WAAWH,MAAM,KAAK,CAACC,uBAAuB;QAEpDE,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG;QACrB,OAAOA;IACT;IAEA,OAAOH;AACT;AAEO,MAAMI,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,UAAU,EAAEC,SAAS,EAAEC,kBAAkB,EAAE,GAAGH;IAEtD,IAAI,CAACC,cAAc,CAACA,WAAW,wBAAwB,EACrD,OAAOH;IAET,MAAMM,aAAaJ,cAAc,MAAM,CAACE,UAAU;IAElD,MAAMG,kBAAkBC,MAAML,WAAW,wBAAwB,EAAE,IAAI,CACrE,CAACM,OAAS,CAAC,CAAEA,KAAkC,SAAS;IAG1D,MAAMC,aAAa,CAAEH,iBAAiB;IAEtC,IAAII,OAAO,KAAK,CAACD,eAAe,CAACE,SAASF,aACxC,OAAOV;IAET,MAAMa,SAAS;QAAE,GAAGb,IAAI;IAAC;IACzB,MAAMc,aAAaR,YAAY,SAAS,CAAC;IACzC,MAAMS,cAAc;QAClB,eAAeD,WAAW,aAAa,IAAI;QAC3C,eAAeA,WAAW,aAAa,IAAI;QAC3C,GAAIE,cAAcT,iBAAiB,aAAaA,iBAA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YAAY;QACd,IAAI,CAACA,WAAW,KAAK,EACnBA,WAAW,KAAK,GAAG,CAAC;QAEtB,IAAI,CAACA,WAAW,IAAI,EAClBA,WAAW,IAAI,GAAG,CAAC;QAGrB,IAAI,CAACA,WAAW,KAAK,CAAC,KAAK,EACzBA,WAAW,KAAK,CAAC,KAAK,GAAG,CAAC;QAE5B,IAAI,CAACA,WAAW,IAAI,CAAC,KAAK,EACxBA,WAAW,IAAI,CAAC,KAAK,GAAG,CAAC;QAG3B,MAAMC,kBAAkB1C,kBAAkB,CAAC,EAAE,CAAC,QAAQ,CAAC,YAAY;QAEnEyC,WAAW,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC5B,QACtBA,OAAO,CAAC6B,gBAAgB,GAAGrC,aAAaK,YAAY,aAAa,GAAGA,YAAY,aAAa;QAEtG+B,WAAW,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC5B,QACvBA,OAAO,CAAC6B,gBAAgB,GAAGrC,aAAaK,YAAY,aAAa,GAAGA,YAAY,aAAa;QAEtG,IAAI+B,WAAW,KAAK,IAAKA,WAAW,KAAK,CAAS,OAAO,IAAIE,UAAWF,WAAW,KAAK,CAAS,KAAK,EAAE,OAEpGA,WAAW,KAAK,CAAS,KAAK,GAAG;YACjC,GAAIA,WAAW,KAAK,CAAS,KAAK;YAClC,MAAM,CAAC5B,QACEA,OAAO,CAAC6B,gBAAgB,GAAGrC,aAAaK,YAAY,aAAa,GAAGA,YAAY,aAAa;QAExG;IAEJ;IAEA,OAAOF;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/annotation/splitLine.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/annotation/splitLine.ts"],"sourcesContent":["import type { ICartesianSeries, IChart, ILineChartSpec, IVChart } from '@visactor/vchart'\nimport { array, clamper, Color as VUtilColor } from '@visactor/vutils'\nimport { isNullish, isNumber, isPlainObject } from 'remeda'\nimport type { AnnotationHorizontalLine, VChartSpecPipe, Color } from 'src/types'\n\ninterface SplitConfig {\n points: { x: number; y: number }[]\n splitCoordinate: number\n lineStroke: {\n gradient: string\n x0: number\n x1: number\n y0: number\n y1: number\n stops: {\n color: string\n offset: number\n }[]\n }\n areaFill: {\n gradient: string\n x0: number\n x1: number\n y0: number\n y1: number\n stops: {\n color: string\n offset: number\n }[]\n }\n}\n\nconst formatGradientStops = (stops: { color: string; offset: number }[]) => {\n const firstInvalidateIndex = stops.findIndex((stop) => stop.offset < 0 || stop.offset > 1)\n\n if (firstInvalidateIndex >= 0) {\n if (stops[firstInvalidateIndex].offset > 1) {\n const newStops = stops.slice(0, firstInvalidateIndex + 1)\n newStops[newStops.length - 1].offset = 1\n\n return newStops\n }\n const newStops = stops.slice(firstInvalidateIndex + 1)\n\n newStops[0].offset = 0\n return newStops\n }\n\n return stops\n}\n\nexport const splitLine: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { annotation, chartType, datasetReshapeInfo } = advancedVSeed\n\n if (!annotation || !annotation.annotationHorizontalLine) {\n return spec\n }\n const baseConfig = advancedVSeed.config[chartType] as { color: Color }\n\n const splitLineConfig = array(annotation.annotationHorizontalLine).find(\n (item) => !!(item as AnnotationHorizontalLine).splitLine,\n ) as AnnotationHorizontalLine | undefined\n\n const splitValue = +(splitLineConfig?.yValue as number | string)\n\n if (Number.isNaN(splitValue) || !isNumber(splitValue)) {\n return spec\n }\n const result = { ...spec } as Partial<ILineChartSpec>\n const colorTheme = baseConfig?.color ?? {}\n const colorConfig = {\n positiveColor: colorTheme.positiveColor || 'red',\n negativeColor: colorTheme.negativeColor || 'green',\n ...(isPlainObject(splitLineConfig?.splitLine) ? splitLineConfig?.splitLine : {}),\n }\n\n const groupMark = {\n type: 'group',\n name: 'annotationHorizontalLine-splitLine',\n zIndex: 300,\n style: {\n splitConfig: (datum: any, ctx: any) => {\n const vchart = ctx.vchart as IVChart\n const chart = vchart.getChart() as IChart\n const lineSeries = chart.getAllSeries().find((s) => s.type === 'line' || s.type === 'area') as ICartesianSeries\n\n if (!lineSeries) {\n return\n }\n const lineMark = lineSeries.getMarkInName('line') ?? lineSeries.getMarkInName('area')\n\n if (!lineMark) {\n return\n }\n const lineGraphics = lineMark.getGraphics()\n\n if (!lineGraphics || lineGraphics.length !== 1 || !lineGraphics[0]) {\n return\n }\n const points = ((lineGraphics[0].attribute as any).points ?? []) as { x: number; y: number }[]\n\n if ((lineGraphics[0].attribute as any).segments?.length) {\n ;((lineGraphics[0].attribute as any).segments as any[]).forEach(\n (seg: { points: { x: number; y: number }[] }) => {\n seg.points.forEach((pt: { x: number; y: number }) => {\n points.push({ x: pt.x, y: pt.y })\n })\n },\n )\n }\n\n if (!points || !points.length) {\n return\n }\n const scale = lineSeries.getYAxisHelper().getScale!(0)\n const splitCoordinate = scale.scale(splitValue)\n const minY = Math.min(...points.map((p) => p.y))\n const maxY = Math.max(...points.map((p) => p.y))\n const ratio = (splitCoordinate - minY) / (maxY - minY)\n\n const lineStroke = {\n gradient: 'linear',\n x0: 0,\n x1: 0,\n y0: 0,\n y1: 1,\n stops: formatGradientStops([\n {\n color: colorConfig.positiveColor,\n offset: 0,\n },\n {\n color: colorConfig.positiveColor,\n offset: ratio,\n },\n {\n color: colorConfig.negativeColor,\n offset: ratio + 0.0000001,\n },\n {\n color: colorConfig.negativeColor,\n offset: 1,\n },\n ]),\n }\n const areaFill = {\n gradient: 'linear',\n x0: 0,\n x1: 0,\n y0: 0,\n y1: 1,\n stops: formatGradientStops([\n {\n color: colorConfig.positiveColor,\n offset: 0,\n },\n {\n color: new VUtilColor(colorConfig.positiveColor).setOpacity(0).toRGBA(),\n offset: ratio,\n },\n {\n offset: ratio + 0.0000001,\n color: new VUtilColor(colorConfig.negativeColor).setOpacity(0).toRGBA(),\n },\n {\n color: colorConfig.negativeColor,\n offset: 1,\n },\n ]),\n }\n const attrs: any = {\n segments: null,\n points,\n }\n\n if (lineGraphics[0].type === 'area') {\n attrs.stroke = lineStroke\n attrs.fill = areaFill\n } else {\n attrs.stroke = lineStroke\n }\n\n lineGraphics[0].setAttributes(attrs as unknown as Record<string, any>)\n\n lineGraphics[0].setFinalAttributes?.(attrs)\n const start = lineSeries.getRegion().getLayoutStartPoint()\n const range = scale.range() as number[]\n\n return {\n points: points.map((entry) => ({ x: entry.x + start.x, y: entry.y + start.y })),\n splitCoordinate: clamper(range[0], range[range.length - 1])(splitCoordinate as number) + start.y,\n areaFill,\n lineStroke,\n } as SplitConfig\n },\n },\n children: [\n {\n type: 'area',\n interactive: false,\n zIndex: 500,\n style: {\n fillOpacity: 0.5,\n points: (datum: any, ctx: any, opt: any) => {\n const parentNode = opt.mark?._product?.parent\n\n if (parentNode?.attribute?.splitConfig) {\n const { points, splitCoordinate } = parentNode.attribute.splitConfig as SplitConfig\n\n return points.map((entry: { x: number; y: number }) => {\n return {\n ...entry,\n y1: splitCoordinate,\n }\n })\n }\n\n return []\n },\n fill: (datum: any, ctx: any, opt: any) => {\n const parentNode = opt.mark?._product?.parent\n\n if (parentNode?.attribute?.splitConfig) {\n const { areaFill } = parentNode.attribute.splitConfig as SplitConfig\n\n return areaFill\n }\n\n return\n },\n },\n },\n ],\n }\n\n if (!result.customMark) {\n result.customMark = []\n }\n\n ;(result.customMark as any[]).push(groupMark)\n\n const seriesSpec =\n result.type === 'line' || result.type === 'area'\n ? result\n : result.series?.find((s) => s.type === 'line' || s.type === 'area')\n\n if (seriesSpec) {\n if (!seriesSpec.point) {\n seriesSpec.point = {}\n }\n if (!seriesSpec.line) {\n seriesSpec.line = {}\n }\n\n if (!seriesSpec.point.style) {\n seriesSpec.point.style = {}\n }\n if (!seriesSpec.line.style) {\n seriesSpec.line.style = {}\n }\n\n const measureValueKey = datasetReshapeInfo[0].foldInfo.measureValue\n\n seriesSpec.point.style.fill = (datum) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n }\n seriesSpec.line.style.stroke = (datum) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n }\n if (seriesSpec.label && (seriesSpec.label as any).visible && isNullish((seriesSpec.label as any).style?.fill)) {\n ;(seriesSpec.label as any).style = {\n ...(seriesSpec.label as any).style,\n fill: (datum: any) => {\n return datum?.[measureValueKey] < splitValue ? colorConfig.negativeColor : colorConfig.positiveColor\n },\n }\n }\n }\n\n return result\n}\n"],"names":["formatGradientStops","stops","firstInvalidateIndex","stop","newStops","splitLine","spec","context","advancedVSeed","annotation","chartType","datasetReshapeInfo","baseConfig","splitLineConfig","array","item","splitValue","Number","isNumber","result","colorTheme","colorConfig","isPlainObject","groupMark","datum","ctx","vchart","chart","lineSeries","s","lineMark","lineGraphics","points","seg","pt","scale","splitCoordinate","minY","Math","p","maxY","ratio","lineStroke","areaFill","VUtilColor","attrs","start","range","entry","clamper","opt","parentNode","seriesSpec","measureValueKey","isNullish"],"mappings":";;AAgCA,MAAMA,sBAAsB,CAACC;IAC3B,MAAMC,uBAAuBD,MAAM,SAAS,CAAC,CAACE,OAASA,KAAK,MAAM,GAAG,KAAKA,KAAK,MAAM,GAAG;IAExF,IAAID,wBAAwB,GAAG;QAC7B,IAAID,KAAK,CAACC,qBAAqB,CAAC,MAAM,GAAG,GAAG;YAC1C,MAAME,WAAWH,MAAM,KAAK,CAAC,GAAGC,uBAAuB;YACvDE,QAAQ,CAACA,SAAS,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG;YAEvC,OAAOA;QACT;QACA,MAAMA,WAAWH,MAAM,KAAK,CAACC,uBAAuB;QAEpDE,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG;QACrB,OAAOA;IACT;IAEA,OAAOH;AACT;AAEO,MAAMI,YAA4B,CAACC,MAAMC;IAC9C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,UAAU,EAAEC,SAAS,EAAEC,kBAAkB,EAAE,GAAGH;IAEtD,IAAI,CAACC,cAAc,CAACA,WAAW,wBAAwB,EACrD,OAAOH;IAET,MAAMM,aAAaJ,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AAW,KAAK,CAAS,KAAK;YAClC,MAAM,CAAC5B,QACEA,OAAO,CAAC6B,gBAAgB,GAAGrC,aAAaK,YAAY,aAAa,GAAGA,YAAY,aAAa;QAExG;IAEJ;IAEA,OAAOF;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/legend/boxLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/legend/boxLegend.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-return */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\nimport type { VChartSpecPipe } from 'src/types'\nimport { discreteLegend } from './discreteLegend'\n\nexport const boxLegend: VChartSpecPipe = (spec, context) => {\n const normalLegend = discreteLegend(spec, context) as any\n normalLegend.legends = {\n ...normalLegend.legends,\n data: (data: any[]) => {\n return data.map((obj) => {\n obj.shape.fill = obj.shape.stroke\n return obj\n })\n },\n }\n return normalLegend\n}\n"],"names":["boxLegend","spec","context","normalLegend","discreteLegend","data","obj"],"mappings":";AAMO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAMC,eAAeC,eAAeH,MAAMC;IAC1CC,aAAa,OAAO,GAAG;QACrB,GAAGA,aAAa,OAAO;QACvB,MAAM,CAACE,OACEA,KAAK,GAAG,CAAC,CAACC;gBACfA,IAAI,KAAK,CAAC,IAAI,GAAGA,IAAI,KAAK,CAAC,MAAM;gBACjC,OAAOA;YACT;IAEJ;IACA,OAAOH;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/legend/boxLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/legend/boxLegend.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nimport { discreteLegend } from './discreteLegend'\n\nexport const boxLegend: VChartSpecPipe = (spec, context) => {\n const normalLegend = discreteLegend(spec, context) as any\n normalLegend.legends = {\n ...normalLegend.legends,\n data: (data: any[]) => {\n return data.map((obj) => {\n obj.shape.fill = obj.shape.stroke\n return obj\n })\n },\n }\n return normalLegend\n}\n"],"names":["boxLegend","spec","context","normalLegend","discreteLegend","data","obj"],"mappings":";AAGO,MAAMA,YAA4B,CAACC,MAAMC;IAC9C,MAAMC,eAAeC,eAAeH,MAAMC;IAC1CC,aAAa,OAAO,GAAG;QACrB,GAAGA,aAAa,OAAO;QACvB,MAAM,CAACE,OACEA,KAAK,GAAG,CAAC,CAACC;gBACfA,IAAI,KAAK,CAAC,IAAI,GAAGA,IAAI,KAAK,CAAC,MAAM;gBACjC,OAAOA;YACT;IAEJ;IACA,OAAOH;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/legend/heatmapColorLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/legend/heatmapColorLegend.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-assignment */\nimport type { VChartSpecPipe } from 'src/types'\nimport { colorLegend } from './colorLegend'\nimport type { Datum, IHeatmapChartSpec } from '@visactor/vchart'\nimport { DATUM_HIDE_KEY } from 'src/pipeline/utils/constant'\n\nexport const heatmapColorLegend: VChartSpecPipe = (spec, context) => {\n const result = colorLegend(spec, context) as IHeatmapChartSpec\n\n if (result.legends) {\n ;(result.legends as any).customFilter = (data: Datum[], range: number[], key: string) => {\n const min = Math.min(range[0], range[1])\n const max = Math.max(range[0], range[1])\n return (data ?? []).map((entry: Datum) => {\n const val = entry[key]\n const isHide = val - min < -1e-6 || val - max > 1e-6\n\n entry[DATUM_HIDE_KEY] = isHide\n\n return entry\n })\n }\n }\n\n return result\n}\n"],"names":["heatmapColorLegend","spec","context","result","colorLegend","data","range","key","min","Math","max","entry","val","isHide","DATUM_HIDE_KEY"],"mappings":";;AAMO,MAAMA,qBAAqC,CAACC,MAAMC;IACvD,MAAMC,SAASC,YAAYH,MAAMC;IAEjC,IAAIC,OAAO,OAAO,EACdA,OAAO,OAAO,CAAS,YAAY,GAAG,CAACE,MAAeC,OAAiBC;QACvE,MAAMC,MAAMC,KAAK,GAAG,CAACH,KAAK,CAAC,EAAE,EAAEA,KAAK,CAAC,EAAE;QACvC,MAAMI,MAAMD,KAAK,GAAG,CAACH,KAAK,CAAC,EAAE,EAAEA,KAAK,CAAC,EAAE;QACvC,OAAQD,AAAAA,CAAAA,QAAQ,EAAC,EAAG,GAAG,CAAC,CAACM;YACvB,MAAMC,MAAMD,KAAK,CAACJ,IAAI;YACtB,MAAMM,SAASD,MAAMJ,MAAM,aAASI,MAAMF,MAAM;YAEhDC,KAAK,CAACG,eAAe,GAAGD;YAExB,OAAOF;QACT;IACF;IAGF,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/legend/heatmapColorLegend.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/legend/heatmapColorLegend.ts"],"sourcesContent":["import type { VChartSpecPipe } from 'src/types'\nimport { colorLegend } from './colorLegend'\nimport type { Datum, IHeatmapChartSpec } from '@visactor/vchart'\nimport { DATUM_HIDE_KEY } from 'src/pipeline/utils/constant'\n\nexport const heatmapColorLegend: VChartSpecPipe = (spec, context) => {\n const result = colorLegend(spec, context) as IHeatmapChartSpec\n\n if (result.legends) {\n ;(result.legends as any).customFilter = (data: Datum[], range: number[], key: string) => {\n const min = Math.min(range[0], range[1])\n const max = Math.max(range[0], range[1])\n return (data ?? []).map((entry: Datum) => {\n const val = entry[key]\n const isHide = val - min < -1e-6 || val - max > 1e-6\n\n entry[DATUM_HIDE_KEY] = isHide\n\n return entry\n })\n }\n }\n\n return result\n}\n"],"names":["heatmapColorLegend","spec","context","result","colorLegend","data","range","key","min","Math","max","entry","val","isHide","DATUM_HIDE_KEY"],"mappings":";;AAKO,MAAMA,qBAAqC,CAACC,MAAMC;IACvD,MAAMC,SAASC,YAAYH,MAAMC;IAEjC,IAAIC,OAAO,OAAO,EACdA,OAAO,OAAO,CAAS,YAAY,GAAG,CAACE,MAAeC,OAAiBC;QACvE,MAAMC,MAAMC,KAAK,GAAG,CAACH,KAAK,CAAC,EAAE,EAAEA,KAAK,CAAC,EAAE;QACvC,MAAMI,MAAMD,KAAK,GAAG,CAACH,KAAK,CAAC,EAAE,EAAEA,KAAK,CAAC,EAAE;QACvC,OAAQD,AAAAA,CAAAA,QAAQ,EAAC,EAAG,GAAG,CAAC,CAACM;YACvB,MAAMC,MAAMD,KAAK,CAACJ,IAAI;YACtB,MAAMM,SAASD,MAAMJ,MAAM,aAASI,MAAMF,MAAM;YAEhDC,KAAK,CAACG,eAAe,GAAGD;YAExB,OAAOF;QACT;IACF;IAGF,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointState.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointState.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-call */\nimport type { IScatterChartSpec } from '@visactor/vchart'\nimport type { Datum, VChartSpecPipe } from 'src/types'\n\nexport const pointStateDimensionHover: VChartSpecPipe = (spec) => {\n const point = (spec as IScatterChartSpec).point || {}\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n dimension_hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n outerBorder: {\n lineWidth: 4,\n strokeOpacity: 0.25,\n distance: 2,\n },\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n\nexport const pointStateHover: VChartSpecPipe = (spec, context) => {\n const point = (spec as IScatterChartSpec).point || {}\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n stroke: (datum: Datum, context: unknown) => {\n const field = unfoldInfo.encodingColorId\n const color = (context as any).seriesColor(datum[field] as string)\n return color\n },\n fillOpacity: 0.6,\n lineWidth: 1,\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n"],"names":["pointStateDimensionHover","spec","point","result","pointStateHover","context","advancedVSeed","datasetReshapeInfo","unfoldInfo","datum","field","color"],"mappings":"AAIO,MAAMA,2BAA2C,CAACC;IACvD,MAAMC,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAME,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,iBAAiB;oBACf,QAAQ;oBACR,QAAQ;oBACR,aAAa;wBACX,WAAW;wBACX,eAAe;wBACf,UAAU;oBACZ;gBACF;YACF;QACF;IACF;IACA,OAAOC;AACT;AAEO,MAAMC,kBAAkC,CAACH,MAAMI;IACpD,MAAMH,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAM,EAAEK,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAC/B,MAAM,EAAEE,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAC5C,MAAMJ,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,OAAO;oBACL,QAAQ;oBACR,QAAQ;oBACR,QAAQ,CAACO,OAAcJ;wBACrB,MAAMK,QAAQF,WAAW,eAAe;wBACxC,MAAMG,QAASN,QAAgB,WAAW,CAACI,KAAK,CAACC,MAAM;wBACvD,OAAOC;oBACT;oBACA,aAAa;oBACb,WAAW;gBACb;YACF;QACF;IACF;IACA,OAAOR;AACT"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointState.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointState.ts"],"sourcesContent":["import type { IScatterChartSpec } from '@visactor/vchart'\nimport type { Datum, VChartSpecPipe } from 'src/types'\n\nexport const pointStateDimensionHover: VChartSpecPipe = (spec) => {\n const point = (spec as IScatterChartSpec).point || {}\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n dimension_hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n outerBorder: {\n lineWidth: 4,\n strokeOpacity: 0.25,\n distance: 2,\n },\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n\nexport const pointStateHover: VChartSpecPipe = (spec, context) => {\n const point = (spec as IScatterChartSpec).point || {}\n const { advancedVSeed } = context\n const { datasetReshapeInfo } = advancedVSeed\n const { unfoldInfo } = datasetReshapeInfo[0]\n const result = {\n ...spec,\n point: {\n ...point,\n state: {\n ...(point.state || {}),\n hover: {\n scaleX: 1.4,\n scaleY: 1.4,\n stroke: (datum: Datum, context: unknown) => {\n const field = unfoldInfo.encodingColorId\n const color = (context as any).seriesColor(datum[field] as string)\n return color\n },\n fillOpacity: 0.6,\n lineWidth: 1,\n },\n },\n },\n } as IScatterChartSpec\n return result\n}\n"],"names":["pointStateDimensionHover","spec","point","result","pointStateHover","context","advancedVSeed","datasetReshapeInfo","unfoldInfo","datum","field","color"],"mappings":"AAGO,MAAMA,2BAA2C,CAACC;IACvD,MAAMC,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAME,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,iBAAiB;oBACf,QAAQ;oBACR,QAAQ;oBACR,aAAa;wBACX,WAAW;wBACX,eAAe;wBACf,UAAU;oBACZ;gBACF;YACF;QACF;IACF;IACA,OAAOC;AACT;AAEO,MAAMC,kBAAkC,CAACH,MAAMI;IACpD,MAAMH,QAASD,KAA2B,KAAK,IAAI,CAAC;IACpD,MAAM,EAAEK,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,kBAAkB,EAAE,GAAGD;IAC/B,MAAM,EAAEE,UAAU,EAAE,GAAGD,kBAAkB,CAAC,EAAE;IAC5C,MAAMJ,SAAS;QACb,GAAGF,IAAI;QACP,OAAO;YACL,GAAGC,KAAK;YACR,OAAO;gBACL,GAAIA,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrB,OAAO;oBACL,QAAQ;oBACR,QAAQ;oBACR,QAAQ,CAACO,OAAcJ;wBACrB,MAAMK,QAAQF,WAAW,eAAe;wBACxC,MAAMG,QAASN,QAAgB,WAAW,CAACI,KAAK,CAACC,MAAM;wBACvD,OAAOC;oBACT;oBACA,aAAa;oBACb,WAAW;gBACb;YACF;QACF;IACF;IACA,OAAOR;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, PointStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const pointStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { pointStyle } = markStyle\n const result = {\n ...spec,\n point: {\n style: {},\n },\n } as IAreaChartSpec\n\n if (isNullish(pointStyle) || isEmpty(pointStyle)) {\n return result\n }\n\n const pointStyles = (Array.isArray(pointStyle) ? pointStyle : [pointStyle]) as PointStyle[]\n\n const customMap = pointStyles.reduce<object>((result, style, index) => {\n const {\n pointBorderColor,\n pointBorderStyle,\n pointBorderWidth = 1,\n pointColor,\n pointColorOpacity,\n pointSize,\n pointVisible = true,\n } = style\n\n const lineDash = pointBorderStyle === 'dashed' ? [5, 2] : pointBorderStyle === 'dotted' ? [2, 5] : [0, 0]\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(datum, style.dynamicFilter, style.selector)\n : selector(datum, style.selector)\n if (shouldApply) {\n return true\n }\n return false\n },\n style: {\n visible: pointVisible,\n size: pointSize,\n fill: pointColor,\n fillOpacity: pointColorOpacity,\n innerBorder: {\n stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n distance: (pointBorderWidth || 0) / 2,\n lineDash: lineDash,\n },\n },\n },\n }\n }, {})\n\n return {\n ...result,\n point: {\n ...result.point,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["pointStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","pointStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;AAKO,MAAMA,wBAA6B,CAACC,MAAMC;IAC/C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEH,UAAU,EAAE,GAAGI;IACvB,MAAMC,SAAS;QACb,GAAGJ,IAAI;QACP,OAAO;YACL,OAAO,CAAC;QACV;IACF;IAEA,IAAIK,UAAUN,eAAeO,QAAQP,aACnC,OAAOK;IAGT,MAAMG,cAAeC,MAAM,OAAO,CAACT,cAAcA,aAAa;QAACA;KAAW;IAE1E,MAAMU,YAAYF,YAAY,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC3D,MAAM,EACJC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,CAAC,EACpBC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,eAAe,IAAI,EACpB,GAAGR;QAEJ,MAAMS,WAAWN,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAGA,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAG;YAAC;YAAG;SAAE;QACzG,OAAO;YACL,GAAGT,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACS;oBACP,MAAMC,cAAcX,MAAM,aAAa,GACnCY,0BAA0BF,OAAOV,MAAM,aAAa,EAAEA,MAAM,QAAQ,IACpEa,SAASH,OAAOV,MAAM,QAAQ;oBAClC,IAAIW,aACF,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASH;oBACT,MAAMD;oBACN,MAAMF;oBACN,aAAaC;oBACb,aAAa;wBACX,QAAQJ;wBACR,WAAWE;wBACX,UAAWA,AAAAA,CAAAA,oBAAoB,KAAK;wBACpC,UAAUK;oBACZ;gBACF;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,OAAO;YACL,GAAGA,OAAO,KAAK;YACf,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
1
+ {"version":3,"file":"pipeline/spec/chart/pipes/markStyle/pointStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/chart/pipes/markStyle/pointStyle.ts"],"sourcesContent":["import type { IAreaChartSpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, PointStyle, VChartSpecPipe } from 'src/types'\nimport { isEmpty, isNullish } from 'remeda'\n\nexport const pointStyle: VChartSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const { markStyle } = advancedVSeed\n const { pointStyle } = markStyle\n const result = {\n ...spec,\n point: {\n style: {},\n },\n } as IAreaChartSpec\n if (isNullish(pointStyle) || isEmpty(pointStyle)) {\n return result\n }\n\n const pointStyles = (Array.isArray(pointStyle) ? pointStyle : [pointStyle]) as PointStyle[]\n\n const customMap = pointStyles.reduce<object>((result, style, index) => {\n const {\n pointBorderColor,\n pointBorderStyle,\n pointBorderWidth = 1,\n pointColor,\n pointColorOpacity,\n pointSize,\n pointVisible = true,\n } = style\n\n const lineDash = pointBorderStyle === 'dashed' ? [5, 2] : pointBorderStyle === 'dotted' ? [2, 5] : [0, 0]\n return {\n ...result,\n [`custom${index + 1}`]: {\n // 优先级: 后者覆盖前者\n level: index + 1,\n filter: (datum: Datum) => {\n const shouldApply = style.dynamicFilter\n ? selectorWithDynamicFilter(datum, style.dynamicFilter, style.selector)\n : selector(datum, style.selector)\n if (shouldApply) {\n return true\n }\n return false\n },\n style: {\n visible: pointVisible,\n size: pointSize,\n fill: pointColor,\n fillOpacity: pointColorOpacity,\n innerBorder: {\n stroke: pointBorderColor,\n lineWidth: pointBorderWidth,\n distance: (pointBorderWidth || 0) / 2,\n lineDash: lineDash,\n },\n },\n },\n }\n }, {})\n\n return {\n ...result,\n point: {\n ...result.point,\n state: {\n ...customMap,\n },\n },\n }\n}\n"],"names":["pointStyle","spec","context","advancedVSeed","markStyle","result","isNullish","isEmpty","pointStyles","Array","customMap","style","index","pointBorderColor","pointBorderStyle","pointBorderWidth","pointColor","pointColorOpacity","pointSize","pointVisible","lineDash","datum","shouldApply","selectorWithDynamicFilter","selector"],"mappings":";;AAKO,MAAMA,wBAA6B,CAACC,MAAMC;IAC/C,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAC1B,MAAM,EAAEE,SAAS,EAAE,GAAGD;IACtB,MAAM,EAAEH,UAAU,EAAE,GAAGI;IACvB,MAAMC,SAAS;QACb,GAAGJ,IAAI;QACP,OAAO;YACL,OAAO,CAAC;QACV;IACF;IACA,IAAIK,UAAUN,eAAeO,QAAQP,aACnC,OAAOK;IAGT,MAAMG,cAAeC,MAAM,OAAO,CAACT,cAAcA,aAAa;QAACA;KAAW;IAE1E,MAAMU,YAAYF,YAAY,MAAM,CAAS,CAACH,QAAQM,OAAOC;QAC3D,MAAM,EACJC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,CAAC,EACpBC,UAAU,EACVC,iBAAiB,EACjBC,SAAS,EACTC,eAAe,IAAI,EACpB,GAAGR;QAEJ,MAAMS,WAAWN,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAGA,AAAqB,aAArBA,mBAAgC;YAAC;YAAG;SAAE,GAAG;YAAC;YAAG;SAAE;QACzG,OAAO;YACL,GAAGT,MAAM;YACT,CAAC,CAAC,MAAM,EAAEO,QAAQ,GAAG,CAAC,EAAE;gBAEtB,OAAOA,QAAQ;gBACf,QAAQ,CAACS;oBACP,MAAMC,cAAcX,MAAM,aAAa,GACnCY,0BAA0BF,OAAOV,MAAM,aAAa,EAAEA,MAAM,QAAQ,IACpEa,SAASH,OAAOV,MAAM,QAAQ;oBAClC,IAAIW,aACF,OAAO;oBAET,OAAO;gBACT;gBACA,OAAO;oBACL,SAASH;oBACT,MAAMD;oBACN,MAAMF;oBACN,aAAaC;oBACb,aAAa;wBACX,QAAQJ;wBACR,WAAWE;wBACX,UAAWA,AAAAA,CAAAA,oBAAoB,KAAK;wBACpC,UAAUK;oBACZ;gBACF;YACF;QACF;IACF,GAAG,CAAC;IAEJ,OAAO;QACL,GAAGf,MAAM;QACT,OAAO;YACL,GAAGA,OAAO,KAAK;YACf,OAAO;gBACL,GAAGK,SAAS;YACd;QACF;IACF;AACF"}
@@ -1,4 +1,6 @@
1
1
  export * from './isPlayer';
2
- export * from './playerYX';
3
- export * from './playerXY';
4
- export * from './playerYY';
2
+ export * from './playerBar';
3
+ export * from './playerColumn';
4
+ export * from './playerScatter';
5
+ export * from './playerLine';
6
+ export * from './playerPie';
@@ -1,4 +1,6 @@
1
1
  export * from "./isPlayer.js";
2
- export * from "./playerYX.js";
3
- export * from "./playerXY.js";
4
- export * from "./playerYY.js";
2
+ export * from "./playerBar.js";
3
+ export * from "./playerColumn.js";
4
+ export * from "./playerScatter.js";
5
+ export * from "./playerLine.js";
6
+ export * from "./playerPie.js";
@@ -1,2 +1,2 @@
1
- import type { Condition } from '../../utils';
2
- export declare const isPlayer: Condition;
1
+ import type { VChartSpecPipe } from '../../../../../types';
2
+ export declare const isPlayer: (playerPipe: VChartSpecPipe, defaultPipe: VChartSpecPipe) => VChartSpecPipe;