Skip to content

Commit

Permalink
feat: 升级版本号 (#97)
Browse files Browse the repository at this point in the history
* feat: 1.新增 getRenderLayers 方法,用于获取当前绘制实例中所有的 L7 图层

* feat: 1.新增吸附能力

* feat: 1.拖拽点过程中新增吸附点的能力

* feat: 完善 DrawPolygon 拖拽点吸附逻辑

* fix: 1.修复多边形绘制吸附能力首个顶点拖拽异常问题

* docs: 完善吸附文档

* feat: 升级版本号

* style: 格式化代码

Co-authored-by: yanxiong <[email protected]>
  • Loading branch information
heiyexing and heiyexing authored Aug 2, 2022
1 parent 06ab103 commit 140b625
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions docs/docs/draw/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ drawer.on(DrawEvent.Change, (lineList) => {

options 配置是 Draw 实例化的时候,作为第二个参数传入,所有的 options 配置均不是必传项。

| 名称 | 说明 | 类型 | 默认值 | 示例 |
| --------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------- |-------------------------------------------|
| initialData | 设置 Draw 的初始数据,`GeoJSON` 类型中的 [LineString](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.4) 数组 | `Feature[]` | `[]` | [初始化数据示例](/example/line/initial-data) |
| showMidPoint | 是否展示线段中点 | `boolean` | `true` | [禁用中点](/example/line/mid-point) |
| distanceOptions | 距离文本相关配置 | `false` &#124; [Distance](/docs/super/distance#配置) | `false` | [展示距离](/example/line/distance) |
| adsorbOptions | 吸附相关配置 | `false` &#124; [Adsorb](/docs/super/adsorb#配置) | `false` | [吸附能力](/example/line/adsorb) |
| autoActive | 新创建的 LineString 是否展示为激活态 | `boolean` | `true` | [关闭自动激活示例](/example/line/auto-active) |
| editable | 绘制的 LineString 是否支持二次编辑(拖拽位移) | `boolean` | `true` | [禁用编辑示例](/example/line/editable) |
| 名称 | 说明 | 类型 | 默认值 | 示例 |
| --------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------- | ------------------------------------------------------- |
| initialData | 设置 Draw 的初始数据,`GeoJSON` 类型中的 [LineString](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.4) 数组 | `Feature[]` | `[]` | [初始化数据示例](/example/line/initial-data) |
| showMidPoint | 是否展示线段中点 | `boolean` | `true` | [禁用中点](/example/line/mid-point) |
| distanceOptions | 距离文本相关配置 | `false` &#124; [Distance](/docs/super/distance#配置) | `false` | [展示距离](/example/line/distance) |
| adsorbOptions | 吸附相关配置 | `false` &#124; [Adsorb](/docs/super/adsorb#配置) | `false` | [吸附能力](/example/line/adsorb) |
| autoActive | 新创建的 LineString 是否展示为激活态 | `boolean` | `true` | [关闭自动激活示例](/example/line/auto-active) |
| editable | 绘制的 LineString 是否支持二次编辑(拖拽位移) | `boolean` | `true` | [禁用编辑示例](/example/line/editable) |
| multiple | Draw 是否支持绘制多个绘制物 | `boolean` | `true` | [禁止绘制多个](/example/line/multiple#始终最多绘制一个) |
| style | LineString 在不同状态下的样式 | [Style](/docs/super/style#配置) | - | - |
| helper | 绘制提示文案的配置,支持传入 `string &#124; Element &#124; DocumentFragment` 在提示框中进行渲染,传 `false` 为关闭提示绘制 | [Helper](#helper) &#124; `boolean` | `true` | [提示文案](/example/common/helper) |
| popup | 绘制提示框配置,详细配置可见 [Tippy.js](https://atomiks.github.io/tippyjs/v6/all-props/),传 `false` 为关闭提示框 | [TippyProps](https://atomiks.github.io/tippyjs/v6/all-props/) &#124; `boolean` | `true` | [提示文案](/example/common/helper) |
| keyboard | 自定义快捷键瑟是否开启,以及对应的按键 | [Keyboard](/docs/super/keyboard#配置) | - | - |
| history | 保存历史绘制数据的相关配置,涉及到回退操作的最大操作次数 | [History](/docs/super/history#配置) | - | - |
| style | LineString 在不同状态下的样式 | [Style](/docs/super/style#配置) | - | - |
| helper | 绘制提示文案的配置,支持传入 `string &#124; Element &#124; DocumentFragment` 在提示框中进行渲染,传 `false` 为关闭提示绘制 | [Helper](#helper) &#124; `boolean` | `true` | [提示文案](/example/common/helper) |
| popup | 绘制提示框配置,详细配置可见 [Tippy.js](https://atomiks.github.io/tippyjs/v6/all-props/),传 `false` 为关闭提示框 | [TippyProps](https://atomiks.github.io/tippyjs/v6/all-props/) &#124; `boolean` | `true` | [提示文案](/example/common/helper) |
| keyboard | 自定义快捷键瑟是否开启,以及对应的按键 | [Keyboard](/docs/super/keyboard#配置) | - | - |
| history | 保存历史绘制数据的相关配置,涉及到回退操作的最大操作次数 | [History](/docs/super/history#配置) | - | - |

### Helper

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/draw/polygon.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ options 配置是 Draw 实例化的时候,作为第二个参数传入,所有
| showMidPoint | 是否展示线段中点 | `boolean` | `true` | [禁用中点](/example/polygon/mid-point) |
| distanceOptions | 距离文本相关配置 | `false` &#124; [Distance](/docs/super/distance#配置) | `false` | [展示距离和面积](/example/polygon/area) |
| areaOptions | 面积文本相关配置 | `false` &#124; [Area](/docs/super/area#配置) | `false` | [展示距离和面积](/example/polygon/area) |
| adsorbOptions | 吸附相关配置 | `false` &#124; [Adsorb](/docs/super/adsorb#配置) | `false` | [吸附能力](/example/polygon/adsorb) |
| adsorbOptions | 吸附相关配置 | `false` &#124; [Adsorb](/docs/super/adsorb#配置) | `false` | [吸附能力](/example/polygon/adsorb) |
| liveUpdate | 在绘制面过程中,面是否跟随鼠标动态更新 | `boolean` | `false` | - |
| autoActive | 绘制 Polygon 后,新增的 Polygon 是否为激活态 | `boolean` | `true` | [关闭自动激活示例](/example/polygon/auto-active) |
| editable | 绘制的 Polygon 是否支持二次编辑(拖拽位移) | `boolean` | `true` | [禁用编辑示例](/example/polygon/editable) |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-draw",
"version": "3.0.6",
"version": "3.0.7",
"description": "A drawing package for L7",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit 140b625

Please sign in to comment.