@visactor/vseed 0.1.31 → 0.1.33
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 +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +6238 -0
- package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js +1 -1
- package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +10 -7
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +19 -7
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +20 -9
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +4 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +20 -8
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js +11 -13
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pieStyle.js.map +1 -1
- package/dist/esm/theme/common/annotaion.d.ts +22 -0
- package/dist/esm/theme/common/annotaion.js +114 -0
- package/dist/esm/theme/common/annotaion.js.map +1 -0
- package/dist/esm/theme/common/axes.js +22 -6
- package/dist/esm/theme/common/axes.js.map +1 -1
- package/dist/esm/theme/common/crosshair.js +5 -5
- package/dist/esm/theme/common/crosshair.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +23 -11
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +23 -11
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +2288 -0
- package/dist/esm/types/chartType/area/zArea.d.ts +5 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +5 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +4 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +4 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +4 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +4 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +4 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +4 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +7 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +5 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +5 -0
- package/dist/esm/types/properties/annotation/annotation.d.ts +2 -0
- package/dist/esm/types/properties/annotation/annotationArea.d.ts +6 -1
- package/dist/esm/types/properties/annotation/zAnnotationArea.d.ts +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationArea.js +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationArea.js.map +1 -1
- package/dist/esm/types/properties/config/annotation/annotation.d.ts +76 -0
- package/dist/esm/types/properties/config/annotation/annotation.js +0 -0
- package/dist/esm/types/properties/config/annotation/index.d.ts +2 -0
- package/dist/esm/types/properties/config/annotation/index.js +1 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.d.ts +169 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.js +58 -0
- package/dist/esm/types/properties/config/annotation/zAnnotaion.js.map +1 -0
- package/dist/esm/types/properties/config/axes/bandAxis.d.ts +4 -0
- package/dist/esm/types/properties/config/axes/linearAxis.d.ts +4 -0
- package/dist/esm/types/properties/config/axes/zBandAxis.d.ts +2 -0
- package/dist/esm/types/properties/config/axes/zBandAxis.js +2 -1
- package/dist/esm/types/properties/config/axes/zBandAxis.js.map +1 -1
- package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +2 -0
- package/dist/esm/types/properties/config/axes/zLinearAxis.js +2 -1
- package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +2286 -0
- package/dist/esm/types/properties/config/config.js +15 -7
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/crosshair/zCrosshair.d.ts +1 -0
- package/dist/esm/types/properties/config/crosshair/zCrosshair.js +2 -1
- package/dist/esm/types/properties/config/crosshair/zCrosshair.js.map +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +2286 -0
- package/dist/esm/types/zVseed.d.ts +51 -0
- package/dist/umd/index.js +526 -274
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getDarkColor, getDarkCrosshairLine, getDarkCrosshairRect, getDarkPivotChartGridConfig, getDarkTableConfig, getDefaultLabel, getDefaultLegend } from "../common/index.js";
|
|
2
2
|
import { getDefaultTooltip } from "../common/tooltip.js";
|
|
3
3
|
import { getDarkBandAxis, getDarkLinearAxis } from "../common/axes.js";
|
|
4
|
+
import { getDarkAnnotation } from "../common/annotaion.js";
|
|
4
5
|
const darkTheme = ()=>{
|
|
5
6
|
const linearAxis = getDarkLinearAxis();
|
|
6
7
|
const bandAxis = getDarkBandAxis();
|
|
@@ -36,7 +37,8 @@ const darkTheme = ()=>{
|
|
|
36
37
|
xAxis: bandAxis,
|
|
37
38
|
yAxis: linearAxis,
|
|
38
39
|
crosshairLine: crosshairLine,
|
|
39
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
40
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
41
|
+
annotation: getDarkAnnotation()
|
|
40
42
|
},
|
|
41
43
|
column: {
|
|
42
44
|
...baseConfig,
|
|
@@ -49,7 +51,8 @@ const darkTheme = ()=>{
|
|
|
49
51
|
0,
|
|
50
52
|
0
|
|
51
53
|
],
|
|
52
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
54
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
55
|
+
annotation: getDarkAnnotation()
|
|
53
56
|
},
|
|
54
57
|
columnParallel: {
|
|
55
58
|
...baseConfig,
|
|
@@ -62,7 +65,8 @@ const darkTheme = ()=>{
|
|
|
62
65
|
0,
|
|
63
66
|
0
|
|
64
67
|
],
|
|
65
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
68
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
69
|
+
annotation: getDarkAnnotation()
|
|
66
70
|
},
|
|
67
71
|
columnPercent: {
|
|
68
72
|
...baseConfig,
|
|
@@ -75,7 +79,8 @@ const darkTheme = ()=>{
|
|
|
75
79
|
0,
|
|
76
80
|
0
|
|
77
81
|
],
|
|
78
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
82
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
83
|
+
annotation: getDarkAnnotation()
|
|
79
84
|
},
|
|
80
85
|
bar: {
|
|
81
86
|
...baseConfig,
|
|
@@ -88,7 +93,8 @@ const darkTheme = ()=>{
|
|
|
88
93
|
4,
|
|
89
94
|
0
|
|
90
95
|
],
|
|
91
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
96
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
97
|
+
annotation: getDarkAnnotation()
|
|
92
98
|
},
|
|
93
99
|
barParallel: {
|
|
94
100
|
...baseConfig,
|
|
@@ -101,7 +107,8 @@ const darkTheme = ()=>{
|
|
|
101
107
|
4,
|
|
102
108
|
0
|
|
103
109
|
],
|
|
104
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
110
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
111
|
+
annotation: getDarkAnnotation()
|
|
105
112
|
},
|
|
106
113
|
barPercent: {
|
|
107
114
|
...baseConfig,
|
|
@@ -114,21 +121,24 @@ const darkTheme = ()=>{
|
|
|
114
121
|
4,
|
|
115
122
|
0
|
|
116
123
|
],
|
|
117
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
124
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
125
|
+
annotation: getDarkAnnotation()
|
|
118
126
|
},
|
|
119
127
|
area: {
|
|
120
128
|
...baseConfig,
|
|
121
129
|
xAxis: bandAxis,
|
|
122
130
|
yAxis: linearAxis,
|
|
123
131
|
crosshairLine: crosshairLine,
|
|
124
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
132
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
133
|
+
annotation: getDarkAnnotation()
|
|
125
134
|
},
|
|
126
135
|
areaPercent: {
|
|
127
136
|
...baseConfig,
|
|
128
137
|
xAxis: bandAxis,
|
|
129
138
|
yAxis: linearAxis,
|
|
130
139
|
crosshairLine: crosshairLine,
|
|
131
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
140
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
141
|
+
annotation: getDarkAnnotation()
|
|
132
142
|
},
|
|
133
143
|
scatter: {
|
|
134
144
|
...baseConfig,
|
|
@@ -156,7 +166,8 @@ const darkTheme = ()=>{
|
|
|
156
166
|
showValue: false,
|
|
157
167
|
showValuePercent: false
|
|
158
168
|
},
|
|
159
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
169
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
170
|
+
annotation: getDarkAnnotation()
|
|
160
171
|
},
|
|
161
172
|
dualAxis: {
|
|
162
173
|
...baseConfig,
|
|
@@ -173,7 +184,8 @@ const darkTheme = ()=>{
|
|
|
173
184
|
secondary: 'line'
|
|
174
185
|
},
|
|
175
186
|
crosshairRect,
|
|
176
|
-
pivotGrid: getDarkPivotChartGridConfig()
|
|
187
|
+
pivotGrid: getDarkPivotChartGridConfig(),
|
|
188
|
+
annotation: getDarkAnnotation()
|
|
177
189
|
},
|
|
178
190
|
pie: {
|
|
179
191
|
...baseConfig,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme/dark/dark.js","sources":["webpack://@visactor/vseed/./src/theme/dark/dark.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDarkColor,\n getDarkCrosshairLine,\n getDarkCrosshairRect,\n getDarkTableConfig,\n getDefaultLabel,\n getDefaultLegend,\n getDarkPivotChartGridConfig,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getDarkBandAxis, getDarkLinearAxis } from '../common/axes'\n\nexport const darkTheme = (): CustomThemeConfig => {\n const linearAxis = getDarkLinearAxis()\n const bandAxis = getDarkBandAxis()\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 const crosshairLine = getDarkCrosshairLine()\n const crosshairRect = getDarkCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getDarkColor(),\n label: getDefaultLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\n }\n\n const tableConfig = getDarkTableConfig()\n\n return {\n config: {\n table: tableConfig,\n pivotTable: tableConfig,\n\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n column: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n columnParallel: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n columnPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n bar: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n barParallel: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n barPercent: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n area: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n areaPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\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: getDarkPivotChartGridConfig(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n },\n }\n}\n"],"names":["darkTheme","linearAxis","getDarkLinearAxis","bandAxis","getDarkBandAxis","barBandAxis","undefined","crosshairLine","getDarkCrosshairLine","crosshairRect","getDarkCrosshairRect","baseConfig","getDarkColor","getDefaultLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getDarkTableConfig","getDarkPivotChartGridConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme/dark/dark.js","sources":["webpack://@visactor/vseed/./src/theme/dark/dark.ts"],"sourcesContent":["import type { CustomThemeConfig, YBandAxis } from 'src/types'\nimport {\n getDarkColor,\n getDarkCrosshairLine,\n getDarkCrosshairRect,\n getDarkTableConfig,\n getDefaultLabel,\n getDefaultLegend,\n getDarkPivotChartGridConfig,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getDarkBandAxis, getDarkLinearAxis } from '../common/axes'\nimport { getDarkAnnotation } from '../common/annotaion'\n\nexport const darkTheme = (): CustomThemeConfig => {\n const linearAxis = getDarkLinearAxis()\n const bandAxis = getDarkBandAxis()\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 const crosshairLine = getDarkCrosshairLine()\n const crosshairRect = getDarkCrosshairRect()\n\n const baseConfig = {\n backgroundColor: 'transparent',\n color: getDarkColor(),\n label: getDefaultLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\n }\n\n const tableConfig = getDarkTableConfig()\n\n return {\n config: {\n table: tableConfig,\n pivotTable: tableConfig,\n\n // cartesian\n line: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n column: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n columnParallel: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n columnPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n bar: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barParallel: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n barPercent: {\n ...baseConfig,\n\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect: crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n area: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n areaPercent: {\n ...baseConfig,\n\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine: crosshairLine,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\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: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getDarkPivotChartGridConfig(),\n annotation: getDarkAnnotation(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n radar: {\n ...baseConfig,\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n rose: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n roseParallel: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n showDimension: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n // other\n funnel: {\n ...baseConfig,\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n pivotGrid: getDarkPivotChartGridConfig(),\n },\n },\n }\n}\n"],"names":["darkTheme","linearAxis","getDarkLinearAxis","bandAxis","getDarkBandAxis","barBandAxis","undefined","crosshairLine","getDarkCrosshairLine","crosshairRect","getDarkCrosshairRect","baseConfig","getDarkColor","getDefaultLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getDarkTableConfig","getDarkPivotChartGridConfig","getDarkAnnotation"],"mappings":";;;;AAcO,MAAMA,YAAY;IACvB,MAAMC,aAAaC;IACnB,MAAMC,WAAWC;IACjB,MAAMC,cAAyB;QAC7B,GAAGF,QAAQ;QACX,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,sBAAsBG;QACtB,iBAAiB;QACjB,2BAA2B;YAAC;YAAG;YAAK;SAAI;IAC1C;IACA,MAAMC,gBAAgBC;IACtB,MAAMC,gBAAgBC;IAEtB,MAAMC,aAAa;QACjB,iBAAiB;QACjB,OAAOC;QACP,OAAOC;QACP,QAAQC;QACR,SAASC;IACX;IAEA,MAAMC,cAAcC;IAEpB,OAAO;QACL,QAAQ;YACN,OAAOD;YACP,YAAYA;YAGZ,MAAM;gBACJ,GAAGL,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACP,eAAeM;gBACf,WAAWW;gBACX,YAAYC;YACd;YACA,QAAQ;gBACN,GAAGR,UAAU;gBAEb,OAAOR;gBACP,OAAOF;gBACP,eAAeQ;gBACf,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YACA,gBAAgB;gBACd,GAAGR,UAAU;gBAEb,OAAOR;gBACP,OAAOF;gBACP,eAAeQ;gBACf,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YACA,eAAe;gBACb,GAAGR,UAAU;gBAEb,OAAOR;gBACP,OAAOF;gBACP,eAAeQ;gBACf,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YACA,KAAK;gBACH,GAAGR,UAAU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KAAK;gBACH,GAAGR,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,OAAO;gBACL,GAAGP,UAAU;gBACb,WAAWO;YACb;YACA,MAAM;gBACJ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBACA,WAAWO;YACb;YACA,cAAc;gBACZ,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,kBAAkB;oBAClB,eAAe;gBACjB;gBAEA,WAAWO;YACb;YAEA,QAAQ;gBACN,GAAGP,UAAU;gBAEb,WAAWO;YACb;YACA,SAAS;gBACP,GAAGP,UAAU;gBACb,OAAO;oBACL,GAAGA,WAAW,KAAK;oBACnB,uBAAuB;gBACzB;gBAEA,WAAWO;YACb;QACF;IACF;AACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getDefaultLabel, getDefaultLegend, getLightColor, getLightCrosshairLine, getLightCrosshairRect, getLightPivotChartGridConfig, getLightTableConfig } from "../common/index.js";
|
|
2
2
|
import { getDefaultTooltip } from "../common/tooltip.js";
|
|
3
3
|
import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
|
|
4
|
+
import { getLightAnnotation } from "../common/annotaion.js";
|
|
4
5
|
const lightTheme = ()=>{
|
|
5
6
|
const linearAxis = getLightLinearAxis();
|
|
6
7
|
const bandAxis = getLightBandAxis();
|
|
@@ -36,7 +37,8 @@ const lightTheme = ()=>{
|
|
|
36
37
|
xAxis: bandAxis,
|
|
37
38
|
yAxis: linearAxis,
|
|
38
39
|
crosshairLine,
|
|
39
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
40
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
41
|
+
annotation: getLightAnnotation()
|
|
40
42
|
},
|
|
41
43
|
column: {
|
|
42
44
|
...baseConfig,
|
|
@@ -49,7 +51,8 @@ const lightTheme = ()=>{
|
|
|
49
51
|
0,
|
|
50
52
|
0
|
|
51
53
|
],
|
|
52
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
54
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
55
|
+
annotation: getLightAnnotation()
|
|
53
56
|
},
|
|
54
57
|
columnParallel: {
|
|
55
58
|
...baseConfig,
|
|
@@ -62,7 +65,8 @@ const lightTheme = ()=>{
|
|
|
62
65
|
0,
|
|
63
66
|
0
|
|
64
67
|
],
|
|
65
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
68
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
69
|
+
annotation: getLightAnnotation()
|
|
66
70
|
},
|
|
67
71
|
columnPercent: {
|
|
68
72
|
...baseConfig,
|
|
@@ -77,7 +81,8 @@ const lightTheme = ()=>{
|
|
|
77
81
|
0,
|
|
78
82
|
0
|
|
79
83
|
],
|
|
80
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
84
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
85
|
+
annotation: getLightAnnotation()
|
|
81
86
|
},
|
|
82
87
|
bar: {
|
|
83
88
|
...baseConfig,
|
|
@@ -90,7 +95,8 @@ const lightTheme = ()=>{
|
|
|
90
95
|
4,
|
|
91
96
|
0
|
|
92
97
|
],
|
|
93
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
98
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
99
|
+
annotation: getLightAnnotation()
|
|
94
100
|
},
|
|
95
101
|
barParallel: {
|
|
96
102
|
...baseConfig,
|
|
@@ -103,7 +109,8 @@ const lightTheme = ()=>{
|
|
|
103
109
|
4,
|
|
104
110
|
0
|
|
105
111
|
],
|
|
106
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
112
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
113
|
+
annotation: getLightAnnotation()
|
|
107
114
|
},
|
|
108
115
|
barPercent: {
|
|
109
116
|
...baseConfig,
|
|
@@ -118,14 +125,16 @@ const lightTheme = ()=>{
|
|
|
118
125
|
4,
|
|
119
126
|
0
|
|
120
127
|
],
|
|
121
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
128
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
129
|
+
annotation: getLightAnnotation()
|
|
122
130
|
},
|
|
123
131
|
area: {
|
|
124
132
|
...baseConfig,
|
|
125
133
|
xAxis: bandAxis,
|
|
126
134
|
yAxis: linearAxis,
|
|
127
135
|
crosshairLine,
|
|
128
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
136
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
137
|
+
annotation: getLightAnnotation()
|
|
129
138
|
},
|
|
130
139
|
areaPercent: {
|
|
131
140
|
...baseConfig,
|
|
@@ -134,7 +143,8 @@ const lightTheme = ()=>{
|
|
|
134
143
|
...linearAxis
|
|
135
144
|
},
|
|
136
145
|
crosshairLine,
|
|
137
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
146
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
147
|
+
annotation: getLightAnnotation()
|
|
138
148
|
},
|
|
139
149
|
scatter: {
|
|
140
150
|
...baseConfig,
|
|
@@ -162,7 +172,8 @@ const lightTheme = ()=>{
|
|
|
162
172
|
showValue: false,
|
|
163
173
|
showValuePercent: false
|
|
164
174
|
},
|
|
165
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
175
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
176
|
+
annotation: getLightAnnotation()
|
|
166
177
|
},
|
|
167
178
|
dualAxis: {
|
|
168
179
|
...baseConfig,
|
|
@@ -179,7 +190,8 @@ const lightTheme = ()=>{
|
|
|
179
190
|
secondary: 'line'
|
|
180
191
|
},
|
|
181
192
|
crosshairRect,
|
|
182
|
-
pivotGrid: getLightPivotChartGridConfig()
|
|
193
|
+
pivotGrid: getLightPivotChartGridConfig(),
|
|
194
|
+
annotation: getLightAnnotation()
|
|
183
195
|
},
|
|
184
196
|
pie: {
|
|
185
197
|
...baseConfig,
|
|
@@ -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 getDefaultLabel,\n getDefaultLegend,\n getLightColor,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\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: getDefaultLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\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 },\n column: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n },\n columnParallel: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairRect,\n stackCornerRadius: [4, 4, 0, 0],\n pivotGrid: getLightPivotChartGridConfig(),\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 },\n bar: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\n },\n barParallel: {\n ...baseConfig,\n xAxis: linearAxis,\n yAxis: barBandAxis,\n crosshairRect,\n stackCornerRadius: [0, 4, 4, 0],\n pivotGrid: getLightPivotChartGridConfig(),\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 },\n area: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: linearAxis,\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\n },\n areaPercent: {\n ...baseConfig,\n xAxis: bandAxis,\n yAxis: {\n ...linearAxis,\n },\n crosshairLine,\n pivotGrid: getLightPivotChartGridConfig(),\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 },\n dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\n crosshairRect,\n pivotGrid: getLightPivotChartGridConfig(),\n },\n // polar\n pie: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\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\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getDefaultLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getLightTableConfig","getLightPivotChartGridConfig"],"mappings":"
|
|
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 getDefaultLabel,\n getDefaultLegend,\n getLightColor,\n getLightCrosshairLine,\n getLightCrosshairRect,\n getLightPivotChartGridConfig,\n getLightTableConfig,\n} from '../common'\nimport { getDefaultTooltip } from '../common/tooltip'\nimport { getLightBandAxis, getLightLinearAxis } from '../common/axes'\nimport { getLightAnnotation } from '../common/annotaion'\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: getDefaultLabel(),\n legend: getDefaultLegend(),\n tooltip: getDefaultTooltip(),\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 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 dualAxis: {\n ...baseConfig,\n xAxis: bandAxis,\n primaryYAxis: linearAxis,\n secondaryYAxis: { ...linearAxis, grid: { visible: false } },\n dualChartType: {\n primary: 'column',\n secondary: 'line',\n },\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: 'labelLine',\n showDimension: true,\n },\n pivotGrid: getLightPivotChartGridConfig(),\n },\n donut: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n showValuePercent: true,\n labelLayout: 'labelLine',\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\n pivotGrid: getLightPivotChartGridConfig(),\n },\n heatmap: {\n ...baseConfig,\n label: {\n ...baseConfig.label,\n labelColorSmartInvert: true,\n },\n\n pivotGrid: getLightPivotChartGridConfig(),\n },\n },\n }\n}\n"],"names":["lightTheme","linearAxis","getLightLinearAxis","bandAxis","getLightBandAxis","barBandAxis","undefined","crosshairLine","getLightCrosshairLine","crosshairRect","getLightCrosshairRect","baseConfig","getLightColor","getDefaultLabel","getDefaultLegend","getDefaultTooltip","tableConfig","getLightTableConfig","getLightPivotChartGridConfig","getLightAnnotation"],"mappings":";;;;AAcO,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,iBAAiB;QACjB,OAAOC;QACP,OAAOC;QACP,QAAQC;QACR,SAASC;IACX;IACA,MAAMC,cAAcC;IAEpB,OAAO;QACL,QAAQ;YAEN,OAAOD;YACP,YAAYA;YAEZ,MAAM;gBACJ,GAAGL,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACPM;gBAEA,WAAWW;gBACX,YAAYC;YACd;YACA,QAAQ;gBACN,GAAGR,UAAU;gBACb,OAAOR;gBACP,OAAOF;gBACPQ;gBACA,mBAAmB;oBAAC;oBAAG;oBAAG;oBAAG;iBAAE;gBAC/B,WAAWS;gBACX,YAAYC;YACd;YAC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