fan-planar-viewer 2.3.32 → 3.1.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 CHANGED
@@ -1,7 +1,44 @@
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
+ # v2.x
28
+ - 适用范围:嘉里、丰田等使用antd4.0的项目
29
+ - 对应组件库版本`antd@4.23.6`,`fan-standard-comp@3.x`
30
+ * [文档](http://47.99.222.25:1203/doc-v3/viewers/planar-editor)。
31
+
32
+ # v2.x-down
33
+ - 适用范围:所有产品版本IBMS等
34
+ - 对应组件库版本`antd@3.x`,`fan-standard-comp@1.x`
35
+ * [文档](http://47.99.222.25:1203/doc-v3/viewers-down/planar-editor)。
1
36
 
2
37
 
3
38
  ## 二维地图工具
4
39
  > 用于展示SVG图纸及绘制图形等工具
40
+
41
+
5
42
  ### 编辑功能
6
43
  1、将CAD转换成.svg文件的建筑底图展示在画布中,并在其基础上绘制添加新的形状与设备图层
7
44
 
@@ -103,7 +140,7 @@ import {PlanarEditor} from 'fan-planar-viewer'
103
140
  ## 组态编辑器
104
141
 
105
142
  > 绘制与展示设备组态图
106
- #### 编辑用法
143
+ ### 编辑用法
107
144
 
108
145
  ```
109
146
  import { GraphicEditor } from 'fan-planar-viewer/dist/graphic.js';
@@ -118,7 +155,7 @@ import { GraphicEditor } from 'fan-planar-viewer/dist/graphic.js';
118
155
  ```
119
156
 
120
157
 
121
- #### 预览用法
158
+ ### 预览用法
122
159
  ```
123
160
  import { GraphicPreview } from 'fan-planar-viewer/dist/graphic.js';
124
161
  或 import { GraphicPreview } from 'fan-planar-viewer';
@@ -131,12 +168,3 @@ import { GraphicPreview } from 'fan-planar-viewer/dist/graphic.js';
131
168
 
132
169
  拖放组件: https://react-dnd.github.io/react-dnd/docs/api/use-drag
133
170
 
134
-
135
- >
136
- > 注:antd 版本不能使用超过antd@4.23.6
137
- >
138
-
139
-
140
- **若安装antd@4.24.12以上版本,在弹窗上使用二维地图则会报错**
141
-
142
- ![图片](./log/error01.png)