@vsleem-realsee-viewer/realsee-plugin 2.1.4 → 2.1.6
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.md +15 -0
- package/dist/api/index.d.ts +8 -1
- package/dist/components/MapCadLocation.vue.d.ts +10 -0
- package/dist/components/MapGeo.vue.d.ts +3 -0
- package/dist/core/TrackLocation.d.ts +74 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/enums/data.d.ts +9 -0
- package/dist/index.css +1 -1
- package/dist/index.mjs +7407 -6918
- package/dist/index.umd.js +226 -171
- package/dist/settings/index.d.ts +4 -0
- package/dist/types/data.d.ts +30 -0
- package/dist/types/map.d.ts +2 -0
- package/dist/types/store.d.ts +10 -1
- package/package.json +5 -4
- package/README.internal.md +0 -901
package/dist/settings/index.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ export declare const MAP_CONFIG: {
|
|
|
70
70
|
showRadar: boolean; /** 是否显示雷达 */
|
|
71
71
|
showPoint: boolean; /** 是否显示点 */
|
|
72
72
|
showMarker: boolean; /** 是否显示标记 */
|
|
73
|
+
showLocation: boolean; /** 是否显示定点/区域 */
|
|
74
|
+
showLocationLabel: boolean; /** 是否显示定点/区域标签 */
|
|
73
75
|
showDragger: boolean; /** 是否显示拖拽器 */
|
|
74
76
|
offsetTop: number; /**顶部占位偏移距离 */
|
|
75
77
|
minSize: number; /** 最小尺寸 */
|
|
@@ -149,6 +151,8 @@ export declare const REALSEE_CONFIG: {
|
|
|
149
151
|
showRadar: boolean; /** 是否显示雷达 */
|
|
150
152
|
showPoint: boolean; /** 是否显示点 */
|
|
151
153
|
showMarker: boolean; /** 是否显示标记 */
|
|
154
|
+
showLocation: boolean; /** 是否显示定点/区域 */
|
|
155
|
+
showLocationLabel: boolean; /** 是否显示定点/区域标签 */
|
|
152
156
|
showDragger: boolean; /** 是否显示拖拽器 */
|
|
153
157
|
offsetTop: number; /**顶部占位偏移距离 */
|
|
154
158
|
minSize: number; /** 最小尺寸 */
|
package/dist/types/data.d.ts
CHANGED
|
@@ -59,3 +59,33 @@ export type TrackCoordinateRelation = {
|
|
|
59
59
|
srcCoordinate: Coordinate;
|
|
60
60
|
dstCoordinate: Coordinate;
|
|
61
61
|
};
|
|
62
|
+
/** 定点/区域数据模型 */
|
|
63
|
+
export type LocationModel = {
|
|
64
|
+
id: string /** 定点/区域id */;
|
|
65
|
+
name: string /** 名称 */;
|
|
66
|
+
code: string /** 编码 */;
|
|
67
|
+
no: string /** 编号 */;
|
|
68
|
+
coordinateId: number /** 坐标系id */;
|
|
69
|
+
relativePosition: string /** 坐标映射关系 */;
|
|
70
|
+
projectId: number /** 项目id */;
|
|
71
|
+
projectName: string /** 项目名称 */;
|
|
72
|
+
buildName: string /** 楼栋名称 */;
|
|
73
|
+
buildId: number /** 楼栋id */;
|
|
74
|
+
floorId: number /** 楼层id */;
|
|
75
|
+
floor: string /** 楼层 */;
|
|
76
|
+
floorName: string /** 楼层名称 */;
|
|
77
|
+
type: number /** 类型 */;
|
|
78
|
+
cadId: number /** CAD id */;
|
|
79
|
+
note: string /** 备注 */;
|
|
80
|
+
areaPoint: string /** 区域点JSON字符串 */;
|
|
81
|
+
areaShape: string /** 区域形状 */;
|
|
82
|
+
areaColor: string /** 区域颜色 */;
|
|
83
|
+
thumbnail: string /** 缩略图 */;
|
|
84
|
+
delFlag: number /** 删除标志 */;
|
|
85
|
+
createBy: string /** 创建人 */;
|
|
86
|
+
createTime: number /** 创建时间 */;
|
|
87
|
+
createName: string /** 创建人名称 */;
|
|
88
|
+
effectiveTime?: number /** 生效时间 */;
|
|
89
|
+
expirationTime?: number /** 过期时间 */;
|
|
90
|
+
data?: any /** 自定义数据 */;
|
|
91
|
+
};
|
package/dist/types/map.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export type MapProps = {
|
|
|
16
16
|
showPoint?: boolean /** 是否显示选中的点 */;
|
|
17
17
|
showMarker?: boolean /** 是否显示标记 */;
|
|
18
18
|
showDragger?: boolean /** 是否显示拖动按钮 */;
|
|
19
|
+
showLocation?: boolean /** 是否显示定点/区域 */;
|
|
20
|
+
showLocationLabel?: boolean /** 是否显示定点/区域标签 */;
|
|
19
21
|
offsetTop?: number /**顶部占位偏移距离 */;
|
|
20
22
|
minSize?: number /** 小地图最小尺寸 */;
|
|
21
23
|
radarYaw?: number /** 雷达偏航角 */;
|
package/dist/types/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Coordinate, ProjectModel } from '@vsleem-realsee-viewer/shared';
|
|
2
|
-
import { TrackMarker, TrackPoint, TrackRecord } from '../core';
|
|
2
|
+
import { TrackLocation, TrackMarker, TrackPoint, TrackRecord } from '../core';
|
|
3
3
|
import { PanoOptions, SearchInfo, UpdatableRealseeProps } from '../types';
|
|
4
4
|
/**对象存储服务配置 */
|
|
5
5
|
export type ObsConfig = {
|
|
@@ -45,6 +45,8 @@ export type RealseeStore = {
|
|
|
45
45
|
currentPointMarkers: TrackMarker[];
|
|
46
46
|
/** 根据坐标点对所有巡检记录的问题标记进行分组 */
|
|
47
47
|
groupedMarkers: Map<TrackPoint, TrackMarker[]>;
|
|
48
|
+
/** 当前定点/区域集合 */
|
|
49
|
+
currentLocation: Map<string, TrackLocation>;
|
|
48
50
|
/**
|
|
49
51
|
* 重新加载数据
|
|
50
52
|
* @param searchInfo 搜索参数(包含projectId和patrolId)
|
|
@@ -55,6 +57,13 @@ export type RealseeStore = {
|
|
|
55
57
|
* @param patrolId 巡检记录ID
|
|
56
58
|
*/
|
|
57
59
|
fetchRecord: (patrolId: string) => Promise<TrackRecord | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* 获取定点/区域列表
|
|
62
|
+
* @param projectId 项目ID
|
|
63
|
+
* @param coordinateId 坐标系ID
|
|
64
|
+
* @returns 定点/区域列表
|
|
65
|
+
*/
|
|
66
|
+
fetchLocation: (model?: Coordinate) => Promise<Map<string, TrackLocation> | undefined>;
|
|
58
67
|
/**
|
|
59
68
|
* 选择模型坐标系
|
|
60
69
|
* @param coordinate 包含模型ID的坐标系对象
|
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.6",
|
|
4
4
|
"description": "Realsee plugin for VSLeem RealSee Viewer",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@vsleem-realsee-viewer/shared": "2.1.
|
|
17
|
+
"@vsleem-realsee-viewer/shared": "2.1.6"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"vue": ">=3.5.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.1.
|
|
21
|
+
"@vsleem-realsee-viewer/shared": "2.1.6"
|
|
21
22
|
},
|
|
22
23
|
"peerDependenciesMeta": {
|
|
23
24
|
"vue": {
|