model-action 1.0.6 → 1.0.7

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.
@@ -1,12 +1,9 @@
1
- /**
2
- * POI点方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class PoiAction extends Action {
6
3
  /**
7
4
  * 添加poi
8
5
  */
9
- static poiAdd({ type = 'Camera', location, text = '', place = '', description = '', linkId = '' }) {
6
+ static poiAdd(type = 'Camera', location, text = '', place = '', description = '', linkId = '') {
10
7
  const param = {
11
8
  cmd: "POI",
12
9
  action: "add",
@@ -22,7 +19,7 @@ export class PoiAction extends Action {
22
19
  /**
23
20
  * 删除poi
24
21
  */
25
- static poiDel({ id }) {
22
+ static poiDel(id) {
26
23
  const param = {
27
24
  cmd: "POI",
28
25
  action: "delete",
@@ -33,7 +30,7 @@ export class PoiAction extends Action {
33
30
  /**
34
31
  * 显示poi
35
32
  */
36
- static poiShow({ id, type = "Camera", place }) {
33
+ static poiShow(id, type = "Camera", place) {
37
34
  const param = {
38
35
  cmd: "POI",
39
36
  action: "show",
@@ -48,7 +45,7 @@ export class PoiAction extends Action {
48
45
  /**
49
46
  * 隐藏poi
50
47
  */
51
- static poiHide({ id, type = "Camera", place }) {
48
+ static poiHide(id, type = "Camera", place) {
52
49
  const param = {
53
50
  cmd: "POI",
54
51
  action: "hide",
@@ -63,7 +60,7 @@ export class PoiAction extends Action {
63
60
  /**
64
61
  * 获取指定POI
65
62
  */
66
- static poiGetInfo({ type = 'Camera' }) {
63
+ static poiGetInfo(type = 'Camera') {
67
64
  const param = {
68
65
  cmd: "POI",
69
66
  action: "getInfo",
@@ -1,12 +1,9 @@
1
- /**
2
- * 轨迹方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class TrackAction extends Action {
6
3
  /**
7
4
  * 清除轨迹
8
5
  */
9
- static trackRemove({ pathId = "CameraTrack" }) {
6
+ static trackRemove(pathId = "CameraTrack") {
10
7
  const param = {
11
8
  cmd: "path",
12
9
  action: "remove",
@@ -17,7 +14,7 @@ export class TrackAction extends Action {
17
14
  /**
18
15
  * 获取三维路网坐标
19
16
  */
20
- static trackGetRoadNet({ data, rnId = 'RN-1' }) {
17
+ static trackGetRoadNet(data, rnId = 'RN-1') {
21
18
  const param = {
22
19
  cmd: "path",
23
20
  action: "getRoadNet",
@@ -29,7 +26,7 @@ export class TrackAction extends Action {
29
26
  /**
30
27
  * 请求三维绘制路网
31
28
  */
32
- static trackPath({ data, pathId = "CameraTrack" }) {
29
+ static trackPath(data, pathId = "CameraTrack") {
33
30
  const param = {
34
31
  cmd: "path",
35
32
  action: "add",
@@ -1,12 +1,9 @@
1
- /**
2
- * 视频融合方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class VideoFusionAction extends Action {
6
3
  /**
7
4
  * 视频融合初始化
8
5
  */
9
- static videoFusionInit({ token, ip, port = '1998', isHttps = false }) {
6
+ static videoFusionInit(token, ip, port = '1998', isHttps = false) {
10
7
  const param = {
11
8
  cmd: "videoFusion",
12
9
  action: "init",
@@ -20,7 +17,7 @@ export class VideoFusionAction extends Action {
20
17
  /**
21
18
  * 飞行到视频融合点位
22
19
  */
23
- static videoFusionFlyTo({ id, fov }) {
20
+ static videoFusionFlyTo(id, fov) {
24
21
  const param = {
25
22
  cmd: "videoFusion",
26
23
  action: "flyTo",
@@ -32,7 +29,7 @@ export class VideoFusionAction extends Action {
32
29
  /**
33
30
  * 开启视频融合
34
31
  */
35
- static videoFusionStart({ ids }) {
32
+ static videoFusionStart(ids) {
36
33
  const param = {
37
34
  cmd: "videoFusion",
38
35
  action: "start",
@@ -46,7 +43,7 @@ export class VideoFusionAction extends Action {
46
43
  /**
47
44
  * 关闭视频融合
48
45
  */
49
- static videoFusionStop({ ids }) {
46
+ static videoFusionStop(ids) {
50
47
  const param = {
51
48
  cmd: "videoFusion",
52
49
  action: "stop",
@@ -60,7 +57,7 @@ export class VideoFusionAction extends Action {
60
57
  /**
61
58
  * 刷新视频融合
62
59
  */
63
- static videoFusionRefresh({ token }) {
60
+ static videoFusionRefresh(token) {
64
61
  const param = {
65
62
  cmd: "videoFusion",
66
63
  action: "refresh",
@@ -0,0 +1,13 @@
1
+ import { SendParam } from "../types";
2
+ export declare class Action {
3
+ /**
4
+ * 视角初始化
5
+ */
6
+ static cameraInit(): void;
7
+ /**
8
+ * 发送到model
9
+ * @param {SendParam} param 发送的参数
10
+ * @param {string} msg 打印的信息
11
+ */
12
+ static sendParam<T extends SendParam>(param: T, msg?: string): void;
13
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * POI点方法
3
+ */
4
+ import { LocationItem } from "../types";
5
+ import { Action } from "./Action";
6
+ export declare class PoiAction extends Action {
7
+ /**
8
+ * 添加poi
9
+ */
10
+ static poiAdd(type: string | undefined, location: LocationItem, text?: string, place?: string, description?: string, linkId?: string): void;
11
+ /**
12
+ * 删除poi
13
+ */
14
+ static poiDel(id: string): void;
15
+ /**
16
+ * 显示poi
17
+ */
18
+ static poiShow(id: string, type: string | undefined, place: string): void;
19
+ /**
20
+ * 隐藏poi
21
+ */
22
+ static poiHide(id: string, type: string | undefined, place: string): void;
23
+ /**
24
+ * 获取指定POI
25
+ */
26
+ static poiGetInfo(type?: string): void;
27
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 轨迹方法
3
+ */
4
+ import { TrackType } from "../types";
5
+ import { Action } from "./Action";
6
+ export declare class TrackAction extends Action {
7
+ /**
8
+ * 清除轨迹
9
+ */
10
+ static trackRemove(pathId?: string): void;
11
+ /**
12
+ * 获取三维路网坐标
13
+ */
14
+ static trackGetRoadNet(data: TrackType['data'], rnId?: string): void;
15
+ /**
16
+ * 请求三维绘制路网
17
+ */
18
+ static trackPath(data: TrackType['data'], pathId?: string): void;
19
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 视频融合方法
3
+ */
4
+ import { VideoFusionType } from "../types";
5
+ import { Action } from "./Action";
6
+ export declare class VideoFusionAction extends Action {
7
+ /**
8
+ * 视频融合初始化
9
+ */
10
+ static videoFusionInit(token: string, ip: string, port?: string, isHttps?: boolean): void;
11
+ /**
12
+ * 飞行到视频融合点位
13
+ */
14
+ static videoFusionFlyTo(id: string, fov: number): void;
15
+ /**
16
+ * 开启视频融合
17
+ */
18
+ static videoFusionStart(ids: VideoFusionType['ids']): void;
19
+ /**
20
+ * 关闭视频融合
21
+ */
22
+ static videoFusionStop(ids: VideoFusionType['ids']): void;
23
+ /**
24
+ * 刷新视频融合
25
+ */
26
+ static videoFusionRefresh(token: string): void;
27
+ }
@@ -0,0 +1,68 @@
1
+
2
+ export type RequiredSome<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
3
+
4
+ export interface SendParam {
5
+ cmd: string,
6
+ action: string,
7
+ }
8
+
9
+ export interface IdItem {
10
+ id: string;
11
+ }
12
+
13
+ export type IdList = IdItem[];
14
+
15
+
16
+ export type PathList = Array<{
17
+ location: string
18
+ }>
19
+
20
+
21
+ export type PoiAction = 'show' | 'hide' | 'add' | 'delete' | 'update' | 'getInfo'
22
+ export type LocationItem = `X=${number},Y=${number},Z=${number}`
23
+ export type PoiType = {
24
+ action: PoiAction, //方法
25
+ id?: string, //POI点UE中的ID
26
+ type?: string, //POI类型
27
+ typeChild?: string, //POI子类型
28
+ text?: string, //POI标题
29
+ location?: LocationItem, //POI在场景中的坐标格式
30
+ place?: string, //POI所在位置
31
+ description?: string, //POI描述
32
+ linkId?: string, //POI关联设备ID
33
+ floorNum?: string, //总楼层
34
+ lowestFloor?: string //最低楼层
35
+ } & SendParam
36
+
37
+
38
+
39
+ export type LocationList = Array<{
40
+ location: LocationItem
41
+ }>
42
+ export type TrackAction = 'getRoadNet' | 'remove' | 'add'
43
+ export type TrackType = {
44
+ action: TrackAction,
45
+ pathId?: string, //自定义轨迹ID
46
+ rnId?: string, //路网ID
47
+ roadNet?: string, //路网信息
48
+ type?: string,
49
+ data?: LocationList | IdList
50
+ } & SendParam
51
+
52
+
53
+ export type VideoFusionAction = 'init' | 'flyTo' | 'start' | 'stop' | 'pause' | 'resume' | 'refresh'
54
+ export type VideoFusionType = {
55
+ action: VideoFusionAction,
56
+ token?: string,
57
+ ip?: string,
58
+ port?: string,
59
+ isHttps?: boolean,
60
+ id?: string,
61
+ fov?: number, //视场角
62
+ backPlay?:boolean,
63
+ ids?: IdList,
64
+ isLocation?: boolean, //是否定位到第一个点,true=定位到第一个,false=不定位
65
+ videoType?: 'Video' | 'Record', //Video:实时流,Record:录像,默认实时流 Video
66
+ recordType?: 'Cloud' | 'Device',// Cloud:中心录像,Device:设备录像,默认中心录像 Cloud,videoType为 Record 时有效
67
+
68
+ } & SendParam
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "model-action",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "与三维交互api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build":"tsc",
8
+ "build":"tsc && cp src/types.d.ts dist/types",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "files": ["dist","src"],
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Action } from './modules/Action'
2
2
  export { VideoFusionAction } from "./modules/VideoFusion";
3
3
  export { PoiAction } from './modules/Poi'
4
- export { TrackAction } from './modules/Track'
4
+ export { TrackAction } from './modules/Track'
@@ -1,70 +1,4 @@
1
- export type RequiredSome<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
2
-
3
- export interface SendParam {
4
- cmd: string,
5
- action: string,
6
- }
7
-
8
- export interface IdItem {
9
- id: string;
10
- }
11
-
12
- export type IdList = IdItem[];
13
-
14
-
15
- export type PathList = Array<{
16
- location: string
17
- }>
18
-
19
-
20
- export type PoiAction = 'show' | 'hide' | 'add' | 'delete' | 'update' | 'getInfo'
21
- export type LocationItem = `X=${number},Y=${number},Z=${number}`
22
- export type PoiType = {
23
- action: PoiAction, //方法
24
- id?: string, //POI点UE中的ID
25
- type?: string, //POI类型
26
- typeChild?: string, //POI子类型
27
- text?: string, //POI标题
28
- location?: LocationItem, //POI在场景中的坐标格式
29
- place?: string, //POI所在位置
30
- description?: string, //POI描述
31
- linkId?: string, //POI关联设备ID
32
- floorNum?: string, //总楼层
33
- lowestFloor?: string //最低楼层
34
- } & SendParam
35
-
36
-
37
-
38
- export type LocationList = Array<{
39
- location: LocationItem
40
- }>
41
- export type TrackAction = 'getRoadNet' | 'remove' | 'add'
42
- export type TrackType = {
43
- action: TrackAction,
44
- pathId?: string, //自定义轨迹ID
45
- rnId?: string, //路网ID
46
- roadNet?: string, //路网信息
47
- type?: string,
48
- data?: LocationList | IdList
49
- } & SendParam
50
-
51
-
52
- export type VideoFusionAction = 'init' | 'flyTo' | 'start' | 'stop' | 'pause' | 'resume' | 'refresh'
53
- export type VideoFusionType = {
54
- action: VideoFusionAction,
55
- token?: string,
56
- ip?: string,
57
- port?: string,
58
- isHttps?: boolean,
59
- id?: string,
60
- fov?: number, //视场角
61
- backPlay?:boolean,
62
- ids?: IdList,
63
- isLocation?: boolean, //是否定位到第一个点,true=定位到第一个,false=不定位
64
- videoType?: 'Video' | 'Record', //Video:实时流,Record:录像,默认实时流 Video
65
- recordType?: 'Cloud' | 'Device',// Cloud:中心录像,Device:设备录像,默认中心录像 Cloud,videoType为 Record 时有效
66
-
67
- } & SendParam
1
+ import { SendParam } from "../types";
68
2
 
69
3
  export class Action {
70
4
  /**
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * POI点方法
3
3
  */
4
- import { Action, PoiType, RequiredSome } from "./Action";
4
+ import { LocationItem, PoiType, RequiredSome } from "../types";
5
+ import { Action } from "./Action";
5
6
 
6
7
  export class PoiAction extends Action {
7
8
  /**
8
9
  * 添加poi
9
10
  */
10
- static poiAdd({ type = 'Camera', location, text = '', place = '', description = '', linkId = '' }: RequiredSome<PoiType, 'action' | 'type' | 'location'>) {
11
+ static poiAdd(type = 'Camera', location: LocationItem, text = '', place = '', description = '', linkId = '') {
11
12
  const param: RequiredSome<PoiType, 'action' | 'type' | 'location'> = {
12
13
  cmd: "POI",
13
14
  action: "add",
@@ -24,7 +25,7 @@ export class PoiAction extends Action {
24
25
  /**
25
26
  * 删除poi
26
27
  */
27
- static poiDel({ id }: PoiType) {
28
+ static poiDel(id: string) {
28
29
  const param: PoiType = {
29
30
  cmd: "POI",
30
31
  action: "delete",
@@ -36,7 +37,7 @@ export class PoiAction extends Action {
36
37
  /**
37
38
  * 显示poi
38
39
  */
39
- static poiShow({ id, type = "Camera", place }: PoiType) {
40
+ static poiShow(id: string, type = "Camera", place: string) {
40
41
  const param: PoiType = {
41
42
  cmd: "POI",
42
43
  action: "show",
@@ -53,7 +54,7 @@ export class PoiAction extends Action {
53
54
  /**
54
55
  * 隐藏poi
55
56
  */
56
- static poiHide({ id, type = "Camera", place }: PoiType) {
57
+ static poiHide(id: string, type = "Camera", place: string) {
57
58
  const param: PoiType = {
58
59
  cmd: "POI",
59
60
  action: "hide",
@@ -70,7 +71,7 @@ export class PoiAction extends Action {
70
71
  /**
71
72
  * 获取指定POI
72
73
  */
73
- static poiGetInfo({type='Camera'}:PoiType) {
74
+ static poiGetInfo(type = 'Camera') {
74
75
  const param: PoiType = {
75
76
  cmd: "POI",
76
77
  action: "getInfo",
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * 轨迹方法
3
3
  */
4
- import { Action, TrackType } from "./Action";
4
+ import { TrackType } from "../types";
5
+ import { Action } from "./Action";
5
6
 
6
7
  export class TrackAction extends Action {
7
8
  /**
8
9
  * 清除轨迹
9
10
  */
10
- static trackRemove({ pathId = "CameraTrack" }: TrackType) {
11
+ static trackRemove(pathId = "CameraTrack") {
11
12
  const param: TrackType = {
12
13
  cmd: "path",
13
14
  action: "remove",
@@ -19,7 +20,7 @@ export class TrackAction extends Action {
19
20
  /**
20
21
  * 获取三维路网坐标
21
22
  */
22
- static trackGetRoadNet({ data, rnId = 'RN-1' }: TrackType) {
23
+ static trackGetRoadNet(data: TrackType['data'], rnId = 'RN-1') {
23
24
  const param: TrackType = {
24
25
  cmd: "path",
25
26
  action: "getRoadNet",
@@ -32,7 +33,7 @@ export class TrackAction extends Action {
32
33
  /**
33
34
  * 请求三维绘制路网
34
35
  */
35
- static trackPath({ data, pathId = "CameraTrack" }: TrackType) {
36
+ static trackPath(data: TrackType['data'], pathId = "CameraTrack") {
36
37
  const param: TrackType = {
37
38
  cmd: "path",
38
39
  action: "add",
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * 视频融合方法
3
3
  */
4
- import { Action, VideoFusionType } from "./Action";
4
+ import { VideoFusionType } from "../types";
5
+ import { Action } from "./Action";
5
6
 
6
7
  export class VideoFusionAction extends Action {
7
8
  /**
8
9
  * 视频融合初始化
9
10
  */
10
- static videoFusionInit({ token, ip, port = '1998', isHttps = false }: VideoFusionType) {
11
+ static videoFusionInit(token: string, ip: string, port = '1998', isHttps = false) {
11
12
  const param: VideoFusionType = {
12
13
  cmd: "videoFusion",
13
14
  action: "init",
@@ -22,7 +23,7 @@ export class VideoFusionAction extends Action {
22
23
  /**
23
24
  * 飞行到视频融合点位
24
25
  */
25
- static videoFusionFlyTo({id, fov}:VideoFusionType) {
26
+ static videoFusionFlyTo(id: string, fov: number) {
26
27
  const param: VideoFusionType = {
27
28
  cmd: "videoFusion",
28
29
  action: "flyTo",
@@ -35,7 +36,7 @@ export class VideoFusionAction extends Action {
35
36
  /**
36
37
  * 开启视频融合
37
38
  */
38
- static videoFusionStart({ids}:VideoFusionType) {
39
+ static videoFusionStart(ids: VideoFusionType['ids']) {
39
40
  const param: VideoFusionType = {
40
41
  cmd: "videoFusion",
41
42
  action: "start",
@@ -50,7 +51,7 @@ export class VideoFusionAction extends Action {
50
51
  /**
51
52
  * 关闭视频融合
52
53
  */
53
- static videoFusionStop({ids}:VideoFusionType) {
54
+ static videoFusionStop(ids: VideoFusionType['ids']) {
54
55
  const param: VideoFusionType = {
55
56
  cmd: "videoFusion",
56
57
  action: "stop",
@@ -65,7 +66,7 @@ export class VideoFusionAction extends Action {
65
66
  /**
66
67
  * 刷新视频融合
67
68
  */
68
- static videoFusionRefresh({token}:VideoFusionType) {
69
+ static videoFusionRefresh(token: string) {
69
70
  const param: VideoFusionType = {
70
71
  cmd: "videoFusion",
71
72
  action: "refresh",
package/src/types.d.ts ADDED
@@ -0,0 +1,68 @@
1
+
2
+ export type RequiredSome<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
3
+
4
+ export interface SendParam {
5
+ cmd: string,
6
+ action: string,
7
+ }
8
+
9
+ export interface IdItem {
10
+ id: string;
11
+ }
12
+
13
+ export type IdList = IdItem[];
14
+
15
+
16
+ export type PathList = Array<{
17
+ location: string
18
+ }>
19
+
20
+
21
+ export type PoiAction = 'show' | 'hide' | 'add' | 'delete' | 'update' | 'getInfo'
22
+ export type LocationItem = `X=${number},Y=${number},Z=${number}`
23
+ export type PoiType = {
24
+ action: PoiAction, //方法
25
+ id?: string, //POI点UE中的ID
26
+ type?: string, //POI类型
27
+ typeChild?: string, //POI子类型
28
+ text?: string, //POI标题
29
+ location?: LocationItem, //POI在场景中的坐标格式
30
+ place?: string, //POI所在位置
31
+ description?: string, //POI描述
32
+ linkId?: string, //POI关联设备ID
33
+ floorNum?: string, //总楼层
34
+ lowestFloor?: string //最低楼层
35
+ } & SendParam
36
+
37
+
38
+
39
+ export type LocationList = Array<{
40
+ location: LocationItem
41
+ }>
42
+ export type TrackAction = 'getRoadNet' | 'remove' | 'add'
43
+ export type TrackType = {
44
+ action: TrackAction,
45
+ pathId?: string, //自定义轨迹ID
46
+ rnId?: string, //路网ID
47
+ roadNet?: string, //路网信息
48
+ type?: string,
49
+ data?: LocationList | IdList
50
+ } & SendParam
51
+
52
+
53
+ export type VideoFusionAction = 'init' | 'flyTo' | 'start' | 'stop' | 'pause' | 'resume' | 'refresh'
54
+ export type VideoFusionType = {
55
+ action: VideoFusionAction,
56
+ token?: string,
57
+ ip?: string,
58
+ port?: string,
59
+ isHttps?: boolean,
60
+ id?: string,
61
+ fov?: number, //视场角
62
+ backPlay?:boolean,
63
+ ids?: IdList,
64
+ isLocation?: boolean, //是否定位到第一个点,true=定位到第一个,false=不定位
65
+ videoType?: 'Video' | 'Record', //Video:实时流,Record:录像,默认实时流 Video
66
+ recordType?: 'Cloud' | 'Device',// Cloud:中心录像,Device:设备录像,默认中心录像 Cloud,videoType为 Record 时有效
67
+
68
+ } & SendParam
@@ -1,66 +0,0 @@
1
- export type RequiredSome<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
2
- export interface SendParam {
3
- cmd: string;
4
- action: string;
5
- }
6
- export interface IdItem {
7
- id: string;
8
- }
9
- export type IdList = IdItem[];
10
- export type PathList = Array<{
11
- location: string;
12
- }>;
13
- export type PoiAction = 'show' | 'hide' | 'add' | 'delete' | 'update' | 'getInfo';
14
- export type LocationItem = `X=${number},Y=${number},Z=${number}`;
15
- export type PoiType = {
16
- action: PoiAction;
17
- id?: string;
18
- type?: string;
19
- typeChild?: string;
20
- text?: string;
21
- location?: LocationItem;
22
- place?: string;
23
- description?: string;
24
- linkId?: string;
25
- floorNum?: string;
26
- lowestFloor?: string;
27
- } & SendParam;
28
- export type LocationList = Array<{
29
- location: LocationItem;
30
- }>;
31
- export type TrackAction = 'getRoadNet' | 'remove' | 'add';
32
- export type TrackType = {
33
- action: TrackAction;
34
- pathId?: string;
35
- rnId?: string;
36
- roadNet?: string;
37
- type?: string;
38
- data?: LocationList | IdList;
39
- } & SendParam;
40
- export type VideoFusionAction = 'init' | 'flyTo' | 'start' | 'stop' | 'pause' | 'resume' | 'refresh';
41
- export type VideoFusionType = {
42
- action: VideoFusionAction;
43
- token?: string;
44
- ip?: string;
45
- port?: string;
46
- isHttps?: boolean;
47
- id?: string;
48
- fov?: number;
49
- backPlay?: boolean;
50
- ids?: IdList;
51
- isLocation?: boolean;
52
- videoType?: 'Video' | 'Record';
53
- recordType?: 'Cloud' | 'Device';
54
- } & SendParam;
55
- export declare class Action {
56
- /**
57
- * 视角初始化
58
- */
59
- static cameraInit(): void;
60
- /**
61
- * 发送到model
62
- * @param {SendParam} param 发送的参数
63
- * @param {string} msg 打印的信息
64
- */
65
- static sendParam<T extends SendParam>(param: T, msg?: string): void;
66
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * POI点方法
3
- */
4
- import { Action, PoiType, RequiredSome } from "./Action";
5
- export declare class PoiAction extends Action {
6
- /**
7
- * 添加poi
8
- */
9
- static poiAdd({ type, location, text, place, description, linkId }: RequiredSome<PoiType, 'action' | 'type' | 'location'>): void;
10
- /**
11
- * 删除poi
12
- */
13
- static poiDel({ id }: PoiType): void;
14
- /**
15
- * 显示poi
16
- */
17
- static poiShow({ id, type, place }: PoiType): void;
18
- /**
19
- * 隐藏poi
20
- */
21
- static poiHide({ id, type, place }: PoiType): void;
22
- /**
23
- * 获取指定POI
24
- */
25
- static poiGetInfo({ type }: PoiType): void;
26
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * 轨迹方法
3
- */
4
- import { Action, TrackType } from "./Action";
5
- export declare class TrackAction extends Action {
6
- /**
7
- * 清除轨迹
8
- */
9
- static trackRemove({ pathId }: TrackType): void;
10
- /**
11
- * 获取三维路网坐标
12
- */
13
- static trackGetRoadNet({ data, rnId }: TrackType): void;
14
- /**
15
- * 请求三维绘制路网
16
- */
17
- static trackPath({ data, pathId }: TrackType): void;
18
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * 视频融合方法
3
- */
4
- import { Action, VideoFusionType } from "./Action";
5
- export declare class VideoFusionAction extends Action {
6
- /**
7
- * 视频融合初始化
8
- */
9
- static videoFusionInit({ token, ip, port, isHttps }: VideoFusionType): void;
10
- /**
11
- * 飞行到视频融合点位
12
- */
13
- static videoFusionFlyTo({ id, fov }: VideoFusionType): void;
14
- /**
15
- * 开启视频融合
16
- */
17
- static videoFusionStart({ ids }: VideoFusionType): void;
18
- /**
19
- * 关闭视频融合
20
- */
21
- static videoFusionStop({ ids }: VideoFusionType): void;
22
- /**
23
- * 刷新视频融合
24
- */
25
- static videoFusionRefresh({ token }: VideoFusionType): void;
26
- }
File without changes