Skip to content

Commit

Permalink
fix: 图表暗色主题样式问题 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei authored Sep 14, 2023
1 parent 9553fe2 commit 4aaefe7
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'AdministrativeSelectControl',
displayName: '行政区域选择器',
description: '用于选择行政名地图跳转到行政区域',
description: '选择行政名地图切换到行政区域',
type: 'Auto',
category: 'MapControl',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/li-analysis-assets/src/widgets/DrawControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'DrawControl',
displayName: '绘制组件',
description: '用于地图绘制',
displayName: '绘制图形',
description: '地图上绘制点、线、面、圆数据',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'LegendWidget',
displayName: '图例组件',
description: '用于图层图例',
displayName: '图例',
description: '显示地图上图层的图例信息',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'LocationSearchControl',
displayName: '位置查询',
description: '用于查询地图位置',
displayName: '地名查询',
description: 'POI 查询地理位置',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'MeasureControl',
displayName: '距离/面积测量',
description: '用于测量距离/面积',
displayName: '测距测面',
description: '地图上测量距离与面积',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const getChartTheme = (theme: 'dark' | 'light') => {
theme === 'dark'
? {
type: 'classicDark',
viewFill: BACKGROUND_COLOR,
view: { viewFill: BACKGROUND_COLOR },
}
: { type: 'classic' };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'MiniChart',
displayName: '统计图表',
description: '用于数据分析',
description: '以图表的形式展示数据',
type: 'Atom',
category: 'DataAnalysis',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'PropertiesPanel',
displayName: '属性面板',
description: '图层属性面板',
description: '面板形式展示图层的额外信息',
category: 'LayerInteraction',
type: 'Auto',
icon: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'SpreadSheetTable',
displayName: '统计表格',
description: '用于统计数据表格形式展示',
description: '以表格的形式展示数据',
type: 'Atom',
category: 'DataAnalysis',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const TimeLineControl: React.FC<TimeLineControlType> = (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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'ExportImageControl',
displayName: '导出图片',
description: '导出图片',
displayName: '截图地图',
description: '地图截图并导出',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'FullscreenControl',
displayName: '地图全屏',
description: '地图全屏',
displayName: '全屏切换',
description: '全屏模式下看地图',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'GeoLocateControl',
displayName: 'GPS 定位',
description: '地图定位',
description: '使用 GPS 定位到地图上',
type: 'Auto',
category: 'MapControl',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/li-core-assets/src/widgets/LayerPopup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'LayerPopup',
displayName: '图层信息框',
description: '图层信息框',
displayName: '信息框',
description: '弹窗形式展示图层的额外信息',
type: 'Auto',
category: 'LayerInteraction',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/li-core-assets/src/widgets/LogoControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'LogoControl',
displayName: 'Logo',
description: 'Logo 图标',
description: '自定义 Logo 图标',
type: 'Auto',
category: 'MapControl',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/li-core-assets/src/widgets/MapThemeControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'MapThemeControl',
displayName: '地图主题',
description: '地图主题',
displayName: '底图主题切换',
description: '地图底图主题样式切换',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default implementWidget({
version: 'v0.1',
metadata: {
name: 'MapViewSettingControl',
displayName: '地图倾角',
description: '用于调整地图倾斜角度',
displayName: '倾角调整',
description: '调整地图视角',
type: 'Auto',
category: 'MapControl',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default implementWidget({
metadata: {
name: 'MouseLocationControl',
displayName: '光标经纬度',
description: '光标经纬度',
description: '显示光标在地图上的经纬度信息',
type: 'Auto',
category: 'MapControl',
},
Expand Down

0 comments on commit 4aaefe7

Please sign in to comment.