@nnepoch/dtc-sdk 3.0.0
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/README.md +298 -0
- package/dist/browser/dtc-sdk-3.0.0.js +2 -0
- package/dist/cjs/index.cjs +38 -0
- package/dist/cjs/index.d.cts +5600 -0
- package/dist/esm/index.d.ts +5600 -0
- package/dist/esm/index.js +38 -0
- package/docs/api/api/classes/Animation.md +280 -0
- package/docs/api/api/classes/ApiRegistryError.md +60 -0
- package/docs/api/api/classes/Camera.md +601 -0
- package/docs/api/api/classes/Connect.md +257 -0
- package/docs/api/api/classes/Dlss.md +67 -0
- package/docs/api/api/classes/HighLighterEffect.md +173 -0
- package/docs/api/api/classes/Layer.md +444 -0
- package/docs/api/api/classes/Model.md +193 -0
- package/docs/api/api/classes/ModelPOI.md +279 -0
- package/docs/api/api/classes/ModelTransform.md +579 -0
- package/docs/api/api/classes/PathPatrol.md +337 -0
- package/docs/api/api/classes/Popup.md +323 -0
- package/docs/api/api/classes/Scene.md +272 -0
- package/docs/api/api/classes/Screen.md +157 -0
- package/docs/api/api/classes/TimeLine.md +274 -0
- package/docs/api/api/classes/UIPOI.md +318 -0
- package/docs/api/api/classes/WeatherSystem.md +581 -0
- package/docs/api/api/functions/createApiFacade.md +20 -0
- package/docs/api/api/index.md +45 -0
- package/docs/api/api/interfaces/ApiInstanceMap.md +107 -0
- package/docs/api/api/interfaces/ApiRegistryContext.md +47 -0
- package/docs/api/api/type-aliases/ApiFacade.md +7 -0
- package/docs/api/api/type-aliases/ApiModuleFactory.md +23 -0
- package/docs/api/api/type-aliases/ApiModuleKey.md +5 -0
- package/docs/api/api/type-aliases/ApiRegistry.md +7 -0
- package/docs/api/api/variables/API_MODULE_KEYS.md +5 -0
- package/docs/api/api/variables/PendingValidationSchemaMap.md +9 -0
- package/docs/api/api/variables/apiRegistry.md +7 -0
- package/docs/api/application/DTCEngine/classes/DTCEngine.md +738 -0
- package/docs/api/application/DTCEngine/index.md +11 -0
- package/docs/api/application/DTCEngine/interfaces/DTCEngineOptions.md +22 -0
- package/docs/api/index.md +7 -0
- package/docs/api/typedoc-sidebar.json +735 -0
- package/docs/api/types/enumerations/LayerEnum.md +21 -0
- package/docs/api/types/enumerations/ModelTransformType.md +251 -0
- package/docs/api/types/enumerations/VideoCodeType.md +37 -0
- package/docs/api/types/index.md +146 -0
- package/docs/api/types/interfaces/AnimationGetLengthRequest.md +29 -0
- package/docs/api/types/interfaces/AnimationPlayRequest.md +61 -0
- package/docs/api/types/interfaces/AnimationSetSpeedRequest.md +29 -0
- package/docs/api/types/interfaces/AnimationStartLoopRequest.md +53 -0
- package/docs/api/types/interfaces/AnimationStopLoopRequest.md +21 -0
- package/docs/api/types/interfaces/AnimationStopRequest.md +21 -0
- package/docs/api/types/interfaces/ApiRequestEnvelope.md +45 -0
- package/docs/api/types/interfaces/ApiResponseEnvelope.md +57 -0
- package/docs/api/types/interfaces/AuthErrorInfo.md +21 -0
- package/docs/api/types/interfaces/AuthSessionSnapshot.md +45 -0
- package/docs/api/types/interfaces/CameraFlyByPathRequest.md +37 -0
- package/docs/api/types/interfaces/CameraFlyToTargetRequest.md +29 -0
- package/docs/api/types/interfaces/CameraLookAtRequest.md +69 -0
- package/docs/api/types/interfaces/CameraObjFollowRequest.md +37 -0
- package/docs/api/types/interfaces/CameraSetFlySpeedRequest.md +13 -0
- package/docs/api/types/interfaces/CameraSetFovRequest.md +13 -0
- package/docs/api/types/interfaces/CameraSetPositionAndRotationRequest.md +21 -0
- package/docs/api/types/interfaces/CenterConnectResult.md +27 -0
- package/docs/api/types/interfaces/CenterEnvelope.md +33 -0
- package/docs/api/types/interfaces/CenterServiceInfo.md +33 -0
- package/docs/api/types/interfaces/CenterTokenAuthorizeResult.md +9 -0
- package/docs/api/types/interfaces/DlssSetEnableRequest.md +23 -0
- package/docs/api/types/interfaces/DlssSetQualityRequest.md +14 -0
- package/docs/api/types/interfaces/EngineConfig.md +127 -0
- package/docs/api/types/interfaces/EngineStatusInfo.md +59 -0
- package/docs/api/types/interfaces/FeatureToggleRequest.md +21 -0
- package/docs/api/types/interfaces/HighLighterEnableRequest.md +11 -0
- package/docs/api/types/interfaces/HighLighterRemoveHighLightModelRequest.md +21 -0
- package/docs/api/types/interfaces/HighLighterSetHighLightModelRequest.md +29 -0
- package/docs/api/types/interfaces/LayerAddRequest.md +61 -0
- package/docs/api/types/interfaces/LayerChildElementRequest.md +21 -0
- package/docs/api/types/interfaces/LayerModelAddRequest.md +75 -0
- package/docs/api/types/interfaces/LayerModelRemoveRequest.md +21 -0
- package/docs/api/types/interfaces/LayerPOIAddRequest.md +117 -0
- package/docs/api/types/interfaces/LayerSelectorRequest.md +21 -0
- package/docs/api/types/interfaces/LayerShowUIPopRequest.md +51 -0
- package/docs/api/types/interfaces/LayerSwitchModelRequest.md +29 -0
- package/docs/api/types/interfaces/ModelAddRequest.md +61 -0
- package/docs/api/types/interfaces/ModelBoundsRequest.md +21 -0
- package/docs/api/types/interfaces/ModelPOIAddRequest.md +53 -0
- package/docs/api/types/interfaces/ModelPOIDeleteByGroupRequest.md +13 -0
- package/docs/api/types/interfaces/ModelPOIDeleteByIdRequest.md +21 -0
- package/docs/api/types/interfaces/ModelPOIGetInfoRequest.md +21 -0
- package/docs/api/types/interfaces/ModelPOIUpdateRequest.md +53 -0
- package/docs/api/types/interfaces/ModelPOIVisibleByGroupRequest.md +21 -0
- package/docs/api/types/interfaces/ModelRemoveRequest.md +21 -0
- package/docs/api/types/interfaces/ModelSelectorRequest.md +21 -0
- package/docs/api/types/interfaces/ModelSetVisibleByTagsRequest.md +21 -0
- package/docs/api/types/interfaces/ModelSetVisibleRequest.md +29 -0
- package/docs/api/types/interfaces/ModelTransformNodeRequest.md +21 -0
- package/docs/api/types/interfaces/ModelTransformRestoreRequest.md +21 -0
- package/docs/api/types/interfaces/ModelTransformRotateByTargetRequest.md +85 -0
- package/docs/api/types/interfaces/ModelTransformRotateRequest.md +29 -0
- package/docs/api/types/interfaces/ModelTransformScaleRequest.md +37 -0
- package/docs/api/types/interfaces/ModelTransformStartMoveRequest.md +61 -0
- package/docs/api/types/interfaces/NetworkAdaptationActionResult.md +47 -0
- package/docs/api/types/interfaces/NetworkAdaptationActionStep.md +29 -0
- package/docs/api/types/interfaces/NetworkAdaptationState.md +41 -0
- package/docs/api/types/interfaces/NetworkDecisionTrace.md +53 -0
- package/docs/api/types/interfaces/NetworkDiagnosticsSnapshot.md +53 -0
- package/docs/api/types/interfaces/NetworkMetricsSnapshot.md +59 -0
- package/docs/api/types/interfaces/PathPatrolAddRequest.md +109 -0
- package/docs/api/types/interfaces/PathPatrolNodeRequest.md +21 -0
- package/docs/api/types/interfaces/PathPatrolSetTimeNodeRequest.md +37 -0
- package/docs/api/types/interfaces/PathPatrolUpdateRequest.md +53 -0
- package/docs/api/types/interfaces/PopupAddRequest.md +21 -0
- package/docs/api/types/interfaces/PopupDelayRequest.md +13 -0
- package/docs/api/types/interfaces/PopupItemRequest.md +61 -0
- package/docs/api/types/interfaces/PopupRemoveRequest.md +21 -0
- package/docs/api/types/interfaces/PopupShowDistanceRequest.md +13 -0
- package/docs/api/types/interfaces/PopupShowRequest.md +29 -0
- package/docs/api/types/interfaces/PopupSyncInfoRequest.md +37 -0
- package/docs/api/types/interfaces/QosEvent.md +65 -0
- package/docs/api/types/interfaces/QosReportingPayload.md +47 -0
- package/docs/api/types/interfaces/QosRuntimeContext.md +29 -0
- package/docs/api/types/interfaces/QosSessionContext.md +29 -0
- package/docs/api/types/interfaces/QosWarnErrorSummary.md +37 -0
- package/docs/api/types/interfaces/ResolvedEngineConfig.md +123 -0
- package/docs/api/types/interfaces/SceneListenCompassRequest.md +13 -0
- package/docs/api/types/interfaces/SceneSwitchRequest.md +13 -0
- package/docs/api/types/interfaces/ScreenSetSceneFPSRequest.md +14 -0
- package/docs/api/types/interfaces/ScreenSetSceneRenderBitrateRequest.md +15 -0
- package/docs/api/types/interfaces/ScreenSetScreenResolutionRequest.md +23 -0
- package/docs/api/types/interfaces/ScreenSetVideoDecodeRequest.md +13 -0
- package/docs/api/types/interfaces/SignallingAllocateResponse.md +27 -0
- package/docs/api/types/interfaces/StandardResponse.md +33 -0
- package/docs/api/types/interfaces/TimeSerialNode.md +21 -0
- package/docs/api/types/interfaces/TimelineNodeRequest.md +21 -0
- package/docs/api/types/interfaces/TimelinePlayRequest.md +53 -0
- package/docs/api/types/interfaces/TimelineSetSpeedRequest.md +37 -0
- package/docs/api/types/interfaces/TimelineStopRequest.md +45 -0
- package/docs/api/types/interfaces/UIPOIAddRequest.md +21 -0
- package/docs/api/types/interfaces/UIPOIDeleteByGroupRequest.md +13 -0
- package/docs/api/types/interfaces/UIPOIDeleteByIdRequest.md +21 -0
- package/docs/api/types/interfaces/UIPOIEnableOverlapRequest.md +13 -0
- package/docs/api/types/interfaces/UIPOIShowDistanceRequest.md +13 -0
- package/docs/api/types/interfaces/UIPOIUpdateRequest.md +21 -0
- package/docs/api/types/interfaces/UIPOIUpdateStateRequest.md +21 -0
- package/docs/api/types/interfaces/Vector3JsonInput.md +27 -0
- package/docs/api/types/interfaces/WeatherChangeSeasonRequest.md +21 -0
- package/docs/api/types/interfaces/WeatherOpenCameraFogRequest.md +69 -0
- package/docs/api/types/interfaces/WeatherSetAnimateTimeOfDayRequest.md +29 -0
- package/docs/api/types/interfaces/WeatherSetDayAndNightRequest.md +13 -0
- package/docs/api/types/interfaces/WeatherSetSceneTimeRequest.md +21 -0
- package/docs/api/types/interfaces/WeatherSetTimeSyncRequest.md +13 -0
- package/docs/api/types/interfaces/WeatherTypeRequest.md +27 -0
- package/docs/api/types/type-aliases/ApiCallback.md +21 -0
- package/docs/api/types/type-aliases/AuthWorkflowState.md +5 -0
- package/docs/api/types/type-aliases/DlssQuality.md +7 -0
- package/docs/api/types/type-aliases/EngineLogLevel.md +5 -0
- package/docs/api/types/type-aliases/EngineViewMode.md +5 -0
- package/docs/api/types/type-aliases/GetWeatherTypeRequest.md +7 -0
- package/docs/api/types/type-aliases/NetworkAdaptationActionType.md +7 -0
- package/docs/api/types/type-aliases/NetworkAdaptationLevel.md +7 -0
- package/docs/api/types/type-aliases/NetworkAdaptationMode.md +9 -0
- package/docs/api/types/type-aliases/QosEventName.md +9 -0
- package/docs/api/types/type-aliases/QosLevel.md +7 -0
- package/docs/api/types/type-aliases/QosStage.md +7 -0
- package/docs/api/types/type-aliases/QosStatus.md +7 -0
- package/docs/api/types/type-aliases/ScreenRenderBitratePreset.md +7 -0
- package/docs/api/types/type-aliases/Season.md +7 -0
- package/docs/api/types/type-aliases/Vector3Input.md +5 -0
- package/docs/api/types/variables/DlssQuality.md +57 -0
- package/docs/api/types/variables/QOS_EVENT_NAMES.md +7 -0
- package/docs/api/types/variables/ScreenRenderBitratePreset.md +39 -0
- package/docs/api/types/variables/ScreenRenderBitratePresetOptions.md +5 -0
- package/docs/api/types/variables/ScreenRenderBitratePresetValueMap.md +27 -0
- package/docs/api/types/variables/Season.md +33 -0
- package/package.json +86 -0
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / WeatherSystem
|
|
2
|
+
|
|
3
|
+
# Class: WeatherSystem
|
|
4
|
+
|
|
5
|
+
天气与时间环境控制 API。
|
|
6
|
+
|
|
7
|
+
## Agent Title
|
|
8
|
+
|
|
9
|
+
天气时间环境
|
|
10
|
+
|
|
11
|
+
## Agent Capabilities
|
|
12
|
+
|
|
13
|
+
天气类型查询, 天气切换, 天气重置, 天气时间重置, 场景时间设置, 时间同步控制, 昼夜动画控制, 昼夜模式设置, 季节切换, 季节重置, 雾效开启, 雾效关闭
|
|
14
|
+
|
|
15
|
+
## Extends
|
|
16
|
+
|
|
17
|
+
- `BaseApi`
|
|
18
|
+
|
|
19
|
+
## Methods
|
|
20
|
+
|
|
21
|
+
### changeWeatherType()
|
|
22
|
+
|
|
23
|
+
> **changeWeatherType**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
24
|
+
|
|
25
|
+
切换天气类型。
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
| Parameter | Type | Description |
|
|
30
|
+
| ------ | ------ | ------ |
|
|
31
|
+
| `payload` | [`WeatherTypeRequest`](../../types/interfaces/WeatherTypeRequest.md) | 天气类型参数。 |
|
|
32
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
33
|
+
|
|
34
|
+
#### Returns
|
|
35
|
+
|
|
36
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
37
|
+
|
|
38
|
+
Promise 形式的接口响应。
|
|
39
|
+
|
|
40
|
+
#### Agent Side Effects
|
|
41
|
+
|
|
42
|
+
write
|
|
43
|
+
|
|
44
|
+
#### Agent Preconditions
|
|
45
|
+
|
|
46
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
47
|
+
|
|
48
|
+
#### Agent Risk Level
|
|
49
|
+
|
|
50
|
+
low
|
|
51
|
+
|
|
52
|
+
#### Agent Example
|
|
53
|
+
|
|
54
|
+
#### Example
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
dtcEngine.WeatherSystem.changeWeatherType({ type: 0, timeDuration: 60 }, (result) => {
|
|
58
|
+
console.log(result);
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
***
|
|
63
|
+
|
|
64
|
+
### getWeatherTypes()
|
|
65
|
+
|
|
66
|
+
> **getWeatherTypes**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
67
|
+
|
|
68
|
+
得到所有天气类型
|
|
69
|
+
备注:(需在配置 提前预制UDS天气系统)
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type |
|
|
74
|
+
| ------ | ------ |
|
|
75
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> |
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
80
|
+
|
|
81
|
+
*
|
|
82
|
+
|
|
83
|
+
#### Agent Side Effects
|
|
84
|
+
|
|
85
|
+
read
|
|
86
|
+
*
|
|
87
|
+
|
|
88
|
+
#### Agent Preconditions
|
|
89
|
+
|
|
90
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
91
|
+
*
|
|
92
|
+
|
|
93
|
+
#### Agent Risk Level
|
|
94
|
+
|
|
95
|
+
low
|
|
96
|
+
*
|
|
97
|
+
|
|
98
|
+
#### Agent Example
|
|
99
|
+
|
|
100
|
+
#### Example
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
dtcEngine.WeatherSystem.getWeatherTypes((result)=>{console.log(result)})
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
***
|
|
107
|
+
|
|
108
|
+
### resetWeather()
|
|
109
|
+
|
|
110
|
+
> **resetWeather**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
111
|
+
|
|
112
|
+
重置天气
|
|
113
|
+
备注:(需在配置 提前预制UDS天气系统)
|
|
114
|
+
|
|
115
|
+
#### Parameters
|
|
116
|
+
|
|
117
|
+
| Parameter | Type |
|
|
118
|
+
| ------ | ------ |
|
|
119
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> |
|
|
120
|
+
|
|
121
|
+
#### Returns
|
|
122
|
+
|
|
123
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
124
|
+
|
|
125
|
+
*
|
|
126
|
+
|
|
127
|
+
#### Agent Side Effects
|
|
128
|
+
|
|
129
|
+
write
|
|
130
|
+
*
|
|
131
|
+
|
|
132
|
+
#### Agent Preconditions
|
|
133
|
+
|
|
134
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
135
|
+
*
|
|
136
|
+
|
|
137
|
+
#### Agent Risk Level
|
|
138
|
+
|
|
139
|
+
low
|
|
140
|
+
*
|
|
141
|
+
|
|
142
|
+
#### Agent Example
|
|
143
|
+
|
|
144
|
+
#### Example
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
dtcEngine.WeatherSystem.resetWeather((result)=>{console.log(result)})
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
***
|
|
151
|
+
|
|
152
|
+
### setSceneTime()
|
|
153
|
+
|
|
154
|
+
> **setSceneTime**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
155
|
+
|
|
156
|
+
设置场景时间(小时)。
|
|
157
|
+
|
|
158
|
+
#### Parameters
|
|
159
|
+
|
|
160
|
+
| Parameter | Type | Description |
|
|
161
|
+
| ------ | ------ | ------ |
|
|
162
|
+
| `payload` | [`WeatherSetSceneTimeRequest`](../../types/interfaces/WeatherSetSceneTimeRequest.md) | 时间参数。 |
|
|
163
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
164
|
+
|
|
165
|
+
#### Returns
|
|
166
|
+
|
|
167
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
168
|
+
|
|
169
|
+
Promise 形式的接口响应。
|
|
170
|
+
|
|
171
|
+
#### Agent Side Effects
|
|
172
|
+
|
|
173
|
+
write
|
|
174
|
+
|
|
175
|
+
#### Agent Preconditions
|
|
176
|
+
|
|
177
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
178
|
+
|
|
179
|
+
#### Agent Risk Level
|
|
180
|
+
|
|
181
|
+
low
|
|
182
|
+
|
|
183
|
+
#### Agent Example
|
|
184
|
+
|
|
185
|
+
#### Example
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
dtcEngine.WeatherSystem.setSceneTime({ hour: 10.5 }, (result) => {
|
|
189
|
+
console.log(result);
|
|
190
|
+
});
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
***
|
|
194
|
+
|
|
195
|
+
### setTimeSync()
|
|
196
|
+
|
|
197
|
+
> **setTimeSync**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
198
|
+
|
|
199
|
+
设置是否同步系统时间。
|
|
200
|
+
默认值:`syncSystemTime=false`。
|
|
201
|
+
|
|
202
|
+
#### Parameters
|
|
203
|
+
|
|
204
|
+
| Parameter | Type | Description |
|
|
205
|
+
| ------ | ------ | ------ |
|
|
206
|
+
| `payload` | [`WeatherSetTimeSyncRequest`](../../types/interfaces/WeatherSetTimeSyncRequest.md) | 时间同步开关参数。 |
|
|
207
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
208
|
+
|
|
209
|
+
#### Returns
|
|
210
|
+
|
|
211
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
212
|
+
|
|
213
|
+
Promise 形式的接口响应。
|
|
214
|
+
|
|
215
|
+
#### Agent Side Effects
|
|
216
|
+
|
|
217
|
+
write
|
|
218
|
+
|
|
219
|
+
#### Agent Preconditions
|
|
220
|
+
|
|
221
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
222
|
+
|
|
223
|
+
#### Agent Risk Level
|
|
224
|
+
|
|
225
|
+
low
|
|
226
|
+
|
|
227
|
+
#### Agent Example
|
|
228
|
+
|
|
229
|
+
#### Example
|
|
230
|
+
|
|
231
|
+
```ts
|
|
232
|
+
dtcEngine.WeatherSystem.setTimeSync({ syncSystemTime: true }, (result) => {
|
|
233
|
+
console.log(result);
|
|
234
|
+
});
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
***
|
|
238
|
+
|
|
239
|
+
### resetSceneTime()
|
|
240
|
+
|
|
241
|
+
> **resetSceneTime**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
242
|
+
|
|
243
|
+
重置场景时间。
|
|
244
|
+
|
|
245
|
+
#### Parameters
|
|
246
|
+
|
|
247
|
+
| Parameter | Type | Description |
|
|
248
|
+
| ------ | ------ | ------ |
|
|
249
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
250
|
+
|
|
251
|
+
#### Returns
|
|
252
|
+
|
|
253
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
254
|
+
|
|
255
|
+
Promise 形式的接口响应。
|
|
256
|
+
|
|
257
|
+
#### Agent Side Effects
|
|
258
|
+
|
|
259
|
+
write
|
|
260
|
+
|
|
261
|
+
#### Agent Preconditions
|
|
262
|
+
|
|
263
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
264
|
+
|
|
265
|
+
#### Agent Risk Level
|
|
266
|
+
|
|
267
|
+
low
|
|
268
|
+
|
|
269
|
+
#### Agent Example
|
|
270
|
+
|
|
271
|
+
#### Example
|
|
272
|
+
|
|
273
|
+
```ts
|
|
274
|
+
dtcEngine.WeatherSystem.resetSceneTime((result) => {
|
|
275
|
+
console.log(result);
|
|
276
|
+
});
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
***
|
|
280
|
+
|
|
281
|
+
### setAnimateTimeOfDay()
|
|
282
|
+
|
|
283
|
+
> **setAnimateTimeOfDay**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
284
|
+
|
|
285
|
+
设置是否模拟白天,黑夜轮换动画。
|
|
286
|
+
默认值:`syncSystemTime=false`。
|
|
287
|
+
|
|
288
|
+
#### Parameters
|
|
289
|
+
|
|
290
|
+
| Parameter | Type | Description |
|
|
291
|
+
| ------ | ------ | ------ |
|
|
292
|
+
| `payload` | [`WeatherSetAnimateTimeOfDayRequest`](../../types/interfaces/WeatherSetAnimateTimeOfDayRequest.md) | 时间同步开关参数。 |
|
|
293
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
294
|
+
|
|
295
|
+
#### Returns
|
|
296
|
+
|
|
297
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
298
|
+
|
|
299
|
+
Promise 形式的接口响应。
|
|
300
|
+
|
|
301
|
+
#### Agent Side Effects
|
|
302
|
+
|
|
303
|
+
write
|
|
304
|
+
|
|
305
|
+
#### Agent Preconditions
|
|
306
|
+
|
|
307
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
308
|
+
|
|
309
|
+
#### Agent Risk Level
|
|
310
|
+
|
|
311
|
+
low
|
|
312
|
+
|
|
313
|
+
#### Agent Example
|
|
314
|
+
|
|
315
|
+
#### Example
|
|
316
|
+
|
|
317
|
+
```ts
|
|
318
|
+
dtcEngine.WeatherSystem.setAnimateTimeOfDay({ isAnimate: true,dayLength:0.5,nightLength:0.5 },(result) => {
|
|
319
|
+
console.log(result);
|
|
320
|
+
});
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
***
|
|
324
|
+
|
|
325
|
+
### resetWeatherAndTime()
|
|
326
|
+
|
|
327
|
+
> **resetWeatherAndTime**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
328
|
+
|
|
329
|
+
场景天气和时间重置
|
|
330
|
+
默认值:`syncSystemTime=false`。
|
|
331
|
+
|
|
332
|
+
#### Parameters
|
|
333
|
+
|
|
334
|
+
| Parameter | Type | Description |
|
|
335
|
+
| ------ | ------ | ------ |
|
|
336
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
337
|
+
|
|
338
|
+
#### Returns
|
|
339
|
+
|
|
340
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
341
|
+
|
|
342
|
+
Promise 形式的接口响应。
|
|
343
|
+
*
|
|
344
|
+
|
|
345
|
+
#### Agent Side Effects
|
|
346
|
+
|
|
347
|
+
write
|
|
348
|
+
*
|
|
349
|
+
|
|
350
|
+
#### Agent Preconditions
|
|
351
|
+
|
|
352
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
353
|
+
*
|
|
354
|
+
|
|
355
|
+
#### Agent Risk Level
|
|
356
|
+
|
|
357
|
+
low
|
|
358
|
+
*
|
|
359
|
+
|
|
360
|
+
#### Agent Example
|
|
361
|
+
|
|
362
|
+
#### Example
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
dtcEngine.WeatherSystem.resetWeatherAndTime({ (result) => {
|
|
366
|
+
console.log(result);
|
|
367
|
+
});
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
***
|
|
371
|
+
|
|
372
|
+
### changeSeason()
|
|
373
|
+
|
|
374
|
+
> **changeSeason**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
375
|
+
|
|
376
|
+
切换场景季节状态。
|
|
377
|
+
|
|
378
|
+
#### Parameters
|
|
379
|
+
|
|
380
|
+
| Parameter | Type | Description |
|
|
381
|
+
| ------ | ------ | ------ |
|
|
382
|
+
| `payload` | [`WeatherChangeSeasonRequest`](../../types/interfaces/WeatherChangeSeasonRequest.md) | 季节切换参数。 |
|
|
383
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
384
|
+
|
|
385
|
+
#### Returns
|
|
386
|
+
|
|
387
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
388
|
+
|
|
389
|
+
Promise 形式的接口响应。
|
|
390
|
+
|
|
391
|
+
#### Agent Side Effects
|
|
392
|
+
|
|
393
|
+
write
|
|
394
|
+
|
|
395
|
+
#### Agent Preconditions
|
|
396
|
+
|
|
397
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
398
|
+
|
|
399
|
+
#### Agent Risk Level
|
|
400
|
+
|
|
401
|
+
low
|
|
402
|
+
|
|
403
|
+
#### Agent Example
|
|
404
|
+
|
|
405
|
+
#### Example
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
dtcEngine.WeatherSystem.changeSeason({ season: dtcEngine.Enums.Season.Summer, duration: 5 }, (result) => {
|
|
409
|
+
console.log(result);
|
|
410
|
+
});
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
***
|
|
414
|
+
|
|
415
|
+
### resetSeason()
|
|
416
|
+
|
|
417
|
+
> **resetSeason**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
418
|
+
|
|
419
|
+
重置场景季节状态。
|
|
420
|
+
|
|
421
|
+
#### Parameters
|
|
422
|
+
|
|
423
|
+
| Parameter | Type | Description |
|
|
424
|
+
| ------ | ------ | ------ |
|
|
425
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
426
|
+
|
|
427
|
+
#### Returns
|
|
428
|
+
|
|
429
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
430
|
+
|
|
431
|
+
Promise 形式的接口响应。
|
|
432
|
+
|
|
433
|
+
#### Agent Side Effects
|
|
434
|
+
|
|
435
|
+
write
|
|
436
|
+
|
|
437
|
+
#### Agent Preconditions
|
|
438
|
+
|
|
439
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
440
|
+
|
|
441
|
+
#### Agent Risk Level
|
|
442
|
+
|
|
443
|
+
low
|
|
444
|
+
|
|
445
|
+
#### Agent Example
|
|
446
|
+
|
|
447
|
+
#### Example
|
|
448
|
+
|
|
449
|
+
```ts
|
|
450
|
+
dtcEngine.WeatherSystem.resetSeason((result) => {
|
|
451
|
+
console.log(result);
|
|
452
|
+
});
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
***
|
|
456
|
+
|
|
457
|
+
### setDayAndNight()
|
|
458
|
+
|
|
459
|
+
> **setDayAndNight**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
460
|
+
|
|
461
|
+
在白天与夜晚模式之间切换。
|
|
462
|
+
|
|
463
|
+
#### Parameters
|
|
464
|
+
|
|
465
|
+
| Parameter | Type | Description |
|
|
466
|
+
| ------ | ------ | ------ |
|
|
467
|
+
| `payload` | [`WeatherSetDayAndNightRequest`](../../types/interfaces/WeatherSetDayAndNightRequest.md) | 日夜模式参数。 |
|
|
468
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
469
|
+
|
|
470
|
+
#### Returns
|
|
471
|
+
|
|
472
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
473
|
+
|
|
474
|
+
Promise 形式的接口响应。
|
|
475
|
+
|
|
476
|
+
#### Agent Side Effects
|
|
477
|
+
|
|
478
|
+
write
|
|
479
|
+
|
|
480
|
+
#### Agent Preconditions
|
|
481
|
+
|
|
482
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
483
|
+
|
|
484
|
+
#### Agent Risk Level
|
|
485
|
+
|
|
486
|
+
low
|
|
487
|
+
|
|
488
|
+
#### Agent Example
|
|
489
|
+
|
|
490
|
+
#### Example
|
|
491
|
+
|
|
492
|
+
```ts
|
|
493
|
+
dtcEngine.WeatherSystem.setDayAndNight({ dayType: 'night' }, (result) => {
|
|
494
|
+
console.log(result);
|
|
495
|
+
});
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
***
|
|
499
|
+
|
|
500
|
+
### openCameraFog()
|
|
501
|
+
|
|
502
|
+
> **openCameraFog**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
503
|
+
|
|
504
|
+
开启并调整相机镜头雾效。
|
|
505
|
+
默认值:未填的数值字段统一按 `-1` 下发(沿用 sdk2 语义)。
|
|
506
|
+
|
|
507
|
+
#### Parameters
|
|
508
|
+
|
|
509
|
+
| Parameter | Type | Description |
|
|
510
|
+
| ------ | ------ | ------ |
|
|
511
|
+
| `payload` | [`WeatherOpenCameraFogRequest`](../../types/interfaces/WeatherOpenCameraFogRequest.md) | 雾效参数。 |
|
|
512
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
513
|
+
|
|
514
|
+
#### Returns
|
|
515
|
+
|
|
516
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
517
|
+
|
|
518
|
+
Promise 形式的接口响应。
|
|
519
|
+
|
|
520
|
+
#### Agent Side Effects
|
|
521
|
+
|
|
522
|
+
write
|
|
523
|
+
|
|
524
|
+
#### Agent Preconditions
|
|
525
|
+
|
|
526
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
527
|
+
|
|
528
|
+
#### Agent Risk Level
|
|
529
|
+
|
|
530
|
+
low
|
|
531
|
+
|
|
532
|
+
#### Agent Example
|
|
533
|
+
|
|
534
|
+
#### Example
|
|
535
|
+
|
|
536
|
+
```ts
|
|
537
|
+
dtcEngine.WeatherSystem.openCameraFog(
|
|
538
|
+
{ fogStartDistance: 20, fogEndDistance: 1500, fogIntensity: 0.5 },
|
|
539
|
+
(result) => { console.log(result); }
|
|
540
|
+
);
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
***
|
|
544
|
+
|
|
545
|
+
### closeCameraFog()
|
|
546
|
+
|
|
547
|
+
> **closeCameraFog**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
548
|
+
|
|
549
|
+
关闭相机镜头雾效。
|
|
550
|
+
|
|
551
|
+
#### Parameters
|
|
552
|
+
|
|
553
|
+
| Parameter | Type | Description |
|
|
554
|
+
| ------ | ------ | ------ |
|
|
555
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
556
|
+
|
|
557
|
+
#### Returns
|
|
558
|
+
|
|
559
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
560
|
+
|
|
561
|
+
Promise 形式的接口响应。
|
|
562
|
+
|
|
563
|
+
#### Agent Side Effects
|
|
564
|
+
|
|
565
|
+
write
|
|
566
|
+
|
|
567
|
+
#### Agent Preconditions
|
|
568
|
+
|
|
569
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
570
|
+
|
|
571
|
+
#### Agent Risk Level
|
|
572
|
+
|
|
573
|
+
low
|
|
574
|
+
|
|
575
|
+
#### Agent Example
|
|
576
|
+
|
|
577
|
+
#### Example
|
|
578
|
+
|
|
579
|
+
```ts
|
|
580
|
+
dtcEngine.WeatherSystem.closeCameraFog((result) => { console.log(result); });
|
|
581
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / createApiFacade
|
|
2
|
+
|
|
3
|
+
# Function: createApiFacade()
|
|
4
|
+
|
|
5
|
+
> **createApiFacade**(`context`, `registry?`): [`ApiFacade`](../type-aliases/ApiFacade.md)
|
|
6
|
+
|
|
7
|
+
依据注册表批量创建 API 门面实例。
|
|
8
|
+
|
|
9
|
+
在任何模块实例对外暴露前,先校验上下文和完整注册表。
|
|
10
|
+
|
|
11
|
+
## Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type | Default value |
|
|
14
|
+
| ------ | ------ | ------ |
|
|
15
|
+
| `context` | [`ApiRegistryContext`](../interfaces/ApiRegistryContext.md) | `undefined` |
|
|
16
|
+
| `registry` | [`ApiRegistry`](../type-aliases/ApiRegistry.md) | `apiRegistry` |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
[`ApiFacade`](../type-aliases/ApiFacade.md)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../index.md) / api
|
|
2
|
+
|
|
3
|
+
# api
|
|
4
|
+
|
|
5
|
+
## Classes
|
|
6
|
+
|
|
7
|
+
- [Animation](classes/Animation.md)
|
|
8
|
+
- [Camera](classes/Camera.md)
|
|
9
|
+
- [Connect](classes/Connect.md)
|
|
10
|
+
- [Dlss](classes/Dlss.md)
|
|
11
|
+
- [HighLighterEffect](classes/HighLighterEffect.md)
|
|
12
|
+
- [Layer](classes/Layer.md)
|
|
13
|
+
- [Model](classes/Model.md)
|
|
14
|
+
- [ModelPOI](classes/ModelPOI.md)
|
|
15
|
+
- [ModelTransform](classes/ModelTransform.md)
|
|
16
|
+
- [PathPatrol](classes/PathPatrol.md)
|
|
17
|
+
- [Popup](classes/Popup.md)
|
|
18
|
+
- [Scene](classes/Scene.md)
|
|
19
|
+
- [Screen](classes/Screen.md)
|
|
20
|
+
- [TimeLine](classes/TimeLine.md)
|
|
21
|
+
- [UIPOI](classes/UIPOI.md)
|
|
22
|
+
- [WeatherSystem](classes/WeatherSystem.md)
|
|
23
|
+
- [ApiRegistryError](classes/ApiRegistryError.md)
|
|
24
|
+
|
|
25
|
+
## Interfaces
|
|
26
|
+
|
|
27
|
+
- [ApiRegistryContext](interfaces/ApiRegistryContext.md)
|
|
28
|
+
- [ApiInstanceMap](interfaces/ApiInstanceMap.md)
|
|
29
|
+
|
|
30
|
+
## Type Aliases
|
|
31
|
+
|
|
32
|
+
- [ApiModuleKey](type-aliases/ApiModuleKey.md)
|
|
33
|
+
- [ApiModuleFactory](type-aliases/ApiModuleFactory.md)
|
|
34
|
+
- [ApiRegistry](type-aliases/ApiRegistry.md)
|
|
35
|
+
- [ApiFacade](type-aliases/ApiFacade.md)
|
|
36
|
+
|
|
37
|
+
## Variables
|
|
38
|
+
|
|
39
|
+
- [apiRegistry](variables/apiRegistry.md)
|
|
40
|
+
- [API\_MODULE\_KEYS](variables/API_MODULE_KEYS.md)
|
|
41
|
+
- [PendingValidationSchemaMap](variables/PendingValidationSchemaMap.md)
|
|
42
|
+
|
|
43
|
+
## Functions
|
|
44
|
+
|
|
45
|
+
- [createApiFacade](functions/createApiFacade.md)
|