@vsleem-realsee-viewer/realsee-plugin 2.0.24 → 2.0.26
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 +109 -81
- 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 +6454 -6384
- 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
|
@@ -94,7 +94,7 @@ const TRACK_COLOR_LIST = [
|
|
|
94
94
|
| `selectRecord` | `(record: Partial<TrackRecord>) => void` | 选择巡检记录(找不到对应记录时抛出错误) |
|
|
95
95
|
| `selectPoint` | `(point: Partial<TrackPoint>) => void` | 选择轨迹点(找不到对应点时抛出错误) |
|
|
96
96
|
| `selectMarker` | `(marker: Partial<TrackMarker>) => void` | 选择问题标记(找不到对应标记时抛出错误) |
|
|
97
|
-
| `setReferPoint` | `(current: TrackPoint, options:
|
|
97
|
+
| `setReferPoint` | `(current: TrackPoint, options: PanoOptions) => void` | 设置参考点来找最近的轨迹点(视图对比使用) |
|
|
98
98
|
| `addMarker` | ` (marker: TrackMarker) => void;` | 添加问题标记 |
|
|
99
99
|
| `removeMarker` | ` (marker: Partial<TrackMarker>) => void` | 移除问题标记 |
|
|
100
100
|
| `updateMarker` | `(marker: Partial<TrackMarker>) => void` | 要更新的标记数据(包含patrolId和id) |
|
|
@@ -204,15 +204,15 @@ 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 实例对象
|
|
@@ -224,13 +224,17 @@ type ViewerProps = Omit<
|
|
|
224
224
|
| `isMouseover` | `()=> boolean` | 获取鼠标悬停状态 |
|
|
225
225
|
| `isMousedown` | `()=> boolean` | 获取鼠标按下状态 |
|
|
226
226
|
| `setMousedown` | `(mousedown: boolean) => void` | 设置鼠标按下状态 |
|
|
227
|
-
| `setMouseover` | `(
|
|
227
|
+
| `setMouseover` | `(mouseover: boolean) => void` | 设置鼠标悬停状态 |
|
|
228
228
|
| `setPanoramaPath` | `(path: any, options?: PanoramaOptions) => Promise<boolean \| undefined>` | 加载全景图 |
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
229
|
+
| `setViewerStatus` | `(options?: PanoOptions) => void` | 设置全景图专用选项 |
|
|
230
|
+
| `setMoveDirection` | `(value?: number) => void` | 设置球面视角方向选项 |
|
|
231
231
|
| `updateMarkers` | `() => void` | 更新在全景图上的标记 |
|
|
232
|
-
| `
|
|
232
|
+
| `updateViewer` | `() => void` | 刷新视图 |
|
|
233
233
|
| `preloadPanorama` | `() => void` | 预加载全景图资源 |
|
|
234
|
+
| `loadMarkers` | `() => void` | 加载全景图上的标记 |
|
|
235
|
+
| `getPanoramaOptions` | `(currentPoint?: TrackPoint) => PanoramaOptions` | 获取全景图选项 |
|
|
236
|
+
| `getTransitionSpeed` | `(speed: number) => number` | 获取视图转换速度 |
|
|
237
|
+
| `getMovePosition` | `(currentPoint?: TrackPoint) => Position \| undefined` | 获取视图转换位置 |
|
|
234
238
|
|
|
235
239
|
## 2.4 ViewerEvents 事件说明
|
|
236
240
|
|
|
@@ -295,17 +299,18 @@ type MarkerElement = MarkersPlugin
|
|
|
295
299
|
|
|
296
300
|
## 3.2 PlaybarProps 类型说明
|
|
297
301
|
|
|
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
|
|
302
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
303
|
+
| ----------------- | ----------------- | ---------------------------- | -------------------------------- |
|
|
304
|
+
| `style?` | `CSSProperties` | - | 播放栏浮层的样式,调整浮层位置等 |
|
|
305
|
+
| `showPlay?` | `boolean` | true | 是否显示播放/暂停按钮 |
|
|
306
|
+
| `showSpeed?` | `boolean` | true | 是否显示快进按钮 |
|
|
307
|
+
| `speed?` | `number` | 1000 | 当前播放速度 单位毫秒 |
|
|
308
|
+
| `baseSpeed?` | `number` | 1000 | 基准速度 单位毫秒 |
|
|
309
|
+
| `step?` | `number` | 0.5 | 播放倍数步长 |
|
|
310
|
+
| `threshold?` | `number` | 2000 | 播放速度阈值 单位毫秒 |
|
|
311
|
+
| `rotation?` | `PlaybarRotation` | 请查看PLAYBAR_CONFIG默认配置 | 旋转到路径/视角方向选项 |
|
|
312
|
+
| `readonly count?` | `number` | - | 轨迹点总数 |
|
|
313
|
+
| `readonly index?` | `number` | - | 当前第几个轨迹点 |
|
|
309
314
|
|
|
310
315
|
## 3.3 PlaybarElement 属性/方法说明
|
|
311
316
|
|
|
@@ -317,6 +322,7 @@ type MarkerElement = MarkersPlugin
|
|
|
317
322
|
| `play` | `() => void` | 播放 |
|
|
318
323
|
| `pause` | `() => void` | 暂停 |
|
|
319
324
|
| `forward` | `() => void` | 前进 |
|
|
325
|
+
| `slider` | `() => void` | 滑动 |
|
|
320
326
|
| `speed` | `() => void` | 快进 |
|
|
321
327
|
| `playNext` | `() => void` | 播放下一个 |
|
|
322
328
|
|
|
@@ -367,20 +373,22 @@ type slot= {
|
|
|
367
373
|
|
|
368
374
|
## 4.2 MapProps 类型说明
|
|
369
375
|
|
|
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
|
-
| `
|
|
376
|
+
| 属性 | 类型 | 默认值 | 说明 |
|
|
377
|
+
| ---------------------- | ------------------------------------------------------------- | ------------------------- | --------------------------------------------------------------------------- |
|
|
378
|
+
| `style?` | `CSSProperties` | - | 地图样式 |
|
|
379
|
+
| `showRadar?` | `boolean` | true | 是否显示雷达 |
|
|
380
|
+
| `showPoint?` | `boolean` | true | 是否显示选中的点 |
|
|
381
|
+
| `showMarker?` | `boolean` | true | 是否显示标记 |
|
|
382
|
+
| `showDragger?` | `boolean` | true | 是否显示拖动按钮 |
|
|
383
|
+
| `minSize?` | `number` | 200 | 最小尺寸 |
|
|
384
|
+
| `maxSize?` | `number` | 500 | 最大尺寸 |
|
|
385
|
+
| `size?` | `number` | 200 | 小地图尺寸 |
|
|
386
|
+
| `radarYaw?` | `number` | 0 | 雷达偏航角 |
|
|
387
|
+
| `radarHFov?` | `number` | 0 | 雷达水平视野角 |
|
|
388
|
+
| `rotation?` | `boolean` | true | 选中帧后是否旋转到路径/视角方向 |
|
|
389
|
+
| `tileLayers?` | `TileLayer[]` | 请查看TILE_LAYERS默认配置 | 地理地图瓦片图层列表 |
|
|
390
|
+
| `readonly radarAngle?` | `number` | 0 | 雷达角度(只读) |
|
|
391
|
+
| `onPointChange?` | `(point: TrackPoint,markers?: TrackMarker[]) => Promise<any>` | - | 小地图上点击轨迹点回调,参数为关闭函数,返回 promise 时 rejected 后停止执行 |
|
|
384
392
|
|
|
385
393
|
## 4.3 MapElement 属性/方法说明
|
|
386
394
|
|
|
@@ -432,64 +440,84 @@ type slot= {
|
|
|
432
440
|
# 5. 导出的类型声明对象
|
|
433
441
|
|
|
434
442
|
```js
|
|
435
|
-
|
|
436
|
-
|
|
443
|
+
import '@photo-sphere-viewer/core/index.css';
|
|
444
|
+
import '@photo-sphere-viewer/markers-plugin/index.css';
|
|
445
|
+
import 'leaflet/dist/leaflet.css';
|
|
446
|
+
/** 组件导出 */
|
|
447
|
+
export { Map, Playbar, Realsee as RealseePlugin, Viewer } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
448
|
+
export { default as Realsee } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
437
449
|
|
|
438
|
-
|
|
439
|
-
export {
|
|
450
|
+
/** 核心类导出 */
|
|
451
|
+
export { TrackMarker, TrackPoint, TrackRecord } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
440
452
|
|
|
441
|
-
|
|
453
|
+
/** 钩子函数导出 */
|
|
442
454
|
export { useRealsee } from '@vsleem-realsee-viewer/realsee-plugin';
|
|
443
455
|
|
|
444
|
-
|
|
456
|
+
/** 数据模型类型导出 */
|
|
445
457
|
export type {
|
|
446
|
-
|
|
447
|
-
TrackPointModel
|
|
448
|
-
|
|
458
|
+
TrackMarkerModel /** 轨迹标记模型 */,
|
|
459
|
+
TrackPointModel /** 轨迹点模型 */,
|
|
460
|
+
TrackRecordModel /** 轨迹记录模型 */,
|
|
449
461
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
450
462
|
|
|
451
|
-
|
|
463
|
+
/** 配置相关类型导出 */
|
|
452
464
|
export type {
|
|
453
|
-
AppSetting
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
465
|
+
AppSetting /** 应用设置 */,
|
|
466
|
+
MarkerOptions /** 标记选项 */,
|
|
467
|
+
PanoOptions /** 部分全景图选项*/,
|
|
468
|
+
PanoramaOptions /** 全景图选项 */,
|
|
469
|
+
PanoramaSize /** 全景图尺寸 */,
|
|
470
|
+
PlaybarRotation /**播放栏旋转选项 */,
|
|
471
|
+
RealseeSetting /** Realsee 配置 */,
|
|
472
|
+
SearchInfo /** 搜索信息 */,
|
|
473
|
+
TileLayer /**瓦片图层 */,
|
|
474
|
+
TileLayerOptions /**瓦片图层选项 */,
|
|
459
475
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
460
476
|
|
|
461
|
-
|
|
477
|
+
/** 组件属性类型导出 */
|
|
462
478
|
export type {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
479
|
+
MapElement /** 地图元素类型 */,
|
|
480
|
+
MapProps /** 地图属性 */,
|
|
481
|
+
MarkerElement /** 标记元素类型 */,
|
|
482
|
+
MarkerProps /** 标记属性 */,
|
|
483
|
+
PlaybarElement /** 播放控制条元素类型 */,
|
|
484
|
+
PlaybarProps /** 播放控制条属性 */,
|
|
485
|
+
RealseeElement /** Realsee 元素类型 */,
|
|
486
|
+
/** Realsee 相关 */
|
|
487
|
+
RealseeProps /** Realsee 组件属性 */,
|
|
488
|
+
RealseeStore /** Realsee 状态管理元素类型 */,
|
|
489
|
+
/** 地图相关 */
|
|
490
|
+
UpdatableMapProps /** 可更新的地图属性 */,
|
|
491
|
+
/** 标记相关 */
|
|
492
|
+
UpdatableMarkerProps /** 可更新的标记属性 */,
|
|
493
|
+
/** 播放控制条相关 */
|
|
494
|
+
UpdatablePlaybarProps /** 可更新的播放控制条属性 */,
|
|
495
|
+
/** 视图相关 */
|
|
496
|
+
UpdatableViewerProps /** 可更新的视图属性 */,
|
|
497
|
+
ViewerElement /** 视图元素类型 */,
|
|
498
|
+
ViewerProps /** 视图属性 */,
|
|
483
499
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
484
500
|
|
|
485
|
-
|
|
501
|
+
/** 配置常量导出 */
|
|
486
502
|
export {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
MARKER_CONFIG
|
|
491
|
-
PLAYBAR_CONFIG
|
|
492
|
-
|
|
503
|
+
APP_SETTING /** 全局默认配置 */,
|
|
504
|
+
MAP_CONFIG /** 地图默认配置 */,
|
|
505
|
+
MAP_GEO_OPTIONS /**地理地图选项 */,
|
|
506
|
+
MARKER_CONFIG /** 标记默认配置 */,
|
|
507
|
+
PLAYBAR_CONFIG /** 播放控制条默认配置 */,
|
|
508
|
+
REALSEE_CONFIG /** Realsee 全局配置 */,
|
|
509
|
+
REALSEE_SETTING /** Realsee 默认设置 */,
|
|
510
|
+
TILE_LAYERS /**地图瓦片图层配置 */,
|
|
511
|
+
TRACK_COLOR_LIST /** 轨迹的颜色 */,
|
|
512
|
+
VIEWER_CONFIG /** 视图默认配置 */,
|
|
513
|
+
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
514
|
+
|
|
515
|
+
/**枚举类型导出 */
|
|
516
|
+
export {
|
|
517
|
+
ViewModeEnum /**方向模式 */,
|
|
518
|
+
DirectionMoveEnum /**方向旋转 */,
|
|
519
|
+
RealseeErrorCode /**全景业务错误码枚举(扩展无返回值错误) */,
|
|
520
|
+
TrackRecordTypeEnum /**巡检记录类型枚举 */,
|
|
493
521
|
} from '@vsleem-realsee-viewer/realsee-plugin';
|
|
494
522
|
|
|
495
523
|
```
|
|
@@ -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
|
}>;
|