@nnepoch/dtc-sdk 3.0.9 → 3.0.11
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.11.js +2 -0
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.d.cts +131 -28
- package/dist/esm/index.d.ts +131 -28
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/dist/browser/dtc-sdk-3.0.9.js +0 -2
package/dist/cjs/index.d.cts
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
|
*/
|
|
@@ -1345,10 +1367,9 @@ interface LayerChildElementRequest {
|
|
|
1345
1367
|
*/
|
|
1346
1368
|
interface WeatherTypeRequest {
|
|
1347
1369
|
/** 天气类型名称。 */
|
|
1348
|
-
|
|
1370
|
+
weatherType: string;
|
|
1349
1371
|
/** 天气类型持续时间(秒)。 */
|
|
1350
1372
|
timeDuration: number;
|
|
1351
|
-
test?: string;
|
|
1352
1373
|
}
|
|
1353
1374
|
/**
|
|
1354
1375
|
* WeatherSystem.changeWeatherType 参数。
|
|
@@ -1370,6 +1391,13 @@ interface WeatherSetTimeSyncRequest {
|
|
|
1370
1391
|
/** 是否同步系统时间。 */
|
|
1371
1392
|
syncSystemTime?: boolean;
|
|
1372
1393
|
}
|
|
1394
|
+
/**
|
|
1395
|
+
* WeatherSystem.setWeatherVolume 参数。
|
|
1396
|
+
*/
|
|
1397
|
+
interface WeatherSetVolumeRequest {
|
|
1398
|
+
/** 天气声音是否开启,true 开启,false 关闭。默认 true。 */
|
|
1399
|
+
volumeOn?: boolean;
|
|
1400
|
+
}
|
|
1373
1401
|
/**
|
|
1374
1402
|
* WeatherSystem.setAnimateTimeOfDay 参数。
|
|
1375
1403
|
*/
|
|
@@ -3577,7 +3605,7 @@ declare class Scene extends BaseApi {
|
|
|
3577
3605
|
/**
|
|
3578
3606
|
* 场景图层对象管理 API。
|
|
3579
3607
|
* @agentTitle 图层管理
|
|
3580
|
-
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除,
|
|
3608
|
+
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除, 图层子对象查询, POI名称更新, POI名称重置
|
|
3581
3609
|
* @hideconstructor
|
|
3582
3610
|
*/
|
|
3583
3611
|
declare class Layer extends BaseApi {
|
|
@@ -3743,6 +3771,57 @@ declare class Layer extends BaseApi {
|
|
|
3743
3771
|
* ```
|
|
3744
3772
|
*/
|
|
3745
3773
|
addPOI(payload: LayerPOIAddRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3774
|
+
/**
|
|
3775
|
+
* 更新 POI 气泡的显示文本。
|
|
3776
|
+
* 默认值:`updateType='update'`。`updateType` 支持 `update` 更新、`append` 追加、`remove` 移除。
|
|
3777
|
+
* @param payload - POI 文本更新参数。
|
|
3778
|
+
* @param callback - 可选回调函数。
|
|
3779
|
+
* @returns Promise 形式的接口响应。
|
|
3780
|
+
* @agentSideEffects write
|
|
3781
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3782
|
+
* @agentRiskLevel low
|
|
3783
|
+
* @agentExample { parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: 'update' }
|
|
3784
|
+
* @example
|
|
3785
|
+
* ```ts
|
|
3786
|
+
* 示例1: 追加文本
|
|
3787
|
+
dtcEngine.Layer.updatePOIName(
|
|
3788
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "append" },
|
|
3789
|
+
(result) => { console.log(result); }
|
|
3790
|
+
);
|
|
3791
|
+
|
|
3792
|
+
|
|
3793
|
+
* 示例2: 移除文本
|
|
3794
|
+
dtcEngine.Layer.updatePOIName(
|
|
3795
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "remove" },
|
|
3796
|
+
(result) => { console.log(result); }
|
|
3797
|
+
);
|
|
3798
|
+
* 示例3: 更新文本
|
|
3799
|
+
dtcEngine.Layer.updatePOIName(
|
|
3800
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "update" },
|
|
3801
|
+
(result) => { console.log(result); }
|
|
3802
|
+
);
|
|
3803
|
+
* ```
|
|
3804
|
+
*/
|
|
3805
|
+
updatePOIName(payload: LayerUpdatePOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3806
|
+
/***
|
|
3807
|
+
* 重置 POI 气泡的显示文本。
|
|
3808
|
+
* `ids` 为 POI 对象编号集合,至少一个。
|
|
3809
|
+
* @param payload - POI 文本重置参数。
|
|
3810
|
+
* @param callback - 可选回调函数。
|
|
3811
|
+
* @returns Promise 形式的接口响应。
|
|
3812
|
+
* @agentSideEffects write
|
|
3813
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3814
|
+
* @agentRiskLevel low
|
|
3815
|
+
* @agentExample { parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] }
|
|
3816
|
+
* @example
|
|
3817
|
+
* ```ts
|
|
3818
|
+
dtcEngine.Layer.resetPOIName(
|
|
3819
|
+
{ parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] },
|
|
3820
|
+
(result) => { console.log(result); }
|
|
3821
|
+
);
|
|
3822
|
+
* ```
|
|
3823
|
+
*/
|
|
3824
|
+
resetPOIName(payload: LayerResetPOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3746
3825
|
/**
|
|
3747
3826
|
* 删除图层下指定模型资源。
|
|
3748
3827
|
* @param payload - 模型删除参数。
|
|
@@ -5478,7 +5557,7 @@ declare class TimeLine extends BaseApi {
|
|
|
5478
5557
|
/**
|
|
5479
5558
|
* 天气与时间环境控制 API。
|
|
5480
5559
|
* @agentTitle 天气时间环境
|
|
5481
|
-
* @agentCapabilities 天气类型查询, 天气切换, 天气重置, 天气时间重置, 场景时间设置, 时间同步控制, 昼夜动画控制, 昼夜模式设置, 季节切换, 季节重置, 雾效开启,
|
|
5560
|
+
* @agentCapabilities 天气类型查询, 天气切换, 天气重置, 天气时间重置, 场景时间设置, 时间同步控制, 昼夜动画控制, 昼夜模式设置, 季节切换, 季节重置, 雾效开启, 雾效关闭, 天气音量控制
|
|
5482
5561
|
* @hideconstructor
|
|
5483
5562
|
*/
|
|
5484
5563
|
declare class WeatherSystem extends BaseApi {
|
|
@@ -5488,33 +5567,33 @@ declare class WeatherSystem extends BaseApi {
|
|
|
5488
5567
|
* @param payload - 天气类型参数。
|
|
5489
5568
|
* @param callback - 可选回调函数。
|
|
5490
5569
|
* @returns Promise 形式的接口响应。
|
|
5491
|
-
|
|
5492
|
-
|
|
5570
|
+
* @agentSideEffects write
|
|
5571
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5493
5572
|
* @agentRiskLevel low
|
|
5494
|
-
* @agentExample {
|
|
5573
|
+
* @agentExample { weatherType: 'Clear_Skies', timeDuration: 6 }
|
|
5495
5574
|
* @example
|
|
5496
5575
|
* ```ts
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5576
|
+
dtcEngine.WeatherSystem.changeWeatherType({ weatherType: 'Clear_Skies', timeDuration: 6 }, (result) => {
|
|
5577
|
+
console.log(result);
|
|
5578
|
+
});
|
|
5500
5579
|
* ```
|
|
5501
5580
|
*/
|
|
5502
5581
|
changeWeatherType(payload: WeatherTypeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5503
5582
|
/**
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5583
|
+
* 得到所有天气类型。
|
|
5584
|
+
* 备注:(需在配置 提前预制UDS天气系统)
|
|
5585
|
+
* @param param 参数
|
|
5586
|
+
* @param callBack 回调
|
|
5587
|
+
* @returns
|
|
5588
|
+
* @agentSideEffects read
|
|
5589
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5590
|
+
* @agentRiskLevel low
|
|
5591
|
+
* @agentExample {}
|
|
5592
|
+
* @example
|
|
5593
|
+
* ```
|
|
5594
|
+
dtcEngine.WeatherSystem.getWeatherTypes((result)=>{console.log(result)})
|
|
5595
|
+
* ```
|
|
5596
|
+
*/
|
|
5518
5597
|
getWeatherTypes(callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5519
5598
|
/**
|
|
5520
5599
|
* 重置天气
|
|
@@ -5670,6 +5749,29 @@ declare class WeatherSystem extends BaseApi {
|
|
|
5670
5749
|
* ```
|
|
5671
5750
|
*/
|
|
5672
5751
|
setDayAndNight(payload: WeatherSetDayAndNightRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5752
|
+
/**
|
|
5753
|
+
* 设置天气声音的开关。
|
|
5754
|
+
* 默认值:`volumeOn=true`。`true` 开启,`false` 关闭。
|
|
5755
|
+
* @param payload - 天气声音开关参数。
|
|
5756
|
+
* @param callback - 可选回调函数。
|
|
5757
|
+
* @returns Promise 形式的接口响应。
|
|
5758
|
+
* @agentSideEffects write
|
|
5759
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5760
|
+
* @agentRiskLevel low
|
|
5761
|
+
* @agentExample { volumeOn: false }
|
|
5762
|
+
* @example
|
|
5763
|
+
* ```ts
|
|
5764
|
+
*示例1: 关闭天气声音
|
|
5765
|
+
dtcEngine.WeatherSystem.setWeatherVolume({ volumeOn: false }, (result) => {
|
|
5766
|
+
console.log(result);
|
|
5767
|
+
});
|
|
5768
|
+
* 示例2: 开启天气声音
|
|
5769
|
+
dtcEngine.WeatherSystem.setWeatherVolume({ volumeOn: true }, (result) => {
|
|
5770
|
+
console.log(result);
|
|
5771
|
+
});
|
|
5772
|
+
* ```
|
|
5773
|
+
*/
|
|
5774
|
+
setWeatherVolume(payload: WeatherSetVolumeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5673
5775
|
/**
|
|
5674
5776
|
* 开启并调整相机镜头雾效。
|
|
5675
5777
|
* 默认值:未填的数值字段统一按 `-1` 下发(沿用 sdk2 语义)。
|
|
@@ -5916,13 +6018,14 @@ declare class TrainSimulate extends BaseApi {
|
|
|
5916
6018
|
* @agentSideEffects write
|
|
5917
6019
|
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5918
6020
|
* @agentRiskLevel low
|
|
5919
|
-
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', volumeOn: false }
|
|
6021
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', volumeOn: false }
|
|
5920
6022
|
* @example
|
|
5921
6023
|
* ```ts
|
|
5922
6024
|
dtcEngine.TrainSimulate.setTrainVolume(
|
|
5923
6025
|
{ parentId: '', id: 'Train1', volumeOn: false },
|
|
5924
6026
|
(result) => { console.log(result); }
|
|
5925
6027
|
);
|
|
6028
|
+
// 响应示例:{ code: 0, message: 'success', data: null }
|
|
5926
6029
|
* ```
|
|
5927
6030
|
*/
|
|
5928
6031
|
setTrainVolume(payload: TrainSimulateSetTrainVolumeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
@@ -7046,4 +7149,4 @@ declare class SDKValidationError extends Error {
|
|
|
7046
7149
|
toJSON(): Record<string, unknown>;
|
|
7047
7150
|
}
|
|
7048
7151
|
//#endregion
|
|
7049
|
-
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 };
|
|
7152
|
+
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, type WeatherSetVolumeRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|
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
|
*/
|
|
@@ -1345,10 +1367,9 @@ interface LayerChildElementRequest {
|
|
|
1345
1367
|
*/
|
|
1346
1368
|
interface WeatherTypeRequest {
|
|
1347
1369
|
/** 天气类型名称。 */
|
|
1348
|
-
|
|
1370
|
+
weatherType: string;
|
|
1349
1371
|
/** 天气类型持续时间(秒)。 */
|
|
1350
1372
|
timeDuration: number;
|
|
1351
|
-
test?: string;
|
|
1352
1373
|
}
|
|
1353
1374
|
/**
|
|
1354
1375
|
* WeatherSystem.changeWeatherType 参数。
|
|
@@ -1370,6 +1391,13 @@ interface WeatherSetTimeSyncRequest {
|
|
|
1370
1391
|
/** 是否同步系统时间。 */
|
|
1371
1392
|
syncSystemTime?: boolean;
|
|
1372
1393
|
}
|
|
1394
|
+
/**
|
|
1395
|
+
* WeatherSystem.setWeatherVolume 参数。
|
|
1396
|
+
*/
|
|
1397
|
+
interface WeatherSetVolumeRequest {
|
|
1398
|
+
/** 天气声音是否开启,true 开启,false 关闭。默认 true。 */
|
|
1399
|
+
volumeOn?: boolean;
|
|
1400
|
+
}
|
|
1373
1401
|
/**
|
|
1374
1402
|
* WeatherSystem.setAnimateTimeOfDay 参数。
|
|
1375
1403
|
*/
|
|
@@ -3577,7 +3605,7 @@ declare class Scene extends BaseApi {
|
|
|
3577
3605
|
/**
|
|
3578
3606
|
* 场景图层对象管理 API。
|
|
3579
3607
|
* @agentTitle 图层管理
|
|
3580
|
-
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除,
|
|
3608
|
+
* @agentCapabilities 图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除, 图层子对象查询, POI名称更新, POI名称重置
|
|
3581
3609
|
* @hideconstructor
|
|
3582
3610
|
*/
|
|
3583
3611
|
declare class Layer extends BaseApi {
|
|
@@ -3743,6 +3771,57 @@ declare class Layer extends BaseApi {
|
|
|
3743
3771
|
* ```
|
|
3744
3772
|
*/
|
|
3745
3773
|
addPOI(payload: LayerPOIAddRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3774
|
+
/**
|
|
3775
|
+
* 更新 POI 气泡的显示文本。
|
|
3776
|
+
* 默认值:`updateType='update'`。`updateType` 支持 `update` 更新、`append` 追加、`remove` 移除。
|
|
3777
|
+
* @param payload - POI 文本更新参数。
|
|
3778
|
+
* @param callback - 可选回调函数。
|
|
3779
|
+
* @returns Promise 形式的接口响应。
|
|
3780
|
+
* @agentSideEffects write
|
|
3781
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3782
|
+
* @agentRiskLevel low
|
|
3783
|
+
* @agentExample { parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: 'update' }
|
|
3784
|
+
* @example
|
|
3785
|
+
* ```ts
|
|
3786
|
+
* 示例1: 追加文本
|
|
3787
|
+
dtcEngine.Layer.updatePOIName(
|
|
3788
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "append" },
|
|
3789
|
+
(result) => { console.log(result); }
|
|
3790
|
+
);
|
|
3791
|
+
|
|
3792
|
+
|
|
3793
|
+
* 示例2: 移除文本
|
|
3794
|
+
dtcEngine.Layer.updatePOIName(
|
|
3795
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "remove" },
|
|
3796
|
+
(result) => { console.log(result); }
|
|
3797
|
+
);
|
|
3798
|
+
* 示例3: 更新文本
|
|
3799
|
+
dtcEngine.Layer.updatePOIName(
|
|
3800
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "update" },
|
|
3801
|
+
(result) => { console.log(result); }
|
|
3802
|
+
);
|
|
3803
|
+
* ```
|
|
3804
|
+
*/
|
|
3805
|
+
updatePOIName(payload: LayerUpdatePOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3806
|
+
/***
|
|
3807
|
+
* 重置 POI 气泡的显示文本。
|
|
3808
|
+
* `ids` 为 POI 对象编号集合,至少一个。
|
|
3809
|
+
* @param payload - POI 文本重置参数。
|
|
3810
|
+
* @param callback - 可选回调函数。
|
|
3811
|
+
* @returns Promise 形式的接口响应。
|
|
3812
|
+
* @agentSideEffects write
|
|
3813
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
3814
|
+
* @agentRiskLevel low
|
|
3815
|
+
* @agentExample { parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] }
|
|
3816
|
+
* @example
|
|
3817
|
+
* ```ts
|
|
3818
|
+
dtcEngine.Layer.resetPOIName(
|
|
3819
|
+
{ parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] },
|
|
3820
|
+
(result) => { console.log(result); }
|
|
3821
|
+
);
|
|
3822
|
+
* ```
|
|
3823
|
+
*/
|
|
3824
|
+
resetPOIName(payload: LayerResetPOINameRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
3746
3825
|
/**
|
|
3747
3826
|
* 删除图层下指定模型资源。
|
|
3748
3827
|
* @param payload - 模型删除参数。
|
|
@@ -5478,7 +5557,7 @@ declare class TimeLine extends BaseApi {
|
|
|
5478
5557
|
/**
|
|
5479
5558
|
* 天气与时间环境控制 API。
|
|
5480
5559
|
* @agentTitle 天气时间环境
|
|
5481
|
-
* @agentCapabilities 天气类型查询, 天气切换, 天气重置, 天气时间重置, 场景时间设置, 时间同步控制, 昼夜动画控制, 昼夜模式设置, 季节切换, 季节重置, 雾效开启,
|
|
5560
|
+
* @agentCapabilities 天气类型查询, 天气切换, 天气重置, 天气时间重置, 场景时间设置, 时间同步控制, 昼夜动画控制, 昼夜模式设置, 季节切换, 季节重置, 雾效开启, 雾效关闭, 天气音量控制
|
|
5482
5561
|
* @hideconstructor
|
|
5483
5562
|
*/
|
|
5484
5563
|
declare class WeatherSystem extends BaseApi {
|
|
@@ -5488,33 +5567,33 @@ declare class WeatherSystem extends BaseApi {
|
|
|
5488
5567
|
* @param payload - 天气类型参数。
|
|
5489
5568
|
* @param callback - 可选回调函数。
|
|
5490
5569
|
* @returns Promise 形式的接口响应。
|
|
5491
|
-
|
|
5492
|
-
|
|
5570
|
+
* @agentSideEffects write
|
|
5571
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5493
5572
|
* @agentRiskLevel low
|
|
5494
|
-
* @agentExample {
|
|
5573
|
+
* @agentExample { weatherType: 'Clear_Skies', timeDuration: 6 }
|
|
5495
5574
|
* @example
|
|
5496
5575
|
* ```ts
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5576
|
+
dtcEngine.WeatherSystem.changeWeatherType({ weatherType: 'Clear_Skies', timeDuration: 6 }, (result) => {
|
|
5577
|
+
console.log(result);
|
|
5578
|
+
});
|
|
5500
5579
|
* ```
|
|
5501
5580
|
*/
|
|
5502
5581
|
changeWeatherType(payload: WeatherTypeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5503
5582
|
/**
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5583
|
+
* 得到所有天气类型。
|
|
5584
|
+
* 备注:(需在配置 提前预制UDS天气系统)
|
|
5585
|
+
* @param param 参数
|
|
5586
|
+
* @param callBack 回调
|
|
5587
|
+
* @returns
|
|
5588
|
+
* @agentSideEffects read
|
|
5589
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5590
|
+
* @agentRiskLevel low
|
|
5591
|
+
* @agentExample {}
|
|
5592
|
+
* @example
|
|
5593
|
+
* ```
|
|
5594
|
+
dtcEngine.WeatherSystem.getWeatherTypes((result)=>{console.log(result)})
|
|
5595
|
+
* ```
|
|
5596
|
+
*/
|
|
5518
5597
|
getWeatherTypes(callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5519
5598
|
/**
|
|
5520
5599
|
* 重置天气
|
|
@@ -5670,6 +5749,29 @@ declare class WeatherSystem extends BaseApi {
|
|
|
5670
5749
|
* ```
|
|
5671
5750
|
*/
|
|
5672
5751
|
setDayAndNight(payload: WeatherSetDayAndNightRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5752
|
+
/**
|
|
5753
|
+
* 设置天气声音的开关。
|
|
5754
|
+
* 默认值:`volumeOn=true`。`true` 开启,`false` 关闭。
|
|
5755
|
+
* @param payload - 天气声音开关参数。
|
|
5756
|
+
* @param callback - 可选回调函数。
|
|
5757
|
+
* @returns Promise 形式的接口响应。
|
|
5758
|
+
* @agentSideEffects write
|
|
5759
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5760
|
+
* @agentRiskLevel low
|
|
5761
|
+
* @agentExample { volumeOn: false }
|
|
5762
|
+
* @example
|
|
5763
|
+
* ```ts
|
|
5764
|
+
*示例1: 关闭天气声音
|
|
5765
|
+
dtcEngine.WeatherSystem.setWeatherVolume({ volumeOn: false }, (result) => {
|
|
5766
|
+
console.log(result);
|
|
5767
|
+
});
|
|
5768
|
+
* 示例2: 开启天气声音
|
|
5769
|
+
dtcEngine.WeatherSystem.setWeatherVolume({ volumeOn: true }, (result) => {
|
|
5770
|
+
console.log(result);
|
|
5771
|
+
});
|
|
5772
|
+
* ```
|
|
5773
|
+
*/
|
|
5774
|
+
setWeatherVolume(payload: WeatherSetVolumeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
5673
5775
|
/**
|
|
5674
5776
|
* 开启并调整相机镜头雾效。
|
|
5675
5777
|
* 默认值:未填的数值字段统一按 `-1` 下发(沿用 sdk2 语义)。
|
|
@@ -5916,13 +6018,14 @@ declare class TrainSimulate extends BaseApi {
|
|
|
5916
6018
|
* @agentSideEffects write
|
|
5917
6019
|
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
5918
6020
|
* @agentRiskLevel low
|
|
5919
|
-
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', volumeOn: false }
|
|
6021
|
+
* @agentExample { parentId: 'RailTrains', id: 'DTrain1', volumeOn: false }
|
|
5920
6022
|
* @example
|
|
5921
6023
|
* ```ts
|
|
5922
6024
|
dtcEngine.TrainSimulate.setTrainVolume(
|
|
5923
6025
|
{ parentId: '', id: 'Train1', volumeOn: false },
|
|
5924
6026
|
(result) => { console.log(result); }
|
|
5925
6027
|
);
|
|
6028
|
+
// 响应示例:{ code: 0, message: 'success', data: null }
|
|
5926
6029
|
* ```
|
|
5927
6030
|
*/
|
|
5928
6031
|
setTrainVolume(payload: TrainSimulateSetTrainVolumeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
@@ -7046,4 +7149,4 @@ declare class SDKValidationError extends Error {
|
|
|
7046
7149
|
toJSON(): Record<string, unknown>;
|
|
7047
7150
|
}
|
|
7048
7151
|
//#endregion
|
|
7049
|
-
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 };
|
|
7152
|
+
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, type WeatherSetVolumeRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|