@vsleem-realsee-viewer/realsee-plugin 2.0.24 → 2.0.25
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 +151 -126
- package/dist/components/Playbar.vue.d.ts +123 -4
- package/dist/components/Realsee.vue.d.ts +2 -2
- package/dist/core/TrackMarker.d.ts +1 -1
- package/dist/enums/error.d.ts +3 -1
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/viewer.d.ts +10 -0
- package/dist/hooks/usePlaybarContext.d.ts +2 -1
- package/dist/hooks/useRealseeContext.d.ts +7 -9
- package/dist/hooks/useViewerContext.d.ts +18 -81
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +6448 -6378
- package/dist/index.umd.js +166 -166
- package/dist/settings/index.d.ts +22 -2
- package/dist/types/data.d.ts +2 -2
- package/dist/types/map.d.ts +1 -0
- package/dist/types/playbar.d.ts +9 -0
- package/dist/types/store.d.ts +2 -2
- package/dist/types/viewer.d.ts +18 -13
- package/package.json +3 -3
package/README.internal.md
CHANGED
|
@@ -71,42 +71,42 @@ const TRACK_COLOR_LIST = [
|
|
|
71
71
|
|
|
72
72
|
## 1.6 RealseeStore 类型说明
|
|
73
73
|
|
|
74
|
-
| 属性/方法 | 类型/签名
|
|
75
|
-
| ----------------------- |
|
|
76
|
-
| `ready` | `boolean`
|
|
77
|
-
| `coordinateTree?` | `Coordinate`
|
|
78
|
-
| `mappedCoordinateTree?` | `Coordinate`
|
|
79
|
-
| `rawDataSource` | `Map<string, TrackRecord>`
|
|
80
|
-
| `dataSource` | `Map<string, TrackRecord>`
|
|
81
|
-
| `comCoordinate?` | `Coordinate`
|
|
82
|
-
| `currentModel?` | `Coordinate`
|
|
83
|
-
| `currentSpace?` | `Coordinate`
|
|
84
|
-
| `currentRawRecord?` | `TrackRecord`
|
|
85
|
-
| `currentRecord?` | `TrackRecord`
|
|
86
|
-
| `currentRawPoint?` | `TrackPoint`
|
|
87
|
-
| `currentPoint?` | `TrackPoint`
|
|
88
|
-
| `currentMarker?` | `TrackMarker`
|
|
89
|
-
| `currentPointMarkers` | `TrackMarker[]`
|
|
90
|
-
| `groupedMarkers` | ` Map<TrackPoint, TrackMarker[]>`
|
|
91
|
-
| `reload` | `(searchInfo: SearchInfo) => Promise<void>`
|
|
92
|
-
| `fetchRecord` | `(patrolId: string) => Promise<TrackRecord \| undefined>`
|
|
93
|
-
| `selectModel` | `(coordinate: Partial<Coordinate>) => void`
|
|
94
|
-
| `selectRecord` | `(record: Partial<TrackRecord>) => void`
|
|
95
|
-
| `selectPoint` | `(point: Partial<TrackPoint>) => void`
|
|
96
|
-
| `selectMarker` | `(marker: Partial<TrackMarker>) => void`
|
|
97
|
-
| `setReferPoint` | `(current: TrackPoint, options:
|
|
98
|
-
| `addMarker` | ` (marker: TrackMarker) => void;`
|
|
99
|
-
| `removeMarker` | ` (marker: Partial<TrackMarker>) => void`
|
|
100
|
-
| `updateMarker` | `(marker: Partial<TrackMarker>) => void`
|
|
101
|
-
| `hasRecord` | `(id: string) => boolean`
|
|
102
|
-
| `getRecord` | `(id: string) => TrackRecord \| undefined`
|
|
103
|
-
| `addRecord` | `(id: string) => Promise<TrackRecord \| undefined>`
|
|
104
|
-
| `batchAddRecords` | ` (ids: string[]) => Promise<void>`
|
|
105
|
-
| `removeRecord` | `(id: string) => boolean`
|
|
106
|
-
| `updateRecord` | `(record: TrackRecord) => Promise<void>`
|
|
107
|
-
| `findClosestBIMModel` | `() => Coordinate \| undefined`
|
|
108
|
-
| `findClosestPoint` | `(current: TrackPoint): TrackPoint \| undefined`
|
|
109
|
-
| `normalizeToModelPoint` | ` (current: TrackPoint) => TrackPoint \| undefined`
|
|
74
|
+
| 属性/方法 | 类型/签名 | 说明 |
|
|
75
|
+
| ----------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------ |
|
|
76
|
+
| `ready` | `boolean` | 是否加载完成 |
|
|
77
|
+
| `coordinateTree?` | `Coordinate` | 坐标系树数据 |
|
|
78
|
+
| `mappedCoordinateTree?` | `Coordinate` | 映射坐标系树数据 |
|
|
79
|
+
| `rawDataSource` | `Map<string, TrackRecord>` | 原始所有巡检记录集合 |
|
|
80
|
+
| `dataSource` | `Map<string, TrackRecord>` | 展示的所有巡检记录集合 |
|
|
81
|
+
| `comCoordinate?` | `Coordinate` | 所有记录集合共有的空间坐标系 |
|
|
82
|
+
| `currentModel?` | `Coordinate` | 当前选中的模型坐标系 |
|
|
83
|
+
| `currentSpace?` | `Coordinate` | 当前模型所属的空间坐标系 |
|
|
84
|
+
| `currentRawRecord?` | `TrackRecord` | 当前选中的原始巡检记录 |
|
|
85
|
+
| `currentRecord?` | `TrackRecord` | 当前选中的巡检记录 |
|
|
86
|
+
| `currentRawPoint?` | `TrackPoint` | 当前选中的原始轨迹点 |
|
|
87
|
+
| `currentPoint?` | `TrackPoint` | 当前选中的轨迹点 |
|
|
88
|
+
| `currentMarker?` | `TrackMarker` | 当前选中的问题标记 |
|
|
89
|
+
| `currentPointMarkers` | `TrackMarker[]` | 当前点关联的所有问题标记列表 |
|
|
90
|
+
| `groupedMarkers` | ` Map<TrackPoint, TrackMarker[]>` | 根据坐标点对所有巡检记录的问题标记进行分组 |
|
|
91
|
+
| `reload` | `(searchInfo: SearchInfo) => Promise<void>` | 重新加载数据(包含 projectId 和 patrolId) |
|
|
92
|
+
| `fetchRecord` | `(patrolId: string) => Promise<TrackRecord \| undefined>` | 获取单条巡检记录 |
|
|
93
|
+
| `selectModel` | `(coordinate: Partial<Coordinate>) => void` | 选择模型(找不到对应模型时抛出错误) |
|
|
94
|
+
| `selectRecord` | `(record: Partial<TrackRecord>) => void` | 选择巡检记录(找不到对应记录时抛出错误) |
|
|
95
|
+
| `selectPoint` | `(point: Partial<TrackPoint>) => void` | 选择轨迹点(找不到对应点时抛出错误) |
|
|
96
|
+
| `selectMarker` | `(marker: Partial<TrackMarker>) => void` | 选择问题标记(找不到对应标记时抛出错误) |
|
|
97
|
+
| `setReferPoint` | `(current: TrackPoint, options: Pick<PanoramaOptions, 'position' \| 'zoom'>) => void` | 设置参考点来找最近的轨迹点(视图对比使用) |
|
|
98
|
+
| `addMarker` | ` (marker: TrackMarker) => void;` | 添加问题标记 |
|
|
99
|
+
| `removeMarker` | ` (marker: Partial<TrackMarker>) => void` | 移除问题标记 |
|
|
100
|
+
| `updateMarker` | `(marker: Partial<TrackMarker>) => void` | 要更新的标记数据(包含patrolId和id) |
|
|
101
|
+
| `hasRecord` | `(id: string) => boolean` | 检查指定ID的记录是否存在 |
|
|
102
|
+
| `getRecord` | `(id: string) => TrackRecord \| undefined` | 获取指定ID的记录对象 |
|
|
103
|
+
| `addRecord` | `(id: string) => Promise<TrackRecord \| undefined>` | 添加新记录 |
|
|
104
|
+
| `batchAddRecords` | ` (ids: string[]) => Promise<void>` | 批量添加巡检记录 |
|
|
105
|
+
| `removeRecord` | `(id: string) => boolean` | 移除指定记录 |
|
|
106
|
+
| `updateRecord` | `(record: TrackRecord) => Promise<void>` | 更新记录数据 |
|
|
107
|
+
| `findClosestBIMModel` | `() => Coordinate \| undefined` | 获取当前模型在映射坐标系树最近的bimsee模型 |
|
|
108
|
+
| `findClosestPoint` | `(current: TrackPoint): TrackPoint \| undefined` | 查找距离给定点最近的轨迹点 |
|
|
109
|
+
| `normalizeToModelPoint` | ` (current: TrackPoint) => TrackPoint \| undefined` | 将参考点坐标归一化到当前的模型坐标系 |
|
|
110
110
|
|
|
111
111
|
## 1.7 RealseeElement 实例对象
|
|
112
112
|
|
|
@@ -204,33 +204,35 @@ type playbarSlot = slot & {
|
|
|
204
204
|
|
|
205
205
|
- `ViewerProps 类型继承 core.viewerconfig,更多属性请参考https://photo-sphere-viewer.js.org/api/types/core.viewerconfig`
|
|
206
206
|
|
|
207
|
-
| 属性 | 类型 | 默认值
|
|
208
|
-
| ----------------- | ----------------- |
|
|
209
|
-
| `...ViewerConfig` | `...ViewerConfig` | 请查看
|
|
207
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
208
|
+
| ----------------- | ----------------- | --------------------------- | -------------- |
|
|
209
|
+
| `...ViewerConfig` | `...ViewerConfig` | 请查看VIEWER_CONFIG默认配置 | 视图配置 |
|
|
210
|
+
| `viewMode` | `number` | ViewModeEnum.Auto | 视图预览模式 |
|
|
211
|
+
| `loadingPh` | `boolean` | false | 是否加载占位图 |
|
|
210
212
|
|
|
211
213
|
```
|
|
212
|
-
type
|
|
213
|
-
|
|
214
|
-
'container' | 'panorama' | 'keyboard' | 'keyboardActions'
|
|
215
|
-
>
|
|
214
|
+
type ReadonlyViewerConfig = 'container' | 'panorama' | 'keyboard' | 'keyboardActions';
|
|
215
|
+
type ViewerProps = Omit<ViewerConfig, ReadonlyViewerConfig>;
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
## 2.3 ViewerElement 实例对象
|
|
219
219
|
|
|
220
|
-
| 属性/方法
|
|
221
|
-
|
|
|
222
|
-
| `getState`
|
|
223
|
-
| `setState`
|
|
224
|
-
| `isMouseover`
|
|
225
|
-
| `isMousedown`
|
|
226
|
-
| `setMousedown`
|
|
227
|
-
| `setMouseover`
|
|
228
|
-
| `setPanoramaPath`
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `updateMarkers`
|
|
232
|
-
| `
|
|
233
|
-
| `preloadPanorama`
|
|
220
|
+
| 属性/方法 | 类型签名 | 说明 |
|
|
221
|
+
| ------------------ | ------------------------------------------------------------------------- | -------------------- |
|
|
222
|
+
| `getState` | `()=> UpdatableViewerProps \| undefined` | 获取当前视图配置选项 |
|
|
223
|
+
| `setState` | `(options?: UpdatableViewerProps) => void` | 更新视图配置选项 |
|
|
224
|
+
| `isMouseover` | `()=> boolean` | 获取鼠标悬停状态 |
|
|
225
|
+
| `isMousedown` | `()=> boolean` | 获取鼠标按下状态 |
|
|
226
|
+
| `setMousedown` | `(mousedown: boolean) => void` | 设置鼠标按下状态 |
|
|
227
|
+
| `setMouseover` | `(mouseover: boolean) => void` | 设置鼠标悬停状态 |
|
|
228
|
+
| `setPanoramaPath` | `(path: any, options?: PanoramaOptions) => Promise<boolean \| undefined>` | 加载全景图 |
|
|
229
|
+
| `setViewerStatus` | `(options?: PanoramaOptions) => void` | 设置全景图专用选项 |
|
|
230
|
+
| `setMoveDirection` | `(value?: number) => void` | 设置球面视角方向选项 |
|
|
231
|
+
| `updateMarkers` | `() => void` | 更新在全景图上的标记 |
|
|
232
|
+
| `updateViewer` | `() => void` | 刷新视图 |
|
|
233
|
+
| `preloadPanorama` | `() => void` | 预加载全景图资源 |
|
|
234
|
+
| `loadMarkers` | `() => void` | 加载全景图上的标记 |
|
|
235
|
+
| `getMovePosition` | `(currentPoint?: TrackPoint) => Position \| undefined` | 获取视图转换位置 |
|
|
234
236
|
|
|
235
237
|
## 2.4 ViewerEvents 事件说明
|
|
236
238
|
|
|
@@ -295,17 +297,18 @@ type MarkerElement = MarkersPlugin
|
|
|
295
297
|
|
|
296
298
|
## 3.2 PlaybarProps 类型说明
|
|
297
299
|
|
|
298
|
-
| 属性 | 类型
|
|
299
|
-
| ----------------- |
|
|
300
|
-
| `style?` | `CSSProperties`
|
|
301
|
-
| `showPlay?` | `boolean`
|
|
302
|
-
| `showSpeed?` | `boolean`
|
|
303
|
-
| `speed?` | `number`
|
|
304
|
-
| `baseSpeed?` | `number`
|
|
305
|
-
| `step?` | `number`
|
|
306
|
-
| `threshold?` | `number`
|
|
307
|
-
| `
|
|
308
|
-
| `readonly
|
|
300
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
301
|
+
| ----------------- | ----------------- | ---------------------------- | -------------------------------- |
|
|
302
|
+
| `style?` | `CSSProperties` | - | 播放栏浮层的样式,调整浮层位置等 |
|
|
303
|
+
| `showPlay?` | `boolean` | true | 是否显示播放/暂停按钮 |
|
|
304
|
+
| `showSpeed?` | `boolean` | true | 是否显示快进按钮 |
|
|
305
|
+
| `speed?` | `number` | 1000 | 当前播放速度 单位毫秒 |
|
|
306
|
+
| `baseSpeed?` | `number` | 1000 | 基准速度 单位毫秒 |
|
|
307
|
+
| `step?` | `number` | 0.5 | 播放倍数步长 |
|
|
308
|
+
| `threshold?` | `number` | 2000 | 播放速度阈值 单位毫秒 |
|
|
309
|
+
| `rotation?` | `PlaybarRotation` | 请查看PLAYBAR_CONFIG默认配置 | 旋转到路径/视角方向选项 |
|
|
310
|
+
| `readonly count?` | `number` | - | 轨迹点总数 |
|
|
311
|
+
| `readonly index?` | `number` | - | 当前第几个轨迹点 |
|
|
309
312
|
|
|
310
313
|
## 3.3 PlaybarElement 属性/方法说明
|
|
311
314
|
|
|
@@ -317,6 +320,7 @@ type MarkerElement = MarkersPlugin
|
|
|
317
320
|
| `play` | `() => void` | 播放 |
|
|
318
321
|
| `pause` | `() => void` | 暂停 |
|
|
319
322
|
| `forward` | `() => void` | 前进 |
|
|
323
|
+
| `slider` | `() => void` | 滑动 |
|
|
320
324
|
| `speed` | `() => void` | 快进 |
|
|
321
325
|
| `playNext` | `() => void` | 播放下一个 |
|
|
322
326
|
|
|
@@ -367,20 +371,22 @@ type slot= {
|
|
|
367
371
|
|
|
368
372
|
## 4.2 MapProps 类型说明
|
|
369
373
|
|
|
370
|
-
| 属性 | 类型 | 默认值
|
|
371
|
-
| ---------------------- | ------------------------------------------------------------- |
|
|
372
|
-
| `style?` | `CSSProperties` | -
|
|
373
|
-
| `showRadar?` | `boolean` | true
|
|
374
|
-
| `showPoint?` | `boolean` | true
|
|
375
|
-
| `showMarker?` | `boolean` | true
|
|
376
|
-
| `showDragger?` | `boolean` | true
|
|
377
|
-
| `minSize?` | `number` | 200
|
|
378
|
-
| `maxSize?` | `number` | 500
|
|
379
|
-
| `size?` | `number` | 200
|
|
380
|
-
| `radarYaw?` | `number` | 0
|
|
381
|
-
| `radarHFov?` | `number` | 0
|
|
382
|
-
| `
|
|
383
|
-
| `
|
|
374
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
375
|
+
| ---------------------- | ------------------------------------------------------------- | ------------------------- | --------------------------------------------------------------------------- |
|
|
376
|
+
| `style?` | `CSSProperties` | - | 地图样式 |
|
|
377
|
+
| `showRadar?` | `boolean` | true | 是否显示雷达 |
|
|
378
|
+
| `showPoint?` | `boolean` | true | 是否显示选中的点 |
|
|
379
|
+
| `showMarker?` | `boolean` | true | 是否显示标记 |
|
|
380
|
+
| `showDragger?` | `boolean` | true | 是否显示拖动按钮 |
|
|
381
|
+
| `minSize?` | `number` | 200 | 最小尺寸 |
|
|
382
|
+
| `maxSize?` | `number` | 500 | 最大尺寸 |
|
|
383
|
+
| `size?` | `number` | 200 | 小地图尺寸 |
|
|
384
|
+
| `radarYaw?` | `number` | 0 | 雷达偏航角 |
|
|
385
|
+
| `radarHFov?` | `number` | 0 | 雷达水平视野角 |
|
|
386
|
+
| `rotation?` | `boolean` | true | 选中帧后是否旋转到路径/视角方向 |
|
|
387
|
+
| `tileLayers?` | `TileLayer[]` | 请查看TILE_LAYERS默认配置 | 地理地图瓦片图层列表 |
|
|
388
|
+
| `readonly radarAngle?` | `number` | 0 | 雷达角度(只读) |
|
|
389
|
+
| `onPointChange?` | `(point: TrackPoint,markers?: TrackMarker[]) => Promise<any>` | - | 小地图上点击轨迹点回调,参数为关闭函数,返回 promise 时 rejected 后停止执行 |
|
|
384
390
|
|
|
385
391
|
## 4.3 MapElement 属性/方法说明
|
|
386
392
|
|
|
@@ -432,64 +438,83 @@ type slot= {
|
|
|
432
438
|
# 5. 导出的类型声明对象
|
|
433
439
|
|
|
434
440
|
```js
|
|
435
|
-
|
|
436
|
-
|
|
441
|
+
import '@photo-sphere-viewer/core/index.css';
|
|
442
|
+
import '@photo-sphere-viewer/markers-plugin/index.css';
|
|
443
|
+
import 'leaflet/dist/leaflet.css';
|
|
444
|
+
/** 组件导出 */
|
|
445
|
+
export { Map, Playbar, Realsee as RealseePlugin, Viewer } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
446
|
+
export { default as Realsee } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
437
447
|
|
|
438
|
-
|
|
439
|
-
export {
|
|
448
|
+
/** 核心类导出 */
|
|
449
|
+
export { TrackMarker, TrackPoint, TrackRecord } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
440
450
|
|
|
441
|
-
|
|
451
|
+
/** 钩子函数导出 */
|
|
442
452
|
export { useRealsee } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
443
453
|
|
|
444
|
-
|
|
454
|
+
/** 数据模型类型导出 */
|
|
445
455
|
export type {
|
|
446
|
-
|
|
447
|
-
TrackPointModel
|
|
448
|
-
|
|
456
|
+
TrackMarkerModel /** 轨迹标记模型 */,
|
|
457
|
+
TrackPointModel /** 轨迹点模型 */,
|
|
458
|
+
TrackRecordModel /** 轨迹记录模型 */,
|
|
449
459
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
450
460
|
|
|
451
|
-
|
|
461
|
+
/** 配置相关类型导出 */
|
|
452
462
|
export type {
|
|
453
|
-
AppSetting
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
463
|
+
AppSetting /** 应用设置 */,
|
|
464
|
+
MarkerOptions /** 标记选项 */,
|
|
465
|
+
PanoramaOptions /** 全景图选项 */,
|
|
466
|
+
PanoramaSize /** 全景图尺寸 */,
|
|
467
|
+
PlaybarRotation /**播放栏旋转选项 */,
|
|
468
|
+
RealseeSetting /** Realsee 配置 */,
|
|
469
|
+
SearchInfo /** 搜索信息 */,
|
|
470
|
+
TileLayer /**瓦片图层 */,
|
|
471
|
+
TileLayerOptions /**瓦片图层选项 */,
|
|
459
472
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
460
473
|
|
|
461
|
-
|
|
474
|
+
/** 组件属性类型导出 */
|
|
462
475
|
export type {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
476
|
+
MapElement /** 地图元素类型 */,
|
|
477
|
+
MapProps /** 地图属性 */,
|
|
478
|
+
MarkerElement /** 标记元素类型 */,
|
|
479
|
+
MarkerProps /** 标记属性 */,
|
|
480
|
+
PlaybarElement /** 播放控制条元素类型 */,
|
|
481
|
+
PlaybarProps /** 播放控制条属性 */,
|
|
482
|
+
RealseeElement /** Realsee 元素类型 */,
|
|
483
|
+
/** Realsee 相关 */
|
|
484
|
+
RealseeProps /** Realsee 组件属性 */,
|
|
485
|
+
RealseeStore /** Realsee 状态管理元素类型 */,
|
|
486
|
+
/** 地图相关 */
|
|
487
|
+
UpdatableMapProps /** 可更新的地图属性 */,
|
|
488
|
+
/** 标记相关 */
|
|
489
|
+
UpdatableMarkerProps /** 可更新的标记属性 */,
|
|
490
|
+
/** 播放控制条相关 */
|
|
491
|
+
UpdatablePlaybarProps /** 可更新的播放控制条属性 */,
|
|
492
|
+
/** 视图相关 */
|
|
493
|
+
UpdatableViewerProps /** 可更新的视图属性 */,
|
|
494
|
+
ViewerElement /** 视图元素类型 */,
|
|
495
|
+
ViewerProps /** 视图属性 */,
|
|
483
496
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
484
497
|
|
|
485
|
-
|
|
498
|
+
/** 配置常量导出 */
|
|
486
499
|
export {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
MARKER_CONFIG
|
|
491
|
-
PLAYBAR_CONFIG
|
|
492
|
-
|
|
500
|
+
APP_SETTING /** 全局默认配置 */,
|
|
501
|
+
MAP_CONFIG /** 地图默认配置 */,
|
|
502
|
+
MAP_GEO_OPTIONS /**地理地图选项 */,
|
|
503
|
+
MARKER_CONFIG /** 标记默认配置 */,
|
|
504
|
+
PLAYBAR_CONFIG /** 播放控制条默认配置 */,
|
|
505
|
+
REALSEE_CONFIG /** Realsee 全局配置 */,
|
|
506
|
+
REALSEE_SETTING /** Realsee 默认设置 */,
|
|
507
|
+
TILE_LAYERS /**地图瓦片图层配置 */,
|
|
508
|
+
TRACK_COLOR_LIST /** 轨迹的颜色 */,
|
|
509
|
+
VIEWER_CONFIG /** 视图默认配置 */,
|
|
510
|
+
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
511
|
+
|
|
512
|
+
/**枚举类型导出 */
|
|
513
|
+
export {
|
|
514
|
+
ViewModeEnum /**方向模式 */,
|
|
515
|
+
DirectionMoveEnum /**方向旋转 */,
|
|
516
|
+
RealseeErrorCode /**全景业务错误码枚举(扩展无返回值错误) */,
|
|
517
|
+
TrackRecordTypeEnum /**巡检记录类型枚举 */,
|
|
493
518
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
494
519
|
|
|
495
520
|
```
|
|
@@ -47,7 +47,66 @@ declare function __VLS_template(): {
|
|
|
47
47
|
}): any;
|
|
48
48
|
};
|
|
49
49
|
refs: {
|
|
50
|
-
|
|
50
|
+
playSliderElRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
51
|
+
min?: number;
|
|
52
|
+
max?: number;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
range?: boolean;
|
|
55
|
+
step?: number;
|
|
56
|
+
tipFormatter?: Function;
|
|
57
|
+
hideTip?: boolean;
|
|
58
|
+
value?: number | number[];
|
|
59
|
+
}> & Readonly<{
|
|
60
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
"onAfter-change"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
change: (...args: any[]) => void;
|
|
65
|
+
"update:value": (...args: any[]) => void;
|
|
66
|
+
"after-change": (...args: any[]) => void;
|
|
67
|
+
}, import('vue').PublicProps, {
|
|
68
|
+
value: number | number[];
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
range: boolean;
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
step: number;
|
|
74
|
+
tipFormatter: Function;
|
|
75
|
+
hideTip: boolean;
|
|
76
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
77
|
+
slider: HTMLDivElement;
|
|
78
|
+
rightHandle: HTMLDivElement;
|
|
79
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
80
|
+
P: {};
|
|
81
|
+
B: {};
|
|
82
|
+
D: {};
|
|
83
|
+
C: {};
|
|
84
|
+
M: {};
|
|
85
|
+
Defaults: {};
|
|
86
|
+
}, Readonly<{
|
|
87
|
+
min?: number;
|
|
88
|
+
max?: number;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
range?: boolean;
|
|
91
|
+
step?: number;
|
|
92
|
+
tipFormatter?: Function;
|
|
93
|
+
hideTip?: boolean;
|
|
94
|
+
value?: number | number[];
|
|
95
|
+
}> & Readonly<{
|
|
96
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
"onAfter-change"?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
}>, {}, {}, {}, {}, {
|
|
100
|
+
value: number | number[];
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
range: boolean;
|
|
103
|
+
min: number;
|
|
104
|
+
max: number;
|
|
105
|
+
step: number;
|
|
106
|
+
tipFormatter: Function;
|
|
107
|
+
hideTip: boolean;
|
|
108
|
+
}> | null;
|
|
109
|
+
playBoxElRef: ({
|
|
51
110
|
$: import('vue').ComponentInternalInstance;
|
|
52
111
|
$data: {};
|
|
53
112
|
$props: {
|
|
@@ -154,6 +213,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
154
213
|
play: () => void;
|
|
155
214
|
pause: () => void;
|
|
156
215
|
forward: () => void;
|
|
216
|
+
slider: () => void;
|
|
157
217
|
speed: () => void;
|
|
158
218
|
playNext: () => void;
|
|
159
219
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -163,9 +223,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
163
223
|
play: (...args: any[]) => void;
|
|
164
224
|
register: (...args: any[]) => void;
|
|
165
225
|
speed: (...args: any[]) => void;
|
|
226
|
+
slider: (...args: any[]) => void;
|
|
166
227
|
backward: (...args: any[]) => void;
|
|
167
228
|
forward: (...args: any[]) => void;
|
|
168
|
-
slider: (...args: any[]) => void;
|
|
169
229
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
170
230
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
171
231
|
"onSelect-point"?: ((...args: any[]) => any) | undefined;
|
|
@@ -173,11 +233,70 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
173
233
|
onPlay?: ((...args: any[]) => any) | undefined;
|
|
174
234
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
175
235
|
onSpeed?: ((...args: any[]) => any) | undefined;
|
|
236
|
+
onSlider?: ((...args: any[]) => any) | undefined;
|
|
176
237
|
onBackward?: ((...args: any[]) => any) | undefined;
|
|
177
238
|
onForward?: ((...args: any[]) => any) | undefined;
|
|
178
|
-
onSlider?: ((...args: any[]) => any) | undefined;
|
|
179
239
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
180
|
-
|
|
240
|
+
playSliderElRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
241
|
+
min?: number;
|
|
242
|
+
max?: number;
|
|
243
|
+
disabled?: boolean;
|
|
244
|
+
range?: boolean;
|
|
245
|
+
step?: number;
|
|
246
|
+
tipFormatter?: Function;
|
|
247
|
+
hideTip?: boolean;
|
|
248
|
+
value?: number | number[];
|
|
249
|
+
}> & Readonly<{
|
|
250
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
251
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
252
|
+
"onAfter-change"?: ((...args: any[]) => any) | undefined;
|
|
253
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
254
|
+
change: (...args: any[]) => void;
|
|
255
|
+
"update:value": (...args: any[]) => void;
|
|
256
|
+
"after-change": (...args: any[]) => void;
|
|
257
|
+
}, import('vue').PublicProps, {
|
|
258
|
+
value: number | number[];
|
|
259
|
+
disabled: boolean;
|
|
260
|
+
range: boolean;
|
|
261
|
+
min: number;
|
|
262
|
+
max: number;
|
|
263
|
+
step: number;
|
|
264
|
+
tipFormatter: Function;
|
|
265
|
+
hideTip: boolean;
|
|
266
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
267
|
+
slider: HTMLDivElement;
|
|
268
|
+
rightHandle: HTMLDivElement;
|
|
269
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
270
|
+
P: {};
|
|
271
|
+
B: {};
|
|
272
|
+
D: {};
|
|
273
|
+
C: {};
|
|
274
|
+
M: {};
|
|
275
|
+
Defaults: {};
|
|
276
|
+
}, Readonly<{
|
|
277
|
+
min?: number;
|
|
278
|
+
max?: number;
|
|
279
|
+
disabled?: boolean;
|
|
280
|
+
range?: boolean;
|
|
281
|
+
step?: number;
|
|
282
|
+
tipFormatter?: Function;
|
|
283
|
+
hideTip?: boolean;
|
|
284
|
+
value?: number | number[];
|
|
285
|
+
}> & Readonly<{
|
|
286
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
287
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
288
|
+
"onAfter-change"?: ((...args: any[]) => any) | undefined;
|
|
289
|
+
}>, {}, {}, {}, {}, {
|
|
290
|
+
value: number | number[];
|
|
291
|
+
disabled: boolean;
|
|
292
|
+
range: boolean;
|
|
293
|
+
min: number;
|
|
294
|
+
max: number;
|
|
295
|
+
step: number;
|
|
296
|
+
tipFormatter: Function;
|
|
297
|
+
hideTip: boolean;
|
|
298
|
+
}> | null;
|
|
299
|
+
playBoxElRef: ({
|
|
181
300
|
$: import('vue').ComponentInternalInstance;
|
|
182
301
|
$data: {};
|
|
183
302
|
$props: {
|
|
@@ -134,12 +134,12 @@ declare const __VLS_component: import('vue').DefineComponent<RealseeProps, {
|
|
|
134
134
|
"map-angle-updated": (...args: any[]) => void;
|
|
135
135
|
"map-select-point": (...args: any[]) => void;
|
|
136
136
|
"playbar-ready": (...args: any[]) => void;
|
|
137
|
+
"playbar-slider": (...args: any[]) => void;
|
|
137
138
|
"playbar-backward": (...args: any[]) => void;
|
|
138
139
|
"playbar-pause": (...args: any[]) => void;
|
|
139
140
|
"playbar-play": (...args: any[]) => void;
|
|
140
141
|
"playbar-forward": (...args: any[]) => void;
|
|
141
142
|
"playbar-speed": (...args: any[]) => void;
|
|
142
|
-
"playbar-slider": (...args: any[]) => void;
|
|
143
143
|
"playbar-select-point": (...args: any[]) => void;
|
|
144
144
|
"viewer-ready": (...args: any[]) => void;
|
|
145
145
|
"viewer-click": (...args: any[]) => void;
|
|
@@ -166,12 +166,12 @@ declare const __VLS_component: import('vue').DefineComponent<RealseeProps, {
|
|
|
166
166
|
"onMap-angle-updated"?: ((...args: any[]) => any) | undefined;
|
|
167
167
|
"onMap-select-point"?: ((...args: any[]) => any) | undefined;
|
|
168
168
|
"onPlaybar-ready"?: ((...args: any[]) => any) | undefined;
|
|
169
|
+
"onPlaybar-slider"?: ((...args: any[]) => any) | undefined;
|
|
169
170
|
"onPlaybar-backward"?: ((...args: any[]) => any) | undefined;
|
|
170
171
|
"onPlaybar-pause"?: ((...args: any[]) => any) | undefined;
|
|
171
172
|
"onPlaybar-play"?: ((...args: any[]) => any) | undefined;
|
|
172
173
|
"onPlaybar-forward"?: ((...args: any[]) => any) | undefined;
|
|
173
174
|
"onPlaybar-speed"?: ((...args: any[]) => any) | undefined;
|
|
174
|
-
"onPlaybar-slider"?: ((...args: any[]) => any) | undefined;
|
|
175
175
|
"onPlaybar-select-point"?: ((...args: any[]) => any) | undefined;
|
|
176
176
|
"onViewer-ready"?: ((...args: any[]) => any) | undefined;
|
|
177
177
|
"onViewer-click"?: ((...args: any[]) => any) | undefined;
|
package/dist/enums/error.d.ts
CHANGED
package/dist/enums/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DirectionMoveEnum {
|
|
2
|
+
Forward = 1,// 前进
|
|
3
|
+
Stationary = 0,// 静止
|
|
4
|
+
Backward = -1
|
|
5
|
+
}
|
|
6
|
+
export declare enum ViewModeEnum {
|
|
7
|
+
Auto = 0 /**自由播放视角 (不做任何限定:播放过程中,人工控制视角展示) */,
|
|
8
|
+
FollowRoad = 1 /** 播放视角跟随轨迹自动调整 (完全按照图纸里的轨迹方向变化方向播放)*/,
|
|
9
|
+
FollowView = 2 /**播放视角跟随每帧的主视角 (再现巡检过程中,巡检人员的主视角) */
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { TrackPoint } from '../core';
|
|
3
3
|
import { RealseeProps, RealseeStore, UpdatablePlaybarProps } from '../types';
|
|
4
|
-
export declare function usePlaybarContext(propsRef: ComputedRef<RealseeProps | undefined>, storeRef: ComputedRef<RealseeStore | undefined>,
|
|
4
|
+
export declare function usePlaybarContext(propsRef: ComputedRef<RealseeProps | undefined>, storeRef: ComputedRef<RealseeStore | undefined>, playBoxElRef: Ref<any | undefined>, playSliderElRef: Ref<any | undefined>, emit: EmitType): {
|
|
5
5
|
getProps: ComputedRef<Required<Partial<import('..').PlaybarProps>>>;
|
|
6
6
|
getBindValue: ComputedRef<{
|
|
7
7
|
dataSource: Map<string, import('..').TrackRecord> | undefined;
|
|
@@ -22,6 +22,7 @@ export declare function usePlaybarContext(propsRef: ComputedRef<RealseeProps | u
|
|
|
22
22
|
play: () => void;
|
|
23
23
|
pause: () => void;
|
|
24
24
|
forward: () => void;
|
|
25
|
+
slider: () => void;
|
|
25
26
|
speed: () => void;
|
|
26
27
|
playNext: () => void;
|
|
27
28
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { Coordinate } from '@vsleem-realsee-viewer/shared';
|
|
2
1
|
import { ComputedRef } from 'vue';
|
|
3
|
-
import { TrackPoint, TrackRecord } from '../core';
|
|
4
2
|
import { MapElement, PlaybarElement, RealseeStore, ViewerElement } from '../types';
|
|
5
3
|
export declare function useRealseeContext(storeRef: ComputedRef<RealseeStore>, viewerRef: () => ViewerElement | undefined, mapRef: () => MapElement | undefined, playbarRef: () => PlaybarElement | undefined, emit: EmitType): {
|
|
6
4
|
getShow: ComputedRef<boolean>;
|
|
7
5
|
getBindValue: ComputedRef<{
|
|
8
|
-
dataSource: Map<string, TrackRecord>;
|
|
9
|
-
coordinateTree: Coordinate | undefined;
|
|
10
|
-
mappedCoordinateTree: Coordinate | undefined;
|
|
11
|
-
currentSpace: Coordinate | undefined;
|
|
12
|
-
currentModel: Coordinate | undefined;
|
|
13
|
-
currentRecord: TrackRecord | undefined;
|
|
14
|
-
currentPoint: TrackPoint | undefined;
|
|
6
|
+
dataSource: Map<string, import('..').TrackRecord>;
|
|
7
|
+
coordinateTree: import('packages/shared/dist').Coordinate | undefined;
|
|
8
|
+
mappedCoordinateTree: import('packages/shared/dist').Coordinate | undefined;
|
|
9
|
+
currentSpace: import('packages/shared/dist').Coordinate | undefined;
|
|
10
|
+
currentModel: import('packages/shared/dist').Coordinate | undefined;
|
|
11
|
+
currentRecord: import('..').TrackRecord | undefined;
|
|
12
|
+
currentPoint: import('..').TrackPoint | undefined;
|
|
15
13
|
currentPointMarkers: import('..').TrackMarker[];
|
|
16
14
|
currentMarker: import('..').TrackMarker | undefined;
|
|
17
15
|
}>;
|