@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/dist/settings/index.d.ts
CHANGED
|
@@ -19,11 +19,17 @@ export declare const REALSEE_SETTING: {
|
|
|
19
19
|
};
|
|
20
20
|
/** 全景视图配置 */
|
|
21
21
|
export declare const VIEWER_CONFIG: {
|
|
22
|
+
viewMode: number; /**视图预览模式 */
|
|
22
23
|
navbar: boolean; /** 是否显示导航栏 */
|
|
23
24
|
defaultYaw: number; /** 默认偏航角 */
|
|
24
25
|
defaultPitch: number; /** 默认俯仰角 */
|
|
25
26
|
defaultZoomLvl: number; /** 默认缩放级别 */
|
|
27
|
+
defaultTransition: {
|
|
28
|
+
speed: number;
|
|
29
|
+
rotation: boolean;
|
|
30
|
+
}; /**默认转换 */
|
|
26
31
|
moveInertia: boolean; /** 是否启用移动惯性 */
|
|
32
|
+
moveThresh: number; /**移动旋转阈值 */
|
|
27
33
|
minFov: number; /** 最小视野角度 */
|
|
28
34
|
maxFov: number; /** 最大视野角度 */
|
|
29
35
|
loadingImg: string; /** 加载图片 */
|
|
@@ -76,7 +82,8 @@ export declare const MAP_CONFIG: {
|
|
|
76
82
|
subdomains: string[];
|
|
77
83
|
attribution?: undefined;
|
|
78
84
|
};
|
|
79
|
-
})[];
|
|
85
|
+
})[]; /**分片图层 */
|
|
86
|
+
rotation: boolean; /**选中帧后是否旋转到路径方向 */
|
|
80
87
|
};
|
|
81
88
|
/** 标记点配置 */
|
|
82
89
|
export declare const MARKER_CONFIG: {}; /** 标记点配置(暂为空对象) */
|
|
@@ -90,6 +97,12 @@ export declare const PLAYBAR_CONFIG: {
|
|
|
90
97
|
showSpeed: boolean; /** 是否显示速度控制 */
|
|
91
98
|
count: number; /** 轨迹点总数 */
|
|
92
99
|
index: number; /** 当前第几个轨迹点 */
|
|
100
|
+
rotation: {
|
|
101
|
+
slider: boolean; /**滑动帧后是否旋转到路径方向 */
|
|
102
|
+
play: boolean; /** 播放帧后是否旋转到路径方向 */
|
|
103
|
+
backward: boolean; /**后退帧后是否旋转到路径方向 */
|
|
104
|
+
forward: boolean; /**前进帧后是否旋转到路径方向 */
|
|
105
|
+
};
|
|
93
106
|
};
|
|
94
107
|
/** 全景组件配置 */
|
|
95
108
|
export declare const REALSEE_CONFIG: {
|
|
@@ -117,6 +130,12 @@ export declare const REALSEE_CONFIG: {
|
|
|
117
130
|
showSpeed: boolean; /** 是否显示速度控制 */
|
|
118
131
|
count: number; /** 轨迹点总数 */
|
|
119
132
|
index: number; /** 当前第几个轨迹点 */
|
|
133
|
+
rotation: {
|
|
134
|
+
slider: boolean; /**滑动帧后是否旋转到路径方向 */
|
|
135
|
+
play: boolean; /** 播放帧后是否旋转到路径方向 */
|
|
136
|
+
backward: boolean; /**后退帧后是否旋转到路径方向 */
|
|
137
|
+
forward: boolean; /**前进帧后是否旋转到路径方向 */
|
|
138
|
+
};
|
|
120
139
|
};
|
|
121
140
|
map: {
|
|
122
141
|
showRadar: boolean; /** 是否显示雷达 */
|
|
@@ -139,7 +158,8 @@ export declare const REALSEE_CONFIG: {
|
|
|
139
158
|
subdomains: string[];
|
|
140
159
|
attribution?: undefined;
|
|
141
160
|
};
|
|
142
|
-
})[];
|
|
161
|
+
})[]; /**分片图层 */
|
|
162
|
+
rotation: boolean; /**选中帧后是否旋转到路径方向 */
|
|
143
163
|
};
|
|
144
164
|
immediate: boolean; /** 是否立即生效 */
|
|
145
165
|
};
|
package/dist/types/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Coordinate, RelativeMap } from '@vsleem-realsee-viewer/shared';
|
|
2
2
|
/** 全景图尺寸 */
|
|
3
3
|
export type PanoramaSize = {
|
|
4
4
|
width: number;
|
|
@@ -29,7 +29,7 @@ export type TrackPointModel = {
|
|
|
29
29
|
uxTime?: string /** 格式化时间(YYYY-MM-DD HH:mm:ss) */;
|
|
30
30
|
color?: string /** 颜色 */;
|
|
31
31
|
p?: string /** 点位偏移量 */;
|
|
32
|
-
alt?: string /**
|
|
32
|
+
alt?: string /** 海拔 */;
|
|
33
33
|
lat?: string /** 纬度 */;
|
|
34
34
|
lon?: string /** 经度 */;
|
|
35
35
|
x?: string /** 在源坐标系的X坐标 */;
|
package/dist/types/map.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type MapProps = {
|
|
|
22
22
|
radarYaw?: number /** 雷达偏航角 */;
|
|
23
23
|
radarHFov?: number /** 雷达水平视野角 */;
|
|
24
24
|
tileLayers?: TileLayer[] /**地理地图瓦片图层列表 */;
|
|
25
|
+
rotation?: boolean /**选中帧后是否旋转到路径/视角方向 */;
|
|
25
26
|
readonly radarAngle?: number /** 雷达角度 */;
|
|
26
27
|
/** 小地图上点击轨迹点回调,参数为关闭函数,返回promise时rejected后停止执行 */
|
|
27
28
|
onPointChange?: (point: TrackPoint, markers?: TrackMarker[]) => Promise<any>;
|
package/dist/types/playbar.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
+
/**播放栏旋转选项 */
|
|
3
|
+
export type PlaybarRotation = {
|
|
4
|
+
slider?: boolean /**滑动帧后是否旋转到路径/视角方向 */;
|
|
5
|
+
backward?: boolean /**后退帧后是否旋转到路径/视角方向 */;
|
|
6
|
+
play?: boolean /** 播放帧后是否旋转到路径/视角方向 */;
|
|
7
|
+
forward?: boolean /**前进帧后是否旋转到路径/视角方向 */;
|
|
8
|
+
};
|
|
2
9
|
/** 播放栏属性配置 */
|
|
3
10
|
export type PlaybarProps = {
|
|
4
11
|
style?: CSSProperties /** 播放栏浮层的样式,调整浮层位置等 */;
|
|
@@ -8,6 +15,7 @@ export type PlaybarProps = {
|
|
|
8
15
|
baseSpeed?: number /** 基准速度 单位毫秒默认1000 */;
|
|
9
16
|
step?: number /** 播放倍数步长 默认0.5 */;
|
|
10
17
|
threshold?: number /** 播放速度阈值 单位毫秒默认2000 */;
|
|
18
|
+
rotation?: PlaybarRotation /**旋转到路径/视角方向选项 */;
|
|
11
19
|
readonly count?: number /** 轨迹点总数 */;
|
|
12
20
|
readonly index?: number /** 当前第几个轨迹点 */;
|
|
13
21
|
};
|
|
@@ -21,6 +29,7 @@ export type PlaybarElement = {
|
|
|
21
29
|
play: () => void /** 播放 */;
|
|
22
30
|
pause: () => void /** 暂停 */;
|
|
23
31
|
forward: () => void /** 前进 */;
|
|
32
|
+
slider: () => void /** 滑动 */;
|
|
24
33
|
speed: () => void /** 快进 */;
|
|
25
34
|
playNext: () => void /**播放下一个 */;
|
|
26
35
|
};
|
package/dist/types/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Coordinate } from '@vsleem-realsee-viewer/shared';
|
|
2
2
|
import { TrackMarker, TrackPoint, TrackRecord } from '../core';
|
|
3
|
-
import {
|
|
3
|
+
import { PanoOptions, SearchInfo } from '../types';
|
|
4
4
|
/**对象存储服务配置 */
|
|
5
5
|
export type ObsConfig = {
|
|
6
6
|
obsPrefix?: string /**用于在对象存储中组织文件的目录路径(不可用) */;
|
|
@@ -77,7 +77,7 @@ export type RealseeStore = {
|
|
|
77
77
|
* @param options 参考视图选项
|
|
78
78
|
* @returns
|
|
79
79
|
*/
|
|
80
|
-
setReferPoint: (current: TrackPoint, options:
|
|
80
|
+
setReferPoint: (current: TrackPoint, options: PanoOptions) => void;
|
|
81
81
|
/**
|
|
82
82
|
* 添加问题标记
|
|
83
83
|
* @param marker 标记点数据
|
package/dist/types/viewer.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { PanoramaOptions, Viewer, ViewerConfig } from '@photo-sphere-viewer/core';
|
|
1
|
+
import { PanoramaOptions, Position, Viewer, ViewerConfig } from '@photo-sphere-viewer/core';
|
|
2
2
|
import { events, MarkerConfig as MarkerOptions, MarkersPluginConfig } from '@photo-sphere-viewer/markers-plugin';
|
|
3
3
|
import { TrackPoint } from '../core';
|
|
4
4
|
export type { AnimateOptions, PanoramaOptions, Position, UpdatableViewerConfig, } from '@photo-sphere-viewer/core';
|
|
5
5
|
export type { MarkersPlugin as MarkerElement, MarkerConfig as MarkerOptions, } from '@photo-sphere-viewer/markers-plugin';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
pitch: number /** 默认俯仰角(球面基准) */;
|
|
10
|
-
zoomLevel: number /** 默认缩放级别(球面基准) */;
|
|
6
|
+
export type PanoOptions = {
|
|
7
|
+
position?: Position;
|
|
8
|
+
zoom?: number;
|
|
11
9
|
};
|
|
12
10
|
/** 标记配置 */
|
|
13
11
|
export type MarkerProps = MarkersPluginConfig & {
|
|
@@ -23,13 +21,17 @@ export type MarkerProps = MarkersPluginConfig & {
|
|
|
23
21
|
/** 可更新标记配置 */
|
|
24
22
|
export type UpdatableMarkerProps = Partial<MarkerProps>;
|
|
25
23
|
/** 视图参数 */
|
|
26
|
-
|
|
24
|
+
type ReadonlyViewerConfig = 'container' | 'panorama' | 'keyboard' | 'keyboardActions';
|
|
25
|
+
export type ViewerProps = Omit<ViewerConfig, ReadonlyViewerConfig> & {
|
|
26
|
+
viewMode?: number /**视图预览模式 */;
|
|
27
|
+
moveThresh?: number /**移动旋转阈值(弧度) ,旋转方向超过阈值就转动 */;
|
|
28
|
+
};
|
|
27
29
|
/** 可更新视图配置 */
|
|
28
30
|
export type UpdatableViewerProps = Partial<ViewerProps & {
|
|
29
31
|
mousedown?: boolean /** 鼠标是否按下 */;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
mouseover?: boolean /** 鼠标是否移入 */;
|
|
33
|
+
moveDirection?: number /**移动旋转方向,向后=-1/静止=0/向前=1 */;
|
|
34
|
+
loadingPh?: boolean /**是否加载占位图 */;
|
|
33
35
|
}>;
|
|
34
36
|
/** 全景对象 */
|
|
35
37
|
export type ViewerElement = Viewer & {
|
|
@@ -40,10 +42,13 @@ export type ViewerElement = Viewer & {
|
|
|
40
42
|
setMousedown: (state: boolean) => void /** 设置鼠标按下状态 */;
|
|
41
43
|
setMouseover: (state: boolean) => void /** 设置鼠标悬停状态 */;
|
|
42
44
|
setPanoramaPath: (currentPoint: TrackPoint, options?: PanoramaOptions) => Promise<void> /** 加载新的全景图 */;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
setViewerStatus: (options?: PanoOptions) => void /** 设置全景图显示参数 */;
|
|
46
|
+
setMoveDirection: (value?: number) => void /** 设置移动旋转方向 */;
|
|
45
47
|
updateMarkers: () => void /** 更新在全景图上的标记 */;
|
|
46
|
-
|
|
48
|
+
updateViewer: () => Promise<void> /**更新当前视图 */;
|
|
47
49
|
preloadPanorama: () => void /** 预加载全景图资源 */;
|
|
48
50
|
loadMarkers: () => void /**加载全景图上的标记 */;
|
|
51
|
+
getPanoramaOptions: (currentPoint: TrackPoint) => PanoramaOptions /**获取全景图选项 */;
|
|
52
|
+
getTransitionSpeed: (speed: number) => number /** 获取视图转换速度 */;
|
|
53
|
+
getMovePosition: (currentPoint?: TrackPoint) => Position | undefined /**获取视图转换位置 */;
|
|
49
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsleem-realsee-viewer/realsee-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"description": "Realsee 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.25"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": ">=3.5.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
20
|
+
"@vsleem-realsee-viewer/shared": "2.0.25"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"vue": {
|