model-action 1.0.18 → 1.0.19
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/modules/Window.d.ts +17 -0
- package/dist/modules/Window.js +37 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/modules/Window.ts +40 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* 点POI打开外部弹窗
|
3
|
+
* 用来让UE抛出POI位置
|
4
|
+
*/
|
5
|
+
import { Action } from "./Action";
|
6
|
+
export declare class WindowAction extends Action {
|
7
|
+
/**
|
8
|
+
* 打开外部弹窗
|
9
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
10
|
+
*/
|
11
|
+
static openOut(attendId: string): void;
|
12
|
+
/**
|
13
|
+
* 关闭外部弹窗
|
14
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
15
|
+
*/
|
16
|
+
static closeOut(attendId: string): void;
|
17
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/**
|
2
|
+
* 点POI打开外部弹窗
|
3
|
+
* 用来让UE抛出POI位置
|
4
|
+
*/
|
5
|
+
import { Action, } from "./Action";
|
6
|
+
export class WindowAction extends Action {
|
7
|
+
/**
|
8
|
+
* 打开外部弹窗
|
9
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
10
|
+
*/
|
11
|
+
static openOut(attendId) {
|
12
|
+
const param = {
|
13
|
+
cmd: "window",
|
14
|
+
data: {
|
15
|
+
action: 'pop',
|
16
|
+
type: 'builtOut',
|
17
|
+
attendId,
|
18
|
+
}
|
19
|
+
};
|
20
|
+
this.sendParam(param, '打开外部弹窗');
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* 关闭外部弹窗
|
24
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
25
|
+
*/
|
26
|
+
static closeOut(attendId) {
|
27
|
+
const param = {
|
28
|
+
cmd: "window",
|
29
|
+
data: {
|
30
|
+
action: 'remove',
|
31
|
+
type: 'builtOut',
|
32
|
+
attendId,
|
33
|
+
}
|
34
|
+
};
|
35
|
+
this.sendParam(param, '关闭外部弹窗');
|
36
|
+
}
|
37
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* 点POI打开外部弹窗
|
4
|
+
* 用来让UE抛出POI位置
|
5
|
+
*/
|
6
|
+
import { Action, } from "./Action";
|
7
|
+
|
8
|
+
export class WindowAction extends Action {
|
9
|
+
/**
|
10
|
+
* 打开外部弹窗
|
11
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
12
|
+
*/
|
13
|
+
static openOut(attendId: string) {
|
14
|
+
const param: any = {
|
15
|
+
cmd: "window",
|
16
|
+
data: {
|
17
|
+
action: 'pop',
|
18
|
+
type: 'builtOut',
|
19
|
+
attendId,
|
20
|
+
}
|
21
|
+
};
|
22
|
+
this.sendParam(param, '打开外部弹窗')
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* 关闭外部弹窗
|
27
|
+
* @param {*} attendId (必须)弹框的三维物体的唯一ID)
|
28
|
+
*/
|
29
|
+
static closeOut(attendId: string) {
|
30
|
+
const param: any = {
|
31
|
+
cmd: "window",
|
32
|
+
data: {
|
33
|
+
action: 'remove',
|
34
|
+
type: 'builtOut',
|
35
|
+
attendId,
|
36
|
+
}
|
37
|
+
};
|
38
|
+
this.sendParam(param, '关闭外部弹窗')
|
39
|
+
}
|
40
|
+
}
|