From 6e3849851f63a6daf9f656205b9d256151dd3364 Mon Sep 17 00:00:00 2001 From: ai-qing-hai Date: Fri, 17 Nov 2023 18:18:36 +0800 Subject: [PATCH] feat(detail): update Antv home update dumi-theme-antv --- package.json | 2 +- site/components/Banner/Banner.module.less | 1 + site/components/ThemeCharts/Charts/Graph/index.tsx | 2 +- site/data/link-charts.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9a933a84..5daebcc6 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@ant-design/icons": "^4.7.0", - "@antv/dumi-theme-antv": "0.3.20-beta.1", + "@antv/dumi-theme-antv": "0.3.20-beta.2", "@antv/g2plot": "^2.3.1", "@antv/g6": "3.3.7", "@antv/knowledge": "^0.1.3-alpha.17", diff --git a/site/components/Banner/Banner.module.less b/site/components/Banner/Banner.module.less index cb69103f..dc9adeee 100644 --- a/site/components/Banner/Banner.module.less +++ b/site/components/Banner/Banner.module.less @@ -154,6 +154,7 @@ .message { &:extend(.commonFlexConfig); min-height: 114px; + height: 140px; width: calc((100vw - 360px - 26px) / 3); min-width: 338px; max-width: 551px; diff --git a/site/components/ThemeCharts/Charts/Graph/index.tsx b/site/components/ThemeCharts/Charts/Graph/index.tsx index 33d0ec7b..dfac929d 100644 --- a/site/components/ThemeCharts/Charts/Graph/index.tsx +++ b/site/components/ThemeCharts/Charts/Graph/index.tsx @@ -74,7 +74,7 @@ export function GraphChart(props: GraphProps) { const onTick = () => { data.nodes.forEach((node) => { node.x = Math.min(Math.max(5, node.x), width - 10); - node.y = Math.min(Math.max(15, node.y), height - 30); + node.y = Math.min(Math.max(18, node.y), height - 36); }); }; diff --git a/site/data/link-charts.json b/site/data/link-charts.json index e487c5a2..4664326b 100644 --- a/site/data/link-charts.json +++ b/site/data/link-charts.json @@ -18,7 +18,7 @@ { "title": "散点图 (3D图表)", "subTitle": "数据驱动,高度易用,可扩展的可视化图形语法", - "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*AmB_T75XevMAAAAAAAAAAAAADmJ7AQ/original", + "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*8LDVQoK3odIAAAAAAAAAAAAADmJ7AQ/original", "link": "https://g2.antv.antgroup.com/examples/threed/scatter/#orthographic-projection", "antv": "G2", "color": "#2486FF"