Skip to content

Commit

Permalink
Feat/geographic heatmap (#1413)
Browse files Browse the repository at this point in the history
* feat: GeographicHeatmap

* feat: GeographicHeatmap
  • Loading branch information
lxfu1 authored Jul 12, 2022
1 parent a4eb617 commit 5bc79ba
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
`2022-07-12`

- 🔥 文件目录命名风格统一
- 官网更新
- `@ant-design/maps` Heatmap 重命名为 GeographicHeatmap
- 支持自定义 anchor
- 🆕 OrganizationGraph 支持自定义 anchor
- 🐞 修复 scaleToolbarPanelProps 为空时出错
- 🐞 修复流程图保存数据失败
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@ant-design/flowchart": "^1.0.2",
"@ant-design/graphs": "^1.0.1",
"@ant-design/maps": "^1.0.0",
"@ant-design/maps": "^1.0.1",
"@ant-design/plots": "^1.0.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export * from '@ant-design/flowchart';
export * from '@ant-design/graphs';
export * from '@ant-design/maps';

export const version = '1.3.5';
export const version = '1.4.0';
2 changes: 1 addition & 1 deletion packages/maps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/maps",
"version": "1.0.0",
"version": "1.0.1",
"description": "maps",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { getChart } from '../../util';
import ErrorBoundary from '../../errorBoundary';
import ChartLoading from '../../util/createLoading';

export interface HeatMapConfig extends L7PlotConfig<HeatmapOptions, Heatmap>, ContainerConfig {
export interface GeographicHeatmapConfig extends L7PlotConfig<HeatmapOptions, Heatmap>, ContainerConfig {
chartRef?: PlotRef<Heatmap>;
}

const HeatMap = forwardRef((props: HeatMapConfig, ref) => {
const GeographicHeatmap = forwardRef((props: GeographicHeatmapConfig, ref) => {
const {
chartRef,
containerStyle = {
Expand Down Expand Up @@ -40,4 +40,4 @@ const HeatMap = forwardRef((props: HeatMapConfig, ref) => {
);
});

export default HeatMap;
export default GeographicHeatmap;
4 changes: 2 additions & 2 deletions packages/maps/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export type { ContainerConfig as MapContainerConfig, PlotRef } from './types';

export { default as DotMap } from './components/dot-map';
export type { DotMapConfig } from './components/dot-map';
export { default as Heatmap } from './components/heat-map';
export type { HeatMapConfig } from './components/heat-map';
export { default as GeographicHeatmap } from './components/geographic-heatmap';
export type { GeographicHeatmapConfig } from './components/geographic-heatmap';
export { default as GridMap } from './components/grid-map';
export type { GridMapConfig } from './components/grid-map';
export { default as HexbinMap } from './components/hexbin-map';
Expand Down

0 comments on commit 5bc79ba

Please sign in to comment.