mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -27,7 +27,6 @@ export const DEFAULT_TREE_SERIES_OPTION: TreeSeriesOption = {
|
||||
animation: true,
|
||||
animationDuration: 500,
|
||||
animationEasing: 'cubicOut',
|
||||
lineStyle: { color: 'source', width: 1.5 },
|
||||
};
|
||||
|
||||
export const DEFAULT_FORM_DATA: Partial<EchartsTreeFormData> = {
|
||||
|
||||
@@ -20,6 +20,7 @@ import {
|
||||
getMetricLabel,
|
||||
DataRecordValue,
|
||||
tooltipHtml,
|
||||
themeObject,
|
||||
} from '@superset-ui/core';
|
||||
import type { EChartsCoreOption } from 'echarts/core';
|
||||
import type { TreeSeriesOption } from 'echarts/charts';
|
||||
@@ -181,7 +182,7 @@ export default function transformProps(
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const { theme } = themeObject;
|
||||
const series: TreeSeriesOption[] = [
|
||||
{
|
||||
type: 'tree',
|
||||
@@ -189,6 +190,7 @@ export default function transformProps(
|
||||
label: {
|
||||
...DEFAULT_TREE_SERIES_OPTION.label,
|
||||
position: nodeLabelPosition,
|
||||
color: theme.colorText,
|
||||
},
|
||||
emphasis: { focus: emphasis },
|
||||
animation: DEFAULT_TREE_SERIES_OPTION.animation,
|
||||
@@ -197,7 +199,10 @@ export default function transformProps(
|
||||
symbol,
|
||||
roam,
|
||||
symbolSize,
|
||||
lineStyle: DEFAULT_TREE_SERIES_OPTION.lineStyle,
|
||||
lineStyle: {
|
||||
color: theme.colorText,
|
||||
width: 1.5,
|
||||
},
|
||||
select: DEFAULT_TREE_SERIES_OPTION.select,
|
||||
leaves: { label: { position: childLabelPosition } },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user