From 4aaefe70fe6b2d7ffe2883f85318c3213543a0a0 Mon Sep 17 00:00:00 2001 From: lvisei Date: Thu, 14 Sep 2023 11:41:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E6=9A=97=E8=89=B2?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=20(#25)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/widgets/AdministrativeSelectControl/index.ts | 2 +- .../li-analysis-assets/src/widgets/DrawControl/index.tsx | 4 ++-- .../li-analysis-assets/src/widgets/LegendWidget/index.tsx | 4 ++-- .../src/widgets/LocationSearchControl/index.tsx | 4 ++-- .../li-analysis-assets/src/widgets/MeasureControl/index.tsx | 4 ++-- .../src/widgets/MiniChart/Component/Chart/helper.ts | 2 +- packages/li-analysis-assets/src/widgets/MiniChart/index.tsx | 2 +- .../li-analysis-assets/src/widgets/PropertiesPanel/index.tsx | 2 +- .../src/widgets/SpreadSheetTable/index.tsx | 2 +- .../src/widgets/TimeLine/Component/TimeLineChart/index.tsx | 5 ++--- .../src/widgets/TimeLine/Component/index.tsx | 2 +- .../li-core-assets/src/widgets/ExportImageControl/index.tsx | 4 ++-- .../li-core-assets/src/widgets/FullscreenControl/index.tsx | 4 ++-- .../li-core-assets/src/widgets/GeoLocateControl/index.tsx | 2 +- packages/li-core-assets/src/widgets/LayerPopup/index.tsx | 4 ++-- packages/li-core-assets/src/widgets/LogoControl/index.tsx | 2 +- .../li-core-assets/src/widgets/MapThemeControl/index.tsx | 4 ++-- .../src/widgets/MapViewSettingControl/index.tsx | 4 ++-- .../src/widgets/MouseLocationControl/index.tsx | 2 +- 19 files changed, 29 insertions(+), 30 deletions(-) diff --git a/packages/li-analysis-assets/src/widgets/AdministrativeSelectControl/index.ts b/packages/li-analysis-assets/src/widgets/AdministrativeSelectControl/index.ts index 39b10755..fffcf53c 100644 --- a/packages/li-analysis-assets/src/widgets/AdministrativeSelectControl/index.ts +++ b/packages/li-analysis-assets/src/widgets/AdministrativeSelectControl/index.ts @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'AdministrativeSelectControl', displayName: '行政区域选择器', - description: '用于选择行政名地图跳转到行政区域', + description: '选择行政名地图切换到行政区域', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-analysis-assets/src/widgets/DrawControl/index.tsx b/packages/li-analysis-assets/src/widgets/DrawControl/index.tsx index 698c5c74..1c230fef 100644 --- a/packages/li-analysis-assets/src/widgets/DrawControl/index.tsx +++ b/packages/li-analysis-assets/src/widgets/DrawControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'DrawControl', - displayName: '绘制组件', - description: '用于地图绘制', + displayName: '绘制图形', + description: '地图上绘制点、线、面、圆数据', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-analysis-assets/src/widgets/LegendWidget/index.tsx b/packages/li-analysis-assets/src/widgets/LegendWidget/index.tsx index 7519e2e0..45346030 100644 --- a/packages/li-analysis-assets/src/widgets/LegendWidget/index.tsx +++ b/packages/li-analysis-assets/src/widgets/LegendWidget/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'LegendWidget', - displayName: '图例组件', - description: '用于图层图例', + displayName: '图例', + description: '显示地图上图层的图例信息', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-analysis-assets/src/widgets/LocationSearchControl/index.tsx b/packages/li-analysis-assets/src/widgets/LocationSearchControl/index.tsx index d7030792..9548485a 100644 --- a/packages/li-analysis-assets/src/widgets/LocationSearchControl/index.tsx +++ b/packages/li-analysis-assets/src/widgets/LocationSearchControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'LocationSearchControl', - displayName: '位置查询', - description: '用于查询地图位置', + displayName: '地名查询', + description: 'POI 查询地理位置', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-analysis-assets/src/widgets/MeasureControl/index.tsx b/packages/li-analysis-assets/src/widgets/MeasureControl/index.tsx index fc917b5e..79fc4b5e 100644 --- a/packages/li-analysis-assets/src/widgets/MeasureControl/index.tsx +++ b/packages/li-analysis-assets/src/widgets/MeasureControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'MeasureControl', - displayName: '距离/面积测量', - description: '用于测量距离/面积', + displayName: '测距测面', + description: '地图上测量距离与面积', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-analysis-assets/src/widgets/MiniChart/Component/Chart/helper.ts b/packages/li-analysis-assets/src/widgets/MiniChart/Component/Chart/helper.ts index 70f289a4..881b638c 100644 --- a/packages/li-analysis-assets/src/widgets/MiniChart/Component/Chart/helper.ts +++ b/packages/li-analysis-assets/src/widgets/MiniChart/Component/Chart/helper.ts @@ -70,7 +70,7 @@ export const getChartTheme = (theme: 'dark' | 'light') => { theme === 'dark' ? { type: 'classicDark', - viewFill: BACKGROUND_COLOR, + view: { viewFill: BACKGROUND_COLOR }, } : { type: 'classic' }; diff --git a/packages/li-analysis-assets/src/widgets/MiniChart/index.tsx b/packages/li-analysis-assets/src/widgets/MiniChart/index.tsx index b16caa6b..abc6a568 100644 --- a/packages/li-analysis-assets/src/widgets/MiniChart/index.tsx +++ b/packages/li-analysis-assets/src/widgets/MiniChart/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'MiniChart', displayName: '统计图表', - description: '用于数据分析', + description: '以图表的形式展示数据', type: 'Atom', category: 'DataAnalysis', }, diff --git a/packages/li-analysis-assets/src/widgets/PropertiesPanel/index.tsx b/packages/li-analysis-assets/src/widgets/PropertiesPanel/index.tsx index cb37ba0d..e20a05e2 100644 --- a/packages/li-analysis-assets/src/widgets/PropertiesPanel/index.tsx +++ b/packages/li-analysis-assets/src/widgets/PropertiesPanel/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'PropertiesPanel', displayName: '属性面板', - description: '图层属性面板', + description: '面板形式展示图层的额外信息', category: 'LayerInteraction', type: 'Auto', icon: '', diff --git a/packages/li-analysis-assets/src/widgets/SpreadSheetTable/index.tsx b/packages/li-analysis-assets/src/widgets/SpreadSheetTable/index.tsx index 49f00101..aadc8ead 100644 --- a/packages/li-analysis-assets/src/widgets/SpreadSheetTable/index.tsx +++ b/packages/li-analysis-assets/src/widgets/SpreadSheetTable/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'SpreadSheetTable', displayName: '统计表格', - description: '用于统计数据表格形式展示', + description: '以表格的形式展示数据', type: 'Atom', category: 'DataAnalysis', }, diff --git a/packages/li-analysis-assets/src/widgets/TimeLine/Component/TimeLineChart/index.tsx b/packages/li-analysis-assets/src/widgets/TimeLine/Component/TimeLineChart/index.tsx index 8c19e173..58b34938 100644 --- a/packages/li-analysis-assets/src/widgets/TimeLine/Component/TimeLineChart/index.tsx +++ b/packages/li-analysis-assets/src/widgets/TimeLine/Component/TimeLineChart/index.tsx @@ -72,16 +72,15 @@ export const TimeLineChart = (props: TimeLineChartProps) => { animate: false, interaction: { brushXHighlight: { - series: true, maskOpacity: 0.3, maskFill: '#777', maskHandleWRender: createPathRender((width: number, height: number) => ({ d: 'M-0.5,31.5c-2.5,0,-4.5,2,-4.5,4.5v30c0,2.5,2,4.5,4.5,4.5V31.5z', - transform: `translate(${width / 2}, ${-height / 2 + 5})`, + transform: `translate(${width / 2}, -5)`, })), maskHandleERender: createPathRender((width: number, height: number) => ({ d: 'M0.5,31.5c2.5,0,4.5,2,4.5,4.5v30c0,2.5,-2,4.5,-4.5,4.5V31.5z', - transform: `translate(${width / 2}, ${-height / 2 + 5})`, + transform: `translate(${width / 2}, -5)`, })), maskHandleEFill: '#D3D8E0', maskHandleWFill: '#D3D8E0', diff --git a/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx b/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx index 2725cb11..61e077ec 100644 --- a/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx +++ b/packages/li-analysis-assets/src/widgets/TimeLine/Component/index.tsx @@ -36,7 +36,7 @@ const TimeLineControl: React.FC = (props) => { const filterList = { ...filter, children: filter.children.filter( - (item) => item.field !== dateField && item.type === 'date' && item.operator === 'BETWEEN', + (item) => item.field !== dateField && item.type !== 'date' && item.operator !== 'BETWEEN', ), }; return filterList; diff --git a/packages/li-core-assets/src/widgets/ExportImageControl/index.tsx b/packages/li-core-assets/src/widgets/ExportImageControl/index.tsx index bfc08bb2..10bddced 100644 --- a/packages/li-core-assets/src/widgets/ExportImageControl/index.tsx +++ b/packages/li-core-assets/src/widgets/ExportImageControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'ExportImageControl', - displayName: '导出图片', - description: '导出图片', + displayName: '截图地图', + description: '地图截图并导出', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/FullscreenControl/index.tsx b/packages/li-core-assets/src/widgets/FullscreenControl/index.tsx index 9f92d9e7..fc69dec7 100644 --- a/packages/li-core-assets/src/widgets/FullscreenControl/index.tsx +++ b/packages/li-core-assets/src/widgets/FullscreenControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'FullscreenControl', - displayName: '地图全屏', - description: '地图全屏', + displayName: '全屏切换', + description: '全屏模式下看地图', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/GeoLocateControl/index.tsx b/packages/li-core-assets/src/widgets/GeoLocateControl/index.tsx index ef72b976..8cec7beb 100644 --- a/packages/li-core-assets/src/widgets/GeoLocateControl/index.tsx +++ b/packages/li-core-assets/src/widgets/GeoLocateControl/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'GeoLocateControl', displayName: 'GPS 定位', - description: '地图定位', + description: '使用 GPS 定位到地图上', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/LayerPopup/index.tsx b/packages/li-core-assets/src/widgets/LayerPopup/index.tsx index 197b9267..5a90d45d 100644 --- a/packages/li-core-assets/src/widgets/LayerPopup/index.tsx +++ b/packages/li-core-assets/src/widgets/LayerPopup/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'LayerPopup', - displayName: '图层信息框', - description: '图层信息框', + displayName: '信息框', + description: '弹窗形式展示图层的额外信息', type: 'Auto', category: 'LayerInteraction', }, diff --git a/packages/li-core-assets/src/widgets/LogoControl/index.tsx b/packages/li-core-assets/src/widgets/LogoControl/index.tsx index 2110ded7..fb7359bd 100644 --- a/packages/li-core-assets/src/widgets/LogoControl/index.tsx +++ b/packages/li-core-assets/src/widgets/LogoControl/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'LogoControl', displayName: 'Logo', - description: 'Logo 图标', + description: '自定义 Logo 图标', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/MapThemeControl/index.tsx b/packages/li-core-assets/src/widgets/MapThemeControl/index.tsx index 2d39de9c..a4961332 100644 --- a/packages/li-core-assets/src/widgets/MapThemeControl/index.tsx +++ b/packages/li-core-assets/src/widgets/MapThemeControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'MapThemeControl', - displayName: '地图主题', - description: '地图主题', + displayName: '底图主题切换', + description: '地图底图主题样式切换', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/MapViewSettingControl/index.tsx b/packages/li-core-assets/src/widgets/MapViewSettingControl/index.tsx index 23353212..97e35ae0 100644 --- a/packages/li-core-assets/src/widgets/MapViewSettingControl/index.tsx +++ b/packages/li-core-assets/src/widgets/MapViewSettingControl/index.tsx @@ -6,8 +6,8 @@ export default implementWidget({ version: 'v0.1', metadata: { name: 'MapViewSettingControl', - displayName: '地图倾角', - description: '用于调整地图倾斜角度', + displayName: '倾角调整', + description: '调整地图视角', type: 'Auto', category: 'MapControl', }, diff --git a/packages/li-core-assets/src/widgets/MouseLocationControl/index.tsx b/packages/li-core-assets/src/widgets/MouseLocationControl/index.tsx index 5af6a7a7..50f51b58 100644 --- a/packages/li-core-assets/src/widgets/MouseLocationControl/index.tsx +++ b/packages/li-core-assets/src/widgets/MouseLocationControl/index.tsx @@ -7,7 +7,7 @@ export default implementWidget({ metadata: { name: 'MouseLocationControl', displayName: '光标经纬度', - description: '光标经纬度', + description: '显示光标在地图上的经纬度信息', type: 'Auto', category: 'MapControl', },