model-action 1.0.4 → 1.0.5

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/index.d.ts CHANGED
@@ -1,67 +1,4 @@
1
- type RequiredSome<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
2
-
3
- interface SendParam {
4
- cmd: string,
5
- action: string,
6
- }
7
-
8
- interface IdItem {
9
- id: string;
10
- }
11
-
12
- type IdList = IdItem[];
13
-
14
-
15
- type PathList = Array<{
16
- location: string
17
- }>
18
-
19
-
20
- type PoiAction = 'show' | 'hide' | 'add' | 'delete' | 'update' | 'getInfo'
21
- type LocationItem = `X=${number},Y=${number},Z=${number}`
22
- 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
- type LocationList = Array<{
39
- location: LocationItem
40
- }>
41
- type TrackAction = 'getRoadNet' | 'remove' | 'add'
42
- 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
- type VideoFusionAction = 'init' | 'flyTo' | 'start' | 'stop' | 'pause' | 'resume' | 'refresh'
53
- 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
+ export { Action } from './modules/Action';
2
+ export { VideoFusionAction } from "./modules/VideoFusion";
3
+ export { PoiAction } from './modules/Poi';
4
+ export { TrackAction } from './modules/Track';
@@ -1,3 +1,4 @@
1
+ import { SendParam } from "../../index";
1
2
  export declare class Action {
2
3
  /**
3
4
  * 视角初始化
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * POI点方法
3
3
  */
4
+ import { PoiType, RequiredSome } from "../../index";
4
5
  import { Action } from "./Action";
5
6
  export declare class PoiAction extends Action {
6
7
  /**
@@ -1,6 +1,3 @@
1
- /**
2
- * POI点方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class PoiAction extends Action {
6
3
  /**
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 轨迹方法
3
3
  */
4
+ import { TrackType } from "../../index";
4
5
  import { Action } from "./Action";
5
6
  export declare class TrackAction extends Action {
6
7
  /**
@@ -1,6 +1,3 @@
1
- /**
2
- * 轨迹方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class TrackAction extends Action {
6
3
  /**
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 视频融合方法
3
3
  */
4
+ import { VideoFusionType } from "../../index";
4
5
  import { Action } from "./Action";
5
6
  export declare class VideoFusionAction extends Action {
6
7
  /**
@@ -1,6 +1,3 @@
1
- /**
2
- * 视频融合方法
3
- */
4
1
  import { Action } from "./Action";
5
2
  export class VideoFusionAction extends Action {
6
3
  /**
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "model-action",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "与三维交互api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build":"tsc && cp index.d.ts dist/",
8
+ "build":"tsc",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "files": ["dist","src"],
@@ -1,3 +1,5 @@
1
+ import { SendParam } from "../../index";
2
+
1
3
  export class Action {
2
4
  /**
3
5
  * 视角初始化
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * POI点方法
3
3
  */
4
+ import { PoiType, RequiredSome } from "../../index";
4
5
  import { Action } from "./Action";
5
6
 
6
7
  export class PoiAction extends Action {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 轨迹方法
3
3
  */
4
+ import { TrackType } from "../../index";
4
5
  import { Action } from "./Action";
5
6
 
6
7
  export class TrackAction extends Action {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 视频融合方法
3
3
  */
4
+ import { VideoFusionType } from "../../index";
4
5
  import { Action } from "./Action";
5
6
 
6
7
  export class VideoFusionAction extends Action {