@zhangdali1996/lr-map-viewer 0.0.9 → 0.0.11
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 +16 -0
- package/dist/lr-map-viewer.css +1 -1
- package/dist/lr-map-viewer.js +52247 -1413
- package/dist/monitor-points-DbPD8qrq.js +154 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -23,6 +23,19 @@ npm install @zhangdali1996/lr-map-viewer
|
|
|
23
23
|
|
|
24
24
|
`vue` 和 `element-plus` 作为 `peerDependencies` 提供,要求使用方项目自行安装。
|
|
25
25
|
|
|
26
|
+
二维图纸依赖的 `@longruan/lr-map` 已随当前组件库构建产物内置,客户项目安装本包时不需要再额外访问公司内网 npm 拉取这个依赖。
|
|
27
|
+
|
|
28
|
+
安装后请显式引入组件库样式:
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
说明:
|
|
35
|
+
|
|
36
|
+
- 这部分样式对应组件库自身的布局、面板、占位态等 UI。
|
|
37
|
+
- 龙软 SDK 的 `/editorapp`、`/resource` 静态资源及其中的样式,仍需由实施方单独提供。
|
|
38
|
+
|
|
26
39
|
## 静态资源放置
|
|
27
40
|
|
|
28
41
|
该包不会携带龙软 SDK 的大体积静态资源。以下目录需要由实施方单独提供给客户:
|
|
@@ -80,6 +93,7 @@ const lr3dConfig = {
|
|
|
80
93
|
|
|
81
94
|
```vue
|
|
82
95
|
<script setup>
|
|
96
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
83
97
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
84
98
|
|
|
85
99
|
const credentialKey = 'your_credential_key'
|
|
@@ -119,6 +133,7 @@ const lr3dConfig = {
|
|
|
119
133
|
|
|
120
134
|
```vue
|
|
121
135
|
<script setup>
|
|
136
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
122
137
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
123
138
|
|
|
124
139
|
const credentialKey = 'your_credential_key'
|
|
@@ -154,6 +169,7 @@ const map2dConfig = {
|
|
|
154
169
|
```vue
|
|
155
170
|
<script setup>
|
|
156
171
|
import { ref } from 'vue'
|
|
172
|
+
import '@zhangdali1996/lr-map-viewer/style.css'
|
|
157
173
|
import { LrMapViewer } from '@zhangdali1996/lr-map-viewer'
|
|
158
174
|
|
|
159
175
|
const activeMode = ref('2d')
|