Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/geographic heatmap #1413

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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