This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/echarts-theme-builder.git
commit 90fb56b5e850d5f8dc34dc95fb39b5976c63e182 Author: Ovilia <[email protected]> AuthorDate: Wed Sep 24 15:06:04 2025 +0800 feat: update themes --- public/themes/v5.json | 6 +++++- src/locales/en.json | 7 ++++++- src/locales/zh.json | 13 +++++++++---- src/stores/theme.ts | 6 +++++- src/types/theme.ts | 6 ++++++ 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/public/themes/v5.json b/public/themes/v5.json index 14695ea..0811a50 100644 --- a/public/themes/v5.json +++ b/public/themes/v5.json @@ -164,6 +164,10 @@ "gridLeft": "10%", "gridTop": 60, "gridBottom": 70, - "gridRight": "" + "gridRight": "10%", + "legendLeft": "center", + "legendRight": "", + "legendTop": 0, + "legendBottom": "" } } diff --git a/src/locales/en.json b/src/locales/en.json index efe3453..0a0f8b5 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -19,6 +19,7 @@ "grid": "Grid Layout", "axis": "Axes", "legend": "Legend", + "legendPosition": "Legend Position", "toolbox": "Toolbox", "download": "Download Theme", "import": "Import Config", @@ -49,12 +50,16 @@ "toolboxEmphasis": "Toolbox Hover", "visualMapColor": "Visual Map" }, - "grid": { + "position": { "left": "Left", "right": "Right", "top": "Top", "bottom": "Bottom" }, + "legend": { + }, + "grid": { + }, "axis": { "categoryAxis": "Category Axis", "valueAxis": "Value Axis", diff --git a/src/locales/zh.json b/src/locales/zh.json index 314b62c..5e9470e 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -19,6 +19,7 @@ "grid": "Grid 布局", "axis": "坐标轴", "legend": "图例", + "legendPosition": "图例位置", "toolbox": "工具箱", "download": "下载主题", "import": "导入配置", @@ -49,11 +50,15 @@ "toolboxEmphasis": "悬停", "visualMapColor": "视觉映射" }, + "position": { + "left": "左", + "right": "右", + "top": "上", + "bottom": "下" + }, + "legend": { + }, "grid": { - "left": "左边距", - "right": "右边距", - "top": "上边距", - "bottom": "下边距" }, "axis": { "categoryAxis": "类目轴", diff --git a/src/stores/theme.ts b/src/stores/theme.ts index 2c6a444..4545de9 100644 --- a/src/stores/theme.ts +++ b/src/stores/theme.ts @@ -209,7 +209,11 @@ export const createDefaultTheme = (): ThemeData => { gridLeft: '15%', gridRight: '10%', gridTop: 65, - gridBottom: 80 + gridBottom: 80, + legendLeft: 'center', + legendRight: 'auto', + legendTop: 'auto', + legendBottom: 15 } } diff --git a/src/types/theme.ts b/src/types/theme.ts index 1c1ed5a..08c1016 100644 --- a/src/types/theme.ts +++ b/src/types/theme.ts @@ -96,6 +96,12 @@ export interface ThemeData { gridRight: number | string gridTop: number | string gridBottom: number | string + + // Legend position + legendLeft: number | string + legendRight: number | string + legendTop: number | string + legendBottom: number | string } export interface PreDefinedTheme { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
