@visactor/vseed 0.3.10 → 0.3.11
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 +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +1428 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/boxplot.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +3 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerAdapter.js +50 -5
- package/dist/esm/pipeline/spec/chart/pipes/player/playerAdapter.js.map +1 -1
- package/dist/esm/theme/common/index.d.ts +1 -0
- package/dist/esm/theme/common/index.js +1 -0
- package/dist/esm/theme/common/player.d.ts +3 -0
- package/dist/esm/theme/common/player.js +39 -0
- package/dist/esm/theme/common/player.js.map +1 -0
- package/dist/esm/theme/dark/dark.js +33 -15
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +18 -1
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +646 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +14 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +14 -0
- package/dist/esm/types/properties/config/area.d.ts +38 -0
- package/dist/esm/types/properties/config/area.js +2 -0
- package/dist/esm/types/properties/config/area.js.map +1 -1
- package/dist/esm/types/properties/config/bar.d.ts +57 -0
- package/dist/esm/types/properties/config/bar.js +2 -0
- package/dist/esm/types/properties/config/bar.js.map +1 -1
- package/dist/esm/types/properties/config/column.d.ts +57 -0
- package/dist/esm/types/properties/config/column.js +2 -0
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +323 -0
- package/dist/esm/types/properties/config/funnel.d.ts +19 -0
- package/dist/esm/types/properties/config/funnel.js +2 -0
- package/dist/esm/types/properties/config/funnel.js.map +1 -1
- package/dist/esm/types/properties/config/heatmap.d.ts +19 -0
- package/dist/esm/types/properties/config/heatmap.js +2 -0
- package/dist/esm/types/properties/config/heatmap.js.map +1 -1
- package/dist/esm/types/properties/config/line.d.ts +19 -0
- package/dist/esm/types/properties/config/line.js +3 -1
- package/dist/esm/types/properties/config/line.js.map +1 -1
- package/dist/esm/types/properties/config/pie.d.ts +57 -0
- package/dist/esm/types/properties/config/pie.js +2 -0
- package/dist/esm/types/properties/config/pie.js.map +1 -1
- package/dist/esm/types/properties/config/player/player.d.ts +54 -0
- package/dist/esm/types/properties/config/player/zPlayer.d.ts +20 -0
- package/dist/esm/types/properties/config/player/zPlayer.js +23 -0
- package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -0
- package/dist/esm/types/properties/config/rose.d.ts +38 -0
- package/dist/esm/types/properties/config/rose.js +2 -0
- package/dist/esm/types/properties/config/rose.js.map +1 -1
- package/dist/esm/types/properties/config/scatter.d.ts +19 -0
- package/dist/esm/types/properties/config/scatter.js +2 -0
- package/dist/esm/types/properties/config/scatter.js.map +1 -1
- package/dist/esm/types/properties/index.d.ts +1 -1
- package/dist/esm/types/properties/index.js +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +646 -0
- package/dist/esm/types/zVseed.d.ts +28 -0
- package/dist/umd/index.js +178 -36
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/types/properties/player/player.d.ts +0 -22
- package/dist/esm/types/properties/player/zPlayer.d.ts +0 -6
- package/dist/esm/types/properties/player/zPlayer.js +0 -9
- package/dist/esm/types/properties/player/zPlayer.js.map +0 -1
- /package/dist/esm/types/properties/{player → config/player}/index.d.ts +0 -0
- /package/dist/esm/types/properties/{player → config/player}/index.js +0 -0
- /package/dist/esm/types/properties/{player → config/player}/player.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFunnelLightLabel, getLightBrushConfig, getLightColor, getLightColorLegend, getLightCrosshairLine, getLightCrosshairRect, getLightLabel, getLightLegend, getLightPivotChartGridConfig, getLightTableConfig } from "../common/index.js";
|
|
1
|
+
import { getFunnelLightLabel, getLightBrushConfig, getLightColor, getLightColorLegend, getLightCrosshairLine, getLightCrosshairRect, getLightLabel, getLightLegend, getLightPivotChartGridConfig, getLightPlayer, getLightTableConfig } from "../common/index.js";
|
|
2
2
|
import { getLightTooltip } from "../common/tooltip.js";
|
|
3
3
|
import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
|
|
4
4
|
import { getLightAnnotation } from "../common/annotaion.js";
|
|
@@ -33,6 +33,7 @@ const lightTheme = ()=>{
|
|
|
33
33
|
brush: getLightBrushConfig()
|
|
34
34
|
};
|
|
35
35
|
const tableConfig = getLightTableConfig();
|
|
36
|
+
const player = getLightPlayer();
|
|
36
37
|
return {
|
|
37
38
|
config: {
|
|
38
39
|
table: tableConfig,
|
|
@@ -42,6 +43,7 @@ const lightTheme = ()=>{
|
|
|
42
43
|
xAxis: bandAxis,
|
|
43
44
|
yAxis: linearAxis,
|
|
44
45
|
crosshairLine,
|
|
46
|
+
player,
|
|
45
47
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
46
48
|
annotation: getLightAnnotation()
|
|
47
49
|
},
|
|
@@ -50,6 +52,7 @@ const lightTheme = ()=>{
|
|
|
50
52
|
xAxis: bandAxis,
|
|
51
53
|
yAxis: linearAxis,
|
|
52
54
|
crosshairRect,
|
|
55
|
+
player,
|
|
53
56
|
stackCornerRadius: [
|
|
54
57
|
4,
|
|
55
58
|
4,
|
|
@@ -65,6 +68,7 @@ const lightTheme = ()=>{
|
|
|
65
68
|
xAxis: bandAxis,
|
|
66
69
|
yAxis: linearAxis,
|
|
67
70
|
crosshairRect,
|
|
71
|
+
player,
|
|
68
72
|
stackCornerRadius: [
|
|
69
73
|
4,
|
|
70
74
|
4,
|
|
@@ -80,6 +84,7 @@ const lightTheme = ()=>{
|
|
|
80
84
|
yAxis: {
|
|
81
85
|
...linearAxis
|
|
82
86
|
},
|
|
87
|
+
player,
|
|
83
88
|
crosshairRect,
|
|
84
89
|
stackCornerRadius: [
|
|
85
90
|
4,
|
|
@@ -95,6 +100,7 @@ const lightTheme = ()=>{
|
|
|
95
100
|
xAxis: linearAxis,
|
|
96
101
|
yAxis: barBandAxis,
|
|
97
102
|
crosshairRect,
|
|
103
|
+
player,
|
|
98
104
|
stackCornerRadius: [
|
|
99
105
|
0,
|
|
100
106
|
4,
|
|
@@ -125,6 +131,7 @@ const lightTheme = ()=>{
|
|
|
125
131
|
},
|
|
126
132
|
yAxis: barBandAxis,
|
|
127
133
|
crosshairRect,
|
|
134
|
+
player,
|
|
128
135
|
stackCornerRadius: [
|
|
129
136
|
0,
|
|
130
137
|
4,
|
|
@@ -139,6 +146,7 @@ const lightTheme = ()=>{
|
|
|
139
146
|
xAxis: bandAxis,
|
|
140
147
|
yAxis: linearAxis,
|
|
141
148
|
crosshairLine,
|
|
149
|
+
player,
|
|
142
150
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
143
151
|
annotation: getLightAnnotation()
|
|
144
152
|
},
|
|
@@ -148,6 +156,7 @@ const lightTheme = ()=>{
|
|
|
148
156
|
yAxis: {
|
|
149
157
|
...linearAxis
|
|
150
158
|
},
|
|
159
|
+
player,
|
|
151
160
|
crosshairLine,
|
|
152
161
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
153
162
|
annotation: getLightAnnotation()
|
|
@@ -178,6 +187,7 @@ const lightTheme = ()=>{
|
|
|
178
187
|
showValue: false,
|
|
179
188
|
showValuePercent: false
|
|
180
189
|
},
|
|
190
|
+
player,
|
|
181
191
|
pivotGrid: getLightPivotChartGridConfig(),
|
|
182
192
|
annotation: getLightAnnotation(),
|
|
183
193
|
regressionLine: getLightRegressionLine()
|
|
@@ -204,6 +214,7 @@ const lightTheme = ()=>{
|
|
|
204
214
|
labelLayout: 'arc',
|
|
205
215
|
showDimension: true
|
|
206
216
|
},
|
|
217
|
+
player,
|
|
207
218
|
pivotGrid: getLightPivotChartGridConfig()
|
|
208
219
|
},
|
|
209
220
|
donut: {
|
|
@@ -214,10 +225,12 @@ const lightTheme = ()=>{
|
|
|
214
225
|
labelLayout: 'arc',
|
|
215
226
|
showDimension: true
|
|
216
227
|
},
|
|
228
|
+
player,
|
|
217
229
|
pivotGrid: getLightPivotChartGridConfig()
|
|
218
230
|
},
|
|
219
231
|
radar: {
|
|
220
232
|
...baseConfig,
|
|
233
|
+
player,
|
|
221
234
|
pivotGrid: getLightPivotChartGridConfig()
|
|
222
235
|
},
|
|
223
236
|
rose: {
|
|
@@ -227,6 +240,7 @@ const lightTheme = ()=>{
|
|
|
227
240
|
showValuePercent: true,
|
|
228
241
|
showDimension: true
|
|
229
242
|
},
|
|
243
|
+
player,
|
|
230
244
|
pivotGrid: getLightPivotChartGridConfig()
|
|
231
245
|
},
|
|
232
246
|
roseParallel: {
|
|
@@ -236,12 +250,14 @@ const lightTheme = ()=>{
|
|
|
236
250
|
showValuePercent: true,
|
|
237
251
|
showDimension: true
|
|
238
252
|
},
|
|
253
|
+
player,
|
|
239
254
|
pivotGrid: getLightPivotChartGridConfig()
|
|
240
255
|
},
|
|
241
256
|
funnel: {
|
|
242
257
|
...baseConfig,
|
|
243
258
|
label: getFunnelLightLabel(),
|
|
244
259
|
transform: getLightFunnelTransformTheme(),
|
|
260
|
+
player,
|
|
245
261
|
pivotGrid: getLightPivotChartGridConfig()
|
|
246
262
|
},
|
|
247
263
|
heatmap: {
|
|
@@ -253,6 +269,7 @@ const lightTheme = ()=>{
|
|
|
253
269
|
...baseConfig.label,
|
|
254
270
|
labelColorSmartInvert: true
|
|
255
271
|
},
|
|
272
|
+
player,
|
|
256
273
|
cell: getLightHeatmapCellTheme(),
|
|
257
274
|
pivotGrid: getLightPivotChartGridConfig()
|
|
258
275
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme/light/light.js","sources":["webpack://@visactor/vseed/./src/theme/light/light.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getFunnelLightLabel,\n getLightColor,\n getLightColorLegend,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightBrushConfig,\n getLightLabel,\n getLightLegend,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n} from '../common'\nimport { getLightTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\nimport { getLightAnnotation } from '../common/annotaion'\nimport { getLightFunnelTransformTheme } from '../common/funnelTransform'\nimport { getLightHeatmapCellTheme } from '../common/heatmapCell'\nimport { getLightRegressionLine } from '../common/regressionLine'\nimport { getLightBoxPlotStyle, getLightOutlierStyle } from '../common/boxPlot'\n\nexport const lightTheme = (): CustomThemeConfig => {\n const linearAxis = getLightLinearAxis()\n const bandAxis: YBandAxis = getLightBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n\n const crosshairLine = getLightCrosshairLine()\n const crosshairRect = getLightCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getLightColor(),\n label: getLightLabel(),\n legend: getLightLegend(),\n tooltip: getLightTooltip(),\n brush: getLightBrushConfig(),\n }\n const tableConfig = getLightTableConfig()\n\n return {\n config: {\n // table\n table: tableConfig,\n pivotTable: tableConfig,\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n column: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n bar: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n xAxis: {\n ...linearAxis,\n },\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n area: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getLightPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n label: getFunnelLightLabel(),\n transform: getLightFunnelTransformTheme(),\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n legend: getLightColorLegend(),\n xAxis: bandAxis,\n yAxis: bandAxis,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n cell: getLightHeatmapCellTheme(),\n pivotGrid: getLightPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n regressionLine: getLightRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n boxPlotStyle: getLightBoxPlotStyle(),\n outlierStyle: getLightOutlierStyle(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getLightLabel","getLightLegend","getLightTooltip","getLightBrushConfig","tableConfig","getLightTableConfig","getLightPivotChartGridConfig","getLightAnnotation","getLightRegressionLine","getFunnelLightLabel","getLightFunnelTransformTheme","getLightColorLegend","getLightHeatmapCellTheme","getLightBoxPlotStyle","getLightOutlierStyle"],"mappings":";;;;;;;;AAqBO,MAAMA,aAAa;IACxB,MAAMC,aAAaC;IACnB,MAAMC,WAAsBC;IAC5B,MAAMC,cAAyB;QAC7B,GAAGF,QAAQ;QACX,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,sBAAsBG;QACtB,iBAAiB;QACjB,2BAA2B;YAAC;YAAG;YAAK;SAAI;IAC1C;IAEA,MAAMC,gBAAgBC;IACtB,MAAMC,gBAAgBC;IAEtB,MAAMC,aAAa;QACjB,iBAA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;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBAEA,WAAWQ;YACb;YAEA,QAAQ;gBACN,GAAGR,UAAU;gBACb,OAAOW;gBACP,WAAWC;gBAEX,WAAWJ;YACb;YACA,SAAS;gBACP,GAAGR,UAAU;gBACb,QAAQa;gBACR,OAAOrB;gBACP,OAAOA;gBACP,OAAO;oBACL,GAAGQ,WAAW,KAAK;oBACnB,uBAAuB;gBACzB;gBACA,MAAMc;gBACN,WAAWN;YACb;YACA,WAAW;gBACT,GAAGR,UAAU;gBACb,OAAOV;gBACP,OAAOA;gBACPQ;gBACA,WAAWU;gBACX,YAAYC;gBACZ,gBAAgBC;YAClB;YACA,SAAS;gBACP,GAAGV,UAAU;gBACb,OAAOV;gBACP,OAAOA;gBACPQ;gBACA,WAAWU;gBACX,YAAYC;gBAEZ,cAAcM;gBACd,cAAcC;YAChB;QACF;IACF;AACF"}
|
|
1
|
+
{"version":3,"file":"theme/light/light.js","sources":["webpack://@visactor/vseed/./src/theme/light/light.ts"],"sourcesContent":["import type { CustomThemeConfig, Player, YBandAxis } from 'src/types'\nimport {\n getFunnelLightLabel,\n getLightColor,\n getLightColorLegend,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightBrushConfig,\n getLightLabel,\n getLightLegend,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n getLightPlayer,\n} from '../common'\nimport { getLightTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\nimport { getLightAnnotation } from '../common/annotaion'\nimport { getLightFunnelTransformTheme } from '../common/funnelTransform'\nimport { getLightHeatmapCellTheme } from '../common/heatmapCell'\nimport { getLightRegressionLine } from '../common/regressionLine'\nimport { getLightBoxPlotStyle, getLightOutlierStyle } from '../common/boxPlot'\n\nexport const lightTheme = (): CustomThemeConfig => {\n const linearAxis = getLightLinearAxis()\n const bandAxis: YBandAxis = getLightBandAxis()\n const barBandAxis: YBandAxis = {\n ...bandAxis,\n labelAutoHide: false,\n labelAutoHideGap: 1,\n labelAutoLimit: false,\n labelAutoLimitLength: undefined,\n labelAutoRotate: false,\n labelAutoRotateAngleRange: [0, -45, -90],\n }\n\n const crosshairLine = getLightCrosshairLine()\n const crosshairRect = getLightCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getLightColor(),\n label: getLightLabel(),\n legend: getLightLegend(),\n tooltip: getLightTooltip(),\n brush: getLightBrushConfig(),\n }\n const tableConfig = getLightTableConfig()\n const player = getLightPlayer() as Player\n\n return {\n config: {\n // table\n table: tableConfig,\n pivotTable: tableConfig,\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n player,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n column: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n player,\n\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n columnParallel: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n player,\n\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n player,\n\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n bar: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n player,\n\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n xAxis: {\n ...linearAxis,\n },\n yAxis: barBandAxis,\n crosshairRect,\n player,\n\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n area: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n player,\n\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n scatter: {\n ...baseConfig,\n crosshairLine,\n sizeRange: [8, 24],\n xAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n yAxis: {\n ...linearAxis,\n line: {\n ...linearAxis.line,\n visible: true,\n },\n },\n label: {\n ...baseConfig.label,\n showValue: false,\n showValuePercent: false,\n },\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n regressionLine: getLightRegressionLine(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'arc',\n showDimension: true,\n },\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n label: getFunnelLightLabel(),\n transform: getLightFunnelTransformTheme(),\n player,\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n legend: getLightColorLegend(),\n xAxis: bandAxis,\n yAxis: bandAxis,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n player,\n\n cell: getLightHeatmapCellTheme(),\n pivotGrid: getLightPivotChartGridConfig(),\n },\n histogram: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n regressionLine: getLightRegressionLine(),\n },\n boxPlot: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: linearAxis,\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n annotation: getLightAnnotation(),\n\n boxPlotStyle: getLightBoxPlotStyle(),\n outlierStyle: getLightOutlierStyle(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getLightLabel","getLightLegend","getLightTooltip","getLightBrushConfig","tableConfig","getLightTableConfig","player","getLightPlayer","getLightPivotChartGridConfig","getLightAnnotation","getLightRegressionLine","getFunnelLightLabel","getLightFunnelTransformTheme","getLightColorLegend","getLightHeatmapCellTheme","getLightBoxPlotStyle","getLightOutlierStyle"],"mappings":";;;;;;;;AAsBO,MAAMA,aAAa;IACxB,MAAMC,aAAaC;IACnB,MAAMC,WAAsBC;IAC5B,MAAM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