Skip to content

Commit fbf118e

Browse files
author
wgj
committed
feature: totally rewrite MassPoints.
Signed-off-by: wgj <wgj>
1 parent 9c777a4 commit fbf118e

31 files changed

+519
-401
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.4.1
2+
3+
- feature: totally rewrite [MassPoints](https://github.com/Coder-JJ/rc-leaflet/blob/master/docs/MassPoints.md), now it supports multi icons, mouse events, and `DivOverlay` render props.
4+
15
## v1.4.0
26

37
- feature: new Component [LayerGroup](https://github.com/Coder-JJ/rc-leaflet/blob/master/docs/LayerGroup.md).
@@ -14,7 +18,7 @@
1418

1519
## v1.2.2
1620

17-
- fix: `MassPoints` createInstance this `Bug`.
21+
- fix: [MassPoints](https://github.com/Coder-JJ/rc-leaflet/blob/master/docs/MassPoints.md) createInstance this `Bug`.
1822

1923
- feature: add onUpdate lifecycle hook to components extends Layer, for plugin development.
2024

@@ -42,7 +46,7 @@
4246

4347
## v1.1.2
4448

45-
- fix: unbind map events when `MassPoints` is unmounted.
49+
- fix: unbind map events when [MassPoints](https://github.com/Coder-JJ/rc-leaflet/blob/master/docs/MassPoints.md) is unmounted.
4650

4751
## v1.1.1
4852

docs/CRS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import { RCMap, Config, TileLayer } from 'rc-leaflet'

docs/Circle.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -72,7 +72,7 @@
7272

7373
- 圆的中心半径, 单位米
7474

75-
### 继承自`Path``Props`
75+
### `Props` inherited from `Path`
7676

7777
- stroke
7878

@@ -178,7 +178,7 @@
178178

179179
- 设置`Circle`的类名
180180

181-
### 继承自`InteractiveLayer``Props`
181+
### `Props` inherited from `InteractiveLayer`
182182

183183
- interactive
184184

@@ -196,7 +196,7 @@
196196

197197
- `Circle`的鼠标事件是否冒泡
198198

199-
### 继承自`Layer``Props`
199+
### `Props` inherited from `Layer`
200200

201201
- pane
202202

@@ -256,7 +256,7 @@
256256

257257
- `Circle`删除时的回调
258258

259-
### 继承自`Evented``Props`
259+
### `Props` inherited from `Evented`
260260

261261
- onClick
262262

docs/CircleMarker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -72,7 +72,7 @@
7272

7373
- 圆的中心半径, 单位像素
7474

75-
### 继承自`Path``Props`
75+
### `Props` inherited from `Path`
7676

7777
- stroke
7878

@@ -178,7 +178,7 @@
178178

179179
- 设置`CircleMarker`的类名
180180

181-
### 继承自`InteractiveLayer``Props`
181+
### `Props` inherited from `InteractiveLayer`
182182

183183
- interactive
184184

@@ -196,7 +196,7 @@
196196

197197
- `CircleMarker`的鼠标事件是否冒泡
198198

199-
### 继承自`Layer``Props`
199+
### `Props` inherited from `Layer`
200200

201201
- pane
202202

@@ -256,7 +256,7 @@
256256

257257
- `CircleMarker`删除时的回调
258258

259-
### 继承自`Evented``Props`
259+
### `Props` inherited from `Evented`
260260

261261
- onClick
262262

docs/ClusterPoints.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -19,7 +19,7 @@
1919
)
2020
```
2121

22-
- 完整用法
22+
- Full Usage
2323

2424
```tsx
2525
(
@@ -187,7 +187,7 @@
187187

188188
- 分批处理进度回调函数
189189

190-
### 继承自`Layer``Props`
190+
### `Props` inherited from `Layer`
191191

192192
- attribution
193193

@@ -237,7 +237,7 @@
237237

238238
- `ClusterPoints`删除时的回调
239239

240-
### 继承自`Evented``Props`
240+
### `Props` inherited from `Evented`
241241

242242
- onClick
243243

docs/DivIcon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import { RCMap, TileLayer, Point, ClusterPoints, DivIcon } from 'rc-leaflet'
@@ -46,7 +46,7 @@
4646

4747
- 图标背景的相对位置
4848

49-
### 继承自`Icon``Props`
49+
### `Props` inherited from `Icon`
5050

5151
- iconSize
5252

docs/FeatureGroup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -78,7 +78,7 @@
7878

7979
- 只对`Point`和基于`ImageOverlay`的组件起作用
8080

81-
### 继承自`Path``Props`
81+
### `Props` inherited from `Path`
8282

8383
- stroke
8484

@@ -184,7 +184,7 @@
184184

185185
- 设置`FeatureGroup`的类名
186186

187-
### 继承自`InteractiveLayer``Props`
187+
### `Props` inherited from `InteractiveLayer`
188188

189189
- interactive
190190

@@ -202,7 +202,7 @@
202202

203203
- `FeatureGroup`的鼠标事件是否冒泡
204204

205-
### 继承自`Layer``Props`
205+
### `Props` inherited from `Layer`
206206

207207
- pane
208208

@@ -262,7 +262,7 @@
262262

263263
- `FeatureGroup`删除时的回调
264264

265-
### 继承自`Evented``Props`
265+
### `Props` inherited from `Evented`
266266

267267
- onClick
268268

docs/GeoJSON.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -84,7 +84,7 @@
8484

8585
- 点位数组转换成`L.LatLng`的转换函数, 默认为点位格式为`[lng, lat]`, 通过设置该函数, 可以传入`[lat, lng]`
8686

87-
### 继承自`LayerGroup``Props`
87+
### `Props` inherited from `LayerGroup`
8888

8989
- zIndex
9090

@@ -94,7 +94,7 @@
9494

9595
- 现阶段不起作用
9696

97-
### 继承自`Layer``Props`
97+
### `Props` inherited from `Layer`
9898

9999
- pane
100100

@@ -154,7 +154,7 @@
154154

155155
- `GeoJSON`删除时的回调
156156

157-
### 继承自`Evented``Props`
157+
### `Props` inherited from `Evented`
158158

159159
- onClick
160160

docs/Icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import { RCMap, TileLayer, Point, ClusterPoints, Icon } from 'rc-leaflet'

docs/ImageOverlay.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -115,7 +115,7 @@
115115

116116
- 图片加载失败的回调
117117

118-
### 继承自`InteractiveLayer``Props`
118+
### `Props` inherited from `InteractiveLayer`
119119

120120
- interactive
121121

@@ -133,7 +133,7 @@
133133

134134
- `ImageOverlay`的鼠标事件是否冒泡
135135

136-
### 继承自`Layer``Props`
136+
### `Props` inherited from `Layer`
137137

138138
- pane
139139

@@ -193,7 +193,7 @@
193193

194194
- `ImageOverlay`删除时的回调
195195

196-
### 继承自`Evented``Props`
196+
### `Props` inherited from `Evented`
197197

198198
- onClick
199199

docs/LayerGroup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Examples
44

5-
- 基本用法
5+
- Basic Usage
66

77
```tsx
88
import {
@@ -63,7 +63,7 @@
6363

6464
- 只对`Point`和基于`ImageOverlay`的组件起作用
6565

66-
### 继承自`InteractiveLayer``Props`
66+
### `Props` inherited from `InteractiveLayer`
6767

6868
- interactive
6969

@@ -81,7 +81,7 @@
8181

8282
- `LayerGroup`的鼠标事件是否冒泡
8383

84-
### 继承自`Layer``Props`
84+
### `Props` inherited from `Layer`
8585

8686
- pane
8787

@@ -141,7 +141,7 @@
141141

142142
- `LayerGroup`删除时的回调
143143

144-
### 继承自`Evented``Props`
144+
### `Props` inherited from `Evented`
145145

146146
- onClick
147147

0 commit comments

Comments
 (0)