@vsleem-realsee-viewer/bimsee-plugin 2.0.17 → 2.0.19
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.internal.md +26 -22
- package/package.json +3 -3
package/README.internal.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
# Bimsee
|
|
1
|
+
# 1. Bimsee嵌套组件
|
|
2
2
|
|
|
3
|
-
## 介绍
|
|
3
|
+
## 1.1 介绍
|
|
4
4
|
|
|
5
5
|
用于将BIM模型展示在页面上的组件,组件包含蒙层容器组件和相关交互等功能
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
依赖@vsleem-realsee-viewer/shared(共享类)
|
|
8
|
+
|
|
9
|
+
## 1.2 BimseeProps 参数说明
|
|
8
10
|
|
|
9
11
|
| 参数名 | 类型 | 默认值 | 说明 |
|
|
10
12
|
| ------------------- | -------------------------------------------------------- | --------------------------- | -------------------------- |
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
| `fetchSuccess?` | `(res?: Coordinate) => void` | - | 坐标系树请求成功 |
|
|
19
21
|
| `fetchError?` | `(error: any) => void` | - | 请求失败回调 |
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
## 1.3 AppSetting 类型说明
|
|
22
24
|
|
|
23
25
|
| 参数名 | 类型 | 默认值 | 说明 |
|
|
24
26
|
| --------------- | -------- | ------------------------ | ------------------------------------------------------ |
|
|
@@ -27,14 +29,14 @@
|
|
|
27
29
|
| `obsPrefix?` | `string` | - | 用于在对象存储中组织文件的目录路径(不可用) |
|
|
28
30
|
| `obsType?` | `string` | hs | 指定使用的对象存储服务提供商 huawei \| aliyun \| hs 等 |
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
## 1.4 SearchInfo 类型说明
|
|
31
33
|
|
|
32
34
|
| 参数名 | 类型 | 默认值 | 说明 |
|
|
33
35
|
| ----------- | -------- | ------ | ----------------- |
|
|
34
36
|
| `projectId` | `number` | - | 项目唯一标识 |
|
|
35
37
|
| `modelCsId` | `number` | - | bim模型坐标系标识 |
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
## 1.5 BimseeStore 类型说明
|
|
38
40
|
|
|
39
41
|
| 属性/方法 | 类型/签名 | 说明 |
|
|
40
42
|
| ----------------------- | ------------------------------------------------------- | ------------------------------------ |
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
| `setReferPoint` | `(current: TrackPoint, options: ViewerOptions) => void` | 设置参考点 |
|
|
51
53
|
| `normalizeToModelPoint` | `(current: TrackPoint) => TrackPoint \| undefined` | 设置模型的坐标点 |
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
## 1.6 BimseeElement 实例对象
|
|
54
56
|
|
|
55
57
|
| 属性/方法 | 类型签名 | 说明 |
|
|
56
58
|
| ------------- | -------------------------------------------------- | -------------------------------------------------- |
|
|
@@ -60,7 +62,7 @@
|
|
|
60
62
|
| `getState()` | `() => BimseeProps` | 获取初始化配置(返回原始配置参数) |
|
|
61
63
|
| `setState()` | `(options: Partial<UpdatableBimseeProps>) => void` | 动态更新可修改配置(注意:部分配置初始化后不可更改 |
|
|
62
64
|
|
|
63
|
-
|
|
65
|
+
## 1.7 BimseeEvents 事件说明
|
|
64
66
|
|
|
65
67
|
| 事件名称 | 参数类型 | 说明 |
|
|
66
68
|
| ----------------------- | ------------------------------ | ---------------------- |
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
| `maskerZoomUpdated` | `(e: any) => void` | 蒙层缩放到指定级别事件 |
|
|
76
78
|
| `maskerPositionUpdated` | `(e: any) => void` | 蒙层旋转到指定位置事件 |
|
|
77
79
|
|
|
78
|
-
|
|
80
|
+
## 1.8 Bimsee Slot 插槽说明
|
|
79
81
|
|
|
80
82
|
| 插槽名称 | 参数类型 | 说明 |
|
|
81
83
|
| --------- | ---------------------- | -------- |
|
|
@@ -96,11 +98,13 @@ type maskerSlot =slot & {
|
|
|
96
98
|
}
|
|
97
99
|
```
|
|
98
100
|
|
|
99
|
-
# Masker 蒙层组件
|
|
101
|
+
# 2. Masker 蒙层组件
|
|
102
|
+
|
|
103
|
+
## 2.1 介绍
|
|
100
104
|
|
|
101
|
-
|
|
105
|
+
一个覆盖在BIM上的蒙层组件
|
|
102
106
|
|
|
103
|
-
|
|
107
|
+
## 2.2 MaskerProps 类型说明
|
|
104
108
|
|
|
105
109
|
| 参数名 | 类型 | 默认值 | 说明 |
|
|
106
110
|
| ----------------- | --------- | ------ | ---------------------- |
|
|
@@ -113,7 +117,7 @@ type maskerSlot =slot & {
|
|
|
113
117
|
| `mouseover?` | `boolean` | - | 鼠标悬浮 |
|
|
114
118
|
| `mousedown?` | `boolean` | - | 鼠标按下 |
|
|
115
119
|
|
|
116
|
-
|
|
120
|
+
## 2.3 MaskerElement 实例对象
|
|
117
121
|
|
|
118
122
|
| 方法/属性 | 类型签名 | 说明 |
|
|
119
123
|
| ------------------- | ------------------------------------------ | ------------------------ |
|
|
@@ -137,7 +141,7 @@ type maskerSlot =slot & {
|
|
|
137
141
|
| `getCameraHFov` | `() => number \| undefined` | 获取当前相机视野角度 |
|
|
138
142
|
| `getCameraStatus` | `() => CameraStatus \| undefined` | 获取相机状态 |
|
|
139
143
|
|
|
140
|
-
|
|
144
|
+
## 2.4 DataHelper 数据转换对象
|
|
141
145
|
|
|
142
146
|
| 属性 | 类型 | 描述 |
|
|
143
147
|
| ---------------------------- | -------------------------------------------------- | ------------------------------------ |
|
|
@@ -146,7 +150,7 @@ type maskerSlot =slot & {
|
|
|
146
150
|
| `fovToZoomLevel` | `(fov: number) => number` | 将视野转换为缩放级别 |
|
|
147
151
|
| `zoomLevelToFov` | `(level: number) => number` | 将缩放级别转换为视野 |
|
|
148
152
|
|
|
149
|
-
|
|
153
|
+
## 2.5 MaskerEvents 事件说明
|
|
150
154
|
|
|
151
155
|
| 事件名称 | 描述 | 参数类型 |
|
|
152
156
|
| ----------------- | ---------------------- | ---------------- |
|
|
@@ -156,7 +160,7 @@ type maskerSlot =slot & {
|
|
|
156
160
|
| `zoomUpdated` | 蒙层缩放到指定级别事件 | (e: any) => void |
|
|
157
161
|
| `positionUpdated` | 蒙层旋转到指定位置事件 | (e: any) => void |
|
|
158
162
|
|
|
159
|
-
# 导出的类型声明对象
|
|
163
|
+
# 3. 导出的类型声明对象
|
|
160
164
|
|
|
161
165
|
```js
|
|
162
166
|
// 配置相关类型导出
|
|
@@ -188,18 +192,18 @@ export {
|
|
|
188
192
|
|
|
189
193
|
```
|
|
190
194
|
|
|
191
|
-
# 示例
|
|
195
|
+
# 4. 示例
|
|
192
196
|
|
|
193
197
|
通过以下方式来注册组件
|
|
194
198
|
|
|
195
|
-
|
|
199
|
+
## 4.1 安装
|
|
196
200
|
|
|
197
|
-
`npm install @vsleem-realsee-viewer/bimsee-plugin @vsleem-realsee-viewer/shared`
|
|
201
|
+
`npm install @vsleem-realsee-viewer/realsee-plugin @vsleem-realsee-viewer/bimsee-plugin @vsleem-realsee-viewer/shared`
|
|
198
202
|
|
|
199
|
-
`pnpm add @vsleem-realsee-viewer/bimsee-plugin @vsleem-realsee-viewer/shared`
|
|
203
|
+
`pnpm add @vsleem-realsee-viewer/realsee-plugin @vsleem-realsee-viewer/bimsee-plugin @vsleem-realsee-viewer/shared`
|
|
200
204
|
|
|
201
|
-
|
|
205
|
+
## 4.2 例子
|
|
202
206
|
|
|
203
|
-
`vsleem-realsee-demo仓库下的
|
|
207
|
+
`vsleem-realsee-demo仓库下的viewer/dualsee`
|
|
204
208
|
|
|
205
209
|
仓库地址:https://gitee.com/yangleistudio/vsleem-realsee-demo
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsleem-realsee-viewer/bimsee-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.19",
|
|
4
4
|
"description": "Bimsee plugin for VSLeem RealSee Viewer",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
16
|
+
"@vsleem-realsee-viewer/shared": "2.0.19"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.0.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
20
|
+
"@vsleem-realsee-viewer/shared": "2.0.19"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"vue": {
|