@nnepoch/dtc-sdk 3.0.8 → 3.0.10
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/browser/dtc-sdk-3.0.10.js +2 -0
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.d.cts +208 -103
- package/dist/esm/index.d.ts +208 -103
- package/dist/esm/index.js +4 -4
- package/package.json +1 -1
- package/dist/browser/dtc-sdk-3.0.8.js +0 -2
package/dist/esm/index.d.ts
CHANGED
|
@@ -1289,8 +1289,8 @@ interface LayerPOIAddRequest {
|
|
|
1289
1289
|
description?: string;
|
|
1290
1290
|
/** 模型是否为系统模型。true--断开连接不删除,false--断开连接删除。如果图层为非系统的,也会删除 */
|
|
1291
1291
|
isSystem?: boolean;
|
|
1292
|
-
/** poi
|
|
1293
|
-
|
|
1292
|
+
/** poi的名称 */
|
|
1293
|
+
name?: string;
|
|
1294
1294
|
/** poi的字体大小,默认为 16 */
|
|
1295
1295
|
fontSize?: number;
|
|
1296
1296
|
/** 模型的标签 */
|
|
@@ -1298,6 +1298,28 @@ interface LayerPOIAddRequest {
|
|
|
1298
1298
|
/** 扩展属性,json对象,可不填写 */
|
|
1299
1299
|
extraProps?: any;
|
|
1300
1300
|
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Layer.updatePOIName 参数。
|
|
1303
|
+
*/
|
|
1304
|
+
interface LayerUpdatePOINameRequest {
|
|
1305
|
+
/** 场景中参照绑定的位置的对象上级编号,可不填,但要保证 id 唯一。 */
|
|
1306
|
+
parentId?: string;
|
|
1307
|
+
/** POI 对象编号,必填。 */
|
|
1308
|
+
id: string;
|
|
1309
|
+
/** POI 显示文本。 */
|
|
1310
|
+
name: string;
|
|
1311
|
+
/** 文本更新方式:update 更新、append 追加、remove 移除。默认 update。 */
|
|
1312
|
+
updateType?: string;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Layer.resetPOIName 参数。
|
|
1316
|
+
*/
|
|
1317
|
+
interface LayerResetPOINameRequest {
|
|
1318
|
+
/** 场景中参照绑定的位置的对象上级编号,可不填,但要保证 ids 唯一。 */
|
|
1319
|
+
parentId?: string;
|
|
1320
|
+
/** POI 对象编号集合,至少一个。 */
|
|
1321
|
+
ids: string[];
|
|
1322
|
+
}
|
|
1301
1323
|
/**
|
|
1302
1324
|
* Layer.addModel 参数。
|
|
1303
1325
|
*/
|
|
@@ -2264,8 +2286,8 @@ interface TrainSimulateSetTrainVolumeRequest {
|
|
|
2264
2286
|
parentId?: string;
|
|
2265
2287
|
/** 唯一编号,必填。 */
|
|
2266
2288
|
id: string;
|
|
2267
|
-
/**
|
|
2268
|
-
|
|
2289
|
+
/** 声音是否开启,默认 true。 */
|
|
2290
|
+
volumeOn?: boolean;
|
|
2269
2291
|
}
|
|
2270
2292
|
//#endregion
|
|
2271
2293
|
//#region src/types/buildingFloor.d.ts
|
|
@@ -3430,22 +3452,22 @@ declare class Camera extends BaseApi {
|
|
|
3430
3452
|
*/
|
|
3431
3453
|
reset(callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3432
3454
|
/**
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3455
|
+
* 相机跟随场景中运动的对象。
|
|
3456
|
+
* 默认值:`smooth=0.85`。
|
|
3457
|
+
* @param payload - 跟随参数。
|
|
3458
|
+
* @param callback - 可选回调函数。
|
|
3459
|
+
* @returns Promise 形式的接口响应。
|
|
3460
|
+
* @agentSideEffects write
|
|
3461
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3462
|
+
* @agentRiskLevel low
|
|
3463
|
+
* @agentExample { id: 'myCar', offSet: { x: 0, y: 3, z: 5, ePSGType: '0000' }, smooth: 0.85 }
|
|
3464
|
+
* @example
|
|
3465
|
+
* ```ts
|
|
3466
|
+
dtcEngine.Camera.startCameraObjFollow({ id: 'myCar', offSet: new dtcEngine.Type.Vector3(0, 3, 5), smooth: 0.85 }, (result) => {
|
|
3467
|
+
console.log(result);
|
|
3468
|
+
});
|
|
3469
|
+
* ```
|
|
3470
|
+
*/
|
|
3449
3471
|
startCameraObjFollow(payload: CameraObjFollowRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3450
3472
|
/**
|
|
3451
3473
|
* 停止相机跟随。
|
|
@@ -3577,7 +3599,7 @@ declare class Scene extends BaseApi {
|
|
|
3577
3599
|
/**
|
|
3578
3600
|
* 场景图层对象管理 API。
|
|
3579
3601
|
* @agentTitle 图层管理
|
|
3580
|
-
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除,
|
|
3602
|
+
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除, 图层子对象查询, POI名称更新, POI名称重置
|
|
3581
3603
|
* @hideconstructor
|
|
3582
3604
|
*/
|
|
3583
3605
|
declare class Layer extends BaseApi {
|
|
@@ -3743,6 +3765,57 @@ declare class Layer extends BaseApi {
|
|
|
3743
3765
|
* ```
|
|
3744
3766
|
*/
|
|
3745
3767
|
addPOI(payload: LayerPOIAddRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3768
|
+
/**
|
|
3769
|
+
* 更新 POI 气泡的显示文本。
|
|
3770
|
+
* 默认值:`updateType='update'`。`updateType` 支持 `update` 更新、`append` 追加、`remove` 移除。
|
|
3771
|
+
* @param payload - POI 文本更新参数。
|
|
3772
|
+
* @param callback - 可选回调函数。
|
|
3773
|
+
* @returns Promise 形式的接口响应。
|
|
3774
|
+
* @agentSideEffects write
|
|
3775
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3776
|
+
* @agentRiskLevel low
|
|
3777
|
+
* @agentExample { parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: 'update' }
|
|
3778
|
+
* @example
|
|
3779
|
+
* ```ts
|
|
3780
|
+
* 示例1: 追加文本
|
|
3781
|
+
dtcEngine.Layer.updatePOIName(
|
|
3782
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "append" },
|
|
3783
|
+
(result) => { console.log(result); }
|
|
3784
|
+
);
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
* 示例2: 移除文本
|
|
3788
|
+
dtcEngine.Layer.updatePOIName(
|
|
3789
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "remove" },
|
|
3790
|
+
(result) => { console.log(result); }
|
|
3791
|
+
);
|
|
3792
|
+
* 示例3: 更新文本
|
|
3793
|
+
dtcEngine.Layer.updatePOIName(
|
|
3794
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "update" },
|
|
3795
|
+
(result) => { console.log(result); }
|
|
3796
|
+
);
|
|
3797
|
+
* ```
|
|
3798
|
+
*/
|
|
3799
|
+
updatePOIName(payload: LayerUpdatePOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3800
|
+
/***
|
|
3801
|
+
* 重置 POI 气泡的显示文本。
|
|
3802
|
+
* `ids` 为 POI 对象编号集合,至少一个。
|
|
3803
|
+
* @param payload - POI 文本重置参数。
|
|
3804
|
+
* @param callback - 可选回调函数。
|
|
3805
|
+
* @returns Promise 形式的接口响应。
|
|
3806
|
+
* @agentSideEffects write
|
|
3807
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3808
|
+
* @agentRiskLevel low
|
|
3809
|
+
* @agentExample { parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] }
|
|
3810
|
+
* @example
|
|
3811
|
+
* ```ts
|
|
3812
|
+
dtcEngine.Layer.resetPOIName(
|
|
3813
|
+
{ parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] },
|
|
3814
|
+
(result) => { console.log(result); }
|
|
3815
|
+
);
|
|
3816
|
+
* ```
|
|
3817
|
+
*/
|
|
3818
|
+
resetPOIName(payload: LayerResetPOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3746
3819
|
/**
|
|
3747
3820
|
* 删除图层下指定模型资源。
|
|
3748
3821
|
* @param payload - 模型删除参数。
|
|
@@ -4826,17 +4899,24 @@ declare class PathPatrol extends BaseApi {
|
|
|
4826
4899
|
interface PointIconVisibilityResult {
|
|
4827
4900
|
requestedCount: number;
|
|
4828
4901
|
affectedCount: number;
|
|
4829
|
-
|
|
4902
|
+
/** 按 ids 调用(show/hide/showByGroup/hideByGroup)时返回;按 codes 调用时该字段缺失。 */
|
|
4903
|
+
notFoundIds?: string[];
|
|
4904
|
+
/** 按 codes 调用(showByCode/hideByCode)时返回;按 ids 调用时该字段缺失。 */
|
|
4905
|
+
notFoundCodes?: string[];
|
|
4830
4906
|
}
|
|
4831
4907
|
interface PointIconIdsRequest {
|
|
4832
4908
|
ids: string[];
|
|
4833
4909
|
}
|
|
4834
4910
|
type PointIconIdsInput = string[] | PointIconIdsRequest;
|
|
4911
|
+
interface PointIconCodesRequest {
|
|
4912
|
+
codes: string[];
|
|
4913
|
+
}
|
|
4914
|
+
type PointIconCodesInput = string[] | PointIconCodesRequest;
|
|
4835
4915
|
type PointIconResponse = ApiResponseEnvelope<PointIconVisibilityResult>;
|
|
4836
4916
|
/**
|
|
4837
4917
|
* 设备点位图标显隐控制 API。
|
|
4838
4918
|
* @agentTitle 设备点位图标
|
|
4839
|
-
* @agentCapabilities 指定点位显隐, 分组点位显隐, 全部点位显隐
|
|
4919
|
+
* @agentCapabilities 指定点位显隐, 按编码点位显隐, 分组点位显隐, 全部点位显隐
|
|
4840
4920
|
* @hideconstructor
|
|
4841
4921
|
*/
|
|
4842
4922
|
declare class PointIcon extends BaseApi {
|
|
@@ -4857,6 +4937,22 @@ declare class PointIcon extends BaseApi {
|
|
|
4857
4937
|
* @agentExample { ids: ['point-001', 'point-002'] }
|
|
4858
4938
|
*/
|
|
4859
4939
|
hide(payload: PointIconIdsInput, callback?: ApiCallback<PointIconResponse>): Promise<PointIconResponse>;
|
|
4940
|
+
/**
|
|
4941
|
+
* 显示指定编码(code)的全部设备点位图标,编码精确匹配且不要求唯一。
|
|
4942
|
+
* @agentSideEffects write
|
|
4943
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4944
|
+
* @agentRiskLevel low
|
|
4945
|
+
* @agentExample { codes: ['CAM-001', 'CAM-002'] }
|
|
4946
|
+
*/
|
|
4947
|
+
showByCode(payload: PointIconCodesInput, callback?: ApiCallback<PointIconResponse>): Promise<PointIconResponse>;
|
|
4948
|
+
/**
|
|
4949
|
+
* 隐藏指定编码(code)的全部设备点位图标,编码精确匹配且不要求唯一。
|
|
4950
|
+
* @agentSideEffects write
|
|
4951
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4952
|
+
* @agentRiskLevel low
|
|
4953
|
+
* @agentExample { codes: ['CAM-001', 'CAM-002'] }
|
|
4954
|
+
*/
|
|
4955
|
+
hideByCode(payload: PointIconCodesInput, callback?: ApiCallback<PointIconResponse>): Promise<PointIconResponse>;
|
|
4860
4956
|
/**
|
|
4861
4957
|
* 显示指定分组及其子分组内的设备点位图标。
|
|
4862
4958
|
* @agentSideEffects write
|
|
@@ -5810,93 +5906,99 @@ declare class SpatialQuery extends BaseApi {
|
|
|
5810
5906
|
* @hideconstructor
|
|
5811
5907
|
*/
|
|
5812
5908
|
declare class TrainSimulate extends BaseApi {
|
|
5813
|
-
constructor(bridge: ApiBridge, runtimeOptions?: BaseApiRuntimeOptions);
|
|
5814
5909
|
/**
|
|
5815
|
-
*
|
|
5816
|
-
* 默认值:`direction='0'`、`action='1'`、`stopTime=180`、`moveType=StopAtTheEnd`。
|
|
5817
|
-
* `id` 为必填的唯一编号;`parentId` 用于避免重名,可不填。
|
|
5818
|
-
* @param payload - 列车启动参数。
|
|
5819
|
-
* @param callback - 可选回调函数。
|
|
5820
|
-
* @returns Promise 形式的接口响应。
|
|
5821
|
-
* @agentSideEffects write
|
|
5822
|
-
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5823
|
-
* @agentRiskLevel low
|
|
5824
|
-
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', trainCode: 'G501', startStationName: '北京', endStationName: '上海', direction: '0', action: '1', stopTime: 180, moveType: 'StopAtTheEnd' }
|
|
5825
|
-
* @example
|
|
5826
|
-
* ```ts
|
|
5827
|
-
* dtcEngine.TrainSimulate.startTrain(
|
|
5828
|
-
* {
|
|
5829
|
-
* parentId: 'RailTrains',
|
|
5830
|
-
* id: 'DTrain1',
|
|
5831
|
-
* trainCode: 'G501',
|
|
5832
|
-
* startStationName: '北京',
|
|
5833
|
-
* endStationName: '上海',
|
|
5834
|
-
* direction: '0',
|
|
5835
|
-
* action: '1',
|
|
5836
|
-
* stopTime: 180,
|
|
5837
|
-
* moveType: dtcEngine.Enums.TrainBehavior.StopAtTheEnd
|
|
5838
|
-
* },
|
|
5839
|
-
* (result) => { console.log(result); }
|
|
5840
|
-
* );
|
|
5841
|
-
* ```
|
|
5910
|
+
* 相机模块实例,`setCameraFollowTrain` 复用其 `startCameraObjFollow` 接口。
|
|
5842
5911
|
*/
|
|
5912
|
+
private readonly camera;
|
|
5913
|
+
constructor(bridge: ApiBridge, runtimeOptions?: BaseApiRuntimeOptions);
|
|
5914
|
+
/**
|
|
5915
|
+
* 设置火车的动态并启动列车。
|
|
5916
|
+
* 默认值:`direction='0'`、`action='1'`、`stopTime=180`、`moveType=StopAtTheEnd`。
|
|
5917
|
+
* `id` 为必填的唯一编号;`parentId` 用于避免重名,可不填。
|
|
5918
|
+
* @param payload - 列车启动参数。
|
|
5919
|
+
* @param callback - 可选回调函数。
|
|
5920
|
+
* @returns Promise 形式的接口响应。
|
|
5921
|
+
* @agentSideEffects write
|
|
5922
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5923
|
+
* @agentRiskLevel low
|
|
5924
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', trainCode: 'G501', startStationName: '北京', endStationName: '上海', direction: '0', action: '1', stopTime: 180, moveType: 'StopAtTheEnd' }
|
|
5925
|
+
* @example
|
|
5926
|
+
* ```ts
|
|
5927
|
+
dtcEngine.TrainSimulate.startTrain(
|
|
5928
|
+
{
|
|
5929
|
+
parentId: 'RailTrains',
|
|
5930
|
+
id: 'DTrain1',
|
|
5931
|
+
trainCode: 'G501',
|
|
5932
|
+
startStationName: '北京',
|
|
5933
|
+
endStationName: '上海',
|
|
5934
|
+
direction: '0',
|
|
5935
|
+
action: '1',
|
|
5936
|
+
stopTime: 180,
|
|
5937
|
+
moveType: dtcEngine.Enums.TrainBehavior.StopAtTheEnd
|
|
5938
|
+
},
|
|
5939
|
+
(result) => { console.log(result); }
|
|
5940
|
+
);
|
|
5941
|
+
* ```
|
|
5942
|
+
*/
|
|
5843
5943
|
startTrain(payload: TrainSimulateStartTrainRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5844
5944
|
/**
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5945
|
+
* 设置火车的运动方式。
|
|
5946
|
+
* 默认值:`moveType=StopAtTheEnd`。
|
|
5947
|
+
* @param payload - 列车运动方式参数。
|
|
5948
|
+
* @param callback - 可选回调函数。
|
|
5949
|
+
* @returns Promise 形式的接口响应。
|
|
5950
|
+
* @agentSideEffects write
|
|
5951
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5952
|
+
* @agentRiskLevel low
|
|
5953
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', moveType: 'Loop' }
|
|
5954
|
+
* @example
|
|
5955
|
+
* ```ts
|
|
5956
|
+
dtcEngine.TrainSimulate.setTrainBehavior(
|
|
5957
|
+
{ parentId: 'RailTrains', id: 'DTrain1', moveType: dtcEngine.Enums.TrainBehavior.Loop },
|
|
5958
|
+
(result) => { console.log(result); }
|
|
5959
|
+
);
|
|
5960
|
+
* ```
|
|
5961
|
+
*/
|
|
5862
5962
|
setTrainBehavior(payload: TrainSimulateSetTrainBehaviorRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5863
5963
|
/**
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5964
|
+
* 设置相机跟随火车。
|
|
5965
|
+
* 内部调用相机模块的 `Camera.startCameraObjFollow` 接口实现。
|
|
5966
|
+
* 默认偏移量 `offSet=(-100, 0, 30)`,坐标类型固定为 `'0000'`。
|
|
5967
|
+
* @param payload - 相机跟随参数。
|
|
5968
|
+
* @param callback - 可选回调函数。
|
|
5969
|
+
* @returns Promise 形式的接口响应。
|
|
5970
|
+
* @agentSideEffects write
|
|
5971
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5972
|
+
* @agentRiskLevel low
|
|
5973
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', offSet: { x: 26, y: 18, z: 15, ePSGType: '0000' } }
|
|
5974
|
+
* @example
|
|
5975
|
+
* ```ts
|
|
5976
|
+
dtcEngine.TrainSimulate.setCameraFollowTrain(
|
|
5977
|
+
{ parentId: 'RailTrains', id: 'DTrain1', offSet: new dtcEngine.Type.Vector3(26, 18, 15) },
|
|
5978
|
+
(result) => { console.log(result); }
|
|
5979
|
+
);
|
|
5980
|
+
* ```
|
|
5981
|
+
*/
|
|
5881
5982
|
setCameraFollowTrain(payload: TrainSimulateSetCameraFollowTrainRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5882
5983
|
/**
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5984
|
+
* 设置火车的声音的开关。
|
|
5985
|
+
* 默认值:`volumeOn=true`。
|
|
5986
|
+
* @param payload - 列车声音参数。
|
|
5987
|
+
* @param callback - 可选回调函数。
|
|
5988
|
+
* @returns Promise 形式的接口响应。
|
|
5989
|
+
* @agentSideEffects write
|
|
5990
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5991
|
+
* @agentRiskLevel low
|
|
5992
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', volumeOn: false }
|
|
5993
|
+
* @example
|
|
5994
|
+
* ```ts
|
|
5995
|
+
dtcEngine.TrainSimulate.setTrainVolume(
|
|
5996
|
+
{ parentId: '', id: 'Train1', volumeOn: false },
|
|
5997
|
+
(result) => { console.log(result); }
|
|
5998
|
+
);
|
|
5999
|
+
// 响应示例:{ code: 0, message: 'success', data: null }
|
|
6000
|
+
* ```
|
|
6001
|
+
*/
|
|
5900
6002
|
setTrainVolume(payload: TrainSimulateSetTrainVolumeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5901
6003
|
/**
|
|
5902
6004
|
* 取消相机跟随火车,无需传参。
|
|
@@ -6739,6 +6841,9 @@ declare class DTCEngine {
|
|
|
6739
6841
|
readonly LoadMQTTDataFinished: "LoadMQTTDataFinished";
|
|
6740
6842
|
/** 设备数据加载进度事件 */
|
|
6741
6843
|
readonly LoadMQTTDataProgress: "LoadMQTTDataProgress";
|
|
6844
|
+
/** 列车可见性变化事件 */
|
|
6845
|
+
readonly TrainsVisible: "TrainsVisible";
|
|
6846
|
+
readonly TrainsInfo: "TrainsInfo";
|
|
6742
6847
|
};
|
|
6743
6848
|
readonly Enums: {
|
|
6744
6849
|
DlssQuality: {
|
|
@@ -7015,4 +7120,4 @@ declare class SDKValidationError extends Error {
|
|
|
7015
7120
|
toJSON(): Record<string, unknown>;
|
|
7016
7121
|
}
|
|
7017
7122
|
//#endregion
|
|
7018
|
-
export { AGENT_BRIDGE_API_METADATA, type AGENT_BRIDGE_PROTOCOL_VERSION, API_MODULE_KEYS, type AgentBridgeActiveStream, type AgentBridgeBusinessProgramManifest, type AgentBridgeBusinessProgramPermissionMode, type AgentBridgeCancelProgramRequest, type AgentBridgeCancelProgramRequestPayload, type AgentBridgeCatalogRequestPayload, type AgentBridgeErrorCode, type AgentBridgeExposeConfig, type AgentBridgeHeartbeatPayload, type AgentBridgeInboundMessage, type AgentBridgeInvokeRequest, type AgentBridgeInvokeRequestPayload, type AgentBridgeLoadProgramRequest, type AgentBridgeLoadProgramRequestPayload, type AgentBridgeMessageEnvelope, type AgentBridgeMessageType, type AgentBridgeMethodCatalogItem, type AgentBridgeMethodResponseMode, type AgentBridgeMethodSchemaMetadata, type AgentBridgeMethodSideEffect, type AgentBridgeModuleCatalogItem, type AgentBridgeOperationResult, type AgentBridgeOutboundMessage, type AgentBridgeProgramEventPayload, type AgentBridgeReconnectOptions, type AgentBridgeRegisterPayload, type AgentBridgeResultPayload, type AgentBridgeRuntimeAdapter, type AgentBridgeRuntimeEngineSnapshot, type AgentBridgeRuntimeFactoryOptions, type AgentBridgeRuntimeSnapshot, type AgentBridgeSchemaEnumOption, type AgentBridgeSchemaField, type AgentBridgeSchemaFieldType, type AgentBridgeSchemaRequestPayload, type AgentBridgeSocket, type AgentBridgeSocketFactory, type AgentBridgeStartProgramRequest, type AgentBridgeStartProgramRequestPayload, type AgentBridgeStreamCloseRequest, type AgentBridgeStreamCloseRequestPayload, type AgentBridgeStreamCloseResult, type AgentBridgeStreamEventListener, type AgentBridgeStreamEventPayload, type AgentBridgeStreamStartRequest, type AgentBridgeStreamStartRequestPayload, type AgentBridgeStreamStartResult, type AgentBridgeStreamTerminalReason, type AgentBridgeStructuredError, type AgentBridgeUnregisterPayload, type AgentBridgeValidateAction, type AgentBridgeValidateActionItem, type AgentBridgeValidateActionsRequest, type AgentBridgeValidateActionsRequestPayload, type AgentBridgeValidateActionsResult, AgentRuntimeBridge, type AgentRuntimeBridgeDependencies, Animation, type AnimationGetLengthRequest, type AnimationPlayRequest, type AnimationSetSpeedRequest, type AnimationStartLoopRequest, type AnimationStopLoopRequest, type AnimationStopRequest, type ApiCallback, type ApiFacade, type ApiInstanceMap, type ApiModuleFactory, type ApiModuleKey, type ApiRegistry, type ApiRegistryContext, ApiRegistryError, type ApiRequestEnvelope, type ApiResponseEnvelope, type AuthErrorInfo, type AuthSessionSnapshot, type AuthWorkflowState, BuildingFloor, type BuildingFloorCancelOptions, type BuildingFloorDependencies, BuildingFloorError, type BuildingFloorErrorCode, type BuildingFloorFocusMode, type BuildingFloorInput, type BuildingFloorItem, type BuildingFloorOverview, type BuildingFloorOverviewOptions, type BuildingFloorRegistration, type BuildingFloorRegistrationResult, type BuildingFloorRuntimeOptions, type BuildingFloorRuntimeStatus, type BuildingFloorState, type BuildingFloorStateOptions, type BuildingFloorSwitchOptions, type BuildingFloorTransitionResult, type BuildingFloorTransitionStatus, type BuildingFloorViewPoint, Camera, type CameraFlyByPathRequest, type CameraFlyToTargetRequest, type CameraLookAtRequest, type CameraObjFollowRequest, type CameraSetFlySpeedRequest, type CameraSetFovRequest, type CameraSetPositionAndRotationRequest, type CenterConnectResult, type CenterEnvelope, type CenterServiceInfo, type CenterTokenAuthorizeResult, Connect, DTCEngine, type DTCEngineAgentBridgeOptions, Dlss, DlssQuality, type DlssSetEnableRequest, type DlssSetQualityRequest, type EngineConfig, type EngineLogLevel, type EngineStatusInfo, type EngineViewMode, type FeatureToggleRequest, FilterMode, type GetWeatherTypeRequest, HeatMap, type HeatMapConfigRequest, type HeatMapCreateRequest, type HeatMapPointRequest, type HeatMapRemoveRequest, HighLighterEffect, type HighLighterEnableRequest, type HighLighterRemoveHighLightModelRequest, type HighLighterSetHighLightModelRequest, Layer, type LayerAddRequest, type LayerChildElementRequest, LayerEnum, type LayerModelAddRequest, type LayerModelRemoveRequest, type LayerPOIAddRequest, type LayerSelectorRequest, type LayerShowUIPopRequest, type LayerSwitchModelRequest, Model, type ModelAddRequest, type ModelBoundsRequest, ModelPOI, type ModelPOIAddRequest, type ModelPOIDeleteByGroupRequest, type ModelPOIDeleteByIdRequest, type ModelPOIGetInfoRequest, type ModelPOIUpdateRequest, type ModelPOIVisibleByGroupRequest, type ModelRemoveRequest, type ModelSelectorRequest, type ModelSetVisibleByAttributeRequest, type ModelSetVisibleByTagsRequest, type ModelSetVisibleRequest, ModelTransform, type ModelTransformNodeRequest, type ModelTransformRestoreRequest, type ModelTransformRotateByTargetRequest, type ModelTransformRotateRequest, type ModelTransformScaleRequest, type ModelTransformStartMoveRequest, ModelTransformType, Navigation, type NavigationMeshNavRequest, type NavigationNavByPathRequest, type NavigationNodeRequest, type NavigationUpdateMeshNavRequest, type NavigationUpdateNavPathRequest, type NavigationUpdateSpeedRequest, type NetworkAdaptationActionResult, type NetworkAdaptationActionStep, type NetworkAdaptationActionType, type NetworkAdaptationLevel, type NetworkAdaptationMode, type NetworkAdaptationState, type NetworkDecisionTrace, type NetworkDiagnosticsSnapshot, type NetworkMetricsSnapshot, PathPatrol, type PathPatrolAddRequest, type PathPatrolNodeRequest, type PathPatrolSetTimeNodeRequest, type PathPatrolUpdateRequest, PendingValidationSchemaMap, PointIcon, type PointIconIdsInput, type PointIconIdsRequest, type PointIconVisibilityResult, Popup, type PopupAddRequest, type PopupDelayRequest, type PopupItemRequest, type PopupRemoveRequest, type PopupShowDistanceRequest, type PopupShowRequest, type PopupSyncInfoRequest, type QOS_EVENT_NAMES, type QosEvent, type QosEventName, type QosLevel, type QosReportingPayload, type QosRuntimeContext, type QosSessionContext, type QosStage, type QosStatus, type QosWarnErrorSummary, type ResolvedEngineConfig, SDKValidationError, Scene, type SceneListenCompassRequest, type SceneSwitchRequest, Screen, ScreenRenderBitratePreset, ScreenRenderBitratePresetOptions, type ScreenRenderBitratePresetValueMap, type ScreenSetSceneFPSRequest, type ScreenSetSceneRenderBitrateRequest, type ScreenSetScreenResolutionRequest, type ScreenSetVideoDecodeRequest, Season, type SignallingAllocateResponse, SpatialQuery, type SpatialQueryLayerByModelBoxRequest, type SpatialQueryLayerByModelRequest, type SpatialQueryLayerByPositionRequest, type StandardResponse, TimeLine, type TimeSerialNode, type TimelineNodeRequest, type TimelinePlayRequest, type TimelineSetSpeedRequest, type TimelineStopRequest, TrainBehavior, TrainSimulate, type TrainSimulateSetCameraFollowTrainRequest, type TrainSimulateSetTrainBehaviorRequest, type TrainSimulateSetTrainVolumeRequest, type TrainSimulateStartTrainRequest, UIPOI, type UIPOIAddRequest, type UIPOIDeleteByGroupRequest, type UIPOIDeleteByIdRequest, type UIPOIEnableOverlapRequest, type UIPOIShowDistanceRequest, type UIPOIUpdateRequest, type UIPOIUpdateStateRequest, type Vector2Input, type Vector2JsonInput, type Vector3Input, type Vector3JsonInput, VideoCodeType, type WeatherChangeSeasonRequest, type WeatherOpenCameraFogRequest, type WeatherSetAnimateTimeOfDayRequest, type WeatherSetDayAndNightRequest, type WeatherSetSceneTimeRequest, type WeatherSetTimeSyncRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|
|
7123
|
+
export { AGENT_BRIDGE_API_METADATA, type AGENT_BRIDGE_PROTOCOL_VERSION, API_MODULE_KEYS, type AgentBridgeActiveStream, type AgentBridgeBusinessProgramManifest, type AgentBridgeBusinessProgramPermissionMode, type AgentBridgeCancelProgramRequest, type AgentBridgeCancelProgramRequestPayload, type AgentBridgeCatalogRequestPayload, type AgentBridgeErrorCode, type AgentBridgeExposeConfig, type AgentBridgeHeartbeatPayload, type AgentBridgeInboundMessage, type AgentBridgeInvokeRequest, type AgentBridgeInvokeRequestPayload, type AgentBridgeLoadProgramRequest, type AgentBridgeLoadProgramRequestPayload, type AgentBridgeMessageEnvelope, type AgentBridgeMessageType, type AgentBridgeMethodCatalogItem, type AgentBridgeMethodResponseMode, type AgentBridgeMethodSchemaMetadata, type AgentBridgeMethodSideEffect, type AgentBridgeModuleCatalogItem, type AgentBridgeOperationResult, type AgentBridgeOutboundMessage, type AgentBridgeProgramEventPayload, type AgentBridgeReconnectOptions, type AgentBridgeRegisterPayload, type AgentBridgeResultPayload, type AgentBridgeRuntimeAdapter, type AgentBridgeRuntimeEngineSnapshot, type AgentBridgeRuntimeFactoryOptions, type AgentBridgeRuntimeSnapshot, type AgentBridgeSchemaEnumOption, type AgentBridgeSchemaField, type AgentBridgeSchemaFieldType, type AgentBridgeSchemaRequestPayload, type AgentBridgeSocket, type AgentBridgeSocketFactory, type AgentBridgeStartProgramRequest, type AgentBridgeStartProgramRequestPayload, type AgentBridgeStreamCloseRequest, type AgentBridgeStreamCloseRequestPayload, type AgentBridgeStreamCloseResult, type AgentBridgeStreamEventListener, type AgentBridgeStreamEventPayload, type AgentBridgeStreamStartRequest, type AgentBridgeStreamStartRequestPayload, type AgentBridgeStreamStartResult, type AgentBridgeStreamTerminalReason, type AgentBridgeStructuredError, type AgentBridgeUnregisterPayload, type AgentBridgeValidateAction, type AgentBridgeValidateActionItem, type AgentBridgeValidateActionsRequest, type AgentBridgeValidateActionsRequestPayload, type AgentBridgeValidateActionsResult, AgentRuntimeBridge, type AgentRuntimeBridgeDependencies, Animation, type AnimationGetLengthRequest, type AnimationPlayRequest, type AnimationSetSpeedRequest, type AnimationStartLoopRequest, type AnimationStopLoopRequest, type AnimationStopRequest, type ApiCallback, type ApiFacade, type ApiInstanceMap, type ApiModuleFactory, type ApiModuleKey, type ApiRegistry, type ApiRegistryContext, ApiRegistryError, type ApiRequestEnvelope, type ApiResponseEnvelope, type AuthErrorInfo, type AuthSessionSnapshot, type AuthWorkflowState, BuildingFloor, type BuildingFloorCancelOptions, type BuildingFloorDependencies, BuildingFloorError, type BuildingFloorErrorCode, type BuildingFloorFocusMode, type BuildingFloorInput, type BuildingFloorItem, type BuildingFloorOverview, type BuildingFloorOverviewOptions, type BuildingFloorRegistration, type BuildingFloorRegistrationResult, type BuildingFloorRuntimeOptions, type BuildingFloorRuntimeStatus, type BuildingFloorState, type BuildingFloorStateOptions, type BuildingFloorSwitchOptions, type BuildingFloorTransitionResult, type BuildingFloorTransitionStatus, type BuildingFloorViewPoint, Camera, type CameraFlyByPathRequest, type CameraFlyToTargetRequest, type CameraLookAtRequest, type CameraObjFollowRequest, type CameraSetFlySpeedRequest, type CameraSetFovRequest, type CameraSetPositionAndRotationRequest, type CenterConnectResult, type CenterEnvelope, type CenterServiceInfo, type CenterTokenAuthorizeResult, Connect, DTCEngine, type DTCEngineAgentBridgeOptions, Dlss, DlssQuality, type DlssSetEnableRequest, type DlssSetQualityRequest, type EngineConfig, type EngineLogLevel, type EngineStatusInfo, type EngineViewMode, type FeatureToggleRequest, FilterMode, type GetWeatherTypeRequest, HeatMap, type HeatMapConfigRequest, type HeatMapCreateRequest, type HeatMapPointRequest, type HeatMapRemoveRequest, HighLighterEffect, type HighLighterEnableRequest, type HighLighterRemoveHighLightModelRequest, type HighLighterSetHighLightModelRequest, Layer, type LayerAddRequest, type LayerChildElementRequest, LayerEnum, type LayerModelAddRequest, type LayerModelRemoveRequest, type LayerPOIAddRequest, type LayerResetPOINameRequest, type LayerSelectorRequest, type LayerShowUIPopRequest, type LayerSwitchModelRequest, type LayerUpdatePOINameRequest, Model, type ModelAddRequest, type ModelBoundsRequest, ModelPOI, type ModelPOIAddRequest, type ModelPOIDeleteByGroupRequest, type ModelPOIDeleteByIdRequest, type ModelPOIGetInfoRequest, type ModelPOIUpdateRequest, type ModelPOIVisibleByGroupRequest, type ModelRemoveRequest, type ModelSelectorRequest, type ModelSetVisibleByAttributeRequest, type ModelSetVisibleByTagsRequest, type ModelSetVisibleRequest, ModelTransform, type ModelTransformNodeRequest, type ModelTransformRestoreRequest, type ModelTransformRotateByTargetRequest, type ModelTransformRotateRequest, type ModelTransformScaleRequest, type ModelTransformStartMoveRequest, ModelTransformType, Navigation, type NavigationMeshNavRequest, type NavigationNavByPathRequest, type NavigationNodeRequest, type NavigationUpdateMeshNavRequest, type NavigationUpdateNavPathRequest, type NavigationUpdateSpeedRequest, type NetworkAdaptationActionResult, type NetworkAdaptationActionStep, type NetworkAdaptationActionType, type NetworkAdaptationLevel, type NetworkAdaptationMode, type NetworkAdaptationState, type NetworkDecisionTrace, type NetworkDiagnosticsSnapshot, type NetworkMetricsSnapshot, PathPatrol, type PathPatrolAddRequest, type PathPatrolNodeRequest, type PathPatrolSetTimeNodeRequest, type PathPatrolUpdateRequest, PendingValidationSchemaMap, PointIcon, type PointIconIdsInput, type PointIconIdsRequest, type PointIconVisibilityResult, Popup, type PopupAddRequest, type PopupDelayRequest, type PopupItemRequest, type PopupRemoveRequest, type PopupShowDistanceRequest, type PopupShowRequest, type PopupSyncInfoRequest, type QOS_EVENT_NAMES, type QosEvent, type QosEventName, type QosLevel, type QosReportingPayload, type QosRuntimeContext, type QosSessionContext, type QosStage, type QosStatus, type QosWarnErrorSummary, type ResolvedEngineConfig, SDKValidationError, Scene, type SceneListenCompassRequest, type SceneSwitchRequest, Screen, ScreenRenderBitratePreset, ScreenRenderBitratePresetOptions, type ScreenRenderBitratePresetValueMap, type ScreenSetSceneFPSRequest, type ScreenSetSceneRenderBitrateRequest, type ScreenSetScreenResolutionRequest, type ScreenSetVideoDecodeRequest, Season, type SignallingAllocateResponse, SpatialQuery, type SpatialQueryLayerByModelBoxRequest, type SpatialQueryLayerByModelRequest, type SpatialQueryLayerByPositionRequest, type StandardResponse, TimeLine, type TimeSerialNode, type TimelineNodeRequest, type TimelinePlayRequest, type TimelineSetSpeedRequest, type TimelineStopRequest, TrainBehavior, TrainSimulate, type TrainSimulateSetCameraFollowTrainRequest, type TrainSimulateSetTrainBehaviorRequest, type TrainSimulateSetTrainVolumeRequest, type TrainSimulateStartTrainRequest, UIPOI, type UIPOIAddRequest, type UIPOIDeleteByGroupRequest, type UIPOIDeleteByIdRequest, type UIPOIEnableOverlapRequest, type UIPOIShowDistanceRequest, type UIPOIUpdateRequest, type UIPOIUpdateStateRequest, type Vector2Input, type Vector2JsonInput, type Vector3Input, type Vector3JsonInput, VideoCodeType, type WeatherChangeSeasonRequest, type WeatherOpenCameraFogRequest, type WeatherSetAnimateTimeOfDayRequest, type WeatherSetDayAndNightRequest, type WeatherSetSceneTimeRequest, type WeatherSetTimeSyncRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|