model-action 1.0.11 → 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 CHANGED
@@ -2,3 +2,4 @@ export { Action } from './modules/Action';
2
2
  export { VideoFusionAction } from "./modules/VideoFusion";
3
3
  export { PoiAction } from './modules/Poi';
4
4
  export { TrackAction } from './modules/Track';
5
+ export { SceneAction } from './modules/Scene';
package/dist/index.js CHANGED
@@ -2,3 +2,4 @@ export { Action } from './modules/Action';
2
2
  export { VideoFusionAction } from "./modules/VideoFusion";
3
3
  export { PoiAction } from './modules/Poi';
4
4
  export { TrackAction } from './modules/Track';
5
+ export { SceneAction } from './modules/Scene';
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "model-action",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "与三维交互api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -2,3 +2,4 @@ export { Action } from './modules/Action'
2
2
  export { VideoFusionAction } from "./modules/VideoFusion";
3
3
  export { PoiAction } from './modules/Poi'
4
4
  export { TrackAction } from './modules/Track'
5
+ export { SceneAction } from './modules/Scene'