@next-bricks/data-view 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ export interface ChinaMapProps {
5
5
  province?: string;
6
6
  dataSource?: DataItem[];
7
7
  maxScale?: number;
8
+ textScale?: number;
8
9
  }
9
10
  export interface DataItem {
10
11
  province?: string;
@@ -31,9 +32,15 @@ export declare class ChinaMap extends ReactNextElement implements ChinaMapProps
31
32
  * @default 1
32
33
  */
33
34
  accessor maxScale: number | undefined;
35
+ /**
36
+ * 标签文本缩放比例
37
+ *
38
+ * @default 1
39
+ */
40
+ accessor textScale: number | undefined;
34
41
  render(): React.JSX.Element;
35
42
  }
36
43
  export interface ChinaMapComponentProps extends ChinaMapProps {
37
44
  root: ChinaMap;
38
45
  }
39
- export declare function ChinaMapComponent({ root, province, dataSource, maxScale, }: ChinaMapComponentProps): React.JSX.Element;
46
+ export declare function ChinaMapComponent({ root, province, dataSource, maxScale, textScale, }: ChinaMapComponentProps): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  中国地图图表构件,可以显示省级指标数据
2
2
 
3
- 已废弃,请使用 [`data-view.china-map`](./china-map)。
3
+ 已废弃,请使用 [`data-view.china-map`](../china-map)。
4
4
 
5
5
  ## Examples
6
6
 
package/docs/china-map.md CHANGED
@@ -68,11 +68,12 @@ properties:
68
68
  children:
69
69
  - brick: data-view.china-map
70
70
  properties:
71
+ textScale: 2
71
72
  dataSource:
72
- - text: "山东济南 21348"
73
+ - text: "北京昌平 21348"
73
74
  coordinate:
74
- - 117.1201
75
- - 36.6512
75
+ - 116
76
+ - 40
76
77
  - text: "山东青岛 4242"
77
78
  coordinate:
78
79
  - 119
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,5 +42,5 @@
42
42
  "@next-bricks/basic": "*",
43
43
  "@next-bricks/icons": "*"
44
44
  },
45
- "gitHead": "b5e41ceb140129f566b7896bfc919cfac4c5420f"
45
+ "gitHead": "50616f836507af20e7e960e70cb3870e8f5471a4"
46
46
  }