antvis/G2

The issue has been closed
[G2 5.0] Theme token 增加组件相关 token #4202
visiky posted onGitHub
- 详细设计见: https://www.yuque.com/antv/g2-docs/srdi2u
- 组件部分的 token 使用扁平的形式,component 使用的时候,先使用一个 util 处理为 GUI 需要的,等后续 GUI 相关的组件 API 更新之后,更新升级下 util 即可
Axis
主题 token 大致如下:
{
axis?: {
// 轴标题
titleFill?: string;
titleFontSize?: number;
// 轴标签
labelFill?: string;
// ...
},
topAxis?: {};
leftAxis?: {};
rightAxis?: {};
bottomAxis?: {};
}
Legend
{
categoryLegend?: {
// ...
};
continuousLegend?: {
// ...
};
}