fan-planar-viewer 2.3.28 → 3.0.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.
- package/README.md +40 -11
- package/dist/graphic.js +1 -1
- package/dist/index.js +2 -2
- package/dist/planarEditor.js +2 -2
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -1,7 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
nav:
|
|
3
|
+
title: 指南
|
|
4
|
+
order: 1
|
|
5
|
+
title: 安装使用
|
|
6
|
+
order: 1
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 📦 安装
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install fan-planar-viewer --save
|
|
13
|
+
```
|
|
14
|
+
或
|
|
15
|
+
```
|
|
16
|
+
$ yarn add fan-planar-viewer
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 版本依赖说明
|
|
20
|
+
|
|
21
|
+
- 对应组件库版本`antd@5.x`,`fan-standard-comp@4.x`
|
|
22
|
+
- 适用范围:最新IOT项目
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 其他版本文档
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# v2.x-down
|
|
29
|
+
- 适用范围:所有产品版本IBMS等
|
|
30
|
+
- 对应组件库版本`antd@3.x`,`fan-standard-comp@1.x`
|
|
31
|
+
* [文档](http://47.99.222.25:1203/doc-v3/viewers-down/planar-editor)。
|
|
32
|
+
|
|
33
|
+
# v2.x
|
|
34
|
+
- 适用范围:嘉里、丰田等使用antd4.0的项目
|
|
35
|
+
- 对应组件库版本`antd@4.23.6`,`fan-standard-comp@3.x`
|
|
36
|
+
* [文档](http://47.99.222.25:1203/doc-v3/viewers/planar-editor)。
|
|
1
37
|
|
|
2
38
|
|
|
3
39
|
## 二维地图工具
|
|
4
40
|
> 用于展示SVG图纸及绘制图形等工具
|
|
41
|
+
|
|
42
|
+
|
|
5
43
|
### 编辑功能
|
|
6
44
|
1、将CAD转换成.svg文件的建筑底图展示在画布中,并在其基础上绘制添加新的形状与设备图层
|
|
7
45
|
|
|
@@ -103,7 +141,7 @@ import {PlanarEditor} from 'fan-planar-viewer'
|
|
|
103
141
|
## 组态编辑器
|
|
104
142
|
|
|
105
143
|
> 绘制与展示设备组态图
|
|
106
|
-
|
|
144
|
+
### 编辑用法
|
|
107
145
|
|
|
108
146
|
```
|
|
109
147
|
import { GraphicEditor } from 'fan-planar-viewer/dist/graphic.js';
|
|
@@ -118,7 +156,7 @@ import { GraphicEditor } from 'fan-planar-viewer/dist/graphic.js';
|
|
|
118
156
|
```
|
|
119
157
|
|
|
120
158
|
|
|
121
|
-
|
|
159
|
+
### 预览用法
|
|
122
160
|
```
|
|
123
161
|
import { GraphicPreview } from 'fan-planar-viewer/dist/graphic.js';
|
|
124
162
|
或 import { GraphicPreview } from 'fan-planar-viewer';
|
|
@@ -131,12 +169,3 @@ import { GraphicPreview } from 'fan-planar-viewer/dist/graphic.js';
|
|
|
131
169
|
|
|
132
170
|
拖放组件: https://react-dnd.github.io/react-dnd/docs/api/use-drag
|
|
133
171
|
|
|
134
|
-
|
|
135
|
-
>
|
|
136
|
-
> 注:antd 版本不能使用超过antd@4.23.6
|
|
137
|
-
>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
**若安装antd@4.24.12以上版本,在弹窗上使用二维地图则会报错**
|
|
141
|
-
|
|
142
|
-

|