@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,738 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../../../index.md) / [application/DTCEngine](../index.md) / DTCEngine
|
|
2
|
+
|
|
3
|
+
# Class: DTCEngine
|
|
4
|
+
|
|
5
|
+
SDK 入口类,负责装配 API 模块、鉴权工作流与会话生命周期。
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
### Constructor
|
|
10
|
+
|
|
11
|
+
> **new DTCEngine**(`config`, `options?`): `DTCEngine`
|
|
12
|
+
|
|
13
|
+
创建 SDK 门面并立即触发鉴权启动流程。
|
|
14
|
+
|
|
15
|
+
#### Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type |
|
|
18
|
+
| ------ | ------ |
|
|
19
|
+
| `config` | [`EngineConfig`](../../../types/interfaces/EngineConfig.md) |
|
|
20
|
+
| `options?` | [`DTCEngineOptions`](../interfaces/DTCEngineOptions.md) |
|
|
21
|
+
|
|
22
|
+
#### Returns
|
|
23
|
+
|
|
24
|
+
`DTCEngine`
|
|
25
|
+
|
|
26
|
+
## Properties
|
|
27
|
+
|
|
28
|
+
### Events
|
|
29
|
+
|
|
30
|
+
> `readonly` **Events**: `object`
|
|
31
|
+
|
|
32
|
+
应用侧可订阅的事件常量集合。
|
|
33
|
+
|
|
34
|
+
#### WebRtcConnected
|
|
35
|
+
|
|
36
|
+
> `readonly` **WebRtcConnected**: `"webRtcConnected"` = `'webRtcConnected'`
|
|
37
|
+
|
|
38
|
+
WebRTC 连接成功(sdk3 原始命名)
|
|
39
|
+
|
|
40
|
+
#### WebOnConnect
|
|
41
|
+
|
|
42
|
+
> `readonly` **WebOnConnect**: `"webRtcConnected"` = `'webRtcConnected'`
|
|
43
|
+
|
|
44
|
+
WebRTC 连接成功(sdk2 兼容命名)
|
|
45
|
+
|
|
46
|
+
#### MapLoaded
|
|
47
|
+
|
|
48
|
+
> `readonly` **MapLoaded**: `"OnApiDataChannelStarted"` = `'OnApiDataChannelStarted'`
|
|
49
|
+
|
|
50
|
+
地图加载完成
|
|
51
|
+
|
|
52
|
+
#### WebRtcDisconnected
|
|
53
|
+
|
|
54
|
+
> `readonly` **WebRtcDisconnected**: `"webRtcDisconnected"` = `'webRtcDisconnected'`
|
|
55
|
+
|
|
56
|
+
WebRTC 连接断开(sdk3 原始命名)
|
|
57
|
+
|
|
58
|
+
#### WebOnDisconnect
|
|
59
|
+
|
|
60
|
+
> `readonly` **WebOnDisconnect**: `"webRtcDisconnected"` = `'webRtcDisconnected'`
|
|
61
|
+
|
|
62
|
+
WebRTC 连接断开(sdk2 兼容命名)
|
|
63
|
+
|
|
64
|
+
#### DataChannelDisconnet
|
|
65
|
+
|
|
66
|
+
> `readonly` **DataChannelDisconnet**: `"webRtcDisconnected"` = `'webRtcDisconnected'`
|
|
67
|
+
|
|
68
|
+
#### WebRtcConnecting
|
|
69
|
+
|
|
70
|
+
> `readonly` **WebRtcConnecting**: `"webRtcConnecting"` = `'webRtcConnecting'`
|
|
71
|
+
|
|
72
|
+
WebRTC 正在连接中
|
|
73
|
+
|
|
74
|
+
#### WebRtcFailed
|
|
75
|
+
|
|
76
|
+
> `readonly` **WebRtcFailed**: `"webRtcFailed"` = `'webRtcFailed'`
|
|
77
|
+
|
|
78
|
+
WebRTC 连接失败
|
|
79
|
+
|
|
80
|
+
#### StatsReceived
|
|
81
|
+
|
|
82
|
+
> `readonly` **StatsReceived**: `"statsReceived"` = `'statsReceived'`
|
|
83
|
+
|
|
84
|
+
收到底层 WebRTC 统计信息
|
|
85
|
+
|
|
86
|
+
#### EngineStatus
|
|
87
|
+
|
|
88
|
+
> `readonly` **EngineStatus**: `"EngineStatus"` = `'EngineStatus'`
|
|
89
|
+
|
|
90
|
+
引擎状态聚合事件
|
|
91
|
+
|
|
92
|
+
#### StreamLoading
|
|
93
|
+
|
|
94
|
+
> `readonly` **StreamLoading**: `"streamLoading"` = `'streamLoading'`
|
|
95
|
+
|
|
96
|
+
媒体流加载进度事件
|
|
97
|
+
|
|
98
|
+
#### LoadingProgress
|
|
99
|
+
|
|
100
|
+
> `readonly` **LoadingProgress**: `"LoadingProgress"` = `'LoadingProgress'`
|
|
101
|
+
|
|
102
|
+
SDK 加载提示事件
|
|
103
|
+
|
|
104
|
+
#### CenterConnected
|
|
105
|
+
|
|
106
|
+
> `readonly` **CenterConnected**: `"Connect"` = `'Connect'`
|
|
107
|
+
|
|
108
|
+
中心连接成功(sdk2 兼容命名)
|
|
109
|
+
|
|
110
|
+
#### CenterDisconnected
|
|
111
|
+
|
|
112
|
+
> `readonly` **CenterDisconnected**: `"UnConnect"` = `'UnConnect'`
|
|
113
|
+
|
|
114
|
+
中心连接断开(sdk2 兼容命名)
|
|
115
|
+
|
|
116
|
+
#### ConnectResult
|
|
117
|
+
|
|
118
|
+
> `readonly` **ConnectResult**: `"ConnectResult"` = `'ConnectResult'`
|
|
119
|
+
|
|
120
|
+
中心返回连接结果
|
|
121
|
+
|
|
122
|
+
#### CenterCloseMessage
|
|
123
|
+
|
|
124
|
+
> `readonly` **CenterCloseMessage**: `"CenterCloseMessage"` = `'CenterCloseMessage'`
|
|
125
|
+
|
|
126
|
+
中心主动关闭会话通知
|
|
127
|
+
|
|
128
|
+
#### TokenAuthorize
|
|
129
|
+
|
|
130
|
+
> `readonly` **TokenAuthorize**: `"TokenAuthorize"` = `'TokenAuthorize'`
|
|
131
|
+
|
|
132
|
+
Token 鉴权结果通知
|
|
133
|
+
|
|
134
|
+
#### EngineServiceInit
|
|
135
|
+
|
|
136
|
+
> `readonly` **EngineServiceInit**: `"EngineServiceInit"` = `'EngineServiceInit'`
|
|
137
|
+
|
|
138
|
+
引擎服务初始化结果通知
|
|
139
|
+
|
|
140
|
+
#### EngineServiceInitWait
|
|
141
|
+
|
|
142
|
+
> `readonly` **EngineServiceInitWait**: `"EngineServiceInitWait"` = `'EngineServiceInitWait'`
|
|
143
|
+
|
|
144
|
+
引擎服务处于排队等待状态
|
|
145
|
+
|
|
146
|
+
#### EngineSocketClose
|
|
147
|
+
|
|
148
|
+
> `readonly` **EngineSocketClose**: `"EngineSocketClose"` = `'EngineSocketClose'`
|
|
149
|
+
|
|
150
|
+
引擎侧 socket 断开通知
|
|
151
|
+
|
|
152
|
+
#### TokenWillExpired
|
|
153
|
+
|
|
154
|
+
> `readonly` **TokenWillExpired**: `"TokenWillExpired"` = `'TokenWillExpired'`
|
|
155
|
+
|
|
156
|
+
Token 即将过期通知
|
|
157
|
+
|
|
158
|
+
#### AuthStateChanged
|
|
159
|
+
|
|
160
|
+
> `readonly` **AuthStateChanged**: `"authStateChanged"` = `'authStateChanged'`
|
|
161
|
+
|
|
162
|
+
鉴权状态变化总线事件
|
|
163
|
+
|
|
164
|
+
#### AuthConnecting
|
|
165
|
+
|
|
166
|
+
> `readonly` **AuthConnecting**: `"authConnecting"` = `'authConnecting'`
|
|
167
|
+
|
|
168
|
+
鉴权流程:连接中心中
|
|
169
|
+
|
|
170
|
+
#### AuthWaiting
|
|
171
|
+
|
|
172
|
+
> `readonly` **AuthWaiting**: `"authWaiting"` = `'authWaiting'`
|
|
173
|
+
|
|
174
|
+
鉴权流程:资源等待中
|
|
175
|
+
|
|
176
|
+
#### AuthAuthorizing
|
|
177
|
+
|
|
178
|
+
> `readonly` **AuthAuthorizing**: `"authAuthorizing"` = `'authAuthorizing'`
|
|
179
|
+
|
|
180
|
+
鉴权流程:令牌校验中
|
|
181
|
+
|
|
182
|
+
#### AuthConnected
|
|
183
|
+
|
|
184
|
+
> `readonly` **AuthConnected**: `"authConnected"` = `'authConnected'`
|
|
185
|
+
|
|
186
|
+
鉴权流程:已连接完成
|
|
187
|
+
|
|
188
|
+
#### AuthFailed
|
|
189
|
+
|
|
190
|
+
> `readonly` **AuthFailed**: `"authFailed"` = `'authFailed'`
|
|
191
|
+
|
|
192
|
+
鉴权流程:失败
|
|
193
|
+
|
|
194
|
+
#### SessionModeReady
|
|
195
|
+
|
|
196
|
+
> `readonly` **SessionModeReady**: `"sessionModeReady"` = `'sessionModeReady'`
|
|
197
|
+
|
|
198
|
+
会话模式就绪事件
|
|
199
|
+
|
|
200
|
+
#### SessionModeFailed
|
|
201
|
+
|
|
202
|
+
> `readonly` **SessionModeFailed**: `"sessionModeFailed"` = `'sessionModeFailed'`
|
|
203
|
+
|
|
204
|
+
会话模式失败事件
|
|
205
|
+
|
|
206
|
+
#### SceneConfig
|
|
207
|
+
|
|
208
|
+
> `readonly` **SceneConfig**: `"SceneConfig"` = `'SceneConfig'`
|
|
209
|
+
|
|
210
|
+
场景信息
|
|
211
|
+
|
|
212
|
+
#### ModelClick
|
|
213
|
+
|
|
214
|
+
> `readonly` **ModelClick**: `"ModelClick"` = `'ModelClick'`
|
|
215
|
+
|
|
216
|
+
模型点击事件
|
|
217
|
+
|
|
218
|
+
#### CameraHeight
|
|
219
|
+
|
|
220
|
+
> `readonly` **CameraHeight**: `"CameraHeight"` = `'CameraHeight'`
|
|
221
|
+
|
|
222
|
+
相机高度
|
|
223
|
+
|
|
224
|
+
#### LeftClick
|
|
225
|
+
|
|
226
|
+
> `readonly` **LeftClick**: `"MouseLeftButtonClick"` = `'MouseLeftButtonClick'`
|
|
227
|
+
|
|
228
|
+
左键单击事件
|
|
229
|
+
|
|
230
|
+
#### LeftDoubleClick
|
|
231
|
+
|
|
232
|
+
> `readonly` **LeftDoubleClick**: `"MouseLeftButtonDoubleClick"` = `'MouseLeftButtonDoubleClick'`
|
|
233
|
+
|
|
234
|
+
左键双击事件
|
|
235
|
+
|
|
236
|
+
#### LeftLongPressed
|
|
237
|
+
|
|
238
|
+
> `readonly` **LeftLongPressed**: `"MouseLeftButtonLongPressed"` = `'MouseLeftButtonLongPressed'`
|
|
239
|
+
|
|
240
|
+
左键长按事件
|
|
241
|
+
|
|
242
|
+
#### RightClick
|
|
243
|
+
|
|
244
|
+
> `readonly` **RightClick**: `"MouseRightButtonClick"` = `'MouseRightButtonClick'`
|
|
245
|
+
|
|
246
|
+
右键单击事件
|
|
247
|
+
|
|
248
|
+
#### RightDoubleClick
|
|
249
|
+
|
|
250
|
+
> `readonly` **RightDoubleClick**: `"MouseRightButtonDoubleClick"` = `'MouseRightButtonDoubleClick'`
|
|
251
|
+
|
|
252
|
+
右键双击事件
|
|
253
|
+
|
|
254
|
+
#### RightLongPressed
|
|
255
|
+
|
|
256
|
+
> `readonly` **RightLongPressed**: `"MouseRightButtonLongPressed"` = `'MouseRightButtonLongPressed'`
|
|
257
|
+
|
|
258
|
+
右键长按事件
|
|
259
|
+
|
|
260
|
+
#### ModelTrigger
|
|
261
|
+
|
|
262
|
+
> `readonly` **ModelTrigger**: `"ModelTrigger"` = `'ModelTrigger'`
|
|
263
|
+
|
|
264
|
+
模型触发事件
|
|
265
|
+
|
|
266
|
+
#### SyncPops
|
|
267
|
+
|
|
268
|
+
> `readonly` **SyncPops**: `"SyncPops"` = `'SyncPops'`
|
|
269
|
+
|
|
270
|
+
前端气泡同步事件
|
|
271
|
+
|
|
272
|
+
#### NetworkLevelChanged
|
|
273
|
+
|
|
274
|
+
> `readonly` **NetworkLevelChanged**: `"networkLevelChanged"` = `'networkLevelChanged'`
|
|
275
|
+
|
|
276
|
+
弱网档位状态变化事件
|
|
277
|
+
|
|
278
|
+
#### NetworkActionExecuted
|
|
279
|
+
|
|
280
|
+
> `readonly` **NetworkActionExecuted**: `"networkActionExecuted"` = `'networkActionExecuted'`
|
|
281
|
+
|
|
282
|
+
弱网策略动作执行结果事件
|
|
283
|
+
|
|
284
|
+
#### NetworkModeChanged
|
|
285
|
+
|
|
286
|
+
> `readonly` **NetworkModeChanged**: `"networkModeChanged"` = `'networkModeChanged'`
|
|
287
|
+
|
|
288
|
+
弱网模式变化事件(Auto / Manual)
|
|
289
|
+
|
|
290
|
+
#### NetworkDiagnosticsVisibilityChanged
|
|
291
|
+
|
|
292
|
+
> `readonly` **NetworkDiagnosticsVisibilityChanged**: `"networkDiagnosticsVisibilityChanged"` = `'networkDiagnosticsVisibilityChanged'`
|
|
293
|
+
|
|
294
|
+
弱网诊断面板可见性变化事件
|
|
295
|
+
|
|
296
|
+
#### NetworkDiagnosticsUpdated
|
|
297
|
+
|
|
298
|
+
> `readonly` **NetworkDiagnosticsUpdated**: `"networkDiagnosticsUpdated"` = `'networkDiagnosticsUpdated'`
|
|
299
|
+
|
|
300
|
+
弱网诊断快照更新事件
|
|
301
|
+
|
|
302
|
+
***
|
|
303
|
+
|
|
304
|
+
### Enums
|
|
305
|
+
|
|
306
|
+
> `readonly` **Enums**: `object`
|
|
307
|
+
|
|
308
|
+
#### DlssQuality
|
|
309
|
+
|
|
310
|
+
> **DlssQuality**: `object`
|
|
311
|
+
|
|
312
|
+
##### DlssQuality.Off
|
|
313
|
+
|
|
314
|
+
> `readonly` **Off**: `0` = `0`
|
|
315
|
+
|
|
316
|
+
关闭 DLSS。默认值。
|
|
317
|
+
|
|
318
|
+
##### DlssQuality.Auto
|
|
319
|
+
|
|
320
|
+
> `readonly` **Auto**: `1` = `1`
|
|
321
|
+
|
|
322
|
+
Auto 模式会根据系统性能自动选择最合适的 DLSS 质量档位,提供更智能的画质与性能平衡方案。
|
|
323
|
+
|
|
324
|
+
##### DlssQuality.DLAA
|
|
325
|
+
|
|
326
|
+
> `readonly` **DLAA**: `2` = `2`
|
|
327
|
+
|
|
328
|
+
2倍效果
|
|
329
|
+
|
|
330
|
+
##### DlssQuality.UltraQuality
|
|
331
|
+
|
|
332
|
+
> `readonly` **UltraQuality**: `3` = `3`
|
|
333
|
+
|
|
334
|
+
超高质量。
|
|
335
|
+
|
|
336
|
+
##### DlssQuality.Quality
|
|
337
|
+
|
|
338
|
+
> `readonly` **Quality**: `4` = `4`
|
|
339
|
+
|
|
340
|
+
高质量。
|
|
341
|
+
|
|
342
|
+
##### DlssQuality.Balanced
|
|
343
|
+
|
|
344
|
+
> `readonly` **Balanced**: `5` = `5`
|
|
345
|
+
|
|
346
|
+
平衡。
|
|
347
|
+
|
|
348
|
+
##### DlssQuality.Performance
|
|
349
|
+
|
|
350
|
+
> `readonly` **Performance**: `6` = `6`
|
|
351
|
+
|
|
352
|
+
性能。
|
|
353
|
+
|
|
354
|
+
##### DlssQuality.UltraPerformance
|
|
355
|
+
|
|
356
|
+
> `readonly` **UltraPerformance**: `7` = `7`
|
|
357
|
+
|
|
358
|
+
超高性能。
|
|
359
|
+
|
|
360
|
+
#### LayerEnum
|
|
361
|
+
|
|
362
|
+
> **LayerEnum**: *typeof* [`LayerEnum`](../../../types/enumerations/LayerEnum.md)
|
|
363
|
+
|
|
364
|
+
#### ModelTransformType
|
|
365
|
+
|
|
366
|
+
> **ModelTransformType**: *typeof* [`ModelTransformType`](../../../types/enumerations/ModelTransformType.md)
|
|
367
|
+
|
|
368
|
+
#### ScreenRenderBitratePreset
|
|
369
|
+
|
|
370
|
+
> **ScreenRenderBitratePreset**: `object`
|
|
371
|
+
|
|
372
|
+
##### ScreenRenderBitratePreset.Auto
|
|
373
|
+
|
|
374
|
+
> `readonly` **Auto**: `"auto"` = `'auto'`
|
|
375
|
+
|
|
376
|
+
自动。
|
|
377
|
+
|
|
378
|
+
##### ScreenRenderBitratePreset.Low
|
|
379
|
+
|
|
380
|
+
> `readonly` **Low**: `"low"` = `'low'`
|
|
381
|
+
|
|
382
|
+
标清。
|
|
383
|
+
|
|
384
|
+
##### ScreenRenderBitratePreset.High
|
|
385
|
+
|
|
386
|
+
> `readonly` **High**: `"high"` = `'high'`
|
|
387
|
+
|
|
388
|
+
高清。
|
|
389
|
+
|
|
390
|
+
##### ScreenRenderBitratePreset.Super
|
|
391
|
+
|
|
392
|
+
> `readonly` **Super**: `"super"` = `'super'`
|
|
393
|
+
|
|
394
|
+
超清。
|
|
395
|
+
|
|
396
|
+
##### ScreenRenderBitratePreset.Blue
|
|
397
|
+
|
|
398
|
+
> `readonly` **Blue**: `"blue"` = `'blue'`
|
|
399
|
+
|
|
400
|
+
蓝光。
|
|
401
|
+
|
|
402
|
+
#### Season
|
|
403
|
+
|
|
404
|
+
> **Season**: `object`
|
|
405
|
+
|
|
406
|
+
##### Season.Spring
|
|
407
|
+
|
|
408
|
+
> `readonly` **Spring**: `0` = `0`
|
|
409
|
+
|
|
410
|
+
春季。
|
|
411
|
+
|
|
412
|
+
##### Season.Summer
|
|
413
|
+
|
|
414
|
+
> `readonly` **Summer**: `1` = `1`
|
|
415
|
+
|
|
416
|
+
夏季。
|
|
417
|
+
|
|
418
|
+
##### Season.Autumn
|
|
419
|
+
|
|
420
|
+
> `readonly` **Autumn**: `2` = `2`
|
|
421
|
+
|
|
422
|
+
秋季。
|
|
423
|
+
|
|
424
|
+
##### Season.Winter
|
|
425
|
+
|
|
426
|
+
> `readonly` **Winter**: `3` = `3`
|
|
427
|
+
|
|
428
|
+
冬季。
|
|
429
|
+
|
|
430
|
+
#### VideoCodeType
|
|
431
|
+
|
|
432
|
+
> **VideoCodeType**: *typeof* [`VideoCodeType`](../../../types/enumerations/VideoCodeType.md)
|
|
433
|
+
|
|
434
|
+
***
|
|
435
|
+
|
|
436
|
+
### Connect
|
|
437
|
+
|
|
438
|
+
> `readonly` **Connect**: [`Connect`](../../../api/classes/Connect.md)
|
|
439
|
+
|
|
440
|
+
连接控制模块。
|
|
441
|
+
|
|
442
|
+
***
|
|
443
|
+
|
|
444
|
+
### Type
|
|
445
|
+
|
|
446
|
+
> `readonly` **Type**: `Type`
|
|
447
|
+
|
|
448
|
+
SDK 支持的数据类型构造器。
|
|
449
|
+
|
|
450
|
+
***
|
|
451
|
+
|
|
452
|
+
### Screen
|
|
453
|
+
|
|
454
|
+
> `readonly` **Screen**: [`Screen`](../../../api/classes/Screen.md)
|
|
455
|
+
|
|
456
|
+
画面质量控制模块。
|
|
457
|
+
|
|
458
|
+
***
|
|
459
|
+
|
|
460
|
+
### Dlss
|
|
461
|
+
|
|
462
|
+
> `readonly` **Dlss**: [`Dlss`](../../../api/classes/Dlss.md)
|
|
463
|
+
|
|
464
|
+
DLSS 控制模块。
|
|
465
|
+
|
|
466
|
+
***
|
|
467
|
+
|
|
468
|
+
### Camera
|
|
469
|
+
|
|
470
|
+
> `readonly` **Camera**: [`Camera`](../../../api/classes/Camera.md)
|
|
471
|
+
|
|
472
|
+
相机控制模块。
|
|
473
|
+
|
|
474
|
+
***
|
|
475
|
+
|
|
476
|
+
### Scene
|
|
477
|
+
|
|
478
|
+
> `readonly` **Scene**: [`Scene`](../../../api/classes/Scene.md)
|
|
479
|
+
|
|
480
|
+
场景控制模块。
|
|
481
|
+
|
|
482
|
+
***
|
|
483
|
+
|
|
484
|
+
### Layer
|
|
485
|
+
|
|
486
|
+
> `readonly` **Layer**: [`Layer`](../../../api/classes/Layer.md)
|
|
487
|
+
|
|
488
|
+
图层控制模块。
|
|
489
|
+
|
|
490
|
+
***
|
|
491
|
+
|
|
492
|
+
### Model
|
|
493
|
+
|
|
494
|
+
> `readonly` **Model**: [`Model`](../../../api/classes/Model.md)
|
|
495
|
+
|
|
496
|
+
模型控制模块。
|
|
497
|
+
|
|
498
|
+
***
|
|
499
|
+
|
|
500
|
+
### UIPOI
|
|
501
|
+
|
|
502
|
+
> `readonly` **UIPOI**: [`UIPOI`](../../../api/classes/UIPOI.md)
|
|
503
|
+
|
|
504
|
+
UI 气泡模块。
|
|
505
|
+
|
|
506
|
+
***
|
|
507
|
+
|
|
508
|
+
### ModelPOI
|
|
509
|
+
|
|
510
|
+
> `readonly` **ModelPOI**: [`ModelPOI`](../../../api/classes/ModelPOI.md)
|
|
511
|
+
|
|
512
|
+
模型气泡模块。
|
|
513
|
+
|
|
514
|
+
***
|
|
515
|
+
|
|
516
|
+
### ModelTransform
|
|
517
|
+
|
|
518
|
+
> `readonly` **ModelTransform**: [`ModelTransform`](../../../api/classes/ModelTransform.md)
|
|
519
|
+
|
|
520
|
+
模型变换模块。
|
|
521
|
+
|
|
522
|
+
***
|
|
523
|
+
|
|
524
|
+
### PathPatrol
|
|
525
|
+
|
|
526
|
+
> `readonly` **PathPatrol**: [`PathPatrol`](../../../api/classes/PathPatrol.md)
|
|
527
|
+
|
|
528
|
+
路径巡逻模块。
|
|
529
|
+
|
|
530
|
+
***
|
|
531
|
+
|
|
532
|
+
### HighlighterEffect
|
|
533
|
+
|
|
534
|
+
> `readonly` **HighlighterEffect**: [`HighLighterEffect`](../../../api/classes/HighLighterEffect.md)
|
|
535
|
+
|
|
536
|
+
高亮效果模块。
|
|
537
|
+
|
|
538
|
+
***
|
|
539
|
+
|
|
540
|
+
### Popup
|
|
541
|
+
|
|
542
|
+
> `readonly` **Popup**: [`Popup`](../../../api/classes/Popup.md)
|
|
543
|
+
|
|
544
|
+
前端 Popup 模块。
|
|
545
|
+
|
|
546
|
+
***
|
|
547
|
+
|
|
548
|
+
### popupManager
|
|
549
|
+
|
|
550
|
+
> `readonly` **popupManager**: `PopupManager`
|
|
551
|
+
|
|
552
|
+
前端 Popup 管理器(气泡 DOM 挂载与定位)。
|
|
553
|
+
|
|
554
|
+
***
|
|
555
|
+
|
|
556
|
+
### Animation
|
|
557
|
+
|
|
558
|
+
> `readonly` **Animation**: [`Animation`](../../../api/classes/Animation.md)
|
|
559
|
+
|
|
560
|
+
动画控制模块。
|
|
561
|
+
|
|
562
|
+
***
|
|
563
|
+
|
|
564
|
+
### TimeLine
|
|
565
|
+
|
|
566
|
+
> `readonly` **TimeLine**: [`TimeLine`](../../../api/classes/TimeLine.md)
|
|
567
|
+
|
|
568
|
+
时间线模块。
|
|
569
|
+
|
|
570
|
+
***
|
|
571
|
+
|
|
572
|
+
### WeatherSystem
|
|
573
|
+
|
|
574
|
+
> `readonly` **WeatherSystem**: [`WeatherSystem`](../../../api/classes/WeatherSystem.md)
|
|
575
|
+
|
|
576
|
+
天气系统模块。
|
|
577
|
+
|
|
578
|
+
## Methods
|
|
579
|
+
|
|
580
|
+
### on()
|
|
581
|
+
|
|
582
|
+
> **on**\<`K`\>(`event`, `listener`): `void`
|
|
583
|
+
|
|
584
|
+
订阅 SDK 运行时事件。
|
|
585
|
+
|
|
586
|
+
#### Type Parameters
|
|
587
|
+
|
|
588
|
+
| Type Parameter |
|
|
589
|
+
| ------ |
|
|
590
|
+
| `K` *extends* keyof `EngineEventMap` |
|
|
591
|
+
|
|
592
|
+
#### Parameters
|
|
593
|
+
|
|
594
|
+
| Parameter | Type |
|
|
595
|
+
| ------ | ------ |
|
|
596
|
+
| `event` | `K` |
|
|
597
|
+
| `listener` | (`payload`) => `void` |
|
|
598
|
+
|
|
599
|
+
#### Returns
|
|
600
|
+
|
|
601
|
+
`void`
|
|
602
|
+
|
|
603
|
+
***
|
|
604
|
+
|
|
605
|
+
### off()
|
|
606
|
+
|
|
607
|
+
> **off**\<`K`\>(`event`, `listener`): `void`
|
|
608
|
+
|
|
609
|
+
取消订阅 SDK 运行时事件。
|
|
610
|
+
|
|
611
|
+
#### Type Parameters
|
|
612
|
+
|
|
613
|
+
| Type Parameter |
|
|
614
|
+
| ------ |
|
|
615
|
+
| `K` *extends* keyof `EngineEventMap` |
|
|
616
|
+
|
|
617
|
+
#### Parameters
|
|
618
|
+
|
|
619
|
+
| Parameter | Type |
|
|
620
|
+
| ------ | ------ |
|
|
621
|
+
| `event` | `K` |
|
|
622
|
+
| `listener` | (`payload`) => `void` |
|
|
623
|
+
|
|
624
|
+
#### Returns
|
|
625
|
+
|
|
626
|
+
`void`
|
|
627
|
+
|
|
628
|
+
***
|
|
629
|
+
|
|
630
|
+
### whenReady()
|
|
631
|
+
|
|
632
|
+
> **whenReady**(): `Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
633
|
+
|
|
634
|
+
获取启动阶段最终快照结果。
|
|
635
|
+
|
|
636
|
+
#### Returns
|
|
637
|
+
|
|
638
|
+
`Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
639
|
+
|
|
640
|
+
***
|
|
641
|
+
|
|
642
|
+
### setNetworkAdaptationMode()
|
|
643
|
+
|
|
644
|
+
> **setNetworkAdaptationMode**(`mode`): `void`
|
|
645
|
+
|
|
646
|
+
显式切换弱网策略模式(auto/manual)。
|
|
647
|
+
|
|
648
|
+
#### Parameters
|
|
649
|
+
|
|
650
|
+
| Parameter | Type |
|
|
651
|
+
| ------ | ------ |
|
|
652
|
+
| `mode` | [`NetworkAdaptationMode`](../../../types/type-aliases/NetworkAdaptationMode.md) |
|
|
653
|
+
|
|
654
|
+
#### Returns
|
|
655
|
+
|
|
656
|
+
`void`
|
|
657
|
+
|
|
658
|
+
***
|
|
659
|
+
|
|
660
|
+
### setNetworkManualLevel()
|
|
661
|
+
|
|
662
|
+
> **setNetworkManualLevel**(`level`): `void`
|
|
663
|
+
|
|
664
|
+
手动模式下指定弱网档位。
|
|
665
|
+
|
|
666
|
+
#### Parameters
|
|
667
|
+
|
|
668
|
+
| Parameter | Type |
|
|
669
|
+
| ------ | ------ |
|
|
670
|
+
| `level` | `"Normal"` \| `"Mild"` \| `"Moderate"` \| `"Severe"` |
|
|
671
|
+
|
|
672
|
+
#### Returns
|
|
673
|
+
|
|
674
|
+
`void`
|
|
675
|
+
|
|
676
|
+
***
|
|
677
|
+
|
|
678
|
+
### getNetworkDiagnosticsSnapshot()
|
|
679
|
+
|
|
680
|
+
> **getNetworkDiagnosticsSnapshot**(): [`NetworkDiagnosticsSnapshot`](../../../types/interfaces/NetworkDiagnosticsSnapshot.md)
|
|
681
|
+
|
|
682
|
+
获取当前弱网诊断快照。
|
|
683
|
+
|
|
684
|
+
#### Returns
|
|
685
|
+
|
|
686
|
+
[`NetworkDiagnosticsSnapshot`](../../../types/interfaces/NetworkDiagnosticsSnapshot.md)
|
|
687
|
+
|
|
688
|
+
***
|
|
689
|
+
|
|
690
|
+
### disconnect()
|
|
691
|
+
|
|
692
|
+
> **disconnect**(): `void`
|
|
693
|
+
|
|
694
|
+
关闭中心与会话连接,并重置鉴权状态。
|
|
695
|
+
|
|
696
|
+
#### Returns
|
|
697
|
+
|
|
698
|
+
`void`
|
|
699
|
+
|
|
700
|
+
***
|
|
701
|
+
|
|
702
|
+
### connect()
|
|
703
|
+
|
|
704
|
+
> **connect**(): `Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
705
|
+
|
|
706
|
+
在显式 disconnect 后重新连接中心与 WebRTC 链路。
|
|
707
|
+
|
|
708
|
+
#### Returns
|
|
709
|
+
|
|
710
|
+
`Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
711
|
+
|
|
712
|
+
***
|
|
713
|
+
|
|
714
|
+
### restart()
|
|
715
|
+
|
|
716
|
+
> **restart**(): `Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
717
|
+
|
|
718
|
+
重启中心与 WebRTC 链路:
|
|
719
|
+
1) 断开当前中心与 WebRTC;
|
|
720
|
+
2) 等待旧鉴权流程稳定退出;
|
|
721
|
+
3) 重新发起鉴权与建连。
|
|
722
|
+
|
|
723
|
+
#### Returns
|
|
724
|
+
|
|
725
|
+
`Promise`\<[`AuthSessionSnapshot`](../../../types/interfaces/AuthSessionSnapshot.md)\>
|
|
726
|
+
|
|
727
|
+
***
|
|
728
|
+
|
|
729
|
+
### getEngineConfig()
|
|
730
|
+
|
|
731
|
+
> **getEngineConfig**(): [`ResolvedEngineConfig`](../../../types/interfaces/ResolvedEngineConfig.md)
|
|
732
|
+
|
|
733
|
+
获取归一化后的引擎配置。
|
|
734
|
+
返回的是 `resolveEngineConfig` 的结果,`dom`、`sceneName` 等字段已保证有值。
|
|
735
|
+
|
|
736
|
+
#### Returns
|
|
737
|
+
|
|
738
|
+
[`ResolvedEngineConfig`](../../../types/interfaces/ResolvedEngineConfig.md)
|