@visactor/vseed 0.4.23 → 0.4.25
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/pipeline/advanced/chart/pipes/annotation/annotation.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.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/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/pipes/annotation/annotationDifferenceLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +134 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.d.ts +27 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js +167 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +1 -0
- package/dist/esm/theme/common/annotaion.d.ts +6 -1
- package/dist/esm/theme/common/annotaion.js +18 -1
- package/dist/esm/theme/common/annotaion.js.map +1 -1
- package/dist/esm/theme/dark/area.d.ts +2 -0
- package/dist/esm/theme/dark/bar.d.ts +3 -0
- package/dist/esm/theme/dark/boxPlot.d.ts +1 -0
- package/dist/esm/theme/dark/column.d.ts +3 -0
- package/dist/esm/theme/dark/dualAxis.d.ts +1 -0
- package/dist/esm/theme/dark/histogram.d.ts +1 -0
- package/dist/esm/theme/dark/line.d.ts +1 -0
- package/dist/esm/theme/dark/race.d.ts +3 -0
- package/dist/esm/theme/dark/raceLine.d.ts +1 -0
- package/dist/esm/theme/dark/scatter.d.ts +1 -0
- package/dist/esm/theme/light/area.d.ts +2 -0
- package/dist/esm/theme/light/bar.d.ts +3 -0
- package/dist/esm/theme/light/boxPlot.d.ts +1 -0
- package/dist/esm/theme/light/column.d.ts +3 -0
- package/dist/esm/theme/light/dualAxis.d.ts +1 -0
- package/dist/esm/theme/light/histogram.d.ts +1 -0
- package/dist/esm/theme/light/line.d.ts +1 -0
- package/dist/esm/theme/light/race.d.ts +3 -0
- package/dist/esm/theme/light/raceLine.d.ts +1 -0
- package/dist/esm/theme/light/scatter.d.ts +1 -0
- package/dist/esm/theme/tokenTheme.js +3 -0
- package/dist/esm/theme/tokenTheme.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +5 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +303 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +5 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +303 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +5 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +303 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +5 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +303 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/properties/annotation/annotation.d.ts +303 -0
- package/dist/esm/types/properties/annotation/annotation.js +3 -1
- package/dist/esm/types/properties/annotation/annotation.js.map +1 -1
- package/dist/esm/types/properties/annotation/annotationDifferenceLine.d.ts +51 -0
- package/dist/esm/types/properties/annotation/annotationDifferenceLine.js +0 -0
- package/dist/esm/types/properties/annotation/index.d.ts +2 -0
- package/dist/esm/types/properties/annotation/index.js +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.d.ts +294 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js +29 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js.map +1 -0
- package/dist/esm/types/properties/config/annotation/annotation.d.ts +2 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.d.ts +12 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.js +10 -2
- package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
- package/dist/esm/types/properties/config/area.d.ts +12 -0
- package/dist/esm/types/properties/config/bar.d.ts +18 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +6 -0
- package/dist/esm/types/properties/config/column.d.ts +18 -0
- package/dist/esm/types/properties/config/config.d.ts +114 -0
- package/dist/esm/types/properties/config/dualAxis.d.ts +6 -0
- package/dist/esm/types/properties/config/histogram.d.ts +6 -0
- package/dist/esm/types/properties/config/line.d.ts +6 -0
- package/dist/esm/types/properties/config/race.d.ts +36 -0
- package/dist/esm/types/properties/config/scatter.d.ts +6 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +228 -0
- package/dist/umd/index.js +366 -6
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import type { AnnotationAreaConfig, AnnotationHorizontalLineConfig, AnnotationPointConfig } from '../../types/properties/config/annotation/annotation';
|
|
1
|
+
import type { AnnotationAreaConfig, AnnotationDifferenceLineConfig, AnnotationHorizontalLineConfig, AnnotationPointConfig } from '../../types/properties/config/annotation/annotation';
|
|
2
2
|
export declare const getDefaultAnnotationPoint: () => AnnotationPointConfig;
|
|
3
3
|
export declare const getLightAnnotationPoint: () => AnnotationPointConfig;
|
|
4
4
|
export declare const getDefaultAnnotationLine: () => AnnotationHorizontalLineConfig;
|
|
5
5
|
export declare const getLightAnnotationHorizontalLine: () => AnnotationHorizontalLineConfig;
|
|
6
6
|
export declare const getLightAnnotationVerticalLine: () => AnnotationHorizontalLineConfig;
|
|
7
|
+
export declare const getDefaultAnnotationDifferenceLine: () => AnnotationDifferenceLineConfig;
|
|
8
|
+
export declare const getLightAnnotationDifferenceLine: () => AnnotationDifferenceLineConfig;
|
|
7
9
|
export declare const getDefaultAnnotationArea: () => AnnotationAreaConfig;
|
|
8
10
|
export declare const getLightAnnotationArea: () => AnnotationAreaConfig;
|
|
9
11
|
export declare const getLightAnnotation: () => {
|
|
10
12
|
annotationPoint: AnnotationPointConfig;
|
|
11
13
|
annotationHorizontalLine: AnnotationHorizontalLineConfig;
|
|
12
14
|
annotationVerticalLine: AnnotationHorizontalLineConfig;
|
|
15
|
+
annotationDifferenceLine: AnnotationDifferenceLineConfig;
|
|
13
16
|
annotationArea: AnnotationAreaConfig;
|
|
14
17
|
};
|
|
15
18
|
export declare const getDarkAnnotationPoint: () => AnnotationPointConfig;
|
|
16
19
|
export declare const getDarkAnnotationHorizontalLine: () => AnnotationHorizontalLineConfig;
|
|
17
20
|
export declare const getDarkAnnotationVerticalLine: () => AnnotationHorizontalLineConfig;
|
|
21
|
+
export declare const getDarkAnnotationDifferenceLine: () => AnnotationDifferenceLineConfig;
|
|
18
22
|
export declare const getDarkAnnotationArea: () => AnnotationAreaConfig;
|
|
19
23
|
export declare const getDarkAnnotation: () => {
|
|
20
24
|
annotationPoint: AnnotationPointConfig;
|
|
21
25
|
annotationHorizontalLine: AnnotationHorizontalLineConfig;
|
|
22
26
|
annotationVerticalLine: AnnotationHorizontalLineConfig;
|
|
27
|
+
annotationDifferenceLine: AnnotationDifferenceLineConfig;
|
|
23
28
|
annotationArea: AnnotationAreaConfig;
|
|
24
29
|
};
|
|
25
30
|
export default getLightAnnotation;
|
|
@@ -33,6 +33,15 @@ const getLightAnnotationHorizontalLine = ()=>({
|
|
|
33
33
|
textBackgroundBorderColor: '#BCC1CB'
|
|
34
34
|
});
|
|
35
35
|
const getLightAnnotationVerticalLine = ()=>getLightAnnotationHorizontalLine();
|
|
36
|
+
const getDefaultAnnotationDifferenceLine = ()=>({
|
|
37
|
+
textFontSize: 12
|
|
38
|
+
});
|
|
39
|
+
const getLightAnnotationDifferenceLine = ()=>({
|
|
40
|
+
...getDefaultAnnotationDifferenceLine(),
|
|
41
|
+
lineColor: '#BCC1CB',
|
|
42
|
+
textColor: '#ffffff',
|
|
43
|
+
textBackgroundColor: '#BCC1CB'
|
|
44
|
+
});
|
|
36
45
|
const getDefaultAnnotationArea = ()=>({
|
|
37
46
|
textFontSize: 12,
|
|
38
47
|
textFontWeight: 400,
|
|
@@ -61,6 +70,7 @@ const getLightAnnotation = ()=>({
|
|
|
61
70
|
annotationPoint: getLightAnnotationPoint(),
|
|
62
71
|
annotationHorizontalLine: getLightAnnotationHorizontalLine(),
|
|
63
72
|
annotationVerticalLine: getLightAnnotationVerticalLine(),
|
|
73
|
+
annotationDifferenceLine: getLightAnnotationDifferenceLine(),
|
|
64
74
|
annotationArea: getLightAnnotationArea()
|
|
65
75
|
});
|
|
66
76
|
const getDarkAnnotationPoint = ()=>({
|
|
@@ -77,6 +87,12 @@ const getDarkAnnotationHorizontalLine = ()=>({
|
|
|
77
87
|
textBackgroundBorderColor: '#55595F'
|
|
78
88
|
});
|
|
79
89
|
const getDarkAnnotationVerticalLine = ()=>getDarkAnnotationHorizontalLine();
|
|
90
|
+
const getDarkAnnotationDifferenceLine = ()=>({
|
|
91
|
+
...getDefaultAnnotationDifferenceLine(),
|
|
92
|
+
lineColor: '#55595F',
|
|
93
|
+
textColor: '#E2E3E6',
|
|
94
|
+
textBackgroundColor: '#55595F'
|
|
95
|
+
});
|
|
80
96
|
const getDarkAnnotationArea = ()=>({
|
|
81
97
|
...getDefaultAnnotationArea(),
|
|
82
98
|
textColor: '#E2E3E6',
|
|
@@ -90,10 +106,11 @@ const getDarkAnnotation = ()=>({
|
|
|
90
106
|
annotationPoint: getDarkAnnotationPoint(),
|
|
91
107
|
annotationHorizontalLine: getDarkAnnotationHorizontalLine(),
|
|
92
108
|
annotationVerticalLine: getDarkAnnotationVerticalLine(),
|
|
109
|
+
annotationDifferenceLine: getDarkAnnotationDifferenceLine(),
|
|
93
110
|
annotationArea: getDarkAnnotationArea()
|
|
94
111
|
});
|
|
95
112
|
const annotaion = getLightAnnotation;
|
|
96
113
|
export default annotaion;
|
|
97
|
-
export { getDarkAnnotation, getDarkAnnotationArea, getDarkAnnotationHorizontalLine, getDarkAnnotationPoint, getDarkAnnotationVerticalLine, getDefaultAnnotationArea, getDefaultAnnotationLine, getDefaultAnnotationPoint, getLightAnnotation, getLightAnnotationArea, getLightAnnotationHorizontalLine, getLightAnnotationPoint, getLightAnnotationVerticalLine };
|
|
114
|
+
export { getDarkAnnotation, getDarkAnnotationArea, getDarkAnnotationDifferenceLine, getDarkAnnotationHorizontalLine, getDarkAnnotationPoint, getDarkAnnotationVerticalLine, getDefaultAnnotationArea, getDefaultAnnotationDifferenceLine, getDefaultAnnotationLine, getDefaultAnnotationPoint, getLightAnnotation, getLightAnnotationArea, getLightAnnotationDifferenceLine, getLightAnnotationHorizontalLine, getLightAnnotationPoint, getLightAnnotationVerticalLine };
|
|
98
115
|
|
|
99
116
|
//# sourceMappingURL=annotaion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme/common/annotaion.js","sources":["../../../../src/theme/common/annotaion.ts"],"sourcesContent":["import type {\n AnnotationAreaConfig,\n AnnotationHorizontalLineConfig,\n AnnotationPointConfig,\n} from 'src/types/properties/config/annotation/annotation'\n\nexport const getDefaultAnnotationPoint = (): AnnotationPointConfig => ({\n textBackgroundVisible: true,\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundBorderRadius: 0,\n textBackgroundBorderWidth: 1,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#ffffff',\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n})\n\nexport const getDefaultAnnotationLine = (): AnnotationHorizontalLineConfig => ({\n lineVisible: true,\n lineWidth: 1,\n lineStyle: 'solid' as const,\n\n textFontSize: 12,\n textFontWeight: 400,\n startSymbolVisible: true,\n endSymbolVisible: false,\n\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#BCC1CB',\n\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotationVerticalLine = () => getLightAnnotationHorizontalLine()\n\nexport const getDefaultAnnotationArea = (): AnnotationAreaConfig => ({\n textFontSize: 12,\n textFontWeight: 400,\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n areaBorderWidth: 0,\n areaBorderRadius: 0,\n areaLineDash: [2, 2],\n\n outerPadding: 4,\n})\n\nexport const getLightAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n\n areaColor: '#BCC1CB',\n areaColorOpacity: 0.12,\n areaBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotation = () => ({\n annotationPoint: getLightAnnotationPoint(),\n annotationHorizontalLine: getLightAnnotationHorizontalLine(),\n annotationVerticalLine: getLightAnnotationVerticalLine(),\n annotationArea: getLightAnnotationArea(),\n})\n\n// --- dark ---\nexport const getDarkAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#E2E3E6',\n\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n})\n\nexport const getDarkAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#55595F',\n\n textColor: '#E2E3E6',\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n})\n\nexport const getDarkAnnotationVerticalLine = () => getDarkAnnotationHorizontalLine()\n\nexport const getDarkAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#E2E3E6',\n\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n\n areaColor: '#E2E3E6',\n areaColorOpacity: 0.15,\n areaBorderColor: '#E2E3E6',\n})\n\nexport const getDarkAnnotation = () => ({\n annotationPoint: getDarkAnnotationPoint(),\n annotationHorizontalLine: getDarkAnnotationHorizontalLine(),\n annotationVerticalLine: getDarkAnnotationVerticalLine(),\n annotationArea: getDarkAnnotationArea(),\n})\n\nexport default getLightAnnotation\n"],"names":["getDefaultAnnotationPoint","getLightAnnotationPoint","getDefaultAnnotationLine","getLightAnnotationHorizontalLine","getLightAnnotationVerticalLine","getDefaultAnnotationArea","getLightAnnotationArea","getLightAnnotation","getDarkAnnotationPoint","getDarkAnnotationHorizontalLine","getDarkAnnotationVerticalLine","getDarkAnnotationArea","getDarkAnnotation"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme/common/annotaion.js","sources":["../../../../src/theme/common/annotaion.ts"],"sourcesContent":["import type {\n AnnotationAreaConfig,\n AnnotationDifferenceLineConfig,\n AnnotationHorizontalLineConfig,\n AnnotationPointConfig,\n} from 'src/types/properties/config/annotation/annotation'\n\nexport const getDefaultAnnotationPoint = (): AnnotationPointConfig => ({\n textBackgroundVisible: true,\n textFontSize: 12,\n textFontWeight: 400,\n\n textBackgroundBorderRadius: 0,\n textBackgroundBorderWidth: 1,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#ffffff',\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n})\n\nexport const getDefaultAnnotationLine = (): AnnotationHorizontalLineConfig => ({\n lineVisible: true,\n lineWidth: 1,\n lineStyle: 'solid' as const,\n\n textFontSize: 12,\n textFontWeight: 400,\n startSymbolVisible: true,\n endSymbolVisible: false,\n\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n})\n\nexport const getLightAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#BCC1CB',\n\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotationVerticalLine = () => getLightAnnotationHorizontalLine()\n\nexport const getDefaultAnnotationDifferenceLine = (): AnnotationDifferenceLineConfig => ({\n textFontSize: 12,\n})\n\nexport const getLightAnnotationDifferenceLine = (): AnnotationDifferenceLineConfig => ({\n ...getDefaultAnnotationDifferenceLine(),\n lineColor: '#BCC1CB',\n textColor: '#ffffff',\n textBackgroundColor: '#BCC1CB',\n})\n\nexport const getDefaultAnnotationArea = (): AnnotationAreaConfig => ({\n textFontSize: 12,\n textFontWeight: 400,\n textBackgroundVisible: true,\n textBackgroundBorderWidth: 1,\n textBackgroundBorderRadius: 0,\n textBackgroundPadding: 2,\n areaBorderWidth: 0,\n areaBorderRadius: 0,\n areaLineDash: [2, 2],\n\n outerPadding: 4,\n})\n\nexport const getLightAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#ffffff',\n\n textBackgroundColor: '#BCC1CB',\n textBackgroundBorderColor: '#BCC1CB',\n\n areaColor: '#BCC1CB',\n areaColorOpacity: 0.12,\n areaBorderColor: '#BCC1CB',\n})\n\nexport const getLightAnnotation = () => ({\n annotationPoint: getLightAnnotationPoint(),\n annotationHorizontalLine: getLightAnnotationHorizontalLine(),\n annotationVerticalLine: getLightAnnotationVerticalLine(),\n annotationDifferenceLine: getLightAnnotationDifferenceLine(),\n annotationArea: getLightAnnotationArea(),\n})\n\n// --- dark ---\nexport const getDarkAnnotationPoint = (): AnnotationPointConfig => ({\n ...getDefaultAnnotationPoint(),\n textColor: '#E2E3E6',\n\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n})\n\nexport const getDarkAnnotationHorizontalLine = (): AnnotationHorizontalLineConfig => ({\n ...getDefaultAnnotationLine(),\n lineColor: '#55595F',\n\n textColor: '#E2E3E6',\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n})\n\nexport const getDarkAnnotationVerticalLine = () => getDarkAnnotationHorizontalLine()\n\nexport const getDarkAnnotationDifferenceLine = (): AnnotationDifferenceLineConfig => ({\n ...getDefaultAnnotationDifferenceLine(),\n lineColor: '#55595F',\n textColor: '#E2E3E6',\n textBackgroundColor: '#55595F',\n})\n\nexport const getDarkAnnotationArea = (): AnnotationAreaConfig => ({\n ...getDefaultAnnotationArea(),\n textColor: '#E2E3E6',\n\n textBackgroundColor: '#55595F',\n textBackgroundBorderColor: '#55595F',\n\n areaColor: '#E2E3E6',\n areaColorOpacity: 0.15,\n areaBorderColor: '#E2E3E6',\n})\n\nexport const getDarkAnnotation = () => ({\n annotationPoint: getDarkAnnotationPoint(),\n annotationHorizontalLine: getDarkAnnotationHorizontalLine(),\n annotationVerticalLine: getDarkAnnotationVerticalLine(),\n annotationDifferenceLine: getDarkAnnotationDifferenceLine(),\n annotationArea: getDarkAnnotationArea(),\n})\n\nexport default getLightAnnotation\n"],"names":["getDefaultAnnotationPoint","getLightAnnotationPoint","getDefaultAnnotationLine","getLightAnnotationHorizontalLine","getLightAnnotationVerticalLine","getDefaultAnnotationDifferenceLine","getLightAnnotationDifferenceLine","getDefaultAnnotationArea","getLightAnnotationArea","getLightAnnotation","getDarkAnnotationPoint","getDarkAnnotationHorizontalLine","getDarkAnnotationVerticalLine","getDarkAnnotationDifferenceLine","getDarkAnnotationArea","getDarkAnnotation"],"mappings":"AAOO,MAAMA,4BAA4B,IAA8B;QACrE,uBAAuB;QACvB,cAAc;QACd,gBAAgB;QAEhB,4BAA4B;QAC5B,2BAA2B;QAC3B,uBAAuB;IACzB;AAEO,MAAMC,0BAA0B,IAA8B;QACnE,GAAGD,2BAA2B;QAC9B,WAAW;QACX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAME,2BAA2B,IAAuC;QAC7E,aAAa;QACb,WAAW;QACX,WAAW;QAEX,cAAc;QACd,gBAAgB;QAChB,oBAAoB;QACpB,kBAAkB;QAElB,uBAAuB;QACvB,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;IACzB;AAEO,MAAMC,mCAAmC,IAAuC;QACrF,GAAGD,0BAA0B;QAC7B,WAAW;QAEX,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAME,iCAAiC,IAAMD;AAE7C,MAAME,qCAAqC,IAAuC;QACvF,cAAc;IAChB;AAEO,MAAMC,mCAAmC,IAAuC;QACrF,GAAGD,oCAAoC;QACvC,WAAW;QACX,WAAW;QACX,qBAAqB;IACvB;AAEO,MAAME,2BAA2B,IAA6B;QACnE,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;YAAC;YAAG;SAAE;QAEpB,cAAc;IAChB;AAEO,MAAMC,yBAAyB,IAA6B;QACjE,GAAGD,0BAA0B;QAC7B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;QAE3B,WAAW;QACX,kBAAkB;QAClB,iBAAiB;IACnB;AAEO,MAAME,qBAAqB,IAAO;QACvC,iBAAiBR;QACjB,0BAA0BE;QAC1B,wBAAwBC;QACxB,0BAA0BE;QAC1B,gBAAgBE;IAClB;AAGO,MAAME,yBAAyB,IAA8B;QAClE,GAAGV,2BAA2B;QAC9B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAMW,kCAAkC,IAAuC;QACpF,GAAGT,0BAA0B;QAC7B,WAAW;QAEX,WAAW;QACX,qBAAqB;QACrB,2BAA2B;IAC7B;AAEO,MAAMU,gCAAgC,IAAMD;AAE5C,MAAME,kCAAkC,IAAuC;QACpF,GAAGR,oCAAoC;QACvC,WAAW;QACX,WAAW;QACX,qBAAqB;IACvB;AAEO,MAAMS,wBAAwB,IAA6B;QAChE,GAAGP,0BAA0B;QAC7B,WAAW;QAEX,qBAAqB;QACrB,2BAA2B;QAE3B,WAAW;QACX,kBAAkB;QAClB,iBAAiB;IACnB;AAEO,MAAMQ,oBAAoB,IAAO;QACtC,iBAAiBL;QACjB,0BAA0BC;QAC1B,wBAAwBC;QACxB,0BAA0BC;QAC1B,gBAAgBC;IAClB;AAEA,kBAAeL"}
|
|
@@ -32,6 +32,7 @@ export declare const getAreaTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
backgroundColor: string;
|
|
@@ -113,6 +114,7 @@ export declare const getAreaPercentTheme: () => {
|
|
|
113
114
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
114
115
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
115
116
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
117
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
116
118
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
117
119
|
};
|
|
118
120
|
backgroundColor: string;
|
|
@@ -34,6 +34,7 @@ export declare const getBarTheme: () => {
|
|
|
34
34
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
35
35
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
36
36
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
37
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
37
38
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
38
39
|
};
|
|
39
40
|
backgroundColor: string;
|
|
@@ -116,6 +117,7 @@ export declare const getBarParallelTheme: () => {
|
|
|
116
117
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
117
118
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
118
119
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
120
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
119
121
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
120
122
|
};
|
|
121
123
|
backgroundColor: string;
|
|
@@ -198,6 +200,7 @@ export declare const getBarPercentTheme: () => {
|
|
|
198
200
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
199
201
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
200
202
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
203
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
201
204
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
202
205
|
};
|
|
203
206
|
backgroundColor: string;
|
|
@@ -32,6 +32,7 @@ export declare const getBoxPlotTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
boxPlotStyle: import("../..").BoxPlotStyle;
|
|
@@ -33,6 +33,7 @@ export declare const getColumnTheme: () => {
|
|
|
33
33
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
34
34
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
35
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
36
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
36
37
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
37
38
|
};
|
|
38
39
|
regressionLine: Partial<{
|
|
@@ -289,6 +290,7 @@ export declare const getColumnParallelTheme: () => {
|
|
|
289
290
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
290
291
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
291
292
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
293
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
292
294
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
293
295
|
};
|
|
294
296
|
backgroundColor: string;
|
|
@@ -371,6 +373,7 @@ export declare const getColumnPercentTheme: () => {
|
|
|
371
373
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
372
374
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
373
375
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
376
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
374
377
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
375
378
|
};
|
|
376
379
|
backgroundColor: string;
|
|
@@ -76,6 +76,7 @@ export declare const getDualAxisTheme: () => {
|
|
|
76
76
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
77
77
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
78
78
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
79
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
79
80
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
80
81
|
};
|
|
81
82
|
backgroundColor: string;
|
|
@@ -32,6 +32,7 @@ export declare const getHistogramTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
regressionLine: Partial<{
|
|
@@ -32,6 +32,7 @@ export declare const getLineTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
backgroundColor: string;
|
|
@@ -47,6 +47,7 @@ export declare const getRaceBarTheme: () => {
|
|
|
47
47
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
48
48
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
49
49
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
50
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
50
51
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
51
52
|
};
|
|
52
53
|
player: Player;
|
|
@@ -142,6 +143,7 @@ export declare const getRaceColumnTheme: () => {
|
|
|
142
143
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
143
144
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
144
145
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
146
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
145
147
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
146
148
|
};
|
|
147
149
|
player: Player;
|
|
@@ -512,6 +514,7 @@ export declare const getRaceScatterTheme: () => {
|
|
|
512
514
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
513
515
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
514
516
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
517
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
515
518
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
516
519
|
};
|
|
517
520
|
regressionLine: Partial<{
|
|
@@ -146,6 +146,7 @@ export declare const getRaceLineTheme: () => {
|
|
|
146
146
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
147
147
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
148
148
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
149
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
149
150
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
150
151
|
};
|
|
151
152
|
backgroundColor: string;
|
|
@@ -134,6 +134,7 @@ export declare const getScatterTheme: () => {
|
|
|
134
134
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
135
135
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
136
136
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
137
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
137
138
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
138
139
|
};
|
|
139
140
|
regressionLine: Partial<{
|
|
@@ -32,6 +32,7 @@ export declare const getAreaTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
backgroundColor: string;
|
|
@@ -113,6 +114,7 @@ export declare const getAreaPercentTheme: () => {
|
|
|
113
114
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
114
115
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
115
116
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
117
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
116
118
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
117
119
|
};
|
|
118
120
|
backgroundColor: string;
|
|
@@ -34,6 +34,7 @@ export declare const getBarTheme: () => {
|
|
|
34
34
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
35
35
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
36
36
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
37
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
37
38
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
38
39
|
};
|
|
39
40
|
backgroundColor: string;
|
|
@@ -116,6 +117,7 @@ export declare const getBarParallelTheme: () => {
|
|
|
116
117
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
117
118
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
118
119
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
120
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
119
121
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
120
122
|
};
|
|
121
123
|
backgroundColor: string;
|
|
@@ -198,6 +200,7 @@ export declare const getBarPercentTheme: () => {
|
|
|
198
200
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
199
201
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
200
202
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
203
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
201
204
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
202
205
|
};
|
|
203
206
|
backgroundColor: string;
|
|
@@ -32,6 +32,7 @@ export declare const getBoxPlotTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
boxPlotStyle: import("../..").BoxPlotStyle;
|
|
@@ -33,6 +33,7 @@ export declare const getColumnTheme: () => {
|
|
|
33
33
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
34
34
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
35
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
36
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
36
37
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
37
38
|
};
|
|
38
39
|
regressionLine: Partial<{
|
|
@@ -289,6 +290,7 @@ export declare const getColumnParallelTheme: () => {
|
|
|
289
290
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
290
291
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
291
292
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
293
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
292
294
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
293
295
|
};
|
|
294
296
|
backgroundColor: string;
|
|
@@ -371,6 +373,7 @@ export declare const getColumnPercentTheme: () => {
|
|
|
371
373
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
372
374
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
373
375
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
376
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
374
377
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
375
378
|
};
|
|
376
379
|
backgroundColor: string;
|
|
@@ -76,6 +76,7 @@ export declare const getDualAxisTheme: () => {
|
|
|
76
76
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
77
77
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
78
78
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
79
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
79
80
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
80
81
|
};
|
|
81
82
|
backgroundColor: string;
|
|
@@ -32,6 +32,7 @@ export declare const getHistogramTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
regressionLine: Partial<{
|
|
@@ -32,6 +32,7 @@ export declare const getLineTheme: () => {
|
|
|
32
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
33
33
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
34
34
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
35
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
35
36
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
36
37
|
};
|
|
37
38
|
backgroundColor: string;
|
|
@@ -139,6 +139,7 @@ export declare const getRaceBarTheme: () => {
|
|
|
139
139
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
140
140
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
141
141
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
142
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
142
143
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
143
144
|
};
|
|
144
145
|
backgroundColor: string;
|
|
@@ -325,6 +326,7 @@ export declare const getRaceColumnTheme: () => {
|
|
|
325
326
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
326
327
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
327
328
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
329
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
328
330
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
329
331
|
};
|
|
330
332
|
regressionLine: Partial<{
|
|
@@ -695,6 +697,7 @@ export declare const getRaceScatterTheme: () => {
|
|
|
695
697
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
696
698
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
697
699
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
700
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
698
701
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
699
702
|
};
|
|
700
703
|
regressionLine: Partial<{
|
|
@@ -146,6 +146,7 @@ export declare const getRaceLineTheme: () => {
|
|
|
146
146
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
147
147
|
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
148
148
|
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
149
|
+
annotationDifferenceLine: import("../../types").AnnotationDifferenceLineConfig;
|
|
149
150
|
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
150
151
|
};
|
|
151
152
|
backgroundColor: string;
|
|
@@ -134,6 +134,7 @@ export declare const getScatterTheme: () => {
|
|
|
134
134
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
135
135
|
annotationHorizontalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
136
136
|
annotationVerticalLine: import("../..").AnnotationHorizontalLineConfig;
|
|
137
|
+
annotationDifferenceLine: import("../..").AnnotationDifferenceLineConfig;
|
|
137
138
|
annotationArea: import("../..").AnnotationAreaConfig;
|
|
138
139
|
};
|
|
139
140
|
regressionLine: Partial<{
|
|
@@ -159,6 +159,9 @@ const getAnnotationPatch = (tokens)=>({
|
|
|
159
159
|
annotationVerticalLine: {
|
|
160
160
|
textFontSize: tokens.labelFontSize
|
|
161
161
|
},
|
|
162
|
+
annotationDifferenceLine: {
|
|
163
|
+
textFontSize: tokens.labelFontSize
|
|
164
|
+
},
|
|
162
165
|
annotationArea: {
|
|
163
166
|
textFontSize: tokens.labelFontSize
|
|
164
167
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme/tokenTheme.js","sources":["../../../src/theme/tokenTheme.ts"],"sourcesContent":["import tinycolor from 'tinycolor2'\nimport type { Config, CustomThemeConfig } from 'src/types'\nimport { registerAll } from '../builder/register/all'\nimport { registerCustomTheme } from '../builder/register/theme'\nimport { darkTheme } from './dark'\nimport { lightTheme } from './light'\n\nexport type TokenThemeBase = 'light' | 'dark'\n\nexport type TokenThemeDefinition = {\n baseTheme: TokenThemeBase\n fontFamily?: string\n tableHeaderFontSize?: number\n tableBodyFontSize?: number\n labelFontSize?: number\n tooltipFontSize?: number\n axisFontSize?: number\n legendFontSize?: number\n playerFontSize?: number\n colorScheme: [string, string, ...string[]]\n linearColorScheme: [string, string]\n textPrimary: string\n textSecondary: string\n borderColor: string\n surfaceColor?: string\n surfaceBackgroundColor?: string\n accentColor?: string\n positiveColor?: string\n negativeColor?: string\n tooltipBackgroundColor: string\n tooltipBorderColor?: string\n axisLabelColor?: string\n axisTitleColor?: string\n axisGridColor?: string\n axisLineColor?: string\n labelColor?: string\n labelStroke?: string\n legendLabelColor?: string\n legendPagerIconColor?: string\n legendPagerIconDisableColor?: string\n playerRailColor?: string\n playerSliderHandleColor?: string\n playerSliderHandleBorderColor?: string\n tableBorderColor?: string\n tableBodyFontColor?: string\n tableHeaderFontColor?: string\n tableHeaderBackgroundColor?: string\n tableHoverBodyBackgroundColor?: string\n tableHoverBodyInlineBackgroundColor?: string\n tableHoverHeaderBackgroundColor?: string\n tableHoverHeaderInlineBackgroundColor?: string\n tableSelectedBorderColor?: string\n tableSelectedBackgroundColor?: string\n}\n\nexport type TokenThemeRegistry = Record<string, TokenThemeDefinition>\n\nexport type RegisterTokenThemeOptions = {\n ensureRegisterAll?: boolean\n}\n\ntype ThemeConfigMap = NonNullable<CustomThemeConfig['config']>\ntype ThemeConfigKey = keyof ThemeConfigMap\n\nconst raceChartTypes: ThemeConfigKey[] = ['raceBar', 'raceColumn', 'raceScatter', 'raceLine', 'racePie', 'raceDonut']\n\nlet hasEnsuredRegisterAll = false\n\nconst isRecord = (value: unknown): value is Record<string, unknown> => {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nconst mergeThemeNode = <T>(base: T, patch: Partial<T>): T => {\n if (!isRecord(base) || !isRecord(patch)) {\n return patch as T\n }\n\n const result: Record<string, unknown> = { ...base }\n for (const [key, patchValue] of Object.entries(patch)) {\n if (patchValue === undefined) {\n continue\n }\n\n const currentValue = result[key]\n if (Array.isArray(patchValue)) {\n result[key] = [...patchValue]\n continue\n }\n\n if (isRecord(currentValue) && isRecord(patchValue)) {\n result[key] = mergeThemeNode(currentValue, patchValue)\n continue\n }\n\n result[key] = patchValue\n }\n\n return result as T\n}\n\nconst withAlpha = (color: string, alpha: number) => tinycolor(color).setAlpha(alpha).toRgbString()\n\nconst ensureRegisterAll = (options?: RegisterTokenThemeOptions) => {\n if (options?.ensureRegisterAll === false || hasEnsuredRegisterAll) {\n return\n }\n\n registerAll()\n hasEnsuredRegisterAll = true\n}\n\nconst getAccentColor = (tokens: TokenThemeDefinition) => tokens.accentColor || tokens.colorScheme[0]\n\nconst getAxisPatch = (tokens: TokenThemeDefinition) => ({\n label: {\n labelColor: tokens.axisLabelColor || tokens.textSecondary,\n labelFontSize: tokens.axisFontSize,\n },\n title: {\n titleColor: tokens.axisTitleColor || tokens.textSecondary,\n titleFontSize: tokens.axisFontSize,\n },\n grid: {\n gridColor: tokens.axisGridColor || tokens.borderColor,\n },\n tick: {\n tickColor: tokens.axisLineColor || tokens.borderColor,\n },\n line: {\n lineColor: tokens.axisLineColor || tokens.borderColor,\n },\n})\n\nconst getPivotGridPatch = (tokens: TokenThemeDefinition) => ({\n borderColor: tokens.tableBorderColor || tokens.borderColor,\n bodyFontSize: tokens.tableBodyFontSize,\n bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,\n headerFontSize: tokens.tableHeaderFontSize,\n headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,\n headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',\n hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(getAccentColor(tokens), 0.18),\n hoverHeaderInlineBackgroundColor:\n tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(getAccentColor(tokens), 0.08),\n titleFontColor: tokens.textPrimary,\n titleFontSize: tokens.tableHeaderFontSize,\n chartGridColor: tokens.axisGridColor || tokens.borderColor,\n axisLabelColor: tokens.axisLabelColor || tokens.textSecondary,\n axisLabelFontSize: tokens.axisFontSize,\n})\n\nconst getPlayerPatch = (tokens: TokenThemeDefinition) => {\n const accentColor = getAccentColor(tokens)\n\n return {\n fontFamily: tokens.fontFamily,\n fontSize: tokens.playerFontSize,\n railColor: tokens.playerRailColor || tokens.borderColor,\n trackColor: accentColor,\n sliderHandleColor: tokens.playerSliderHandleColor || tokens.surfaceColor || '#ffffff',\n sliderHandleBorderColor: tokens.playerSliderHandleBorderColor || accentColor,\n startButtonColor: accentColor,\n pauseButtonColor: accentColor,\n backwardButtonColor: accentColor,\n forwardButtonColor: accentColor,\n }\n}\n\nconst getTablePatch = (tokens: TokenThemeDefinition) => {\n const accentColor = getAccentColor(tokens)\n\n return {\n borderColor: tokens.tableBorderColor || tokens.borderColor,\n bodyFontSize: tokens.tableBodyFontSize,\n bodyFontFamily: tokens.fontFamily,\n bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,\n headerFontSize: tokens.tableHeaderFontSize,\n headerFontFamily: tokens.fontFamily,\n headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,\n headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',\n hoverBodyBackgroundColor: tokens.tableHoverBodyBackgroundColor || withAlpha(accentColor, 0.18),\n hoverBodyInlineBackgroundColor: tokens.tableHoverBodyInlineBackgroundColor || withAlpha(accentColor, 0.08),\n hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(accentColor, 0.18),\n hoverHeaderInlineBackgroundColor: tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(accentColor, 0.08),\n selectedBorderColor: tokens.tableSelectedBorderColor || accentColor,\n selectedBackgroundColor: tokens.tableSelectedBackgroundColor || withAlpha(accentColor, 0.12),\n backgroundColor: tokens.surfaceBackgroundColor || 'transparent',\n barAxisColor: tokens.axisLineColor || tokens.borderColor,\n backgroundColorScale: {\n minColor: tokens.linearColorScheme[0],\n maxColor: tokens.linearColorScheme[1],\n },\n }\n}\n\nconst getChartPatch = (tokens: TokenThemeDefinition) => ({\n backgroundColor: 'transparent',\n fontFamily: tokens.fontFamily,\n color: {\n colorScheme: [...tokens.colorScheme],\n linearColorScheme: [...tokens.linearColorScheme],\n positiveColor: tokens.positiveColor,\n negativeColor: tokens.negativeColor,\n },\n label: {\n labelFontSize: tokens.labelFontSize,\n labelColor: tokens.labelColor || tokens.textPrimary,\n labelStroke: tokens.labelStroke,\n },\n legend: {\n labelColor: tokens.legendLabelColor || tokens.textSecondary,\n labelFontSize: tokens.legendFontSize,\n pagerIconColor: tokens.legendPagerIconColor || tokens.textSecondary,\n pagerIconDisableColor: tokens.legendPagerIconDisableColor || tokens.borderColor,\n },\n tooltip: {\n backgroundColor: tokens.tooltipBackgroundColor,\n borderColor: tokens.tooltipBorderColor || tokens.borderColor,\n fontSize: tokens.tooltipFontSize,\n keyColor: tokens.textSecondary,\n valueColor: tokens.textPrimary,\n titleColor: tokens.textPrimary,\n },\n})\n\nconst getAnnotationPatch = (tokens: TokenThemeDefinition) => ({\n annotationPoint: {\n textFontSize: tokens.labelFontSize,\n },\n annotationHorizontalLine: {\n textFontSize: tokens.labelFontSize,\n },\n annotationVerticalLine: {\n textFontSize: tokens.labelFontSize,\n },\n annotationArea: {\n textFontSize: tokens.labelFontSize,\n },\n})\n\nconst getRegressionLinePatch = (tokens: TokenThemeDefinition) => ({\n kdeRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n ecdfRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n linearRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n lowessRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n polynomialRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n logisticRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n})\n\nconst withAxesAndExtras = (\n chartType: ThemeConfigKey,\n chartConfig: NonNullable<ThemeConfigMap[ThemeConfigKey]>,\n tokens: TokenThemeDefinition,\n) => {\n let nextChartConfig = mergeThemeNode(chartConfig, getChartPatch(tokens))\n const chartRecord = nextChartConfig as Record<string, unknown>\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'xAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { xAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'yAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { yAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'primaryYAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { primaryYAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'secondaryYAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { secondaryYAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'pivotGrid')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { pivotGrid: getPivotGridPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'annotation')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { annotation: getAnnotationPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'regressionLine')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { regressionLine: getRegressionLinePatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (raceChartTypes.includes(chartType) && Object.prototype.hasOwnProperty.call(chartRecord, 'player')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { player: getPlayerPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n return nextChartConfig\n}\n\nexport const createTokenThemeConfig = (tokens: TokenThemeDefinition): CustomThemeConfig => {\n const baseTheme = tokens.baseTheme === 'dark' ? darkTheme() : lightTheme()\n const baseConfig = (baseTheme.config || {}) as ThemeConfigMap\n const nextConfig = {} as ThemeConfigMap\n\n for (const chartType of Object.keys(baseConfig) as ThemeConfigKey[]) {\n const chartConfig = baseConfig[chartType]\n if (!chartConfig) {\n continue\n }\n\n if (chartType === 'table' || chartType === 'pivotTable') {\n nextConfig[chartType] = mergeThemeNode(chartConfig, getTablePatch(tokens)) as ThemeConfigMap[ThemeConfigKey]\n continue\n }\n\n nextConfig[chartType] = withAxesAndExtras(chartType, chartConfig, tokens) as ThemeConfigMap[ThemeConfigKey]\n }\n\n return {\n config: nextConfig as Config,\n }\n}\n\nexport const registerTokenTheme = (\n themeName: string,\n tokens: TokenThemeDefinition,\n options?: RegisterTokenThemeOptions,\n) => {\n ensureRegisterAll(options)\n registerCustomTheme(themeName, createTokenThemeConfig(tokens))\n}\n\nexport const registerTokenThemes = (themes: TokenThemeRegistry, options?: RegisterTokenThemeOptions) => {\n ensureRegisterAll(options)\n\n for (const [themeName, tokens] of Object.entries(themes)) {\n registerCustomTheme(themeName, createTokenThemeConfig(tokens))\n }\n}\n"],"names":["raceChartTypes","hasEnsuredRegisterAll","isRecord","value","Array","mergeThemeNode","base","patch","result","key","patchValue","Object","undefined","currentValue","withAlpha","color","alpha","tinycolor","ensureRegisterAll","options","registerAll","getAccentColor","tokens","getAxisPatch","getPivotGridPatch","getPlayerPatch","accentColor","getTablePatch","getChartPatch","getAnnotationPatch","getRegressionLinePatch","withAxesAndExtras","chartType","chartConfig","nextChartConfig","chartRecord","createTokenThemeConfig","baseTheme","darkTheme","lightTheme","baseConfig","nextConfig","registerTokenTheme","themeName","registerCustomTheme","registerTokenThemes","themes"],"mappings":";;;;;AAgEA,MAAM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AD,kBAAkBC;IAClByB,oBAAoBD,WAAWP,uBAAuBd;AACxD;AAEO,MAAMuB,sBAAsB,CAACC,QAA4B3B;IAC9DD,kBAAkBC;IAElB,KAAK,MAAM,CAACwB,WAAWrB,OAAO,IAAIX,OAAO,OAAO,CAACmC,QAC/CF,oBAAoBD,WAAWP,uBAAuBd;AAE1D"}
|
|
1
|
+
{"version":3,"file":"theme/tokenTheme.js","sources":["../../../src/theme/tokenTheme.ts"],"sourcesContent":["import tinycolor from 'tinycolor2'\nimport type { Config, CustomThemeConfig } from 'src/types'\nimport { registerAll } from '../builder/register/all'\nimport { registerCustomTheme } from '../builder/register/theme'\nimport { darkTheme } from './dark'\nimport { lightTheme } from './light'\n\nexport type TokenThemeBase = 'light' | 'dark'\n\nexport type TokenThemeDefinition = {\n baseTheme: TokenThemeBase\n fontFamily?: string\n tableHeaderFontSize?: number\n tableBodyFontSize?: number\n labelFontSize?: number\n tooltipFontSize?: number\n axisFontSize?: number\n legendFontSize?: number\n playerFontSize?: number\n colorScheme: [string, string, ...string[]]\n linearColorScheme: [string, string]\n textPrimary: string\n textSecondary: string\n borderColor: string\n surfaceColor?: string\n surfaceBackgroundColor?: string\n accentColor?: string\n positiveColor?: string\n negativeColor?: string\n tooltipBackgroundColor: string\n tooltipBorderColor?: string\n axisLabelColor?: string\n axisTitleColor?: string\n axisGridColor?: string\n axisLineColor?: string\n labelColor?: string\n labelStroke?: string\n legendLabelColor?: string\n legendPagerIconColor?: string\n legendPagerIconDisableColor?: string\n playerRailColor?: string\n playerSliderHandleColor?: string\n playerSliderHandleBorderColor?: string\n tableBorderColor?: string\n tableBodyFontColor?: string\n tableHeaderFontColor?: string\n tableHeaderBackgroundColor?: string\n tableHoverBodyBackgroundColor?: string\n tableHoverBodyInlineBackgroundColor?: string\n tableHoverHeaderBackgroundColor?: string\n tableHoverHeaderInlineBackgroundColor?: string\n tableSelectedBorderColor?: string\n tableSelectedBackgroundColor?: string\n}\n\nexport type TokenThemeRegistry = Record<string, TokenThemeDefinition>\n\nexport type RegisterTokenThemeOptions = {\n ensureRegisterAll?: boolean\n}\n\ntype ThemeConfigMap = NonNullable<CustomThemeConfig['config']>\ntype ThemeConfigKey = keyof ThemeConfigMap\n\nconst raceChartTypes: ThemeConfigKey[] = ['raceBar', 'raceColumn', 'raceScatter', 'raceLine', 'racePie', 'raceDonut']\n\nlet hasEnsuredRegisterAll = false\n\nconst isRecord = (value: unknown): value is Record<string, unknown> => {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nconst mergeThemeNode = <T>(base: T, patch: Partial<T>): T => {\n if (!isRecord(base) || !isRecord(patch)) {\n return patch as T\n }\n\n const result: Record<string, unknown> = { ...base }\n for (const [key, patchValue] of Object.entries(patch)) {\n if (patchValue === undefined) {\n continue\n }\n\n const currentValue = result[key]\n if (Array.isArray(patchValue)) {\n result[key] = [...patchValue]\n continue\n }\n\n if (isRecord(currentValue) && isRecord(patchValue)) {\n result[key] = mergeThemeNode(currentValue, patchValue)\n continue\n }\n\n result[key] = patchValue\n }\n\n return result as T\n}\n\nconst withAlpha = (color: string, alpha: number) => tinycolor(color).setAlpha(alpha).toRgbString()\n\nconst ensureRegisterAll = (options?: RegisterTokenThemeOptions) => {\n if (options?.ensureRegisterAll === false || hasEnsuredRegisterAll) {\n return\n }\n\n registerAll()\n hasEnsuredRegisterAll = true\n}\n\nconst getAccentColor = (tokens: TokenThemeDefinition) => tokens.accentColor || tokens.colorScheme[0]\n\nconst getAxisPatch = (tokens: TokenThemeDefinition) => ({\n label: {\n labelColor: tokens.axisLabelColor || tokens.textSecondary,\n labelFontSize: tokens.axisFontSize,\n },\n title: {\n titleColor: tokens.axisTitleColor || tokens.textSecondary,\n titleFontSize: tokens.axisFontSize,\n },\n grid: {\n gridColor: tokens.axisGridColor || tokens.borderColor,\n },\n tick: {\n tickColor: tokens.axisLineColor || tokens.borderColor,\n },\n line: {\n lineColor: tokens.axisLineColor || tokens.borderColor,\n },\n})\n\nconst getPivotGridPatch = (tokens: TokenThemeDefinition) => ({\n borderColor: tokens.tableBorderColor || tokens.borderColor,\n bodyFontSize: tokens.tableBodyFontSize,\n bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,\n headerFontSize: tokens.tableHeaderFontSize,\n headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,\n headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',\n hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(getAccentColor(tokens), 0.18),\n hoverHeaderInlineBackgroundColor:\n tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(getAccentColor(tokens), 0.08),\n titleFontColor: tokens.textPrimary,\n titleFontSize: tokens.tableHeaderFontSize,\n chartGridColor: tokens.axisGridColor || tokens.borderColor,\n axisLabelColor: tokens.axisLabelColor || tokens.textSecondary,\n axisLabelFontSize: tokens.axisFontSize,\n})\n\nconst getPlayerPatch = (tokens: TokenThemeDefinition) => {\n const accentColor = getAccentColor(tokens)\n\n return {\n fontFamily: tokens.fontFamily,\n fontSize: tokens.playerFontSize,\n railColor: tokens.playerRailColor || tokens.borderColor,\n trackColor: accentColor,\n sliderHandleColor: tokens.playerSliderHandleColor || tokens.surfaceColor || '#ffffff',\n sliderHandleBorderColor: tokens.playerSliderHandleBorderColor || accentColor,\n startButtonColor: accentColor,\n pauseButtonColor: accentColor,\n backwardButtonColor: accentColor,\n forwardButtonColor: accentColor,\n }\n}\n\nconst getTablePatch = (tokens: TokenThemeDefinition) => {\n const accentColor = getAccentColor(tokens)\n\n return {\n borderColor: tokens.tableBorderColor || tokens.borderColor,\n bodyFontSize: tokens.tableBodyFontSize,\n bodyFontFamily: tokens.fontFamily,\n bodyFontColor: tokens.tableBodyFontColor || tokens.textPrimary,\n headerFontSize: tokens.tableHeaderFontSize,\n headerFontFamily: tokens.fontFamily,\n headerFontColor: tokens.tableHeaderFontColor || tokens.textPrimary,\n headerBackgroundColor: tokens.tableHeaderBackgroundColor || tokens.surfaceColor || 'transparent',\n hoverBodyBackgroundColor: tokens.tableHoverBodyBackgroundColor || withAlpha(accentColor, 0.18),\n hoverBodyInlineBackgroundColor: tokens.tableHoverBodyInlineBackgroundColor || withAlpha(accentColor, 0.08),\n hoverHeaderBackgroundColor: tokens.tableHoverHeaderBackgroundColor || withAlpha(accentColor, 0.18),\n hoverHeaderInlineBackgroundColor: tokens.tableHoverHeaderInlineBackgroundColor || withAlpha(accentColor, 0.08),\n selectedBorderColor: tokens.tableSelectedBorderColor || accentColor,\n selectedBackgroundColor: tokens.tableSelectedBackgroundColor || withAlpha(accentColor, 0.12),\n backgroundColor: tokens.surfaceBackgroundColor || 'transparent',\n barAxisColor: tokens.axisLineColor || tokens.borderColor,\n backgroundColorScale: {\n minColor: tokens.linearColorScheme[0],\n maxColor: tokens.linearColorScheme[1],\n },\n }\n}\n\nconst getChartPatch = (tokens: TokenThemeDefinition) => ({\n backgroundColor: 'transparent',\n fontFamily: tokens.fontFamily,\n color: {\n colorScheme: [...tokens.colorScheme],\n linearColorScheme: [...tokens.linearColorScheme],\n positiveColor: tokens.positiveColor,\n negativeColor: tokens.negativeColor,\n },\n label: {\n labelFontSize: tokens.labelFontSize,\n labelColor: tokens.labelColor || tokens.textPrimary,\n labelStroke: tokens.labelStroke,\n },\n legend: {\n labelColor: tokens.legendLabelColor || tokens.textSecondary,\n labelFontSize: tokens.legendFontSize,\n pagerIconColor: tokens.legendPagerIconColor || tokens.textSecondary,\n pagerIconDisableColor: tokens.legendPagerIconDisableColor || tokens.borderColor,\n },\n tooltip: {\n backgroundColor: tokens.tooltipBackgroundColor,\n borderColor: tokens.tooltipBorderColor || tokens.borderColor,\n fontSize: tokens.tooltipFontSize,\n keyColor: tokens.textSecondary,\n valueColor: tokens.textPrimary,\n titleColor: tokens.textPrimary,\n },\n})\n\nconst getAnnotationPatch = (tokens: TokenThemeDefinition) => ({\n annotationPoint: {\n textFontSize: tokens.labelFontSize,\n },\n annotationHorizontalLine: {\n textFontSize: tokens.labelFontSize,\n },\n annotationVerticalLine: {\n textFontSize: tokens.labelFontSize,\n },\n annotationDifferenceLine: {\n textFontSize: tokens.labelFontSize,\n },\n annotationArea: {\n textFontSize: tokens.labelFontSize,\n },\n})\n\nconst getRegressionLinePatch = (tokens: TokenThemeDefinition) => ({\n kdeRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n ecdfRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n linearRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n lowessRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n polynomialRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n logisticRegressionLine: {\n textFontSize: tokens.labelFontSize,\n },\n})\n\nconst withAxesAndExtras = (\n chartType: ThemeConfigKey,\n chartConfig: NonNullable<ThemeConfigMap[ThemeConfigKey]>,\n tokens: TokenThemeDefinition,\n) => {\n let nextChartConfig = mergeThemeNode(chartConfig, getChartPatch(tokens))\n const chartRecord = nextChartConfig as Record<string, unknown>\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'xAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { xAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'yAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { yAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'primaryYAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { primaryYAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'secondaryYAxis')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { secondaryYAxis: getAxisPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'pivotGrid')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { pivotGrid: getPivotGridPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'annotation')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { annotation: getAnnotationPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (Object.prototype.hasOwnProperty.call(chartRecord, 'regressionLine')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { regressionLine: getRegressionLinePatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n if (raceChartTypes.includes(chartType) && Object.prototype.hasOwnProperty.call(chartRecord, 'player')) {\n nextChartConfig = mergeThemeNode(nextChartConfig, { player: getPlayerPatch(tokens) } as Partial<\n typeof nextChartConfig\n >)\n }\n\n return nextChartConfig\n}\n\nexport const createTokenThemeConfig = (tokens: TokenThemeDefinition): CustomThemeConfig => {\n const baseTheme = tokens.baseTheme === 'dark' ? darkTheme() : lightTheme()\n const baseConfig = (baseTheme.config || {}) as ThemeConfigMap\n const nextConfig = {} as ThemeConfigMap\n\n for (const chartType of Object.keys(baseConfig) as ThemeConfigKey[]) {\n const chartConfig = baseConfig[chartType]\n if (!chartConfig) {\n continue\n }\n\n if (chartType === 'table' || chartType === 'pivotTable') {\n nextConfig[chartType] = mergeThemeNode(chartConfig, getTablePatch(tokens)) as ThemeConfigMap[ThemeConfigKey]\n continue\n }\n\n nextConfig[chartType] = withAxesAndExtras(chartType, chartConfig, tokens) as ThemeConfigMap[ThemeConfigKey]\n }\n\n return {\n config: nextConfig as Config,\n }\n}\n\nexport const registerTokenTheme = (\n themeName: string,\n tokens: TokenThemeDefinition,\n options?: RegisterTokenThemeOptions,\n) => {\n ensureRegisterAll(options)\n registerCustomTheme(themeName, createTokenThemeConfig(tokens))\n}\n\nexport const registerTokenThemes = (themes: TokenThemeRegistry, options?: RegisterTokenThemeOptions) => {\n ensureRegisterAll(options)\n\n for (const [themeName, tokens] of Object.entries(themes)) {\n registerCustomTheme(themeName, createTokenThemeConfig(tokens))\n }\n}\n"],"names":["raceChartTypes","hasEnsuredRegisterAll","isRecord","value","Array","mergeThemeNode","base","patch","result","key","patchValue","Object","undefined","currentValue","withAlpha","color","alpha","tinycolor","ensureRegisterAll","options","registerAll","getAccentColor","tokens","getAxisPatch","getPivotGridPatch","getPlayerPatch","accentColor","getTablePatch","getChartPatch","getAnnotationPatch","getRegressionLinePatch","withAxesAndExtras","chartType","chartConfig","nextChartConfig","chartRecord","createTokenThemeConfig","baseTheme","darkTheme","lightTheme","baseConfig","nextConfig","registerTokenTheme","themeName","registerCustomTheme","registerTokenThemes","themes"],"mappings":";;;;;AAgEA,MAAMA,iBAAmC;IAAC;IAAW;IAAc;IAAe;IAAY;IAAW;CAAY;AAErH,IAAIC,wBAAwB;AAE5B,MAAMC,WAAW,CAACC,QACT,AAAiB,YAAjB,OAAOA,SAAsBA,AAAU,SAAVA,SAAkB,CAACC,MAAM,OAAO,CAACD;AAGvE,MAAME,iBAAiB,CAAIC,MAASC;IAClC,IAAI,CAACL,SAASI,SAAS,CAACJ,SAASK,QAC/B,OAAOA;IAGT,MAAMC,SAAkC;QAAE,GAAGF,IAAI;IAAC;IAClD,KAAK,MAAM,CAACG,KAAKC,WAAW,IAAIC,OAAO,OAAO,CAACJ,OAAQ;QACrD,IAAIG,AAAeE,WAAfF,YACF;QAGF,MAAMG,eAAeL,MAAM,CAACC,IAAI;QAChC,IAAIL,MAAM,OAAO,CAACM,aAAa;YAC7BF,MAAM,CAACC,IAAI,GAAG;mBAAIC;aAAW;YAC7B;QACF;QAEA,IAAIR,SAASW,iBAAiBX,SAASQ,aAAa;YAClDF,MAAM,CAACC,IAAI,GAAGJ,eAAeQ,cAAcH;YAC3C;QACF;QAEAF,MAAM,CAACC,IAAI,GAAGC;IAChB;IAEA,OAAOF;AACT;AAEA,MAAMM,YAAY,CAACC,OAAeC,QAAkBC,WAAUF,OAAO,QAAQ,CAACC,OAAO,WAAW;AAEhG,MAAME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AAS,GAAcgB,cAAcC;IAC9D,MAAMC,aAAcH,UAAU,MAAM,IAAI,CAAC;IACzC,MAAMI,aAAa,CAAC;IAEpB,KAAK,MAAMT,aAAarB,OAAO,IAAI,CAAC6B,YAAiC;QACnE,MAAMP,cAAcO,UAAU,CAACR,UAAU;QACzC,IAAKC;YAIL,IAAID,AAAc,YAAdA,aAAyBA,AAAc,iBAAdA,WAA4B;gBACvDS,UAAU,CAACT,UAAU,GAAG3B,eAAe4B,aAAaN,cAAcL;gBAClE;YACF;YAEAmB,UAAU,CAACT,UAAU,GAAGD,kBAAkBC,WAAWC,aAAaX;;IACpE;IAEA,OAAO;QACL,QAAQmB;IACV;AACF;AAEO,MAAMC,qBAAqB,CAChCC,WACArB,QACAH;IAEAD,kBAAkBC;IAClByB,oBAAoBD,WAAWP,uBAAuBd;AACxD;AAEO,MAAMuB,sBAAsB,CAACC,QAA4B3B;IAC9DD,kBAAkBC;IAElB,KAAK,MAAM,CAACwB,WAAWrB,OAAO,IAAIX,OAAO,OAAO,CAACmC,QAC/CF,oBAAoBD,WAAWP,uBAAuBd;AAE1D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
2
|
import type { BarDimension, BarMaxWidth, BarMeasure, DimensionLinkage, Sort, SortLegend } from '../../properties';
|
|
3
|
-
import { type AnnotationArea, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type Brush, type BarStyle, type Color, type CrosshairRect, type Dataset, type Label, type Legend, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis, type Page } from '../../properties';
|
|
3
|
+
import { type AnnotationArea, type AnnotationDifferenceLine, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type Brush, type BarStyle, type Color, type CrosshairRect, type Dataset, type Label, type Legend, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis, type Page } from '../../properties';
|
|
4
4
|
/**
|
|
5
5
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
|
6
6
|
* 适用场景:
|
|
@@ -157,6 +157,10 @@ export interface Bar {
|
|
|
157
157
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
|
158
158
|
*/
|
|
159
159
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
160
|
+
/**
|
|
161
|
+
* @description 差异标注线配置,用于绑定两个数据锚点并展示绝对差值或百分比差值。
|
|
162
|
+
*/
|
|
163
|
+
annotationDifferenceLine?: AnnotationDifferenceLine | AnnotationDifferenceLine[];
|
|
160
164
|
/**
|
|
161
165
|
* @description 当图表开启透视功能或者指标组合的是否,是否开启维度联动功能
|
|
162
166
|
* 当hover 到某个维度值时,联动高亮其他图表中相同维度值的数据
|