@visactor/vseed 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/builder/builder.d.ts +36 -0
- package/dist/index.cjs +330 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +177 -50
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/chart/pipes/tooltip/index.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/tooltip/tooltipAreaRange.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/tooltip/tooltipDisable.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +12 -0
- package/dist/types/chartType/area/area.d.ts +16 -4
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +16 -4
- package/dist/types/chartType/areaRange/areaRange.d.ts +16 -4
- package/dist/types/chartType/bar/bar.d.ts +16 -4
- package/dist/types/chartType/barParallel/barParallel.d.ts +16 -4
- package/dist/types/chartType/barPercent/barPercent.d.ts +16 -4
- package/dist/types/chartType/column/column.d.ts +16 -4
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +16 -4
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +16 -4
- package/dist/types/chartType/line/line.d.ts +17 -5
- package/dist/types/chartType/scatter/scatter.d.ts +12 -0
- package/dist/types/properties/analysis/analysis.d.ts +1 -1
- package/dist/types/properties/analysis/index.d.ts +1 -1
- package/dist/types/properties/analysis/{sortAxis.d.ts → sort.d.ts} +2 -2
- package/dist/types/properties/annotation/annotation.d.ts +12 -0
- package/dist/types/properties/annotation/annotationArea.d.ts +14 -17
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +2 -19
- package/dist/types/properties/annotation/annotationPoint.d.ts +0 -14
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +4 -21
- package/dist/types/properties/config/axes/axis.d.ts +1 -1
- package/dist/types/properties/config/legend/legend.d.ts +9 -10
- package/dist/types/properties/measures/measures.d.ts +6 -1
- package/dist/types/vseed.d.ts +133 -1
- package/dist/umd/index.js +257 -7946
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1,14 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __webpack_require__ = {};
|
3
|
-
(()=>{
|
4
|
-
__webpack_require__.n = (module)=>{
|
5
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
6
|
-
__webpack_require__.d(getter, {
|
7
|
-
a: getter
|
8
|
-
});
|
9
|
-
return getter;
|
10
|
-
};
|
11
|
-
})();
|
12
3
|
(()=>{
|
13
4
|
__webpack_require__.d = (exports1, definition)=>{
|
14
5
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
@@ -33,20 +24,28 @@ var __webpack_require__ = {};
|
|
33
24
|
var __webpack_exports__ = {};
|
34
25
|
__webpack_require__.r(__webpack_exports__);
|
35
26
|
__webpack_require__.d(__webpack_exports__, {
|
27
|
+
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
36
28
|
zHeatmapConfig: ()=>zHeatmapConfig,
|
37
|
-
zPie: ()=>zPie,
|
38
29
|
zBar: ()=>zBar,
|
30
|
+
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
39
31
|
execPipeline: ()=>execPipeline,
|
32
|
+
areaSpecPipeline: ()=>areaSpecPipeline,
|
40
33
|
isTable: ()=>isTable,
|
41
34
|
zDonut: ()=>zDonut,
|
35
|
+
zPie: ()=>zPie,
|
42
36
|
zRoseConfig: ()=>zRoseConfig,
|
43
37
|
findFirstMeasure: ()=>findFirstMeasure,
|
38
|
+
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
39
|
+
updateSpec: ()=>updateSpec,
|
44
40
|
zCrosshairRect: ()=>zCrosshairRect,
|
41
|
+
scatterSpecPipeline: ()=>scatterSpecPipeline,
|
45
42
|
intl: ()=>intl,
|
43
|
+
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
46
44
|
zColumnConfig: ()=>zColumnConfig,
|
47
45
|
zAnnotation: ()=>zAnnotation,
|
48
46
|
selector: ()=>selector_selector,
|
49
47
|
zSortLegend: ()=>zSortLegend,
|
48
|
+
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
50
49
|
zYBandAxis: ()=>zYBandAxis,
|
51
50
|
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
52
51
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
@@ -54,14 +53,17 @@ __webpack_require__.d(__webpack_exports__, {
|
|
54
53
|
registerFunnel: ()=>registerFunnel,
|
55
54
|
Separator: ()=>Separator,
|
56
55
|
zYLinearAxis: ()=>zYLinearAxis,
|
56
|
+
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
57
57
|
zLabel: ()=>zLabel,
|
58
58
|
registerColumn: ()=>registerColumn,
|
59
59
|
findAllMeasures: ()=>findAllMeasures,
|
60
|
+
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
60
61
|
isDimensionSelector: ()=>isDimensionSelector,
|
61
62
|
zAnalysis: ()=>zAnalysis,
|
62
63
|
zColorLegend: ()=>zColorLegend,
|
63
64
|
preorderTraverse: ()=>preorderTraverse,
|
64
65
|
zDimensionTree: ()=>zDimensionTree,
|
66
|
+
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
65
67
|
zLineStyle: ()=>zLineStyle,
|
66
68
|
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
67
69
|
registerArea: ()=>registerArea,
|
@@ -69,8 +71,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
69
71
|
zDataset: ()=>zDataset,
|
70
72
|
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
71
73
|
zNumFormat: ()=>zNumFormat,
|
72
|
-
|
74
|
+
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
73
75
|
findAllDimensions: ()=>findAllDimensions,
|
76
|
+
findDimensionById: ()=>findDimensionById,
|
74
77
|
zAreaRangeConfig: ()=>zAreaRangeConfig,
|
75
78
|
zPivotTableConfig: ()=>zPivotTableConfig,
|
76
79
|
zArea: ()=>zArea,
|
@@ -79,51 +82,58 @@ __webpack_require__.d(__webpack_exports__, {
|
|
79
82
|
zLegend: ()=>zLegend,
|
80
83
|
FoldMeasureId: ()=>FoldMeasureId,
|
81
84
|
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
82
|
-
|
85
|
+
donutSpecPipeline: ()=>donutSpecPipeline,
|
83
86
|
registerAreaPercent: ()=>registerAreaPercent,
|
84
|
-
|
87
|
+
zHeatmap: ()=>zHeatmap,
|
85
88
|
zBarPercent: ()=>zBarPercent,
|
89
|
+
zTheme: ()=>zTheme,
|
86
90
|
zDatum: ()=>zDatum,
|
91
|
+
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
87
92
|
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
88
93
|
registerColumnPercent: ()=>registerColumnPercent,
|
89
|
-
|
94
|
+
registerHeatmap: ()=>registerHeatmap,
|
90
95
|
registerAreaRange: ()=>registerAreaRange,
|
91
|
-
|
96
|
+
roseSpecPipeline: ()=>roseSpecPipeline,
|
92
97
|
dataReshapeFor2D1M0Name: ()=>dataReshapeFor2D1M0Name,
|
93
|
-
|
98
|
+
registerBarPercent: ()=>registerBarPercent,
|
94
99
|
registerLightTheme: ()=>registerLightTheme,
|
95
|
-
|
100
|
+
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
96
101
|
zBarParallel: ()=>zBarParallel,
|
97
|
-
zChartType: ()=>zChartType,
|
98
102
|
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
99
|
-
registerDarkTheme: ()=>registerDarkTheme,
|
100
103
|
registerPivotTable: ()=>registerPivotTable,
|
104
|
+
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
105
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
106
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
101
107
|
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
102
|
-
|
103
|
-
|
104
|
-
|
108
|
+
zChartType: ()=>zChartType,
|
109
|
+
barSpecPipeline: ()=>barSpecPipeline,
|
110
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
105
111
|
registerRose: ()=>registerRose,
|
106
|
-
|
112
|
+
zMeasureTree: ()=>zMeasureTree,
|
107
113
|
unfoldDimensions: ()=>unfoldDimensions,
|
108
|
-
|
114
|
+
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
109
115
|
registerTable: ()=>registerTable,
|
110
116
|
Builder: ()=>Builder,
|
111
117
|
autoFormatter: ()=>autoFormatter,
|
112
118
|
findFirstDimension: ()=>findFirstDimension,
|
113
|
-
registerBar: ()=>registerBar,
|
114
119
|
registerAll: ()=>registerAll,
|
120
|
+
registerBar: ()=>registerBar,
|
115
121
|
isVChart: ()=>isVChart,
|
122
|
+
radarSpecPipeline: ()=>radarSpecPipeline,
|
123
|
+
zPieConfig: ()=>zPieConfig,
|
124
|
+
zPivotTable: ()=>zPivotTable,
|
116
125
|
zRadar: ()=>zRadar,
|
117
|
-
|
126
|
+
zRose: ()=>zRose,
|
118
127
|
registerLine: ()=>registerLine,
|
119
128
|
registerCustomTheme: ()=>registerCustomTheme,
|
120
129
|
zColor: ()=>zColor,
|
121
130
|
registerRoseParallel: ()=>registerRoseParallel,
|
122
131
|
registerDonut: ()=>registerDonut,
|
132
|
+
heatmapSpecPipeline: ()=>heatmapSpecPipeline,
|
133
|
+
heatmapAdvancedPipeline: ()=>heatmapAdvancedPipeline,
|
123
134
|
zDonutConfig: ()=>zDonutConfig,
|
124
|
-
zMeasureGroup: ()=>zMeasureGroup,
|
125
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
126
135
|
zFunnelConfig: ()=>zFunnelConfig,
|
136
|
+
zMeasureGroup: ()=>zMeasureGroup,
|
127
137
|
zMeasures: ()=>zMeasures,
|
128
138
|
FoldMeasureName: ()=>FoldMeasureName,
|
129
139
|
zRadarConfig: ()=>zRadarConfig,
|
@@ -132,20 +142,27 @@ __webpack_require__.d(__webpack_exports__, {
|
|
132
142
|
zAreaConfig: ()=>zAreaConfig,
|
133
143
|
zAxis: ()=>zAxis,
|
134
144
|
isVTable: ()=>isVTable,
|
145
|
+
zTable: ()=>zTable,
|
146
|
+
zUnfoldInfo: ()=>zUnfoldInfo,
|
135
147
|
zLine: ()=>zLine,
|
136
|
-
|
148
|
+
columnSpecPipeline: ()=>columnSpecPipeline,
|
137
149
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
138
150
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
151
|
+
zFoldInfo: ()=>zFoldInfo,
|
139
152
|
zLinearColor: ()=>zLinearColor,
|
140
153
|
zAreaStyle: ()=>zAreaStyle,
|
141
154
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
155
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
142
156
|
zAnnotationArea: ()=>zAnnotationArea,
|
157
|
+
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
143
158
|
i18n: ()=>i18n,
|
144
159
|
zPointStyle: ()=>zPointStyle,
|
145
160
|
zAnnotationPoint: ()=>zAnnotationPoint,
|
146
161
|
lightTheme: ()=>lightTheme,
|
147
162
|
registerColumnParallel: ()=>registerColumnParallel,
|
163
|
+
updateAdvanced: ()=>updateAdvanced,
|
148
164
|
zDimension: ()=>zDimension,
|
165
|
+
zSort: ()=>zSort,
|
149
166
|
isPivotChart: ()=>isPivotChart,
|
150
167
|
zDualAxisConfig: ()=>zDualAxisConfig,
|
151
168
|
zColumn: ()=>zColumn,
|
@@ -157,38 +174,54 @@ __webpack_require__.d(__webpack_exports__, {
|
|
157
174
|
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
158
175
|
findMeasureById: ()=>findMeasureById,
|
159
176
|
zVSeed: ()=>zVSeed,
|
177
|
+
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
178
|
+
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
160
179
|
zBackgroundColor: ()=>zBackgroundColor,
|
161
180
|
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
162
181
|
registerBarParallel: ()=>registerBarParallel,
|
163
182
|
registerRadar: ()=>registerRadar,
|
164
183
|
zLocale: ()=>zLocale,
|
184
|
+
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
165
185
|
zMeasure: ()=>zMeasure,
|
186
|
+
areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
|
187
|
+
areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
|
166
188
|
zAreaRange: ()=>zAreaRange,
|
167
189
|
registerScatter: ()=>registerScatter,
|
168
190
|
zEncoding: ()=>zEncoding,
|
169
191
|
autoNumFormatter: ()=>autoNumFormatter,
|
170
192
|
zAdvancedVSeed: ()=>zAdvancedVSeed,
|
171
|
-
|
193
|
+
tableSpecPipeline: ()=>tableSpecPipeline,
|
172
194
|
zConfig: ()=>zConfig,
|
173
195
|
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
174
196
|
zBarStyle: ()=>zBarStyle,
|
197
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
175
198
|
zAreaPercent: ()=>zAreaPercent,
|
199
|
+
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
176
200
|
isValueSelector: ()=>isValueSelector,
|
201
|
+
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
177
202
|
zColumnPercent: ()=>zColumnPercent,
|
178
|
-
|
179
|
-
zScatterConfig: ()=>zScatterConfig,
|
180
|
-
foldMeasures: ()=>foldMeasures,
|
203
|
+
registerPie: ()=>registerPie,
|
181
204
|
dataReshapeFor2D1M: ()=>dataReshapeFor2D1M,
|
205
|
+
foldMeasures: ()=>foldMeasures,
|
182
206
|
isPivotTable: ()=>isPivotTable,
|
183
|
-
registerPie: ()=>registerPie,
|
184
207
|
zFunnel: ()=>zFunnel,
|
185
|
-
|
208
|
+
zScatter: ()=>zScatter,
|
186
209
|
zBarParallelConfig: ()=>zBarParallelConfig,
|
210
|
+
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
187
211
|
FoldMeasureValue: ()=>FoldMeasureValue,
|
212
|
+
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
213
|
+
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
188
214
|
zBarPercentConfig: ()=>zBarPercentConfig,
|
189
|
-
|
215
|
+
lineSpecPipeline: ()=>lineSpecPipeline,
|
216
|
+
zScatterConfig: ()=>zScatterConfig,
|
217
|
+
zTooltip: ()=>zTooltip,
|
190
218
|
createFormatter: ()=>createFormatter,
|
219
|
+
zDimensionGroup: ()=>zDimensionGroup,
|
191
220
|
isMeasureSelector: ()=>isMeasureSelector,
|
221
|
+
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
222
|
+
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
223
|
+
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
224
|
+
barParallelSpecPipeline: ()=>barParallelSpecPipeline,
|
192
225
|
zBarConfig: ()=>zBarConfig
|
193
226
|
});
|
194
227
|
const execPipeline = (pipeline, context, initialValue = {})=>{
|
@@ -1434,7 +1467,7 @@ const sortXBandAxis = (advancedVSeed, context)=>{
|
|
1434
1467
|
...advancedVSeed
|
1435
1468
|
};
|
1436
1469
|
const { vseed } = context;
|
1437
|
-
const { sortAxis, dataset } = vseed;
|
1470
|
+
const { sort: sortAxis, dataset } = vseed;
|
1438
1471
|
const { encoding } = advancedVSeed;
|
1439
1472
|
const xField = encoding?.[0]?.x?.[0];
|
1440
1473
|
if (!sortAxis || !xField) return advancedVSeed;
|
@@ -1449,7 +1482,7 @@ const sortYBandAxis = (advancedVSeed, context)=>{
|
|
1449
1482
|
...advancedVSeed
|
1450
1483
|
};
|
1451
1484
|
const { vseed } = context;
|
1452
|
-
const { sortAxis, dataset } = vseed;
|
1485
|
+
const { sort: sortAxis, dataset } = vseed;
|
1453
1486
|
const { encoding } = advancedVSeed;
|
1454
1487
|
const yField = encoding?.[0]?.y?.[0];
|
1455
1488
|
if (!sortAxis || !yField) return advancedVSeed;
|
@@ -1486,10 +1519,10 @@ const sort_sortLegend = (advancedVSeed, context)=>{
|
|
1486
1519
|
result.analysis.orderMapping[groupField] = orderRes;
|
1487
1520
|
return result;
|
1488
1521
|
};
|
1489
|
-
const calcOrder = (
|
1490
|
-
if (
|
1491
|
-
const order =
|
1492
|
-
const orderBy =
|
1522
|
+
const calcOrder = (sortConfig, id, dataset)=>{
|
1523
|
+
if (sortConfig.customOrder) return sortConfig.customOrder;
|
1524
|
+
const order = sortConfig.order || 'asc';
|
1525
|
+
const orderBy = sortConfig.orderBy;
|
1493
1526
|
const res = (0, external_remeda_namespaceObject.sort)(dataset, (a, b)=>{
|
1494
1527
|
const aValue = a[orderBy || id];
|
1495
1528
|
const bValue = b[orderBy || id];
|
@@ -1768,13 +1801,13 @@ const xBand = (spec, context)=>{
|
|
1768
1801
|
];
|
1769
1802
|
return result;
|
1770
1803
|
}
|
1771
|
-
const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength, labelAutoRotate, labelAutoRotateAngleRange } = config;
|
1804
|
+
const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength = 80, labelAutoRotate, labelAutoRotateAngleRange } = config;
|
1772
1805
|
const sampling = !(labelAutoHide || labelAutoRotate || labelAutoLimit);
|
1773
1806
|
const bandAxis = {
|
1774
1807
|
visible,
|
1775
1808
|
type: 'band',
|
1776
1809
|
orient: 'bottom',
|
1777
|
-
maxHeight: labelAutoLimitLength,
|
1810
|
+
maxHeight: labelAutoLimitLength + 60,
|
1778
1811
|
sampling,
|
1779
1812
|
hover: true,
|
1780
1813
|
label: {
|
@@ -2024,24 +2057,35 @@ const tooltip_tooltip = (spec, context)=>{
|
|
2024
2057
|
...spec
|
2025
2058
|
};
|
2026
2059
|
const { advancedVSeed } = context;
|
2027
|
-
const { measures, datasetReshapeInfo, chartType, locale } = advancedVSeed;
|
2060
|
+
const { measures, datasetReshapeInfo, chartType, locale, dimensions } = advancedVSeed;
|
2028
2061
|
const baseConfig = advancedVSeed.config[chartType];
|
2029
2062
|
const { tooltip = {
|
2030
2063
|
enable: true
|
2031
2064
|
} } = baseConfig;
|
2032
2065
|
const { enable } = tooltip;
|
2033
|
-
const { measureId, measureValue } = datasetReshapeInfo[0].foldInfo;
|
2066
|
+
const { measureId, measureValue, measureName } = datasetReshapeInfo[0].foldInfo;
|
2034
2067
|
const { groupName } = datasetReshapeInfo[0].unfoldInfo;
|
2035
2068
|
result.tooltip = {
|
2036
2069
|
visible: enable,
|
2037
2070
|
mark: {
|
2038
2071
|
title: {
|
2039
|
-
|
2072
|
+
visible: true
|
2040
2073
|
},
|
2041
2074
|
content: [
|
2075
|
+
...dimensions.map((item)=>({
|
2076
|
+
visible: true,
|
2077
|
+
hasShape: true,
|
2078
|
+
shapeType: 'rectRound',
|
2079
|
+
key: (datum)=>{
|
2080
|
+
if (item.alias || item.id) return item.alias || item.id;
|
2081
|
+
return datum && datum[item.id];
|
2082
|
+
},
|
2083
|
+
value: (datum)=>datum && datum[item.id]
|
2084
|
+
})),
|
2042
2085
|
{
|
2043
2086
|
visible: true,
|
2044
|
-
|
2087
|
+
hasShape: true,
|
2088
|
+
key: (datum)=>datum && datum[measureName || groupName] || '',
|
2045
2089
|
value: (datum)=>{
|
2046
2090
|
if (!datum) return '';
|
2047
2091
|
const value = datum[measureValue];
|
@@ -2077,7 +2121,8 @@ const tooltip_tooltip = (spec, context)=>{
|
|
2077
2121
|
}
|
2078
2122
|
if (autoFormat) return autoFormatter(value, locale);
|
2079
2123
|
return String(value);
|
2080
|
-
}
|
2124
|
+
},
|
2125
|
+
shapeType: 'rectRound'
|
2081
2126
|
}
|
2082
2127
|
]
|
2083
2128
|
}
|
@@ -2191,6 +2236,7 @@ const discreteLegend = (spec, context)=>{
|
|
2191
2236
|
}) : void 0,
|
2192
2237
|
item: {
|
2193
2238
|
focus: true,
|
2239
|
+
maxWidth: 260,
|
2194
2240
|
focusIconStyle: {
|
2195
2241
|
size: labelFontSize + 2,
|
2196
2242
|
fill: labelFontColor,
|
@@ -2219,7 +2265,8 @@ const discreteLegend = (spec, context)=>{
|
|
2219
2265
|
}
|
2220
2266
|
}
|
2221
2267
|
}
|
2222
|
-
}
|
2268
|
+
},
|
2269
|
+
padding: 0
|
2223
2270
|
};
|
2224
2271
|
return result;
|
2225
2272
|
};
|
@@ -2326,7 +2373,7 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
2326
2373
|
pointStyle
|
2327
2374
|
];
|
2328
2375
|
const customMap = pointStyles.reduce((result, style, index)=>{
|
2329
|
-
const { pointBorderColor, pointBorderStyle, pointBorderWidth, pointColor, pointColorOpacity, pointSize } = style;
|
2376
|
+
const { pointBorderColor, pointBorderStyle, pointBorderWidth = 1, pointColor, pointColorOpacity, pointSize } = style;
|
2330
2377
|
const lineDash = 'dashed' === pointBorderStyle ? [
|
2331
2378
|
5,
|
2332
2379
|
2
|
@@ -2481,7 +2528,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
|
|
2481
2528
|
annotationPoint
|
2482
2529
|
];
|
2483
2530
|
const markPoint = annotationPointList.flatMap((annotationPoint)=>{
|
2484
|
-
const { selector: selectorPoint, text = '', textColor = '#
|
2531
|
+
const { selector: selectorPoint, text = '', textColor = '#cccccc', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'middle', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
|
2485
2532
|
const dataset = advancedVSeed.dataset.flat();
|
2486
2533
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
2487
2534
|
return selectedData.map((datum)=>({
|
@@ -2504,12 +2551,14 @@ const annotationPoint_annotationPoint = (spec, context)=>{
|
|
2504
2551
|
offsetY,
|
2505
2552
|
offsetX,
|
2506
2553
|
text: {
|
2507
|
-
visible: true,
|
2508
2554
|
text: text,
|
2509
2555
|
style: {
|
2556
|
+
visible: true,
|
2510
2557
|
textAlign: textAlign,
|
2511
2558
|
textBaseline: textBaseline,
|
2512
2559
|
fill: textColor,
|
2560
|
+
stroke: backgroundColor,
|
2561
|
+
lineWidth: 1,
|
2513
2562
|
fontSize: textFontSize,
|
2514
2563
|
fontWeight: textFontWeight
|
2515
2564
|
},
|
@@ -2520,7 +2569,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
|
|
2520
2569
|
cornerRadius: backgroundBorderRadius ?? 4,
|
2521
2570
|
fill: backgroundColor,
|
2522
2571
|
stroke: backgroundBorderColor,
|
2523
|
-
|
2572
|
+
lineWidth: backgroundBorderWidth
|
2524
2573
|
}
|
2525
2574
|
}
|
2526
2575
|
}
|
@@ -2549,14 +2598,16 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2549
2598
|
insideEnd: 'insideEndTop'
|
2550
2599
|
};
|
2551
2600
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2552
|
-
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#
|
2601
|
+
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#cccccc', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
|
2553
2602
|
const dataset = advancedVSeed.dataset.flat();
|
2554
2603
|
const generateOneMarkLine = (x)=>({
|
2555
2604
|
x: x,
|
2556
2605
|
zIndex: ANNOTATION_Z_INDEX,
|
2606
|
+
offsetX,
|
2607
|
+
offsetY,
|
2557
2608
|
line: {
|
2558
|
-
visible: lineVisible,
|
2559
2609
|
style: {
|
2610
|
+
visible: lineVisible,
|
2560
2611
|
stroke: lineColor,
|
2561
2612
|
lineStyle: lineStyle,
|
2562
2613
|
lineWidth: lineWidth,
|
@@ -2576,11 +2627,14 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2576
2627
|
position: positionMap[textPosition],
|
2577
2628
|
style: {
|
2578
2629
|
visible: true,
|
2630
|
+
stroke: backgroundColor,
|
2631
|
+
lineWidth: 1,
|
2579
2632
|
textAlign: textAlign,
|
2580
2633
|
textBaseline: textBaseline,
|
2581
2634
|
fill: textColor,
|
2582
2635
|
fontSize: textFontSize,
|
2583
|
-
fontWeight: textFontWeight
|
2636
|
+
fontWeight: textFontWeight,
|
2637
|
+
dy: textFontSize
|
2584
2638
|
},
|
2585
2639
|
labelBackground: {
|
2586
2640
|
visible: backgroundVisible,
|
@@ -2589,13 +2643,14 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2589
2643
|
cornerRadius: backgroundBorderRadius ?? 4,
|
2590
2644
|
fill: backgroundColor,
|
2591
2645
|
stroke: backgroundBorderColor,
|
2592
|
-
|
2646
|
+
lineWidth: backgroundBorderWidth
|
2593
2647
|
}
|
2594
2648
|
}
|
2595
2649
|
},
|
2596
2650
|
endSymbol: {
|
2597
2651
|
visible: true,
|
2598
2652
|
style: {
|
2653
|
+
dy: 4,
|
2599
2654
|
fill: lineColor
|
2600
2655
|
}
|
2601
2656
|
}
|
@@ -2640,14 +2695,16 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2640
2695
|
insideEnd: 'insideEndTop'
|
2641
2696
|
};
|
2642
2697
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2643
|
-
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1 } = annotationVerticalLine;
|
2698
|
+
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
|
2644
2699
|
const dataset = advancedVSeed.dataset.flat();
|
2645
2700
|
const generateOneMarkLine = (y)=>({
|
2646
2701
|
y,
|
2702
|
+
offsetX,
|
2703
|
+
offsetY,
|
2647
2704
|
zIndex: ANNOTATION_Z_INDEX,
|
2648
2705
|
line: {
|
2649
|
-
visible: lineVisible,
|
2650
2706
|
style: {
|
2707
|
+
visible: lineVisible,
|
2651
2708
|
stroke: lineColor,
|
2652
2709
|
lineStyle: lineStyle,
|
2653
2710
|
lineWidth: lineWidth,
|
@@ -2667,6 +2724,9 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2667
2724
|
position: positionMap[textPosition],
|
2668
2725
|
style: {
|
2669
2726
|
visible: true,
|
2727
|
+
dy: textFontSize,
|
2728
|
+
stroke: backgroundColor,
|
2729
|
+
lineWidth: 1,
|
2670
2730
|
textAlign: textAlign,
|
2671
2731
|
textBaseline: textBaseline,
|
2672
2732
|
fill: textColor,
|
@@ -2680,13 +2740,14 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2680
2740
|
cornerRadius: backgroundBorderRadius ?? 4,
|
2681
2741
|
fill: backgroundColor,
|
2682
2742
|
stroke: backgroundBorderColor,
|
2683
|
-
|
2743
|
+
lineWidth: backgroundBorderWidth
|
2684
2744
|
}
|
2685
2745
|
}
|
2686
2746
|
},
|
2687
2747
|
endSymbol: {
|
2688
2748
|
visible: true,
|
2689
2749
|
style: {
|
2750
|
+
dx: -4,
|
2690
2751
|
fill: lineColor
|
2691
2752
|
}
|
2692
2753
|
}
|
@@ -2733,12 +2794,14 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2733
2794
|
right: 'insideRight'
|
2734
2795
|
};
|
2735
2796
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
2736
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 10, backgroundVisible = true, outerPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth } = annotationArea;
|
2797
|
+
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 10, backgroundVisible = true, outerPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX = 0, offsetY = 0 } = annotationArea;
|
2737
2798
|
const dataset = advancedVSeed.dataset.flat();
|
2738
2799
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
2739
2800
|
return {
|
2740
2801
|
zIndex: ANNOTATION_Z_INDEX,
|
2741
2802
|
regionRelative: true,
|
2803
|
+
offsetX,
|
2804
|
+
offsetY,
|
2742
2805
|
positions: (data, context)=>{
|
2743
2806
|
const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
|
2744
2807
|
const xyList = positionData.map((datum)=>context.dataToPosition(datum));
|
@@ -2804,6 +2867,8 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2804
2867
|
textAlign: textAlign,
|
2805
2868
|
textBaseline: textBaseline,
|
2806
2869
|
fill: textColor,
|
2870
|
+
stroke: backgroundColor,
|
2871
|
+
lineWidth: 1,
|
2807
2872
|
fontSize: textFontSize,
|
2808
2873
|
fontWeight: textFontWeight
|
2809
2874
|
},
|
@@ -2814,7 +2879,7 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2814
2879
|
cornerRadius: backgroundBorderRadius ?? 4,
|
2815
2880
|
fill: backgroundColor,
|
2816
2881
|
stroke: backgroundBorderColor,
|
2817
|
-
|
2882
|
+
lineWidth: backgroundBorderWidth
|
2818
2883
|
}
|
2819
2884
|
}
|
2820
2885
|
},
|
@@ -2824,7 +2889,7 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2824
2889
|
fill: areaColor,
|
2825
2890
|
fillOpacity: areaColorOpacity,
|
2826
2891
|
stroke: areaBorderColor,
|
2827
|
-
|
2892
|
+
lineWidth: areaBorderWidth,
|
2828
2893
|
cornerRadius: areaBorderRadius
|
2829
2894
|
}
|
2830
2895
|
}
|
@@ -3163,6 +3228,7 @@ const pivotDiscreteLegend = (spec, context)=>{
|
|
3163
3228
|
})),
|
3164
3229
|
item: {
|
3165
3230
|
focus: true,
|
3231
|
+
maxWidth: 260,
|
3166
3232
|
focusIconStyle: {
|
3167
3233
|
size: labelFontSize + 2,
|
3168
3234
|
fill: labelFontColor,
|
@@ -3504,7 +3570,7 @@ const barStyle_barStyle = (spec, context)=>{
|
|
3504
3570
|
barStyle
|
3505
3571
|
];
|
3506
3572
|
const customMap = barStyles.reduce((result, style, index)=>{
|
3507
|
-
const { barBorderColor, barBorderStyle, barBorderWidth, barColor, barColorOpacity, barRadius } = style;
|
3573
|
+
const { barBorderColor, barBorderStyle, barBorderWidth = 1, barColor, barColorOpacity, barRadius } = style;
|
3508
3574
|
const lineDash = 'dashed' === barBorderStyle ? [
|
3509
3575
|
5,
|
3510
3576
|
2
|
@@ -3565,12 +3631,14 @@ const annotationAreaBand = (spec, context)=>{
|
|
3565
3631
|
right: 'insideRight'
|
3566
3632
|
};
|
3567
3633
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
3568
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 4, backgroundVisible = true, outerPadding = 8, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth } = annotationArea;
|
3634
|
+
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 4, backgroundVisible = true, outerPadding = 8, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX, offsetY } = annotationArea;
|
3569
3635
|
const dataset = advancedVSeed.dataset.flat();
|
3570
3636
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
3571
3637
|
return {
|
3572
3638
|
zIndex: ANNOTATION_Z_INDEX,
|
3573
3639
|
regionRelative: true,
|
3640
|
+
offsetX,
|
3641
|
+
offsetY,
|
3574
3642
|
positions: (data, context)=>{
|
3575
3643
|
const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
|
3576
3644
|
const xyList = positionData.map((datum)=>context.dataToPosition(datum));
|
@@ -3639,6 +3707,8 @@ const annotationAreaBand = (spec, context)=>{
|
|
3639
3707
|
style: {
|
3640
3708
|
textAlign: textAlign,
|
3641
3709
|
textBaseline: textBaseline,
|
3710
|
+
stroke: backgroundColor,
|
3711
|
+
lineWidth: 1,
|
3642
3712
|
fill: textColor,
|
3643
3713
|
fontSize: textFontSize,
|
3644
3714
|
fontWeight: textFontWeight
|
@@ -3650,7 +3720,7 @@ const annotationAreaBand = (spec, context)=>{
|
|
3650
3720
|
cornerRadius: backgroundBorderRadius ?? 4,
|
3651
3721
|
fill: backgroundColor,
|
3652
3722
|
stroke: backgroundBorderColor,
|
3653
|
-
|
3723
|
+
lineWidth: backgroundBorderWidth
|
3654
3724
|
}
|
3655
3725
|
}
|
3656
3726
|
},
|
@@ -3660,7 +3730,7 @@ const annotationAreaBand = (spec, context)=>{
|
|
3660
3730
|
fill: areaColor,
|
3661
3731
|
fillOpacity: areaColorOpacity,
|
3662
3732
|
stroke: areaBorderColor,
|
3663
|
-
|
3733
|
+
lineWidth: areaBorderWidth,
|
3664
3734
|
cornerRadius: areaBorderRadius
|
3665
3735
|
}
|
3666
3736
|
}
|
@@ -4121,13 +4191,13 @@ const yBand = (spec, context)=>{
|
|
4121
4191
|
];
|
4122
4192
|
return result;
|
4123
4193
|
}
|
4124
|
-
const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength, labelAutoRotate, labelAutoRotateAngleRange } = config;
|
4194
|
+
const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength = 80, labelAutoRotate, labelAutoRotateAngleRange } = config;
|
4125
4195
|
const sampling = !(labelAutoHide || labelAutoRotate || labelAutoLimit);
|
4126
4196
|
const bandAxis = {
|
4127
4197
|
visible,
|
4128
4198
|
type: 'band',
|
4129
4199
|
orient: 'left',
|
4130
|
-
maxWidth: labelAutoLimitLength,
|
4200
|
+
maxWidth: labelAutoLimitLength + 60,
|
4131
4201
|
sampling,
|
4132
4202
|
hover: true,
|
4133
4203
|
label: {
|
@@ -5005,6 +5075,79 @@ const initAreaRangeLine2 = (spec, context)=>{
|
|
5005
5075
|
};
|
5006
5076
|
return result;
|
5007
5077
|
};
|
5078
|
+
const tooltipDisable = (spec)=>{
|
5079
|
+
const result = {
|
5080
|
+
...spec
|
5081
|
+
};
|
5082
|
+
result.tooltip = {
|
5083
|
+
visible: false
|
5084
|
+
};
|
5085
|
+
return result;
|
5086
|
+
};
|
5087
|
+
const tooltipAreaRange = (spec, context)=>{
|
5088
|
+
const result = {
|
5089
|
+
...spec
|
5090
|
+
};
|
5091
|
+
const { advancedVSeed } = context;
|
5092
|
+
const { measures, datasetReshapeInfo, chartType, locale, encoding } = advancedVSeed;
|
5093
|
+
const baseConfig = advancedVSeed.config[chartType];
|
5094
|
+
const { tooltip = {
|
5095
|
+
enable: true
|
5096
|
+
} } = baseConfig;
|
5097
|
+
const { enable } = tooltip;
|
5098
|
+
const { groupName } = datasetReshapeInfo[0].unfoldInfo;
|
5099
|
+
const y = encoding[0]?.y || [];
|
5100
|
+
result.tooltip = {
|
5101
|
+
visible: enable,
|
5102
|
+
dimension: {
|
5103
|
+
content: [
|
5104
|
+
{
|
5105
|
+
visible: true,
|
5106
|
+
key: (datum)=>datum && datum[groupName] || '',
|
5107
|
+
value: (datum)=>{
|
5108
|
+
if (!datum) return '';
|
5109
|
+
const text = y.map((id)=>{
|
5110
|
+
const value = datum[id];
|
5111
|
+
const measure = findMeasureById(measures, id);
|
5112
|
+
if (!measure) return String(value);
|
5113
|
+
const { format = {}, autoFormat = true } = measure;
|
5114
|
+
if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
|
5115
|
+
const formatter = createFormatter(format);
|
5116
|
+
return formatter(value);
|
5117
|
+
}
|
5118
|
+
if (autoFormat) return autoFormatter(value, locale);
|
5119
|
+
return String(value);
|
5120
|
+
});
|
5121
|
+
return text.join(' ~ ');
|
5122
|
+
},
|
5123
|
+
shapeType: 'rectRound'
|
5124
|
+
},
|
5125
|
+
...y.map((id)=>{
|
5126
|
+
const measure = findMeasureById(measures, id);
|
5127
|
+
return {
|
5128
|
+
visible: true,
|
5129
|
+
key: measure?.alias || id,
|
5130
|
+
value: (datum)=>{
|
5131
|
+
if (!datum) return '';
|
5132
|
+
const value = datum[id];
|
5133
|
+
const measure = findMeasureById(measures, id);
|
5134
|
+
if (!measure) return String(value);
|
5135
|
+
const { format = {}, autoFormat = true } = measure;
|
5136
|
+
if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
|
5137
|
+
const formatter = createFormatter(format);
|
5138
|
+
return formatter(value);
|
5139
|
+
}
|
5140
|
+
if (autoFormat) return autoFormatter(value, locale);
|
5141
|
+
return String(value);
|
5142
|
+
},
|
5143
|
+
shapeType: 'rectRound'
|
5144
|
+
};
|
5145
|
+
})
|
5146
|
+
]
|
5147
|
+
}
|
5148
|
+
};
|
5149
|
+
return result;
|
5150
|
+
};
|
5008
5151
|
const areaRange = [
|
5009
5152
|
series([
|
5010
5153
|
initAreaRange,
|
@@ -5013,12 +5156,14 @@ const areaRange = [
|
|
5013
5156
|
initAreaRangeLine1,
|
5014
5157
|
lineStyle_lineStyle,
|
5015
5158
|
pointStyle_pointStyle,
|
5016
|
-
pointStateDimensionHover
|
5159
|
+
pointStateDimensionHover,
|
5160
|
+
tooltipDisable
|
5017
5161
|
], [
|
5018
5162
|
initAreaRangeLine2,
|
5019
5163
|
lineStyle_lineStyle,
|
5020
5164
|
pointStyle_pointStyle,
|
5021
|
-
pointStateDimensionHover
|
5165
|
+
pointStateDimensionHover,
|
5166
|
+
tooltipDisable
|
5022
5167
|
]),
|
5023
5168
|
datasetXY,
|
5024
5169
|
progressive,
|
@@ -5026,6 +5171,7 @@ const areaRange = [
|
|
5026
5171
|
xBand,
|
5027
5172
|
yLinear,
|
5028
5173
|
label_label,
|
5174
|
+
tooltipAreaRange,
|
5029
5175
|
verticalCrosshairLine,
|
5030
5176
|
annotationPoint_annotationPoint,
|
5031
5177
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -5045,12 +5191,14 @@ const pivotAreaRange = [
|
|
5045
5191
|
initAreaRangeLine1,
|
5046
5192
|
lineStyle_lineStyle,
|
5047
5193
|
pointStyle_pointStyle,
|
5048
|
-
pointStateDimensionHover
|
5194
|
+
pointStateDimensionHover,
|
5195
|
+
tooltipDisable
|
5049
5196
|
], [
|
5050
5197
|
initAreaRangeLine2,
|
5051
5198
|
lineStyle_lineStyle,
|
5052
5199
|
pointStyle_pointStyle,
|
5053
|
-
pointStateDimensionHover
|
5200
|
+
pointStateDimensionHover,
|
5201
|
+
tooltipDisable
|
5054
5202
|
]),
|
5055
5203
|
background_backgroundColor,
|
5056
5204
|
datasetXY,
|
@@ -5058,6 +5206,7 @@ const pivotAreaRange = [
|
|
5058
5206
|
xBand,
|
5059
5207
|
yLinear,
|
5060
5208
|
label_label,
|
5209
|
+
tooltipAreaRange,
|
5061
5210
|
verticalCrosshairLine,
|
5062
5211
|
annotationPoint_annotationPoint,
|
5063
5212
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -5558,7 +5707,6 @@ const initPie = (spec, context)=>{
|
|
5558
5707
|
},
|
5559
5708
|
state: {
|
5560
5709
|
hover: {
|
5561
|
-
centerOffset: 5,
|
5562
5710
|
outerRadius: 1.1 * result.outerRadius
|
5563
5711
|
}
|
5564
5712
|
}
|
@@ -6592,7 +6740,7 @@ const lightTheme = ()=>{
|
|
6592
6740
|
labelAutoHide: true,
|
6593
6741
|
labelAutoHideGap: 4,
|
6594
6742
|
labelAutoLimit: true,
|
6595
|
-
labelAutoLimitLength:
|
6743
|
+
labelAutoLimitLength: 80,
|
6596
6744
|
labelAutoRotate: false,
|
6597
6745
|
labelAutoRotateAngleRange: [
|
6598
6746
|
0,
|
@@ -6914,7 +7062,7 @@ const darkTheme = ()=>{
|
|
6914
7062
|
labelAutoHide: true,
|
6915
7063
|
labelAutoHideGap: 4,
|
6916
7064
|
labelAutoLimit: true,
|
6917
|
-
labelAutoLimitLength:
|
7065
|
+
labelAutoLimitLength: 80,
|
6918
7066
|
labelAutoRotate: false,
|
6919
7067
|
labelAutoRotateAngleRange: [
|
6920
7068
|
0,
|
@@ -7220,8 +7368,13 @@ const registerAll = ()=>{
|
|
7220
7368
|
registerLightTheme();
|
7221
7369
|
registerDarkTheme();
|
7222
7370
|
};
|
7371
|
+
const updateAdvanced = (chartType, advancedPipe)=>{
|
7372
|
+
Builder._customAdvancedPipe[chartType] = advancedPipe;
|
7373
|
+
};
|
7374
|
+
const updateSpec = (chartType, specPipe)=>{
|
7375
|
+
Builder._customSpecPipe[chartType] = specPipe;
|
7376
|
+
};
|
7223
7377
|
const external_zod_namespaceObject = require("zod");
|
7224
|
-
var external_zod_default = /*#__PURE__*/ __webpack_require__.n(external_zod_namespaceObject);
|
7225
7378
|
const zChartType = external_zod_namespaceObject.z["enum"]([
|
7226
7379
|
'table',
|
7227
7380
|
'pivotTable',
|
@@ -7912,7 +8065,9 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
|
7912
8065
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
7913
8066
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
7914
8067
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
7915
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
8068
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional(),
|
8069
|
+
offsetX: external_zod_namespaceObject.z.number().default(0),
|
8070
|
+
offsetY: external_zod_namespaceObject.z.number().default(0)
|
7916
8071
|
});
|
7917
8072
|
const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
7918
8073
|
selector: external_zod_namespaceObject.z.union([
|
@@ -7962,7 +8117,9 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
7962
8117
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
7963
8118
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
7964
8119
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
7965
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
8120
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional(),
|
8121
|
+
offsetX: external_zod_namespaceObject.z.number().default(0),
|
8122
|
+
offsetY: external_zod_namespaceObject.z.number().default(0)
|
7966
8123
|
});
|
7967
8124
|
const zAnnotationArea = external_zod_namespaceObject.z.object({
|
7968
8125
|
selector: external_zod_namespaceObject.z.union([
|
@@ -8004,7 +8161,9 @@ const zAnnotationArea = external_zod_namespaceObject.z.object({
|
|
8004
8161
|
areaBorderColor: external_zod_namespaceObject.z.number().optional(),
|
8005
8162
|
areaBorderWidth: external_zod_namespaceObject.z.number().default(2).optional(),
|
8006
8163
|
areaBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
8007
|
-
outerPadding: external_zod_namespaceObject.z.number().optional()
|
8164
|
+
outerPadding: external_zod_namespaceObject.z.number().optional(),
|
8165
|
+
offsetX: external_zod_namespaceObject.z.number().optional(),
|
8166
|
+
offsetY: external_zod_namespaceObject.z.number().optional()
|
8008
8167
|
});
|
8009
8168
|
const zAnnotation = external_zod_namespaceObject.z.object({
|
8010
8169
|
annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).optional(),
|
@@ -8012,7 +8171,7 @@ const zAnnotation = external_zod_namespaceObject.z.object({
|
|
8012
8171
|
annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).optional(),
|
8013
8172
|
annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).optional()
|
8014
8173
|
});
|
8015
|
-
const
|
8174
|
+
const zSort = external_zod_namespaceObject.z.object({
|
8016
8175
|
order: external_zod_namespaceObject.z["enum"]([
|
8017
8176
|
'asc',
|
8018
8177
|
'desc'
|
@@ -8028,8 +8187,8 @@ const zSortLegend = external_zod_namespaceObject.z.object({
|
|
8028
8187
|
orderBy: external_zod_namespaceObject.z.string().optional(),
|
8029
8188
|
customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).optional()
|
8030
8189
|
});
|
8031
|
-
const zAnalysis =
|
8032
|
-
orderMapping:
|
8190
|
+
const zAnalysis = external_zod_namespaceObject.z.object({
|
8191
|
+
orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional()
|
8033
8192
|
});
|
8034
8193
|
const zLocale = external_zod_namespaceObject.z["enum"]([
|
8035
8194
|
'zh-CN',
|
@@ -8066,7 +8225,7 @@ const zLine = external_zod_namespaceObject.z.object({
|
|
8066
8225
|
xAxis: zXBandAxis.optional(),
|
8067
8226
|
yAxis: zYLinearAxis.optional(),
|
8068
8227
|
crosshairLine: zCrosshairLine.optional(),
|
8069
|
-
|
8228
|
+
sort: zSort.optional(),
|
8070
8229
|
sortLegend: zSortLegend.optional(),
|
8071
8230
|
theme: zTheme.optional(),
|
8072
8231
|
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
|
@@ -8432,8 +8591,26 @@ exports.ORIGINAL_DATA = __webpack_exports__.ORIGINAL_DATA;
|
|
8432
8591
|
exports.Separator = __webpack_exports__.Separator;
|
8433
8592
|
exports.UnfoldDimensionGroup = __webpack_exports__.UnfoldDimensionGroup;
|
8434
8593
|
exports.UnfoldDimensionGroupId = __webpack_exports__.UnfoldDimensionGroupId;
|
8594
|
+
exports.areaAdvancedPipeline = __webpack_exports__.areaAdvancedPipeline;
|
8595
|
+
exports.areaPercentAdvancedPipeline = __webpack_exports__.areaPercentAdvancedPipeline;
|
8596
|
+
exports.areaPercentSpecPipeline = __webpack_exports__.areaPercentSpecPipeline;
|
8597
|
+
exports.areaRangeAdvancedPipeline = __webpack_exports__.areaRangeAdvancedPipeline;
|
8598
|
+
exports.areaRangeSpecPipeline = __webpack_exports__.areaRangeSpecPipeline;
|
8599
|
+
exports.areaSpecPipeline = __webpack_exports__.areaSpecPipeline;
|
8435
8600
|
exports.autoFormatter = __webpack_exports__.autoFormatter;
|
8436
8601
|
exports.autoNumFormatter = __webpack_exports__.autoNumFormatter;
|
8602
|
+
exports.barAdvancedPipeline = __webpack_exports__.barAdvancedPipeline;
|
8603
|
+
exports.barParallelAdvancedPipeline = __webpack_exports__.barParallelAdvancedPipeline;
|
8604
|
+
exports.barParallelSpecPipeline = __webpack_exports__.barParallelSpecPipeline;
|
8605
|
+
exports.barPercentAdvancedPipeline = __webpack_exports__.barPercentAdvancedPipeline;
|
8606
|
+
exports.barPercentSpecPipeline = __webpack_exports__.barPercentSpecPipeline;
|
8607
|
+
exports.barSpecPipeline = __webpack_exports__.barSpecPipeline;
|
8608
|
+
exports.columnAdvancedPipeline = __webpack_exports__.columnAdvancedPipeline;
|
8609
|
+
exports.columnParallelAdvancedPipeline = __webpack_exports__.columnParallelAdvancedPipeline;
|
8610
|
+
exports.columnParallelSpecPipeline = __webpack_exports__.columnParallelSpecPipeline;
|
8611
|
+
exports.columnPercentAdvancedPipeline = __webpack_exports__.columnPercentAdvancedPipeline;
|
8612
|
+
exports.columnPercentSpecPipeline = __webpack_exports__.columnPercentSpecPipeline;
|
8613
|
+
exports.columnSpecPipeline = __webpack_exports__.columnSpecPipeline;
|
8437
8614
|
exports.createFormatter = __webpack_exports__.createFormatter;
|
8438
8615
|
exports.createNumFormatter = __webpack_exports__.createNumFormatter;
|
8439
8616
|
exports.darkTheme = __webpack_exports__.darkTheme;
|
@@ -8442,6 +8619,8 @@ exports.dataReshapeFor1D1M = __webpack_exports__.dataReshapeFor1D1M;
|
|
8442
8619
|
exports.dataReshapeFor1D2M = __webpack_exports__.dataReshapeFor1D2M;
|
8443
8620
|
exports.dataReshapeFor2D1M = __webpack_exports__.dataReshapeFor2D1M;
|
8444
8621
|
exports.dataReshapeFor2D1M0Name = __webpack_exports__.dataReshapeFor2D1M0Name;
|
8622
|
+
exports.donutAdvancedPipeline = __webpack_exports__.donutAdvancedPipeline;
|
8623
|
+
exports.donutSpecPipeline = __webpack_exports__.donutSpecPipeline;
|
8445
8624
|
exports.execPipeline = __webpack_exports__.execPipeline;
|
8446
8625
|
exports.findAllDimensions = __webpack_exports__.findAllDimensions;
|
8447
8626
|
exports.findAllMeasures = __webpack_exports__.findAllMeasures;
|
@@ -8450,6 +8629,10 @@ exports.findFirstDimension = __webpack_exports__.findFirstDimension;
|
|
8450
8629
|
exports.findFirstMeasure = __webpack_exports__.findFirstMeasure;
|
8451
8630
|
exports.findMeasureById = __webpack_exports__.findMeasureById;
|
8452
8631
|
exports.foldMeasures = __webpack_exports__.foldMeasures;
|
8632
|
+
exports.funnelAdvancedPipeline = __webpack_exports__.funnelAdvancedPipeline;
|
8633
|
+
exports.funnelSpecPipeline = __webpack_exports__.funnelSpecPipeline;
|
8634
|
+
exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
|
8635
|
+
exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
|
8453
8636
|
exports.i18n = __webpack_exports__.i18n;
|
8454
8637
|
exports.intl = __webpack_exports__.intl;
|
8455
8638
|
exports.isDimensionSelector = __webpack_exports__.isDimensionSelector;
|
@@ -8462,7 +8645,15 @@ exports.isVChart = __webpack_exports__.isVChart;
|
|
8462
8645
|
exports.isVTable = __webpack_exports__.isVTable;
|
8463
8646
|
exports.isValueSelector = __webpack_exports__.isValueSelector;
|
8464
8647
|
exports.lightTheme = __webpack_exports__.lightTheme;
|
8648
|
+
exports.lineAdvancedPipeline = __webpack_exports__.lineAdvancedPipeline;
|
8649
|
+
exports.lineSpecPipeline = __webpack_exports__.lineSpecPipeline;
|
8650
|
+
exports.pieAdvancedPipeline = __webpack_exports__.pieAdvancedPipeline;
|
8651
|
+
exports.pieSpecPipeline = __webpack_exports__.pieSpecPipeline;
|
8652
|
+
exports.pivotTableAdvancedPipeline = __webpack_exports__.pivotTableAdvancedPipeline;
|
8653
|
+
exports.pivotTableSpecPipeline = __webpack_exports__.pivotTableSpecPipeline;
|
8465
8654
|
exports.preorderTraverse = __webpack_exports__.preorderTraverse;
|
8655
|
+
exports.radarAdvancedPipeline = __webpack_exports__.radarAdvancedPipeline;
|
8656
|
+
exports.radarSpecPipeline = __webpack_exports__.radarSpecPipeline;
|
8466
8657
|
exports.registerAll = __webpack_exports__.registerAll;
|
8467
8658
|
exports.registerArea = __webpack_exports__.registerArea;
|
8468
8659
|
exports.registerAreaPercent = __webpack_exports__.registerAreaPercent;
|
@@ -8487,8 +8678,18 @@ exports.registerRose = __webpack_exports__.registerRose;
|
|
8487
8678
|
exports.registerRoseParallel = __webpack_exports__.registerRoseParallel;
|
8488
8679
|
exports.registerScatter = __webpack_exports__.registerScatter;
|
8489
8680
|
exports.registerTable = __webpack_exports__.registerTable;
|
8681
|
+
exports.roseAdvancedPipeline = __webpack_exports__.roseAdvancedPipeline;
|
8682
|
+
exports.roseParallelAdvancedPipeline = __webpack_exports__.roseParallelAdvancedPipeline;
|
8683
|
+
exports.roseParallelSpecPipeline = __webpack_exports__.roseParallelSpecPipeline;
|
8684
|
+
exports.roseSpecPipeline = __webpack_exports__.roseSpecPipeline;
|
8685
|
+
exports.scatterAdvancedPipeline = __webpack_exports__.scatterAdvancedPipeline;
|
8686
|
+
exports.scatterSpecPipeline = __webpack_exports__.scatterSpecPipeline;
|
8490
8687
|
exports.selector = __webpack_exports__.selector;
|
8688
|
+
exports.tableAdvancedPipeline = __webpack_exports__.tableAdvancedPipeline;
|
8689
|
+
exports.tableSpecPipeline = __webpack_exports__.tableSpecPipeline;
|
8491
8690
|
exports.unfoldDimensions = __webpack_exports__.unfoldDimensions;
|
8691
|
+
exports.updateAdvanced = __webpack_exports__.updateAdvanced;
|
8692
|
+
exports.updateSpec = __webpack_exports__.updateSpec;
|
8492
8693
|
exports.zAdvancedVSeed = __webpack_exports__.zAdvancedVSeed;
|
8493
8694
|
exports.zAnalysis = __webpack_exports__.zAnalysis;
|
8494
8695
|
exports.zAnnotation = __webpack_exports__.zAnnotation;
|
@@ -8568,7 +8769,7 @@ exports.zRoseParallel = __webpack_exports__.zRoseParallel;
|
|
8568
8769
|
exports.zRoseParallelConfig = __webpack_exports__.zRoseParallelConfig;
|
8569
8770
|
exports.zScatter = __webpack_exports__.zScatter;
|
8570
8771
|
exports.zScatterConfig = __webpack_exports__.zScatterConfig;
|
8571
|
-
exports.
|
8772
|
+
exports.zSort = __webpack_exports__.zSort;
|
8572
8773
|
exports.zSortLegend = __webpack_exports__.zSortLegend;
|
8573
8774
|
exports.zStackCornerRadius = __webpack_exports__.zStackCornerRadius;
|
8574
8775
|
exports.zTable = __webpack_exports__.zTable;
|
@@ -8590,8 +8791,26 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8590
8791
|
"Separator",
|
8591
8792
|
"UnfoldDimensionGroup",
|
8592
8793
|
"UnfoldDimensionGroupId",
|
8794
|
+
"areaAdvancedPipeline",
|
8795
|
+
"areaPercentAdvancedPipeline",
|
8796
|
+
"areaPercentSpecPipeline",
|
8797
|
+
"areaRangeAdvancedPipeline",
|
8798
|
+
"areaRangeSpecPipeline",
|
8799
|
+
"areaSpecPipeline",
|
8593
8800
|
"autoFormatter",
|
8594
8801
|
"autoNumFormatter",
|
8802
|
+
"barAdvancedPipeline",
|
8803
|
+
"barParallelAdvancedPipeline",
|
8804
|
+
"barParallelSpecPipeline",
|
8805
|
+
"barPercentAdvancedPipeline",
|
8806
|
+
"barPercentSpecPipeline",
|
8807
|
+
"barSpecPipeline",
|
8808
|
+
"columnAdvancedPipeline",
|
8809
|
+
"columnParallelAdvancedPipeline",
|
8810
|
+
"columnParallelSpecPipeline",
|
8811
|
+
"columnPercentAdvancedPipeline",
|
8812
|
+
"columnPercentSpecPipeline",
|
8813
|
+
"columnSpecPipeline",
|
8595
8814
|
"createFormatter",
|
8596
8815
|
"createNumFormatter",
|
8597
8816
|
"darkTheme",
|
@@ -8600,6 +8819,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8600
8819
|
"dataReshapeFor1D2M",
|
8601
8820
|
"dataReshapeFor2D1M",
|
8602
8821
|
"dataReshapeFor2D1M0Name",
|
8822
|
+
"donutAdvancedPipeline",
|
8823
|
+
"donutSpecPipeline",
|
8603
8824
|
"execPipeline",
|
8604
8825
|
"findAllDimensions",
|
8605
8826
|
"findAllMeasures",
|
@@ -8608,6 +8829,10 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8608
8829
|
"findFirstMeasure",
|
8609
8830
|
"findMeasureById",
|
8610
8831
|
"foldMeasures",
|
8832
|
+
"funnelAdvancedPipeline",
|
8833
|
+
"funnelSpecPipeline",
|
8834
|
+
"heatmapAdvancedPipeline",
|
8835
|
+
"heatmapSpecPipeline",
|
8611
8836
|
"i18n",
|
8612
8837
|
"intl",
|
8613
8838
|
"isDimensionSelector",
|
@@ -8620,7 +8845,15 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8620
8845
|
"isVTable",
|
8621
8846
|
"isValueSelector",
|
8622
8847
|
"lightTheme",
|
8848
|
+
"lineAdvancedPipeline",
|
8849
|
+
"lineSpecPipeline",
|
8850
|
+
"pieAdvancedPipeline",
|
8851
|
+
"pieSpecPipeline",
|
8852
|
+
"pivotTableAdvancedPipeline",
|
8853
|
+
"pivotTableSpecPipeline",
|
8623
8854
|
"preorderTraverse",
|
8855
|
+
"radarAdvancedPipeline",
|
8856
|
+
"radarSpecPipeline",
|
8624
8857
|
"registerAll",
|
8625
8858
|
"registerArea",
|
8626
8859
|
"registerAreaPercent",
|
@@ -8645,8 +8878,18 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8645
8878
|
"registerRoseParallel",
|
8646
8879
|
"registerScatter",
|
8647
8880
|
"registerTable",
|
8881
|
+
"roseAdvancedPipeline",
|
8882
|
+
"roseParallelAdvancedPipeline",
|
8883
|
+
"roseParallelSpecPipeline",
|
8884
|
+
"roseSpecPipeline",
|
8885
|
+
"scatterAdvancedPipeline",
|
8886
|
+
"scatterSpecPipeline",
|
8648
8887
|
"selector",
|
8888
|
+
"tableAdvancedPipeline",
|
8889
|
+
"tableSpecPipeline",
|
8649
8890
|
"unfoldDimensions",
|
8891
|
+
"updateAdvanced",
|
8892
|
+
"updateSpec",
|
8650
8893
|
"zAdvancedVSeed",
|
8651
8894
|
"zAnalysis",
|
8652
8895
|
"zAnnotation",
|
@@ -8726,7 +8969,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8726
8969
|
"zRoseParallelConfig",
|
8727
8970
|
"zScatter",
|
8728
8971
|
"zScatterConfig",
|
8729
|
-
"
|
8972
|
+
"zSort",
|
8730
8973
|
"zSortLegend",
|
8731
8974
|
"zStackCornerRadius",
|
8732
8975
|
"zTable",
|