@vsleem-realsee-viewer/realsee-plugin 2.1.0 → 2.1.2
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/dist/components/Map.vue.d.ts +45 -21
- package/dist/components/MapDragger.vue.d.ts +6 -6
- package/dist/components/MapGeo.vue.d.ts +4 -2
- package/dist/components/Playbar.vue.d.ts +4 -4
- package/dist/components/PlaybarSlider.vue.d.ts +1 -1
- package/dist/components/Realsee.vue.d.ts +24 -6
- package/dist/components/Viewer.vue.d.ts +2 -0
- package/dist/hooks/useMapContext.d.ts +15 -3
- package/dist/hooks/useRealseeViewer.d.ts +10 -8
- package/dist/hooks/useViewerContext.d.ts +1 -1
- package/dist/hooks/useViewerMarker.d.ts +3 -2
- package/dist/index.css +1 -1
- package/dist/index.mjs +5958 -5907
- package/dist/index.umd.js +162 -162
- package/dist/settings/index.d.ts +33 -22
- package/dist/types/map.d.ts +7 -4
- package/dist/types/realsee.d.ts +3 -1
- package/package.json +3 -3
package/dist/settings/index.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
/** 轨迹的颜色 */
|
|
2
|
+
export declare const TRACK_COLOR_LIST: string[];
|
|
3
|
+
/**地图瓦片图层配置 */
|
|
4
|
+
export declare const TILE_LAYERS: ({
|
|
5
|
+
url: string;
|
|
6
|
+
options: {
|
|
7
|
+
subdomains: string[];
|
|
8
|
+
attribution: string;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
url: string;
|
|
12
|
+
options: {
|
|
13
|
+
subdomains: string[];
|
|
14
|
+
attribution?: undefined;
|
|
15
|
+
};
|
|
16
|
+
})[];
|
|
1
17
|
/** 全局默认配置 */
|
|
2
18
|
export declare const APP_SETTING: {
|
|
3
19
|
obsType: string;
|
|
4
20
|
baseUrl: string;
|
|
5
21
|
authorizeCode: string;
|
|
6
22
|
};
|
|
7
|
-
/** 轨迹的颜色 */
|
|
8
|
-
export declare const TRACK_COLOR_LIST: string[];
|
|
9
23
|
/** 全景设置 */
|
|
10
24
|
export declare const REALSEE_SETTING: {
|
|
11
25
|
pointLax: number; /** 轨迹点稀疏距离(毫米单位) */
|
|
@@ -39,20 +53,6 @@ export declare const VIEWER_CONFIG: {
|
|
|
39
53
|
height: string;
|
|
40
54
|
}; /** 视图尺寸 */
|
|
41
55
|
};
|
|
42
|
-
/**地图瓦片图层配置 */
|
|
43
|
-
export declare const TILE_LAYERS: ({
|
|
44
|
-
url: string;
|
|
45
|
-
options: {
|
|
46
|
-
subdomains: string[];
|
|
47
|
-
attribution: string;
|
|
48
|
-
};
|
|
49
|
-
} | {
|
|
50
|
-
url: string;
|
|
51
|
-
options: {
|
|
52
|
-
subdomains: string[];
|
|
53
|
-
attribution?: undefined;
|
|
54
|
-
};
|
|
55
|
-
})[];
|
|
56
56
|
/**地理地图选项 */
|
|
57
57
|
export declare const MAP_GEO_OPTIONS: {
|
|
58
58
|
center: [number, number, number?]; /** 地图初始化时经纬度 */
|
|
@@ -62,14 +62,17 @@ export declare const MAP_GEO_OPTIONS: {
|
|
|
62
62
|
};
|
|
63
63
|
/** 小地图配置 */
|
|
64
64
|
export declare const MAP_CONFIG: {
|
|
65
|
+
style: {
|
|
66
|
+
position: "absolute";
|
|
67
|
+
top: string;
|
|
68
|
+
right: string;
|
|
69
|
+
};
|
|
65
70
|
showRadar: boolean; /** 是否显示雷达 */
|
|
66
71
|
showPoint: boolean; /** 是否显示点 */
|
|
67
72
|
showMarker: boolean; /** 是否显示标记 */
|
|
68
73
|
showDragger: boolean; /** 是否显示拖拽器 */
|
|
74
|
+
offsetTop: number; /**顶部占位偏移距离 */
|
|
69
75
|
minSize: number; /** 最小尺寸 */
|
|
70
|
-
maxSize: number; /** 最大尺寸 */
|
|
71
|
-
size: number; /** 默认尺寸 */
|
|
72
|
-
yaw: number; /** 默认偏航角 */
|
|
73
76
|
tileLayers: ({
|
|
74
77
|
url: string;
|
|
75
78
|
options: {
|
|
@@ -138,14 +141,17 @@ export declare const REALSEE_CONFIG: {
|
|
|
138
141
|
};
|
|
139
142
|
};
|
|
140
143
|
map: {
|
|
144
|
+
style: {
|
|
145
|
+
position: "absolute";
|
|
146
|
+
top: string;
|
|
147
|
+
right: string;
|
|
148
|
+
};
|
|
141
149
|
showRadar: boolean; /** 是否显示雷达 */
|
|
142
150
|
showPoint: boolean; /** 是否显示点 */
|
|
143
151
|
showMarker: boolean; /** 是否显示标记 */
|
|
144
152
|
showDragger: boolean; /** 是否显示拖拽器 */
|
|
153
|
+
offsetTop: number; /**顶部占位偏移距离 */
|
|
145
154
|
minSize: number; /** 最小尺寸 */
|
|
146
|
-
maxSize: number; /** 最大尺寸 */
|
|
147
|
-
size: number; /** 默认尺寸 */
|
|
148
|
-
yaw: number; /** 默认偏航角 */
|
|
149
155
|
tileLayers: ({
|
|
150
156
|
url: string;
|
|
151
157
|
options: {
|
|
@@ -163,3 +169,8 @@ export declare const REALSEE_CONFIG: {
|
|
|
163
169
|
};
|
|
164
170
|
immediate: boolean; /** 是否立即生效 */
|
|
165
171
|
};
|
|
172
|
+
/**全景加载重试配置 */
|
|
173
|
+
export declare const RETRYCONFIG: {
|
|
174
|
+
maxRetries: number; /**重试次数 */
|
|
175
|
+
retryDelay: number; /**重试前等待时间 */
|
|
176
|
+
};
|
package/dist/types/map.d.ts
CHANGED
|
@@ -16,9 +16,8 @@ export type MapProps = {
|
|
|
16
16
|
showPoint?: boolean /** 是否显示选中的点 */;
|
|
17
17
|
showMarker?: boolean /** 是否显示标记 */;
|
|
18
18
|
showDragger?: boolean /** 是否显示拖动按钮 */;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
size?: number /** 小地图尺寸 */;
|
|
19
|
+
offsetTop?: number /**顶部占位偏移距离 */;
|
|
20
|
+
minSize?: number /** 小地图最小尺寸 */;
|
|
22
21
|
radarYaw?: number /** 雷达偏航角 */;
|
|
23
22
|
radarHFov?: number /** 雷达水平视野角 */;
|
|
24
23
|
tileLayers?: TileLayer[] /**地理地图瓦片图层列表 */;
|
|
@@ -28,7 +27,11 @@ export type MapProps = {
|
|
|
28
27
|
onPointChange?: (point: TrackPoint, markers?: TrackMarker[]) => Promise<any>;
|
|
29
28
|
};
|
|
30
29
|
/** 更新地图配置 */
|
|
31
|
-
export type UpdatableMapProps = Partial<MapProps
|
|
30
|
+
export type UpdatableMapProps = Partial<MapProps & {
|
|
31
|
+
minSize?: number /** 最小尺寸 */;
|
|
32
|
+
maxSize?: number /** 最大尺寸 */;
|
|
33
|
+
size?: number /** 小地图尺寸 */;
|
|
34
|
+
}>;
|
|
32
35
|
/** 地图方法 */
|
|
33
36
|
export type MapElement = {
|
|
34
37
|
getState: () => UpdatableMapProps /** 获取配置选项 */;
|
package/dist/types/realsee.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { TrackRecordModel } from './data';
|
|
|
5
5
|
import { MapElement, MapProps } from './map';
|
|
6
6
|
import { PlaybarElement, PlaybarProps } from './playbar';
|
|
7
7
|
import { ObsConfig, RealseeStore } from './store';
|
|
8
|
-
import { MarkerElement, MarkerProps, ViewerElement, ViewerProps } from './viewer';
|
|
8
|
+
import { MarkerElement, MarkerProps, Position, ViewerElement, ViewerProps } from './viewer';
|
|
9
9
|
/**应用设置 */
|
|
10
10
|
export type AppSetting = AppConfig & ObsConfig;
|
|
11
11
|
/** 搜索参数 */
|
|
@@ -14,6 +14,8 @@ export type SearchInfo = {
|
|
|
14
14
|
patrolId: string | string[] /** 巡检id或id集合 */;
|
|
15
15
|
pointId?: string /** 轨迹点id(用第一个巡检记录来匹配) */;
|
|
16
16
|
modelCsId?: number /** 模型坐标系id */;
|
|
17
|
+
pointIndex?: number /**巡检点patrolIndex下标(1.用第一个巡检记录来匹配;2.pointId > pointIndex) */;
|
|
18
|
+
rotate?: Position /**默认的视图视角 */;
|
|
17
19
|
};
|
|
18
20
|
/** 全景设置 */
|
|
19
21
|
export type RealseeSetting = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsleem-realsee-viewer/realsee-plugin",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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.1.
|
|
16
|
+
"@vsleem-realsee-viewer/shared": "2.1.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": ">=3.5.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.1.
|
|
20
|
+
"@vsleem-realsee-viewer/shared": "2.1.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"vue": {
|