@visactor/vseed 0.4.21 → 0.4.22
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/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/buildSpec.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/circlePacking.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/circlePacking.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/sunburst.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/sunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/treeMap.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/treeMap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +16 -4
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.js +17 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/index.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/bottomFrozenStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bottomFrozenStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
- package/dist/esm/theme/common/table.d.ts +6 -0
- package/dist/esm/theme/dark/area.d.ts +6 -0
- package/dist/esm/theme/dark/bar.d.ts +9 -0
- package/dist/esm/theme/dark/boxPlot.d.ts +3 -0
- package/dist/esm/theme/dark/column.d.ts +9 -0
- package/dist/esm/theme/dark/dualAxis.d.ts +3 -0
- package/dist/esm/theme/dark/funnel.d.ts +3 -0
- package/dist/esm/theme/dark/heatmap.d.ts +3 -0
- package/dist/esm/theme/dark/hierarchy.d.ts +9 -0
- package/dist/esm/theme/dark/histogram.d.ts +3 -0
- package/dist/esm/theme/dark/line.d.ts +3 -0
- package/dist/esm/theme/dark/pie.d.ts +6 -0
- package/dist/esm/theme/dark/race.d.ts +9 -0
- package/dist/esm/theme/dark/raceLine.d.ts +3 -0
- package/dist/esm/theme/dark/racePie.d.ts +6 -0
- package/dist/esm/theme/dark/radar.d.ts +3 -0
- package/dist/esm/theme/dark/rose.d.ts +6 -0
- package/dist/esm/theme/dark/scatter.d.ts +3 -0
- package/dist/esm/theme/index.d.ts +2 -0
- package/dist/esm/theme/index.js +2 -1
- package/dist/esm/theme/light/area.d.ts +6 -0
- package/dist/esm/theme/light/bar.d.ts +9 -0
- package/dist/esm/theme/light/boxPlot.d.ts +3 -0
- package/dist/esm/theme/light/column.d.ts +9 -0
- package/dist/esm/theme/light/dualAxis.d.ts +3 -0
- package/dist/esm/theme/light/funnel.d.ts +3 -0
- package/dist/esm/theme/light/heatmap.d.ts +3 -0
- package/dist/esm/theme/light/hierarchy.d.ts +9 -0
- package/dist/esm/theme/light/histogram.d.ts +3 -0
- package/dist/esm/theme/light/line.d.ts +3 -0
- package/dist/esm/theme/light/pie.d.ts +6 -0
- package/dist/esm/theme/light/race.d.ts +9 -0
- package/dist/esm/theme/light/raceLine.d.ts +3 -0
- package/dist/esm/theme/light/racePie.d.ts +6 -0
- package/dist/esm/theme/light/radar.d.ts +3 -0
- package/dist/esm/theme/light/rose.d.ts +6 -0
- package/dist/esm/theme/light/scatter.d.ts +3 -0
- package/dist/esm/theme/tokenTheme.d.ts +54 -0
- package/dist/esm/theme/tokenTheme.js +243 -0
- package/dist/esm/theme/tokenTheme.js.map +1 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +2 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +2 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +2 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +2 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +2 -0
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +2 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +2 -0
- package/dist/esm/types/properties/config/area.d.ts +6 -0
- package/dist/esm/types/properties/config/bar.d.ts +9 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +3 -0
- package/dist/esm/types/properties/config/circlePacking.d.ts +3 -0
- package/dist/esm/types/properties/config/column.d.ts +9 -0
- package/dist/esm/types/properties/config/config.d.ts +103 -0
- package/dist/esm/types/properties/config/dualAxis.d.ts +3 -0
- package/dist/esm/types/properties/config/funnel.d.ts +3 -0
- package/dist/esm/types/properties/config/heatmap.d.ts +3 -0
- package/dist/esm/types/properties/config/histogram.d.ts +3 -0
- package/dist/esm/types/properties/config/line.d.ts +3 -0
- package/dist/esm/types/properties/config/pie.d.ts +9 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +3 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +4 -1
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
- package/dist/esm/types/properties/config/pivotTable.d.ts +2 -0
- package/dist/esm/types/properties/config/player/player.d.ts +8 -0
- package/dist/esm/types/properties/config/player/zPlayer.d.ts +2 -0
- package/dist/esm/types/properties/config/player/zPlayer.js +2 -0
- package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -1
- package/dist/esm/types/properties/config/race.d.ts +30 -0
- package/dist/esm/types/properties/config/rose.d.ts +6 -0
- package/dist/esm/types/properties/config/scatter.d.ts +3 -0
- package/dist/esm/types/properties/config/sunburst.d.ts +3 -0
- package/dist/esm/types/properties/config/table.d.ts +2 -0
- package/dist/esm/types/properties/config/table.js +2 -0
- package/dist/esm/types/properties/config/table.js.map +1 -1
- package/dist/esm/types/properties/config/treeMap.d.ts +3 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +206 -0
- package/dist/umd/index.js +357 -17
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -1037,10 +1037,10 @@
|
|
|
1037
1037
|
DimensionEncodingEnum: ()=>DimensionEncodingEnum,
|
|
1038
1038
|
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
|
1039
1039
|
zPartialSelector: ()=>zPartialSelector,
|
|
1040
|
+
registerTokenThemes: ()=>registerTokenThemes,
|
|
1040
1041
|
zColumnParallel: ()=>zColumnParallel,
|
|
1041
1042
|
zDimensions: ()=>zDimensions,
|
|
1042
1043
|
zLegend: ()=>zLegend,
|
|
1043
|
-
zSelector: ()=>zSelector,
|
|
1044
1044
|
LINEAR_AXIS_INNER_OFFSET_TOP: ()=>12,
|
|
1045
1045
|
replaceNullToUndefined: ()=>replaceNullToUndefined,
|
|
1046
1046
|
zHeatmap: ()=>zHeatmap,
|
|
@@ -1049,6 +1049,7 @@
|
|
|
1049
1049
|
zAnnotationVerticalLineConfig: ()=>zAnnotationVerticalLineConfig,
|
|
1050
1050
|
zBoxPlotStyle: ()=>zBoxPlotStyle,
|
|
1051
1051
|
zHistogram: ()=>zHistogram,
|
|
1052
|
+
zSelector: ()=>zSelector,
|
|
1052
1053
|
sunburstAdvancedPipeline: ()=>sunburstAdvancedPipeline,
|
|
1053
1054
|
zAnnotationConfig: ()=>zAnnotationConfig,
|
|
1054
1055
|
registerBarPercent: ()=>registerBarPercent,
|
|
@@ -1237,12 +1238,13 @@
|
|
|
1237
1238
|
registerLightTheme: ()=>registerLightTheme,
|
|
1238
1239
|
selectByDmension: ()=>selectByDmension,
|
|
1239
1240
|
zPivotTable: ()=>zPivotTable,
|
|
1240
|
-
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
|
1241
1241
|
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
|
1242
1242
|
isDimensionGroup: ()=>isDimensionGroup,
|
|
1243
|
+
registerPivotTable: ()=>registerPivotTable,
|
|
1243
1244
|
pieSpecPipeline: ()=>pieSpecPipeline,
|
|
1244
1245
|
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
|
1245
|
-
|
|
1246
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
|
1247
|
+
createTokenThemeConfig: ()=>createTokenThemeConfig,
|
|
1246
1248
|
barSpecPipeline: ()=>barSpecPipeline,
|
|
1247
1249
|
isDynamicFilter: ()=>isDynamicFilter,
|
|
1248
1250
|
unfoldDimensions: ()=>unfoldDimensions,
|
|
@@ -1274,9 +1276,9 @@
|
|
|
1274
1276
|
a: ()=>i18n_a,
|
|
1275
1277
|
createNumFormatter: ()=>createNumFormatter,
|
|
1276
1278
|
HAS_BUILTIN_UTILS: ()=>HAS_BUILTIN_UTILS,
|
|
1279
|
+
registerTokenTheme: ()=>registerTokenTheme,
|
|
1277
1280
|
zAreaConfig: ()=>zAreaConfig,
|
|
1278
1281
|
zTable: ()=>zTable,
|
|
1279
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
|
1280
1282
|
zPage: ()=>zPage,
|
|
1281
1283
|
zLine: ()=>zLine,
|
|
1282
1284
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
|
@@ -1308,6 +1310,7 @@
|
|
|
1308
1310
|
zColumn: ()=>zColumn,
|
|
1309
1311
|
zCustomTheme: ()=>zCustomTheme,
|
|
1310
1312
|
zTableConfig: ()=>zTableConfig,
|
|
1313
|
+
zUnfoldInfo: ()=>zUnfoldInfo,
|
|
1311
1314
|
executeDynamicFilter: ()=>executeDynamicFilter,
|
|
1312
1315
|
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
|
1313
1316
|
zBarGapInGroup: ()=>zBarGapInGroup,
|
|
@@ -4179,6 +4182,7 @@ self.R = R;
|
|
|
4179
4182
|
const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
|
|
4180
4183
|
const fontColor = themeConfig.bodyFontColor || '#1B1F23';
|
|
4181
4184
|
const fontSize = themeConfig.bodyFontSize || 12;
|
|
4185
|
+
const fontFamily = themeConfig.bodyFontFamily;
|
|
4182
4186
|
const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff';
|
|
4183
4187
|
const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff';
|
|
4184
4188
|
if (!result.theme) result.theme = {};
|
|
@@ -4199,6 +4203,7 @@ self.R = R;
|
|
|
4199
4203
|
},
|
|
4200
4204
|
color: fontColor,
|
|
4201
4205
|
fontSize: fontSize,
|
|
4206
|
+
fontFamily: fontFamily,
|
|
4202
4207
|
fontStyle: 'normal',
|
|
4203
4208
|
fontWeight: 'normal',
|
|
4204
4209
|
fontVariant: 'normal',
|
|
@@ -4219,6 +4224,7 @@ self.R = R;
|
|
|
4219
4224
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
4220
4225
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
4221
4226
|
const fontSize = themConfig.headerFontSize || 12;
|
|
4227
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
4222
4228
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
|
4223
4229
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
|
4224
4230
|
result.theme.headerStyle = {
|
|
@@ -4246,6 +4252,7 @@ self.R = R;
|
|
|
4246
4252
|
]
|
|
4247
4253
|
},
|
|
4248
4254
|
fontSize: fontSize,
|
|
4255
|
+
fontFamily: fontFamily,
|
|
4249
4256
|
fontVariant: 'normal',
|
|
4250
4257
|
fontStyle: 'normal',
|
|
4251
4258
|
fontWeight: 'bold',
|
|
@@ -4267,6 +4274,7 @@ self.R = R;
|
|
|
4267
4274
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
4268
4275
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
4269
4276
|
const fontSize = themConfig.headerFontSize || 12;
|
|
4277
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
4270
4278
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
|
4271
4279
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
|
4272
4280
|
result.theme.bottomFrozenStyle = {
|
|
@@ -4294,6 +4302,7 @@ self.R = R;
|
|
|
4294
4302
|
]
|
|
4295
4303
|
},
|
|
4296
4304
|
fontSize,
|
|
4305
|
+
fontFamily,
|
|
4297
4306
|
fontVariant: 'normal',
|
|
4298
4307
|
fontStyle: 'normal',
|
|
4299
4308
|
fontWeight: 'bold',
|
|
@@ -4763,6 +4772,7 @@ self.R = R;
|
|
|
4763
4772
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
4764
4773
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
4765
4774
|
const fontSize = themConfig.headerFontSize || 12;
|
|
4775
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
4766
4776
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
|
4767
4777
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
|
4768
4778
|
result.theme.rowHeaderStyle = {
|
|
@@ -4790,6 +4800,7 @@ self.R = R;
|
|
|
4790
4800
|
]
|
|
4791
4801
|
},
|
|
4792
4802
|
fontSize: fontSize,
|
|
4803
|
+
fontFamily: fontFamily,
|
|
4793
4804
|
fontVariant: 'normal',
|
|
4794
4805
|
fontStyle: 'normal',
|
|
4795
4806
|
fontWeight: 'bold',
|
|
@@ -4811,6 +4822,7 @@ self.R = R;
|
|
|
4811
4822
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
4812
4823
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
4813
4824
|
const fontSize = themConfig.headerFontSize || 12;
|
|
4825
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
4814
4826
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor;
|
|
4815
4827
|
const hoverCellColor = themConfig.hoverHeaderBackgroundColor;
|
|
4816
4828
|
result.theme.cornerHeaderStyle = {
|
|
@@ -4841,6 +4853,7 @@ self.R = R;
|
|
|
4841
4853
|
]
|
|
4842
4854
|
},
|
|
4843
4855
|
fontSize: fontSize,
|
|
4856
|
+
fontFamily: fontFamily,
|
|
4844
4857
|
fontVariant: 'normal',
|
|
4845
4858
|
fontStyle: 'normal',
|
|
4846
4859
|
fontWeight: 'bold',
|
|
@@ -5638,6 +5651,20 @@ self.R = R;
|
|
|
5638
5651
|
markStyle_markStyle,
|
|
5639
5652
|
annotation_annotation
|
|
5640
5653
|
];
|
|
5654
|
+
const fontFamilyTheme = (spec, context)=>{
|
|
5655
|
+
const result = {
|
|
5656
|
+
...spec
|
|
5657
|
+
};
|
|
5658
|
+
const { advancedVSeed } = context;
|
|
5659
|
+
const chartConfig = advancedVSeed.config?.[advancedVSeed.chartType] || {};
|
|
5660
|
+
if (!chartConfig.fontFamily) return result;
|
|
5661
|
+
const theme = 'object' != typeof result.theme || null === result.theme || Array.isArray(result.theme) ? {} : result.theme;
|
|
5662
|
+
result.theme = {
|
|
5663
|
+
...theme,
|
|
5664
|
+
fontFamily: chartConfig.fontFamily
|
|
5665
|
+
};
|
|
5666
|
+
return result;
|
|
5667
|
+
};
|
|
5641
5668
|
const initLine = (spec, context)=>{
|
|
5642
5669
|
const result = {
|
|
5643
5670
|
...spec
|
|
@@ -7989,14 +8016,18 @@ self.R = R;
|
|
|
7989
8016
|
const pivotGridStyle = (spec, context)=>{
|
|
7990
8017
|
const { vseed, advancedVSeed } = context;
|
|
7991
8018
|
const { config, chartType } = advancedVSeed;
|
|
7992
|
-
const
|
|
8019
|
+
const chartConfig = config?.[chartType] ?? {};
|
|
8020
|
+
const themConfig = chartConfig?.pivotGrid ?? {};
|
|
8021
|
+
const fontFamily = chartConfig?.fontFamily;
|
|
7993
8022
|
const onlyCombination = !chatType_isPivot(vseed) && isCombination(vseed);
|
|
7994
8023
|
const result = {
|
|
7995
8024
|
...spec
|
|
7996
8025
|
};
|
|
7997
8026
|
const transparent = 'rgba(0,0,0,0)';
|
|
7998
8027
|
const borderColor = themConfig.borderColor ?? '#e3e5eb';
|
|
8028
|
+
const bodyFontSize = themConfig.bodyFontSize ?? 12;
|
|
7999
8029
|
const bodyFontColor = themConfig.bodyFontColor ?? '#141414';
|
|
8030
|
+
const headerFontSize = themConfig.headerFontSize ?? 12;
|
|
8000
8031
|
const headerFontColor = themConfig.headerFontColor ?? '#21252c';
|
|
8001
8032
|
const headerBackgroundColor = themConfig.headerBackgroundColor ?? 'rgba(0,0,0,0)';
|
|
8002
8033
|
const hoverHeaderBackgroundColor = onlyCombination ? transparent : themConfig.hoverHeaderBackgroundColor ?? '#D9DDE4';
|
|
@@ -8012,6 +8043,8 @@ self.R = R;
|
|
|
8012
8043
|
bodyStyle: {
|
|
8013
8044
|
borderColor,
|
|
8014
8045
|
color: bodyFontColor,
|
|
8046
|
+
fontSize: bodyFontSize,
|
|
8047
|
+
fontFamily,
|
|
8015
8048
|
borderLineWidth: (arg)=>{
|
|
8016
8049
|
const noYAxis = 'pie' === chartType || 'rose' === chartType || 'donut' === chartType || 'radar' === chartType || 'roseParallel' === chartType;
|
|
8017
8050
|
return [
|
|
@@ -8028,7 +8061,8 @@ self.R = R;
|
|
|
8028
8061
|
},
|
|
8029
8062
|
headerStyle: {
|
|
8030
8063
|
borderColor,
|
|
8031
|
-
fontSize:
|
|
8064
|
+
fontSize: headerFontSize,
|
|
8065
|
+
fontFamily,
|
|
8032
8066
|
borderLineWidth: (arg)=>[
|
|
8033
8067
|
outlineBorderLineWidth,
|
|
8034
8068
|
outlineBorderLineWidth,
|
|
@@ -8046,7 +8080,8 @@ self.R = R;
|
|
|
8046
8080
|
},
|
|
8047
8081
|
rowHeaderStyle: {
|
|
8048
8082
|
borderColor,
|
|
8049
|
-
fontSize:
|
|
8083
|
+
fontSize: headerFontSize,
|
|
8084
|
+
fontFamily,
|
|
8050
8085
|
color: headerFontColor,
|
|
8051
8086
|
padding: [
|
|
8052
8087
|
0,
|
|
@@ -8070,7 +8105,8 @@ self.R = R;
|
|
|
8070
8105
|
cornerHeaderStyle: {
|
|
8071
8106
|
borderColor,
|
|
8072
8107
|
textAlign: 'center',
|
|
8073
|
-
fontSize:
|
|
8108
|
+
fontSize: headerFontSize,
|
|
8109
|
+
fontFamily,
|
|
8074
8110
|
color: headerFontColor,
|
|
8075
8111
|
padding: [
|
|
8076
8112
|
0,
|
|
@@ -8175,6 +8211,9 @@ self.R = R;
|
|
|
8175
8211
|
},
|
|
8176
8212
|
bottomFrozenStyle: {
|
|
8177
8213
|
borderColor,
|
|
8214
|
+
fontSize: headerFontSize,
|
|
8215
|
+
color: headerFontColor,
|
|
8216
|
+
fontFamily,
|
|
8178
8217
|
borderLineWidth: [
|
|
8179
8218
|
1,
|
|
8180
8219
|
outlineBorderLineWidth,
|
|
@@ -8316,6 +8355,7 @@ self.R = R;
|
|
|
8316
8355
|
};
|
|
8317
8356
|
if (themConfig.chartGridColor && axis.grid && axis.grid.visible && axis.grid.style) axis.grid.style.stroke = themConfig.chartGridColor;
|
|
8318
8357
|
if (themConfig.axisLabelColor && axis.label && axis.label.visible && axis.label.style) axis.label.style.fill = themConfig.axisLabelColor;
|
|
8358
|
+
if (themConfig.axisLabelFontSize && axis.label && axis.label.visible && axis.label.style) axis.label.style.fontSize = themConfig.axisLabelFontSize;
|
|
8319
8359
|
if ('band' === axis.type) {
|
|
8320
8360
|
if ('left' === axis.orient || 'right' === axis.orient) {
|
|
8321
8361
|
axis.innerOffset = {
|
|
@@ -8671,6 +8711,7 @@ self.R = R;
|
|
|
8671
8711
|
return adapted;
|
|
8672
8712
|
};
|
|
8673
8713
|
const line_line = [
|
|
8714
|
+
fontFamilyTheme,
|
|
8674
8715
|
initLine,
|
|
8675
8716
|
colorAdapter(color_color, linearColor),
|
|
8676
8717
|
background_backgroundColor,
|
|
@@ -8700,6 +8741,7 @@ self.R = R;
|
|
|
8700
8741
|
pivotIndicatorsAsRow,
|
|
8701
8742
|
datasetPivot,
|
|
8702
8743
|
pivotIndicators_pivotIndicators([
|
|
8744
|
+
fontFamilyTheme,
|
|
8703
8745
|
initLine,
|
|
8704
8746
|
colorAdapter(color_color, linearColor),
|
|
8705
8747
|
background_backgroundColor,
|
|
@@ -9698,6 +9740,7 @@ self.R = R;
|
|
|
9698
9740
|
return result;
|
|
9699
9741
|
};
|
|
9700
9742
|
const column_column = [
|
|
9743
|
+
fontFamilyTheme,
|
|
9701
9744
|
initColumn,
|
|
9702
9745
|
stackCornerRadius_stackCornerRadius,
|
|
9703
9746
|
barMaxWidth_barMaxWidth,
|
|
@@ -9728,6 +9771,7 @@ self.R = R;
|
|
|
9728
9771
|
pivotIndicatorsAsRow,
|
|
9729
9772
|
datasetPivot,
|
|
9730
9773
|
pivotIndicators_pivotIndicators([
|
|
9774
|
+
fontFamilyTheme,
|
|
9731
9775
|
initColumn,
|
|
9732
9776
|
stackCornerRadius_stackCornerRadius,
|
|
9733
9777
|
barMaxWidth_barMaxWidth,
|
|
@@ -9911,6 +9955,7 @@ self.R = R;
|
|
|
9911
9955
|
return spec;
|
|
9912
9956
|
};
|
|
9913
9957
|
const columnParallel = [
|
|
9958
|
+
fontFamilyTheme,
|
|
9914
9959
|
initColumnParallel,
|
|
9915
9960
|
stackCornerRadius_stackCornerRadius,
|
|
9916
9961
|
barMaxWidth_barMaxWidth,
|
|
@@ -9940,6 +9985,7 @@ self.R = R;
|
|
|
9940
9985
|
pivotIndicatorsAsRow,
|
|
9941
9986
|
datasetPivot,
|
|
9942
9987
|
pivotIndicators_pivotIndicators([
|
|
9988
|
+
fontFamilyTheme,
|
|
9943
9989
|
initColumnParallel,
|
|
9944
9990
|
stackCornerRadius_stackCornerRadius,
|
|
9945
9991
|
barMaxWidth_barMaxWidth,
|
|
@@ -10014,6 +10060,7 @@ self.R = R;
|
|
|
10014
10060
|
return result;
|
|
10015
10061
|
};
|
|
10016
10062
|
const columnPercent = [
|
|
10063
|
+
fontFamilyTheme,
|
|
10017
10064
|
initColumn,
|
|
10018
10065
|
stackCornerRadius_stackCornerRadius,
|
|
10019
10066
|
stackInverse,
|
|
@@ -10044,6 +10091,7 @@ self.R = R;
|
|
|
10044
10091
|
pivotIndicatorsAsRow,
|
|
10045
10092
|
datasetPivot,
|
|
10046
10093
|
pivotIndicators_pivotIndicators([
|
|
10094
|
+
fontFamilyTheme,
|
|
10047
10095
|
initColumn,
|
|
10048
10096
|
stackCornerRadius_stackCornerRadius,
|
|
10049
10097
|
stackInverse,
|
|
@@ -10392,6 +10440,7 @@ self.R = R;
|
|
|
10392
10440
|
return result;
|
|
10393
10441
|
};
|
|
10394
10442
|
const bar = [
|
|
10443
|
+
fontFamilyTheme,
|
|
10395
10444
|
initBar,
|
|
10396
10445
|
stackCornerRadius_stackCornerRadius,
|
|
10397
10446
|
barMaxWidth_barMaxWidth,
|
|
@@ -10420,6 +10469,7 @@ self.R = R;
|
|
|
10420
10469
|
pivotIndicatorsAsCol,
|
|
10421
10470
|
datasetPivot,
|
|
10422
10471
|
pivotIndicators_pivotIndicators([
|
|
10472
|
+
fontFamilyTheme,
|
|
10423
10473
|
initBar,
|
|
10424
10474
|
stackCornerRadius_stackCornerRadius,
|
|
10425
10475
|
barMaxWidth_barMaxWidth,
|
|
@@ -10587,6 +10637,8 @@ self.R = R;
|
|
|
10587
10637
|
const result = datasetYX(spec, context);
|
|
10588
10638
|
if (!baseConfig || !baseConfig.player) return result;
|
|
10589
10639
|
const { player } = baseConfig;
|
|
10640
|
+
const fontFamily = player.fontFamily || baseConfig.fontFamily;
|
|
10641
|
+
const textSize = player.fontSize ?? 36;
|
|
10590
10642
|
const id = datasetReshapeInfo[0].id;
|
|
10591
10643
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
|
10592
10644
|
const { encodingPlayer, encodingY } = unfoldInfo;
|
|
@@ -10611,7 +10663,6 @@ self.R = R;
|
|
|
10611
10663
|
};
|
|
10612
10664
|
});
|
|
10613
10665
|
const dataKey = dimensions.filter((d)=>!encoding.player?.includes(d.id)).map((d)=>d.id);
|
|
10614
|
-
const textSize = 36;
|
|
10615
10666
|
const padding = 12;
|
|
10616
10667
|
return {
|
|
10617
10668
|
...result,
|
|
@@ -10682,7 +10733,7 @@ self.R = R;
|
|
|
10682
10733
|
textBaseline: 'bottom',
|
|
10683
10734
|
fontSize: textSize,
|
|
10684
10735
|
textAlign: 'right',
|
|
10685
|
-
fontFamily
|
|
10736
|
+
fontFamily,
|
|
10686
10737
|
fontWeight: 600,
|
|
10687
10738
|
text: (datum)=>datum[encodingPlayer],
|
|
10688
10739
|
x: (_datum, ctx)=>ctx.vchart.getChart().getCanvasRect()?.width - padding,
|
|
@@ -10758,6 +10809,7 @@ self.R = R;
|
|
|
10758
10809
|
};
|
|
10759
10810
|
};
|
|
10760
10811
|
const raceBar = [
|
|
10812
|
+
fontFamilyTheme,
|
|
10761
10813
|
initBar,
|
|
10762
10814
|
stackCornerRadius_stackCornerRadius,
|
|
10763
10815
|
barMaxWidth_barMaxWidth,
|
|
@@ -10895,6 +10947,8 @@ self.R = R;
|
|
|
10895
10947
|
const result = datasetXY(spec, context);
|
|
10896
10948
|
if (!baseConfig || !baseConfig.player) return result;
|
|
10897
10949
|
const { player } = baseConfig;
|
|
10950
|
+
const fontFamily = player.fontFamily || baseConfig.fontFamily;
|
|
10951
|
+
const textSize = player.fontSize ?? 36;
|
|
10898
10952
|
const id = datasetReshapeInfo[0].id;
|
|
10899
10953
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
|
10900
10954
|
const { encodingPlayer, encodingX } = unfoldInfo;
|
|
@@ -10919,7 +10973,6 @@ self.R = R;
|
|
|
10919
10973
|
const duration = interval;
|
|
10920
10974
|
const exchangeDuration = 0.6 * interval;
|
|
10921
10975
|
const dataKey = dimensions.filter((d)=>!encoding.player?.includes(d.id)).map((d)=>d.id);
|
|
10922
|
-
const textSize = 36;
|
|
10923
10976
|
const padding = 12;
|
|
10924
10977
|
return {
|
|
10925
10978
|
...result,
|
|
@@ -11009,6 +11062,7 @@ self.R = R;
|
|
|
11009
11062
|
textBaseline: 'bottom',
|
|
11010
11063
|
fontSize: textSize,
|
|
11011
11064
|
textAlign: 'right',
|
|
11065
|
+
fontFamily,
|
|
11012
11066
|
text: (datum)=>datum[encodingPlayer],
|
|
11013
11067
|
x: (_datum, ctx)=>ctx.vchart.getChart().getCanvasRect()?.width - padding,
|
|
11014
11068
|
y: (_datum, _ctx)=>textSize + padding,
|
|
@@ -11083,6 +11137,7 @@ self.R = R;
|
|
|
11083
11137
|
};
|
|
11084
11138
|
};
|
|
11085
11139
|
const raceColumn = [
|
|
11140
|
+
fontFamilyTheme,
|
|
11086
11141
|
initColumn,
|
|
11087
11142
|
stackCornerRadius_stackCornerRadius,
|
|
11088
11143
|
barMaxWidth_barMaxWidth,
|
|
@@ -11472,6 +11527,8 @@ self.R = R;
|
|
|
11472
11527
|
const result = datasetScatter(spec, context);
|
|
11473
11528
|
if (!baseConfig || !baseConfig.player) return result;
|
|
11474
11529
|
const { player } = baseConfig;
|
|
11530
|
+
const fontFamily = player.fontFamily || baseConfig.fontFamily;
|
|
11531
|
+
const textSize = player.fontSize ?? 36;
|
|
11475
11532
|
const id = datasetReshapeInfo[0].id;
|
|
11476
11533
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
|
11477
11534
|
const { encodingPlayer } = unfoldInfo;
|
|
@@ -11489,7 +11546,6 @@ self.R = R;
|
|
|
11489
11546
|
const exchangeDuration = 0.6 * interval;
|
|
11490
11547
|
const dataKey = dimensions.filter((d)=>!encoding.player?.includes(d.id)).map((d)=>d.id);
|
|
11491
11548
|
const padding = 12;
|
|
11492
|
-
const textSize = 36;
|
|
11493
11549
|
return {
|
|
11494
11550
|
...result,
|
|
11495
11551
|
dataKey,
|
|
@@ -11562,7 +11618,7 @@ self.R = R;
|
|
|
11562
11618
|
textBaseline: 'bottom',
|
|
11563
11619
|
fontSize: textSize,
|
|
11564
11620
|
textAlign: 'right',
|
|
11565
|
-
fontFamily
|
|
11621
|
+
fontFamily,
|
|
11566
11622
|
fontWeight: 600,
|
|
11567
11623
|
text: (datum)=>datum[encodingPlayer],
|
|
11568
11624
|
x: (datum, ctx)=>ctx.vchart.getChart().getCanvasRect()?.width - padding,
|
|
@@ -12255,6 +12311,7 @@ self.R = R;
|
|
|
12255
12311
|
}), (lineConfig)=>(lineConfig.degree ?? 2) + 1);
|
|
12256
12312
|
const logisticRegressionLine = generateRegressionLinePipe('logisticRegressionLine', regressionLogistic, getDefaultRegressionOptions);
|
|
12257
12313
|
const raceScatter = [
|
|
12314
|
+
fontFamilyTheme,
|
|
12258
12315
|
initScatter,
|
|
12259
12316
|
colorAdapter(color_color, linearColor),
|
|
12260
12317
|
background_backgroundColor,
|
|
@@ -12539,6 +12596,7 @@ self.R = R;
|
|
|
12539
12596
|
};
|
|
12540
12597
|
};
|
|
12541
12598
|
const raceLine = [
|
|
12599
|
+
fontFamilyTheme,
|
|
12542
12600
|
initLine,
|
|
12543
12601
|
colorAdapter(color_color, linearColor),
|
|
12544
12602
|
background_backgroundColor,
|
|
@@ -12688,6 +12746,8 @@ self.R = R;
|
|
|
12688
12746
|
const result = datasetXY(spec, context);
|
|
12689
12747
|
if (!baseConfig || !baseConfig.player) return result;
|
|
12690
12748
|
const { player } = baseConfig;
|
|
12749
|
+
const fontFamily = player.fontFamily || baseConfig.fontFamily;
|
|
12750
|
+
const textSize = player.fontSize ?? 36;
|
|
12691
12751
|
const id = datasetReshapeInfo[0].id;
|
|
12692
12752
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
|
12693
12753
|
const { encodingPlayer } = unfoldInfo;
|
|
@@ -12707,7 +12767,6 @@ self.R = R;
|
|
|
12707
12767
|
const duration = interval;
|
|
12708
12768
|
const exchangeDuration = 0.6 * interval;
|
|
12709
12769
|
const dataKey = dimensions.filter((d)=>!encoding.player?.includes(d.id)).map((d)=>d.id);
|
|
12710
|
-
const textSize = 36;
|
|
12711
12770
|
const padding = 12;
|
|
12712
12771
|
return {
|
|
12713
12772
|
...result,
|
|
@@ -12777,6 +12836,7 @@ self.R = R;
|
|
|
12777
12836
|
textBaseline: 'bottom',
|
|
12778
12837
|
fontSize: textSize,
|
|
12779
12838
|
textAlign: 'right',
|
|
12839
|
+
fontFamily,
|
|
12780
12840
|
text: (datum)=>datum[encodingPlayer],
|
|
12781
12841
|
x: (_datum, ctx)=>ctx.vchart.getChart().getCanvasRect()?.width - padding,
|
|
12782
12842
|
y: (_datum, _ctx)=>textSize + padding,
|
|
@@ -12905,6 +12965,7 @@ self.R = R;
|
|
|
12905
12965
|
return result;
|
|
12906
12966
|
};
|
|
12907
12967
|
const racePie = [
|
|
12968
|
+
fontFamilyTheme,
|
|
12908
12969
|
initPie,
|
|
12909
12970
|
colorAdapter(color_color, linearColor),
|
|
12910
12971
|
background_backgroundColor,
|
|
@@ -13044,6 +13105,7 @@ self.R = R;
|
|
|
13044
13105
|
return result;
|
|
13045
13106
|
};
|
|
13046
13107
|
const raceDonut = [
|
|
13108
|
+
fontFamilyTheme,
|
|
13047
13109
|
initDonut,
|
|
13048
13110
|
colorAdapter(color_color, linearColor),
|
|
13049
13111
|
background_backgroundColor,
|
|
@@ -13127,6 +13189,7 @@ self.R = R;
|
|
|
13127
13189
|
return result;
|
|
13128
13190
|
};
|
|
13129
13191
|
const barParallel = [
|
|
13192
|
+
fontFamilyTheme,
|
|
13130
13193
|
initBarParallel,
|
|
13131
13194
|
stackCornerRadius_stackCornerRadius,
|
|
13132
13195
|
barMaxWidth_barMaxWidth,
|
|
@@ -13156,6 +13219,7 @@ self.R = R;
|
|
|
13156
13219
|
pivotIndicatorsAsCol,
|
|
13157
13220
|
datasetPivot,
|
|
13158
13221
|
pivotIndicators_pivotIndicators([
|
|
13222
|
+
fontFamilyTheme,
|
|
13159
13223
|
initBarParallel,
|
|
13160
13224
|
stackCornerRadius_stackCornerRadius,
|
|
13161
13225
|
barMaxWidth_barMaxWidth,
|
|
@@ -13222,6 +13286,7 @@ self.R = R;
|
|
|
13222
13286
|
annotation_annotation
|
|
13223
13287
|
];
|
|
13224
13288
|
const barPercent = [
|
|
13289
|
+
fontFamilyTheme,
|
|
13225
13290
|
initBar,
|
|
13226
13291
|
stackCornerRadius_stackCornerRadius,
|
|
13227
13292
|
barMaxWidth_barMaxWidth,
|
|
@@ -13251,6 +13316,7 @@ self.R = R;
|
|
|
13251
13316
|
pivotIndicatorsAsCol,
|
|
13252
13317
|
datasetPivot,
|
|
13253
13318
|
pivotIndicators_pivotIndicators([
|
|
13319
|
+
fontFamilyTheme,
|
|
13254
13320
|
initBar,
|
|
13255
13321
|
stackCornerRadius_stackCornerRadius,
|
|
13256
13322
|
barMaxWidth_barMaxWidth,
|
|
@@ -13407,6 +13473,7 @@ self.R = R;
|
|
|
13407
13473
|
};
|
|
13408
13474
|
};
|
|
13409
13475
|
const area_area = [
|
|
13476
|
+
fontFamilyTheme,
|
|
13410
13477
|
initArea,
|
|
13411
13478
|
stackInverse,
|
|
13412
13479
|
colorAdapter(color_color, linearColor),
|
|
@@ -13438,6 +13505,7 @@ self.R = R;
|
|
|
13438
13505
|
pivotIndicatorsAsRow,
|
|
13439
13506
|
datasetPivot,
|
|
13440
13507
|
pivotIndicators_pivotIndicators([
|
|
13508
|
+
fontFamilyTheme,
|
|
13441
13509
|
initArea,
|
|
13442
13510
|
colorAdapter(color_color, linearColor),
|
|
13443
13511
|
background_backgroundColor,
|
|
@@ -13508,6 +13576,7 @@ self.R = R;
|
|
|
13508
13576
|
annotation_annotation
|
|
13509
13577
|
];
|
|
13510
13578
|
const areaPercent = [
|
|
13579
|
+
fontFamilyTheme,
|
|
13511
13580
|
initArea,
|
|
13512
13581
|
stackInverse,
|
|
13513
13582
|
colorAdapter(color_color, linearColor),
|
|
@@ -13539,6 +13608,7 @@ self.R = R;
|
|
|
13539
13608
|
pivotIndicatorsAsRow,
|
|
13540
13609
|
datasetPivot,
|
|
13541
13610
|
pivotIndicators_pivotIndicators([
|
|
13611
|
+
fontFamilyTheme,
|
|
13542
13612
|
initArea,
|
|
13543
13613
|
stackInverse,
|
|
13544
13614
|
colorAdapter(color_color, linearColor),
|
|
@@ -13680,6 +13750,7 @@ self.R = R;
|
|
|
13680
13750
|
regressionLine_regressionLine
|
|
13681
13751
|
];
|
|
13682
13752
|
const scatter = [
|
|
13753
|
+
fontFamilyTheme,
|
|
13683
13754
|
initScatter,
|
|
13684
13755
|
colorAdapter(color_color, linearColor),
|
|
13685
13756
|
background_backgroundColor,
|
|
@@ -13711,6 +13782,7 @@ self.R = R;
|
|
|
13711
13782
|
pivotIndicatorsAsRow,
|
|
13712
13783
|
datasetPivot,
|
|
13713
13784
|
pivotIndicators_pivotIndicators([
|
|
13785
|
+
fontFamilyTheme,
|
|
13714
13786
|
initScatter,
|
|
13715
13787
|
colorAdapter(color_color, linearColor),
|
|
13716
13788
|
background_backgroundColor,
|
|
@@ -14495,6 +14567,7 @@ self.R = R;
|
|
|
14495
14567
|
}
|
|
14496
14568
|
});
|
|
14497
14569
|
const dualAxis = [
|
|
14570
|
+
fontFamilyTheme,
|
|
14498
14571
|
seriesDualAxis([
|
|
14499
14572
|
initDualAxis,
|
|
14500
14573
|
dualChartType,
|
|
@@ -14532,6 +14605,7 @@ self.R = R;
|
|
|
14532
14605
|
pivotIndicatorsAsRow,
|
|
14533
14606
|
datasetPivot,
|
|
14534
14607
|
pivotIndicators_pivotIndicators([
|
|
14608
|
+
fontFamilyTheme,
|
|
14535
14609
|
series_series([
|
|
14536
14610
|
initDualAxis,
|
|
14537
14611
|
dualChartType,
|
|
@@ -14686,6 +14760,7 @@ self.R = R;
|
|
|
14686
14760
|
return result;
|
|
14687
14761
|
};
|
|
14688
14762
|
const pie = [
|
|
14763
|
+
fontFamilyTheme,
|
|
14689
14764
|
initPie,
|
|
14690
14765
|
colorAdapter(color_color, linearColor),
|
|
14691
14766
|
background_backgroundColor,
|
|
@@ -14710,6 +14785,7 @@ self.R = R;
|
|
|
14710
14785
|
pivotHideIndicatorName,
|
|
14711
14786
|
datasetPivot,
|
|
14712
14787
|
pivotIndicators_pivotIndicators([
|
|
14788
|
+
fontFamilyTheme,
|
|
14713
14789
|
initPie,
|
|
14714
14790
|
colorAdapter(color_color, linearColor),
|
|
14715
14791
|
background_backgroundColor,
|
|
@@ -14770,6 +14846,7 @@ self.R = R;
|
|
|
14770
14846
|
annotation_annotation
|
|
14771
14847
|
];
|
|
14772
14848
|
const donut = [
|
|
14849
|
+
fontFamilyTheme,
|
|
14773
14850
|
initDonut,
|
|
14774
14851
|
colorAdapter(color_color, linearColor),
|
|
14775
14852
|
background_backgroundColor,
|
|
@@ -14794,6 +14871,7 @@ self.R = R;
|
|
|
14794
14871
|
pivotHideIndicatorName,
|
|
14795
14872
|
datasetPivot,
|
|
14796
14873
|
pivotIndicators_pivotIndicators([
|
|
14874
|
+
fontFamilyTheme,
|
|
14797
14875
|
initDonut,
|
|
14798
14876
|
addRegionPadding,
|
|
14799
14877
|
colorAdapter(color_color, linearColor),
|
|
@@ -15000,6 +15078,7 @@ self.R = R;
|
|
|
15000
15078
|
};
|
|
15001
15079
|
};
|
|
15002
15080
|
const rose = [
|
|
15081
|
+
fontFamilyTheme,
|
|
15003
15082
|
initRose,
|
|
15004
15083
|
stackCornerRadius_stackCornerRadius,
|
|
15005
15084
|
stackInverse,
|
|
@@ -15023,6 +15102,7 @@ self.R = R;
|
|
|
15023
15102
|
pivotHideIndicatorName,
|
|
15024
15103
|
datasetPivot,
|
|
15025
15104
|
pivotIndicators_pivotIndicators([
|
|
15105
|
+
fontFamilyTheme,
|
|
15026
15106
|
initRose,
|
|
15027
15107
|
addRegionPadding,
|
|
15028
15108
|
stackCornerRadius_stackCornerRadius,
|
|
@@ -15126,6 +15206,7 @@ self.R = R;
|
|
|
15126
15206
|
return result;
|
|
15127
15207
|
};
|
|
15128
15208
|
const roseParallel = [
|
|
15209
|
+
fontFamilyTheme,
|
|
15129
15210
|
initRoseParallel,
|
|
15130
15211
|
stackCornerRadius_stackCornerRadius,
|
|
15131
15212
|
colorAdapter(color_color, linearColor),
|
|
@@ -15152,6 +15233,7 @@ self.R = R;
|
|
|
15152
15233
|
pivotHideIndicatorName,
|
|
15153
15234
|
datasetPivot,
|
|
15154
15235
|
pivotIndicators_pivotIndicators([
|
|
15236
|
+
fontFamilyTheme,
|
|
15155
15237
|
initRoseParallel,
|
|
15156
15238
|
addRegionPadding,
|
|
15157
15239
|
stackCornerRadius_stackCornerRadius,
|
|
@@ -15376,6 +15458,7 @@ self.R = R;
|
|
|
15376
15458
|
return result;
|
|
15377
15459
|
};
|
|
15378
15460
|
const radar = [
|
|
15461
|
+
fontFamilyTheme,
|
|
15379
15462
|
initRadar,
|
|
15380
15463
|
colorAdapter(color_color, linearColor),
|
|
15381
15464
|
background_backgroundColor,
|
|
@@ -15401,6 +15484,7 @@ self.R = R;
|
|
|
15401
15484
|
pivotHideIndicatorName,
|
|
15402
15485
|
datasetPivot,
|
|
15403
15486
|
pivotIndicators_pivotIndicators([
|
|
15487
|
+
fontFamilyTheme,
|
|
15404
15488
|
initRadar,
|
|
15405
15489
|
addRegionPadding,
|
|
15406
15490
|
colorAdapter(color_color, linearColor),
|
|
@@ -15604,6 +15688,7 @@ self.R = R;
|
|
|
15604
15688
|
};
|
|
15605
15689
|
};
|
|
15606
15690
|
const funnel = [
|
|
15691
|
+
fontFamilyTheme,
|
|
15607
15692
|
initFunnel,
|
|
15608
15693
|
background_backgroundColor,
|
|
15609
15694
|
datasetXY,
|
|
@@ -15627,6 +15712,7 @@ self.R = R;
|
|
|
15627
15712
|
pivotHideIndicatorName,
|
|
15628
15713
|
datasetPivot,
|
|
15629
15714
|
pivotIndicators_pivotIndicators([
|
|
15715
|
+
fontFamilyTheme,
|
|
15630
15716
|
initFunnel,
|
|
15631
15717
|
addRegionPadding,
|
|
15632
15718
|
background_backgroundColor,
|
|
@@ -15991,6 +16077,7 @@ self.R = R;
|
|
|
15991
16077
|
return result;
|
|
15992
16078
|
};
|
|
15993
16079
|
const heatmap = [
|
|
16080
|
+
fontFamilyTheme,
|
|
15994
16081
|
initHeatmap,
|
|
15995
16082
|
background_backgroundColor,
|
|
15996
16083
|
datasetXY,
|
|
@@ -16012,6 +16099,7 @@ self.R = R;
|
|
|
16012
16099
|
pivotIndicatorsAsRow,
|
|
16013
16100
|
datasetPivot,
|
|
16014
16101
|
pivotIndicators_pivotIndicators([
|
|
16102
|
+
fontFamilyTheme,
|
|
16015
16103
|
initHeatmap,
|
|
16016
16104
|
background_backgroundColor,
|
|
16017
16105
|
datasetXY,
|
|
@@ -16788,6 +16876,7 @@ self.R = R;
|
|
|
16788
16876
|
};
|
|
16789
16877
|
};
|
|
16790
16878
|
const pipeline_boxplot_boxplot = [
|
|
16879
|
+
fontFamilyTheme,
|
|
16791
16880
|
initBoxplot,
|
|
16792
16881
|
stackCornerRadius_stackCornerRadius,
|
|
16793
16882
|
boxMaxWidth_boxMaxWidth,
|
|
@@ -16814,6 +16903,7 @@ self.R = R;
|
|
|
16814
16903
|
pivotGridStyle,
|
|
16815
16904
|
datasetPivot,
|
|
16816
16905
|
pivotIndicators_pivotIndicators([
|
|
16906
|
+
fontFamilyTheme,
|
|
16817
16907
|
initBoxplot,
|
|
16818
16908
|
stackCornerRadius_stackCornerRadius,
|
|
16819
16909
|
boxMaxWidth_boxMaxWidth,
|
|
@@ -17998,6 +18088,7 @@ self.R = R;
|
|
|
17998
18088
|
return result;
|
|
17999
18089
|
};
|
|
18000
18090
|
const histogram = [
|
|
18091
|
+
fontFamilyTheme,
|
|
18001
18092
|
initHistogram,
|
|
18002
18093
|
colorAdapter(color_color, linearColor),
|
|
18003
18094
|
background_backgroundColor,
|
|
@@ -18023,6 +18114,7 @@ self.R = R;
|
|
|
18023
18114
|
pivotGridStyle,
|
|
18024
18115
|
datasetPivot,
|
|
18025
18116
|
pivotIndicators_pivotIndicators([
|
|
18117
|
+
fontFamilyTheme,
|
|
18026
18118
|
initHistogram,
|
|
18027
18119
|
colorAdapter(color_color, linearColor),
|
|
18028
18120
|
background_backgroundColor,
|
|
@@ -18410,7 +18502,7 @@ self.R = R;
|
|
|
18410
18502
|
x: (data)=>(data.labelRect?.x0 || 0) + 4,
|
|
18411
18503
|
textAlign: 'left',
|
|
18412
18504
|
text: (data)=>formatHierarchyName(String(data.name ?? ''), data.depth),
|
|
18413
|
-
fontSize: 12,
|
|
18505
|
+
fontSize: label?.labelFontSize ?? 12,
|
|
18414
18506
|
fill: '#000'
|
|
18415
18507
|
}
|
|
18416
18508
|
};
|
|
@@ -18578,6 +18670,7 @@ self.R = R;
|
|
|
18578
18670
|
];
|
|
18579
18671
|
};
|
|
18580
18672
|
const treeMap = [
|
|
18673
|
+
fontFamilyTheme,
|
|
18581
18674
|
initTreeMap,
|
|
18582
18675
|
drill,
|
|
18583
18676
|
datasetHierarchy,
|
|
@@ -18595,6 +18688,7 @@ self.R = R;
|
|
|
18595
18688
|
pivotHideIndicatorName,
|
|
18596
18689
|
datasetPivotHierarchy,
|
|
18597
18690
|
pivotIndicators_pivotIndicators([
|
|
18691
|
+
fontFamilyTheme,
|
|
18598
18692
|
initTreeMap,
|
|
18599
18693
|
datasetHierarchy,
|
|
18600
18694
|
colorAdapter(color_color, linearColor),
|
|
@@ -18812,7 +18906,7 @@ self.R = R;
|
|
|
18812
18906
|
formatMethod: (_, datum)=>formatHierarchyName(String(datum?.name ?? '')),
|
|
18813
18907
|
style: {
|
|
18814
18908
|
...labelSpec?.style,
|
|
18815
|
-
fontSize: 12,
|
|
18909
|
+
fontSize: label?.labelFontSize ?? 12,
|
|
18816
18910
|
fillOpacity: (datum)=>{
|
|
18817
18911
|
if (encoding.hierarchy?.length === 1) return 1;
|
|
18818
18912
|
return datum.isLeaf ? 0.4 : 0.6;
|
|
@@ -18823,6 +18917,7 @@ self.R = R;
|
|
|
18823
18917
|
return result;
|
|
18824
18918
|
};
|
|
18825
18919
|
const sunburst = [
|
|
18920
|
+
fontFamilyTheme,
|
|
18826
18921
|
initSunburst,
|
|
18827
18922
|
drill,
|
|
18828
18923
|
datasetHierarchy,
|
|
@@ -18839,6 +18934,7 @@ self.R = R;
|
|
|
18839
18934
|
pivotHideIndicatorName,
|
|
18840
18935
|
datasetPivotHierarchy,
|
|
18841
18936
|
pivotIndicators_pivotIndicators([
|
|
18937
|
+
fontFamilyTheme,
|
|
18842
18938
|
initSunburst,
|
|
18843
18939
|
datasetHierarchy,
|
|
18844
18940
|
colorAdapter(color_color, linearColor),
|
|
@@ -18976,6 +19072,7 @@ self.R = R;
|
|
|
18976
19072
|
return result;
|
|
18977
19073
|
};
|
|
18978
19074
|
const circlePacking = [
|
|
19075
|
+
fontFamilyTheme,
|
|
18979
19076
|
initCirclePacking,
|
|
18980
19077
|
drill,
|
|
18981
19078
|
datasetHierarchy,
|
|
@@ -18992,6 +19089,7 @@ self.R = R;
|
|
|
18992
19089
|
pivotHideIndicatorName,
|
|
18993
19090
|
datasetPivotHierarchy,
|
|
18994
19091
|
pivotIndicators_pivotIndicators([
|
|
19092
|
+
fontFamilyTheme,
|
|
18995
19093
|
initCirclePacking,
|
|
18996
19094
|
datasetHierarchy,
|
|
18997
19095
|
colorAdapter(color_color, linearColor),
|
|
@@ -24575,11 +24673,13 @@ self.R = R;
|
|
|
24575
24673
|
backgroundColor: zBackgroundColor.nullish(),
|
|
24576
24674
|
borderColor: schemas_string().nullish(),
|
|
24577
24675
|
bodyFontSize: schemas_number().nullish(),
|
|
24676
|
+
bodyFontFamily: schemas_string().nullish(),
|
|
24578
24677
|
bodyFontColor: schemas_string().nullish(),
|
|
24579
24678
|
bodyBackgroundColor: schemas_string().nullish(),
|
|
24580
24679
|
hoverBodyBackgroundColor: schemas_string().nullish(),
|
|
24581
24680
|
hoverBodyInlineBackgroundColor: schemas_string().nullish(),
|
|
24582
24681
|
headerFontSize: schemas_number().nullish(),
|
|
24682
|
+
headerFontFamily: schemas_string().nullish(),
|
|
24583
24683
|
headerFontColor: schemas_string().nullish(),
|
|
24584
24684
|
headerBackgroundColor: schemas_string().nullish(),
|
|
24585
24685
|
hoverHeaderBackgroundColor: schemas_string().nullish(),
|
|
@@ -25137,7 +25237,9 @@ self.R = R;
|
|
|
25137
25237
|
});
|
|
25138
25238
|
const zPivotChartGridConfig = schemas_object({
|
|
25139
25239
|
borderColor: schemas_string().nullish(),
|
|
25240
|
+
bodyFontSize: schemas_number().nullish(),
|
|
25140
25241
|
bodyFontColor: schemas_string().nullish(),
|
|
25242
|
+
headerFontSize: schemas_number().nullish(),
|
|
25141
25243
|
headerFontColor: schemas_string().nullish(),
|
|
25142
25244
|
headerBackgroundColor: schemas_string().nullish(),
|
|
25143
25245
|
hoverHeaderBackgroundColor: schemas_string().nullish(),
|
|
@@ -25150,7 +25252,8 @@ self.R = R;
|
|
|
25150
25252
|
titleFontSize: schemas_number().nullish(),
|
|
25151
25253
|
titleFontWeight: schemas_string().nullish(),
|
|
25152
25254
|
chartGridColor: schemas_string().nullish(),
|
|
25153
|
-
axisLabelColor: schemas_string().nullish()
|
|
25255
|
+
axisLabelColor: schemas_string().nullish(),
|
|
25256
|
+
axisLabelFontSize: schemas_number().nullish()
|
|
25154
25257
|
});
|
|
25155
25258
|
const zDimensionLinkage = schemas_object({
|
|
25156
25259
|
enable: schemas_boolean().nullish(),
|
|
@@ -25468,6 +25571,8 @@ self.R = R;
|
|
|
25468
25571
|
'right'
|
|
25469
25572
|
]).optional(),
|
|
25470
25573
|
railColor: schemas_string().optional(),
|
|
25574
|
+
fontFamily: schemas_string().optional(),
|
|
25575
|
+
fontSize: schemas_number().optional(),
|
|
25471
25576
|
trackColor: schemas_string().optional(),
|
|
25472
25577
|
sliderHandleColor: schemas_string().optional(),
|
|
25473
25578
|
startButtonColor: schemas_string().optional(),
|
|
@@ -26542,6 +26647,241 @@ self.R = R;
|
|
|
26542
26647
|
regressionLine: zRegressionLine,
|
|
26543
26648
|
totals: zPivotTableTotals.optional()
|
|
26544
26649
|
});
|
|
26650
|
+
const raceChartTypes = [
|
|
26651
|
+
'raceBar',
|
|
26652
|
+
'raceColumn',
|
|
26653
|
+
'raceScatter',
|
|
26654
|
+
'raceLine',
|
|
26655
|
+
'racePie',
|
|
26656
|
+
'raceDonut'
|
|
26657
|
+
];
|
|
26658
|
+
let hasEnsuredRegisterAll = false;
|
|
26659
|
+
const isRecord = (value)=>'object' == typeof value && null !== value && !Array.isArray(value);
|
|
26660
|
+
const mergeThemeNode = (base, patch)=>{
|
|
26661
|
+
if (!isRecord(base) || !isRecord(patch)) return patch;
|
|
26662
|
+
const result = {
|
|
26663
|
+
...base
|
|
26664
|
+
};
|
|
26665
|
+
for (const [key, patchValue] of Object.entries(patch)){
|
|
26666
|
+
if (void 0 === patchValue) continue;
|
|
26667
|
+
const currentValue = result[key];
|
|
26668
|
+
if (Array.isArray(patchValue)) {
|
|
26669
|
+
result[key] = [
|
|
26670
|
+
...patchValue
|
|
26671
|
+
];
|
|
26672
|
+
continue;
|
|
26673
|
+
}
|
|
26674
|
+
if (isRecord(currentValue) && isRecord(patchValue)) {
|
|
26675
|
+
result[key] = mergeThemeNode(currentValue, patchValue);
|
|
26676
|
+
continue;
|
|
26677
|
+
}
|
|
26678
|
+
result[key] = patchValue;
|
|
26679
|
+
}
|
|
26680
|
+
return result;
|
|
26681
|
+
};
|
|
26682
|
+
const withAlpha = (color, alpha)=>tinycolor_default()(color).setAlpha(alpha).toRgbString();
|
|
26683
|
+
const ensureRegisterAll = (options)=>{
|
|
26684
|
+
if (options?.ensureRegisterAll === false || hasEnsuredRegisterAll) return;
|
|
26685
|
+
registerAll();
|
|
26686
|
+
hasEnsuredRegisterAll = true;
|
|
26687
|
+
};
|
|
26688
|
+
const getAccentColor = (tokens)=>tokens.accentColor || tokens.colorScheme[0];
|
|
26689
|
+
const getAxisPatch = (tokens)=>({
|
|
26690
|
+
label: {
|
|
26691
|
+
labelColor: tokens.axisLabelColor || tokens.textSecondary,
|
|
26692
|
+
labelFontSize: tokens.axisFontSize
|
|
26693
|
+
},
|
|
26694
|
+
title: {
|
|
26695
|
+
titleColor: tokens.axisTitleColor || tokens.textSecondary,
|
|
26696
|
+
titleFontSize: tokens.axisFontSize
|
|
26697
|
+
},
|
|
26698
|
+
grid: {
|
|
26699
|
+
gridColor: tokens.axisGridColor || tokens.borderColor
|
|
26700
|
+
},
|
|
26701
|
+
tick: {
|
|
26702
|
+
tickColor: tokens.axisLineColor || tokens.borderColor
|
|
26703
|
+
},
|
|
26704
|
+
line: {
|
|
26705
|
+
lineColor: tokens.axisLineColor || tokens.borderColor
|
|
26706
|
+
}
|
|
26707
|
+
});
|
|
26708
|
+
const getPivotGridPatch = (tokens)=>({
|
|
26709
|
+
borderColor: tokens.tableBorderColor || tokens.borderColor,
|
|
26710
|
+
bodyFontSize: tokens.tableBodyFontSize,
|
|
26711
|
+
bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,
|
|
26712
|
+
headerFontSize: tokens.tableHeaderFontSize,
|
|
26713
|
+
headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,
|
|
26714
|
+
headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',
|
|
26715
|
+
hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(getAccentColor(tokens), 0.18),
|
|
26716
|
+
hoverHeaderInlineBackgroundColor: tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(getAccentColor(tokens), 0.08),
|
|
26717
|
+
titleFontColor: tokens.textPrimary,
|
|
26718
|
+
titleFontSize: tokens.tableHeaderFontSize,
|
|
26719
|
+
chartGridColor: tokens.axisGridColor || tokens.borderColor,
|
|
26720
|
+
axisLabelColor: tokens.axisLabelColor || tokens.textSecondary,
|
|
26721
|
+
axisLabelFontSize: tokens.axisFontSize
|
|
26722
|
+
});
|
|
26723
|
+
const getPlayerPatch = (tokens)=>{
|
|
26724
|
+
const accentColor = getAccentColor(tokens);
|
|
26725
|
+
return {
|
|
26726
|
+
fontFamily: tokens.fontFamily,
|
|
26727
|
+
fontSize: tokens.playerFontSize,
|
|
26728
|
+
railColor: tokens.playerRailColor || tokens.borderColor,
|
|
26729
|
+
trackColor: accentColor,
|
|
26730
|
+
sliderHandleColor: tokens.playerSliderHandleColor || tokens.surfaceColor || '#ffffff',
|
|
26731
|
+
sliderHandleBorderColor: tokens.playerSliderHandleBorderColor || accentColor,
|
|
26732
|
+
startButtonColor: accentColor,
|
|
26733
|
+
pauseButtonColor: accentColor,
|
|
26734
|
+
backwardButtonColor: accentColor,
|
|
26735
|
+
forwardButtonColor: accentColor
|
|
26736
|
+
};
|
|
26737
|
+
};
|
|
26738
|
+
const getTablePatch = (tokens)=>{
|
|
26739
|
+
const accentColor = getAccentColor(tokens);
|
|
26740
|
+
return {
|
|
26741
|
+
borderColor: tokens.tableBorderColor || tokens.borderColor,
|
|
26742
|
+
bodyFontSize: tokens.tableBodyFontSize,
|
|
26743
|
+
bodyFontFamily: tokens.fontFamily,
|
|
26744
|
+
bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,
|
|
26745
|
+
headerFontSize: tokens.tableHeaderFontSize,
|
|
26746
|
+
headerFontFamily: tokens.fontFamily,
|
|
26747
|
+
headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,
|
|
26748
|
+
headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',
|
|
26749
|
+
hoverBodyBackgroundColor: tokens.tableHoverBodyBackgroundColor || withAlpha(accentColor, 0.18),
|
|
26750
|
+
hoverBodyInlineBackgroundColor: tokens.tableHoverBodyInlineBackgroundColor || withAlpha(accentColor, 0.08),
|
|
26751
|
+
hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(accentColor, 0.18),
|
|
26752
|
+
hoverHeaderInlineBackgroundColor: tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(accentColor, 0.08),
|
|
26753
|
+
selectedBorderColor: tokens.tableSelectedBorderColor || accentColor,
|
|
26754
|
+
selectedBackgroundColor: tokens.tableSelectedBackgroundColor || withAlpha(accentColor, 0.12),
|
|
26755
|
+
backgroundColor: tokens.surfaceBackgroundColor || 'transparent',
|
|
26756
|
+
barAxisColor: tokens.axisLineColor || tokens.borderColor,
|
|
26757
|
+
backgroundColorScale: {
|
|
26758
|
+
minColor: tokens.linearColorScheme[0],
|
|
26759
|
+
maxColor: tokens.linearColorScheme[1]
|
|
26760
|
+
}
|
|
26761
|
+
};
|
|
26762
|
+
};
|
|
26763
|
+
const getChartPatch = (tokens)=>({
|
|
26764
|
+
backgroundColor: 'transparent',
|
|
26765
|
+
fontFamily: tokens.fontFamily,
|
|
26766
|
+
color: {
|
|
26767
|
+
colorScheme: [
|
|
26768
|
+
...tokens.colorScheme
|
|
26769
|
+
],
|
|
26770
|
+
linearColorScheme: [
|
|
26771
|
+
...tokens.linearColorScheme
|
|
26772
|
+
],
|
|
26773
|
+
positiveColor: tokens.positiveColor,
|
|
26774
|
+
negativeColor: tokens.negativeColor
|
|
26775
|
+
},
|
|
26776
|
+
label: {
|
|
26777
|
+
labelFontSize: tokens.labelFontSize,
|
|
26778
|
+
labelColor: tokens.labelColor || tokens.textPrimary,
|
|
26779
|
+
labelStroke: tokens.labelStroke
|
|
26780
|
+
},
|
|
26781
|
+
legend: {
|
|
26782
|
+
labelColor: tokens.legendLabelColor || tokens.textSecondary,
|
|
26783
|
+
labelFontSize: tokens.legendFontSize,
|
|
26784
|
+
pagerIconColor: tokens.legendPagerIconColor || tokens.textSecondary,
|
|
26785
|
+
pagerIconDisableColor: tokens.legendPagerIconDisableColor || tokens.borderColor
|
|
26786
|
+
},
|
|
26787
|
+
tooltip: {
|
|
26788
|
+
backgroundColor: tokens.tooltipBackgroundColor,
|
|
26789
|
+
borderColor: tokens.tooltipBorderColor || tokens.borderColor,
|
|
26790
|
+
fontSize: tokens.tooltipFontSize,
|
|
26791
|
+
keyColor: tokens.textSecondary,
|
|
26792
|
+
valueColor: tokens.textPrimary,
|
|
26793
|
+
titleColor: tokens.textPrimary
|
|
26794
|
+
}
|
|
26795
|
+
});
|
|
26796
|
+
const getAnnotationPatch = (tokens)=>({
|
|
26797
|
+
annotationPoint: {
|
|
26798
|
+
textFontSize: tokens.labelFontSize
|
|
26799
|
+
},
|
|
26800
|
+
annotationHorizontalLine: {
|
|
26801
|
+
textFontSize: tokens.labelFontSize
|
|
26802
|
+
},
|
|
26803
|
+
annotationVerticalLine: {
|
|
26804
|
+
textFontSize: tokens.labelFontSize
|
|
26805
|
+
},
|
|
26806
|
+
annotationArea: {
|
|
26807
|
+
textFontSize: tokens.labelFontSize
|
|
26808
|
+
}
|
|
26809
|
+
});
|
|
26810
|
+
const getRegressionLinePatch = (tokens)=>({
|
|
26811
|
+
kdeRegressionLine: {
|
|
26812
|
+
textFontSize: tokens.labelFontSize
|
|
26813
|
+
},
|
|
26814
|
+
ecdfRegressionLine: {
|
|
26815
|
+
textFontSize: tokens.labelFontSize
|
|
26816
|
+
},
|
|
26817
|
+
linearRegressionLine: {
|
|
26818
|
+
textFontSize: tokens.labelFontSize
|
|
26819
|
+
},
|
|
26820
|
+
lowessRegressionLine: {
|
|
26821
|
+
textFontSize: tokens.labelFontSize
|
|
26822
|
+
},
|
|
26823
|
+
polynomialRegressionLine: {
|
|
26824
|
+
textFontSize: tokens.labelFontSize
|
|
26825
|
+
},
|
|
26826
|
+
logisticRegressionLine: {
|
|
26827
|
+
textFontSize: tokens.labelFontSize
|
|
26828
|
+
}
|
|
26829
|
+
});
|
|
26830
|
+
const withAxesAndExtras = (chartType, chartConfig, tokens)=>{
|
|
26831
|
+
let nextChartConfig = mergeThemeNode(chartConfig, getChartPatch(tokens));
|
|
26832
|
+
const chartRecord = nextChartConfig;
|
|
26833
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'xAxis')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26834
|
+
xAxis: getAxisPatch(tokens)
|
|
26835
|
+
});
|
|
26836
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'yAxis')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26837
|
+
yAxis: getAxisPatch(tokens)
|
|
26838
|
+
});
|
|
26839
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'primaryYAxis')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26840
|
+
primaryYAxis: getAxisPatch(tokens)
|
|
26841
|
+
});
|
|
26842
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'secondaryYAxis')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26843
|
+
secondaryYAxis: getAxisPatch(tokens)
|
|
26844
|
+
});
|
|
26845
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'pivotGrid')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26846
|
+
pivotGrid: getPivotGridPatch(tokens)
|
|
26847
|
+
});
|
|
26848
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'annotation')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26849
|
+
annotation: getAnnotationPatch(tokens)
|
|
26850
|
+
});
|
|
26851
|
+
if (Object.prototype.hasOwnProperty.call(chartRecord, 'regressionLine')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26852
|
+
regressionLine: getRegressionLinePatch(tokens)
|
|
26853
|
+
});
|
|
26854
|
+
if (raceChartTypes.includes(chartType) && Object.prototype.hasOwnProperty.call(chartRecord, 'player')) nextChartConfig = mergeThemeNode(nextChartConfig, {
|
|
26855
|
+
player: getPlayerPatch(tokens)
|
|
26856
|
+
});
|
|
26857
|
+
return nextChartConfig;
|
|
26858
|
+
};
|
|
26859
|
+
const createTokenThemeConfig = (tokens)=>{
|
|
26860
|
+
const baseTheme = 'dark' === tokens.baseTheme ? darkTheme() : lightTheme();
|
|
26861
|
+
const baseConfig = baseTheme.config || {};
|
|
26862
|
+
const nextConfig = {};
|
|
26863
|
+
for (const chartType of Object.keys(baseConfig)){
|
|
26864
|
+
const chartConfig = baseConfig[chartType];
|
|
26865
|
+
if (chartConfig) {
|
|
26866
|
+
if ('table' === chartType || 'pivotTable' === chartType) {
|
|
26867
|
+
nextConfig[chartType] = mergeThemeNode(chartConfig, getTablePatch(tokens));
|
|
26868
|
+
continue;
|
|
26869
|
+
}
|
|
26870
|
+
nextConfig[chartType] = withAxesAndExtras(chartType, chartConfig, tokens);
|
|
26871
|
+
}
|
|
26872
|
+
}
|
|
26873
|
+
return {
|
|
26874
|
+
config: nextConfig
|
|
26875
|
+
};
|
|
26876
|
+
};
|
|
26877
|
+
const registerTokenTheme = (themeName, tokens, options)=>{
|
|
26878
|
+
ensureRegisterAll(options);
|
|
26879
|
+
registerCustomTheme(themeName, createTokenThemeConfig(tokens));
|
|
26880
|
+
};
|
|
26881
|
+
const registerTokenThemes = (themes, options)=>{
|
|
26882
|
+
ensureRegisterAll(options);
|
|
26883
|
+
for (const [themeName, tokens] of Object.entries(themes))registerCustomTheme(themeName, createTokenThemeConfig(tokens));
|
|
26884
|
+
};
|
|
26545
26885
|
const i18n_a = 123;
|
|
26546
26886
|
})();
|
|
26547
26887
|
return __webpack_exports__;
|