model-action 1.0.12 → 1.0.13
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/Scene.d.ts +21 -0
- package/dist/modules/Scene.js +24 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
/**
|
2
|
+
* 场景方法
|
3
|
+
*/
|
4
|
+
import { Action, SendParam } from "./Action";
|
5
|
+
declare enum SceneActionType {
|
6
|
+
Exit = "0",//退出独显
|
7
|
+
Enter = "1"
|
8
|
+
}
|
9
|
+
type SceneType = {
|
10
|
+
action: SceneActionType;
|
11
|
+
isAdjustLight: boolean;
|
12
|
+
tag?: string;
|
13
|
+
} & SendParam;
|
14
|
+
export declare class SceneAction extends Action {
|
15
|
+
/**
|
16
|
+
* 独显某场景模型
|
17
|
+
* @param {*} action 自定义轨迹ID
|
18
|
+
*/
|
19
|
+
static show(action: SceneActionType, isAdjustLight: SceneType["isAdjustLight"] | undefined, tag: SceneType['tag']): void;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* 场景方法
|
3
|
+
*/
|
4
|
+
import { Action } from "./Action";
|
5
|
+
var SceneActionType;
|
6
|
+
(function (SceneActionType) {
|
7
|
+
SceneActionType["Exit"] = "0";
|
8
|
+
SceneActionType["Enter"] = "1";
|
9
|
+
})(SceneActionType || (SceneActionType = {}));
|
10
|
+
export class SceneAction extends Action {
|
11
|
+
/**
|
12
|
+
* 独显某场景模型
|
13
|
+
* @param {*} action 自定义轨迹ID
|
14
|
+
*/
|
15
|
+
static show(action, isAdjustLight = false, tag) {
|
16
|
+
const param = {
|
17
|
+
cmd: "POI",
|
18
|
+
action,
|
19
|
+
tag,
|
20
|
+
isAdjustLight
|
21
|
+
};
|
22
|
+
this.sendParam(param, `${action === '0' ? '退出' : '进入'}独显`);
|
23
|
+
}
|
24
|
+
}
|