@nnepoch/dtc-sdk 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/dtc-sdk-3.0.13.js +2 -0
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.d.cts +329 -9
- package/dist/esm/index.d.ts +329 -9
- package/dist/esm/index.js +4 -4
- package/docs/api/api/classes/ApiRegistryError.md +2 -2
- package/docs/api/api/classes/Camera.md +3 -3
- package/docs/api/api/classes/GizmosTool.md +94 -0
- package/docs/api/api/classes/HeatMap.md +217 -0
- package/docs/api/api/classes/HighLighterEffect.md +6 -0
- package/docs/api/api/classes/Layer.md +103 -1
- package/docs/api/api/classes/Model.md +58 -0
- package/docs/api/api/classes/Navigation.md +618 -0
- package/docs/api/api/classes/PathPatrol.md +8 -4
- package/docs/api/api/classes/PointEditor.md +265 -0
- package/docs/api/api/classes/PointIcon.md +275 -0
- package/docs/api/api/classes/SpatialQuery.md +175 -0
- package/docs/api/api/classes/TimeLine.md +4 -0
- package/docs/api/api/classes/TrainSimulate.md +250 -0
- package/docs/api/api/classes/WeatherSystem.md +55 -6
- package/docs/api/api/classes/WebView.md +61 -0
- package/docs/api/api/index.md +11 -0
- package/docs/api/api/interfaces/ApiInstanceMap.md +52 -0
- package/docs/api/api/interfaces/ApiRegistryContext.md +21 -1
- package/docs/api/api/interfaces/PointIconIdsRequest.md +9 -0
- package/docs/api/api/interfaces/PointIconVisibilityResult.md +31 -0
- package/docs/api/api/type-aliases/ApiModuleFactory.md +1 -1
- package/docs/api/api/type-aliases/PointIconIdsInput.md +5 -0
- package/docs/api/application/DTCEngine/classes/DTCEngine.md +72 -0
- package/docs/api/application/DTCEngine/interfaces/DTCEngineOptions.md +2 -2
- package/docs/api/index.md +1 -1
- package/docs/api/typedoc-sidebar.json +260 -0
- package/docs/api/types/enumerations/FilterMode.md +21 -0
- package/docs/api/types/enumerations/GizmoType.md +37 -0
- package/docs/api/types/enumerations/TrainBehavior.md +29 -0
- package/docs/api/types/index.md +54 -0
- package/docs/api/types/interfaces/AnimationGetLengthRequest.md +1 -1
- package/docs/api/types/interfaces/AnimationPlayRequest.md +5 -5
- package/docs/api/types/interfaces/AnimationSetSpeedRequest.md +1 -1
- package/docs/api/types/interfaces/AnimationStartLoopRequest.md +4 -4
- package/docs/api/types/interfaces/AnimationStopLoopRequest.md +1 -1
- package/docs/api/types/interfaces/AnimationStopRequest.md +1 -1
- package/docs/api/types/interfaces/ApiRequestEnvelope.md +1 -1
- package/docs/api/types/interfaces/ApiResponseEnvelope.md +3 -3
- package/docs/api/types/interfaces/AuthSessionSnapshot.md +4 -4
- package/docs/api/types/interfaces/BuildingFloorCancelOptions.md +11 -0
- package/docs/api/types/interfaces/BuildingFloorItem.md +29 -0
- package/docs/api/types/interfaces/BuildingFloorOverview.md +21 -0
- package/docs/api/types/interfaces/BuildingFloorOverviewOptions.md +19 -0
- package/docs/api/types/interfaces/BuildingFloorRegistration.md +37 -0
- package/docs/api/types/interfaces/BuildingFloorRegistrationResult.md +11 -0
- package/docs/api/types/interfaces/BuildingFloorState.md +35 -0
- package/docs/api/types/interfaces/BuildingFloorStateOptions.md +11 -0
- package/docs/api/types/interfaces/BuildingFloorSwitchOptions.md +25 -0
- package/docs/api/types/interfaces/BuildingFloorTransitionResult.md +43 -0
- package/docs/api/types/interfaces/BuildingFloorViewPoint.md +37 -0
- package/docs/api/types/interfaces/CameraFlyByPathRequest.md +4 -4
- package/docs/api/types/interfaces/CameraFlyToTargetRequest.md +11 -3
- package/docs/api/types/interfaces/CameraLookAtRequest.md +7 -7
- package/docs/api/types/interfaces/CameraObjFollowRequest.md +3 -3
- package/docs/api/types/interfaces/CenterConnectResult.md +4 -4
- package/docs/api/types/interfaces/CenterEnvelope.md +4 -4
- package/docs/api/types/interfaces/CenterServiceInfo.md +5 -5
- package/docs/api/types/interfaces/CenterTokenAuthorizeResult.md +1 -1
- package/docs/api/types/interfaces/DlssSetEnableRequest.md +2 -2
- package/docs/api/types/interfaces/DlssSetQualityRequest.md +1 -1
- package/docs/api/types/interfaces/EngineConfig.md +34 -18
- package/docs/api/types/interfaces/GizmosStartSimpleRequest.md +21 -0
- package/docs/api/types/interfaces/HeatMapConfigRequest.md +53 -0
- package/docs/api/types/interfaces/HeatMapCreateRequest.md +85 -0
- package/docs/api/types/interfaces/HeatMapPointRequest.md +21 -0
- package/docs/api/types/interfaces/HeatMapRemoveRequest.md +21 -0
- package/docs/api/types/interfaces/HighLighterRemoveHighLightModelRequest.md +1 -1
- package/docs/api/types/interfaces/HighLighterSetHighLightModelRequest.md +1 -1
- package/docs/api/types/interfaces/LayerAddRequest.md +14 -6
- package/docs/api/types/interfaces/LayerChildElementRequest.md +1 -1
- package/docs/api/types/interfaces/LayerModelAddRequest.md +19 -7
- package/docs/api/types/interfaces/LayerPOIAddRequest.md +22 -14
- package/docs/api/types/interfaces/LayerResetPOINameRequest.md +21 -0
- package/docs/api/types/interfaces/LayerSelectorRequest.md +1 -1
- package/docs/api/types/interfaces/LayerShowUIPopRequest.md +5 -5
- package/docs/api/types/interfaces/LayerUpdatePOINameRequest.md +37 -0
- package/docs/api/types/interfaces/ModelAddRequest.md +5 -5
- package/docs/api/types/interfaces/ModelPOIAddRequest.md +3 -3
- package/docs/api/types/interfaces/ModelPOIUpdateRequest.md +4 -4
- package/docs/api/types/interfaces/ModelSelectorRequest.md +1 -1
- package/docs/api/types/interfaces/ModelSetVisibleByAttributeRequest.md +37 -0
- package/docs/api/types/interfaces/ModelSetVisibleByTagsRequest.md +1 -1
- package/docs/api/types/interfaces/ModelSetVisibleRequest.md +2 -2
- package/docs/api/types/interfaces/ModelTransformNodeRequest.md +1 -1
- package/docs/api/types/interfaces/ModelTransformRestoreRequest.md +1 -1
- package/docs/api/types/interfaces/ModelTransformRotateByTargetRequest.md +7 -7
- package/docs/api/types/interfaces/ModelTransformRotateRequest.md +1 -1
- package/docs/api/types/interfaces/ModelTransformScaleRequest.md +2 -2
- package/docs/api/types/interfaces/ModelTransformStartMoveRequest.md +5 -5
- package/docs/api/types/interfaces/NavigationMeshNavRequest.md +121 -0
- package/docs/api/types/interfaces/NavigationNavByPathRequest.md +61 -0
- package/docs/api/types/interfaces/NavigationNodeRequest.md +21 -0
- package/docs/api/types/interfaces/NavigationUpdateMeshNavRequest.md +45 -0
- package/docs/api/types/interfaces/NavigationUpdateNavPathRequest.md +45 -0
- package/docs/api/types/interfaces/NavigationUpdateSpeedRequest.md +27 -0
- package/docs/api/types/interfaces/NetworkAdaptationActionStep.md +1 -1
- package/docs/api/types/interfaces/NetworkAdaptationState.md +1 -1
- package/docs/api/types/interfaces/NetworkDecisionTrace.md +2 -2
- package/docs/api/types/interfaces/NetworkDiagnosticsSnapshot.md +2 -2
- package/docs/api/types/interfaces/NetworkMetricsSnapshot.md +7 -7
- package/docs/api/types/interfaces/PathPatrolAddRequest.md +18 -10
- package/docs/api/types/interfaces/PathPatrolNodeRequest.md +1 -1
- package/docs/api/types/interfaces/PathPatrolSetTimeNodeRequest.md +3 -3
- package/docs/api/types/interfaces/PathPatrolUpdateRequest.md +5 -5
- package/docs/api/types/interfaces/PointEditorAddRequest.md +149 -0
- package/docs/api/types/interfaces/PointEditorCategory.md +29 -0
- package/docs/api/types/interfaces/PointEditorClientPosition.md +21 -0
- package/docs/api/types/interfaces/PointEditorDeleteRequest.md +21 -0
- package/docs/api/types/interfaces/PointEditorDeleteResult.md +21 -0
- package/docs/api/types/interfaces/PointEditorResource.md +37 -0
- package/docs/api/types/interfaces/PointEditorScreenPosition.md +21 -0
- package/docs/api/types/interfaces/PointEditorVector.md +29 -0
- package/docs/api/types/interfaces/PopupAddRequest.md +2 -2
- package/docs/api/types/interfaces/PopupItemRequest.md +5 -5
- package/docs/api/types/interfaces/PopupRemoveRequest.md +2 -2
- package/docs/api/types/interfaces/PopupShowRequest.md +3 -3
- package/docs/api/types/interfaces/PopupSyncInfoRequest.md +2 -2
- package/docs/api/types/interfaces/QosEvent.md +5 -5
- package/docs/api/types/interfaces/QosRuntimeContext.md +4 -4
- package/docs/api/types/interfaces/ResolvedEngineConfig.md +17 -5
- package/docs/api/types/interfaces/ScreenSetSceneFPSRequest.md +1 -1
- package/docs/api/types/interfaces/ScreenSetSceneRenderBitrateRequest.md +1 -1
- package/docs/api/types/interfaces/ScreenSetScreenResolutionRequest.md +2 -2
- package/docs/api/types/interfaces/SignallingAllocateResponse.md +4 -4
- package/docs/api/types/interfaces/SpatialQueryLayerByModelBoxRequest.md +29 -0
- package/docs/api/types/interfaces/SpatialQueryLayerByModelRequest.md +53 -0
- package/docs/api/types/interfaces/SpatialQueryLayerByPositionRequest.md +45 -0
- package/docs/api/types/interfaces/StandardResponse.md +1 -1
- package/docs/api/types/interfaces/TimelineNodeRequest.md +2 -2
- package/docs/api/types/interfaces/TimelinePlayRequest.md +6 -6
- package/docs/api/types/interfaces/TimelineSetSpeedRequest.md +3 -3
- package/docs/api/types/interfaces/TimelineStopRequest.md +5 -5
- package/docs/api/types/interfaces/TrainSimulateSetCameraFollowTrainRequest.md +29 -0
- package/docs/api/types/interfaces/TrainSimulateSetTrainBehaviorRequest.md +29 -0
- package/docs/api/types/interfaces/TrainSimulateSetTrainVolumeRequest.md +29 -0
- package/docs/api/types/interfaces/TrainSimulateStartTrainRequest.md +77 -0
- package/docs/api/types/interfaces/UIPOIEnableOverlapRequest.md +1 -1
- package/docs/api/types/interfaces/Vector2JsonInput.md +15 -0
- package/docs/api/types/interfaces/WeatherChangeSeasonRequest.md +1 -1
- package/docs/api/types/interfaces/WeatherOpenCameraFogRequest.md +8 -8
- package/docs/api/types/interfaces/WeatherSetAnimateTimeOfDayRequest.md +3 -3
- package/docs/api/types/interfaces/WeatherSetSceneTimeRequest.md +1 -1
- package/docs/api/types/interfaces/WeatherSetTimeSyncRequest.md +1 -1
- package/docs/api/types/interfaces/WeatherSetVolumeRequest.md +13 -0
- package/docs/api/types/interfaces/WeatherTypeRequest.md +2 -8
- package/docs/api/types/interfaces/WebViewUpdateRequest.md +29 -0
- package/docs/api/types/type-aliases/ApiCallback.md +1 -1
- package/docs/api/types/type-aliases/BuildingFloorFocusMode.md +5 -0
- package/docs/api/types/type-aliases/BuildingFloorInput.md +7 -0
- package/docs/api/types/type-aliases/BuildingFloorRuntimeStatus.md +5 -0
- package/docs/api/types/type-aliases/BuildingFloorTransitionStatus.md +5 -0
- package/docs/api/types/type-aliases/PointEditorCreateCallback.md +7 -0
- package/docs/api/types/type-aliases/PointEditorPoint.md +7 -0
- package/docs/api/types/type-aliases/PointEditorUpdateRequest.md +15 -0
- package/docs/api/types/type-aliases/Vector2Input.md +5 -0
- package/package.json +1 -1
- package/dist/browser/dtc-sdk-3.0.11.js +0 -2
|
@@ -51,10 +51,10 @@ API 注册表运行时校验错误。
|
|
|
51
51
|
|
|
52
52
|
### moduleName?
|
|
53
53
|
|
|
54
|
-
> `readonly` `optional` **moduleName
|
|
54
|
+
> `readonly` `optional` **moduleName?**: `string`
|
|
55
55
|
|
|
56
56
|
***
|
|
57
57
|
|
|
58
58
|
### dependencyName?
|
|
59
59
|
|
|
60
|
-
> `readonly` `optional` **dependencyName
|
|
60
|
+
> `readonly` `optional` **dependencyName?**: `string`
|
|
@@ -555,9 +555,9 @@ low
|
|
|
555
555
|
#### Example
|
|
556
556
|
|
|
557
557
|
```ts
|
|
558
|
-
dtcEngine.Camera.startCameraObjFollow({ id: 'myCar', offSet: new dtcEngine.Type.Vector3(0, 3, 5), smooth: 0.85 }, (result) => {
|
|
559
|
-
|
|
560
|
-
});
|
|
558
|
+
dtcEngine.Camera.startCameraObjFollow({ id: 'myCar', offSet: new dtcEngine.Type.Vector3(0, 3, 5), smooth: 0.85 }, (result) => {
|
|
559
|
+
console.log(result);
|
|
560
|
+
});
|
|
561
561
|
```
|
|
562
562
|
|
|
563
563
|
***
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / GizmosTool
|
|
2
|
+
|
|
3
|
+
# Class: GizmosTool
|
|
4
|
+
|
|
5
|
+
网页 MODEL 运行时编辑,不开启本地工作台,不保存 PointTool 文件。
|
|
6
|
+
|
|
7
|
+
## Agent Title
|
|
8
|
+
|
|
9
|
+
模型交互编辑
|
|
10
|
+
|
|
11
|
+
## Agent Capabilities
|
|
12
|
+
|
|
13
|
+
开启模型编辑, 切换编辑目标, 退出模型编辑
|
|
14
|
+
|
|
15
|
+
## Extends
|
|
16
|
+
|
|
17
|
+
- `BaseApi`
|
|
18
|
+
|
|
19
|
+
## Methods
|
|
20
|
+
|
|
21
|
+
### startSimpleGizmoMode()
|
|
22
|
+
|
|
23
|
+
> **startSimpleGizmoMode**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
24
|
+
|
|
25
|
+
开启或切换模型编辑目标,同时显示平移、旋转和缩放手柄,无需指定编辑模式。
|
|
26
|
+
拖动过程中 UE 持续推送 ModelUpdate,SDK 不做时间防抖;业务端自行防抖保存。
|
|
27
|
+
取消拖动时会回传恢复后的变换,不能把任意一次事件视为后端已保存。
|
|
28
|
+
|
|
29
|
+
#### Parameters
|
|
30
|
+
|
|
31
|
+
| Parameter | Type | Description |
|
|
32
|
+
| ------ | ------ | ------ |
|
|
33
|
+
| `payload` | [`GizmosStartSimpleRequest`](../../types/interfaces/GizmosStartSimpleRequest.md) | 网页 MODEL 的分组和点位标识。 |
|
|
34
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选结果回调。 |
|
|
35
|
+
|
|
36
|
+
#### Returns
|
|
37
|
+
|
|
38
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
39
|
+
|
|
40
|
+
开启结果,不代表后端已保存。
|
|
41
|
+
|
|
42
|
+
#### Agent Side Effects
|
|
43
|
+
|
|
44
|
+
write
|
|
45
|
+
|
|
46
|
+
#### Agent Preconditions
|
|
47
|
+
|
|
48
|
+
WebRTC 已连接;PointTool 本地工作台未占用输入
|
|
49
|
+
|
|
50
|
+
#### Agent Risk Level
|
|
51
|
+
|
|
52
|
+
medium
|
|
53
|
+
|
|
54
|
+
#### Agent Example
|
|
55
|
+
|
|
56
|
+
#### Example
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
await dtcEngine.GizmosTool.startSimpleGizmoMode({ parentId: point.parentId, id: point.id });
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
***
|
|
63
|
+
|
|
64
|
+
### endSimpleGizmoMode()
|
|
65
|
+
|
|
66
|
+
> **endSimpleGizmoMode**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
67
|
+
|
|
68
|
+
退出简易编辑并恢复进入前的鼠标转发配置,不保存本地点位文件。
|
|
69
|
+
|
|
70
|
+
#### Parameters
|
|
71
|
+
|
|
72
|
+
| Parameter | Type | Description |
|
|
73
|
+
| ------ | ------ | ------ |
|
|
74
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选结果回调。 |
|
|
75
|
+
|
|
76
|
+
#### Returns
|
|
77
|
+
|
|
78
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
79
|
+
|
|
80
|
+
退出结果。
|
|
81
|
+
|
|
82
|
+
#### Agent Side Effects
|
|
83
|
+
|
|
84
|
+
write
|
|
85
|
+
|
|
86
|
+
#### Agent Risk Level
|
|
87
|
+
|
|
88
|
+
low
|
|
89
|
+
|
|
90
|
+
#### Example
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
await dtcEngine.GizmosTool.endSimpleGizmoMode();
|
|
94
|
+
```
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
[@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / HeatMap
|
|
2
|
+
|
|
3
|
+
# Class: HeatMap
|
|
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
|
+
### create()
|
|
22
|
+
|
|
23
|
+
> **create**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
24
|
+
|
|
25
|
+
创建热力图。
|
|
26
|
+
按 `id` 查找已存在的热力图,存在则更新数据,不存在则新建;支持多个热力图并存。
|
|
27
|
+
默认值:`textureSize={x:256,y:256}`、`mapSize={x:1000,y:1000}`、`influenceSize=50`、热力点 `value=1`。
|
|
28
|
+
`points` 支持 `{ position, value }` 对象数组,或直接传 `Vector3Input[]` 位置数组(热度值默认 1)。
|
|
29
|
+
|
|
30
|
+
#### Parameters
|
|
31
|
+
|
|
32
|
+
| Parameter | Type | Description |
|
|
33
|
+
| ------ | ------ | ------ |
|
|
34
|
+
| `payload` | [`HeatMapCreateRequest`](../../types/interfaces/HeatMapCreateRequest.md) | 热力图创建参数。 |
|
|
35
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
40
|
+
|
|
41
|
+
Promise 形式的接口响应。
|
|
42
|
+
|
|
43
|
+
#### Agent Side Effects
|
|
44
|
+
|
|
45
|
+
write
|
|
46
|
+
|
|
47
|
+
#### Agent Preconditions
|
|
48
|
+
|
|
49
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
50
|
+
|
|
51
|
+
#### Agent Risk Level
|
|
52
|
+
|
|
53
|
+
low
|
|
54
|
+
|
|
55
|
+
#### Agent Example
|
|
56
|
+
|
|
57
|
+
#### Example
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
示例 1:创建热力图,支持 `{ position, value }` 对象数组
|
|
61
|
+
|
|
62
|
+
dtcEngine.HeatMap.create(
|
|
63
|
+
{
|
|
64
|
+
id: 'heatMap1',
|
|
65
|
+
textureSize: new dtcEngine.Type.Vector2(256, 256),
|
|
66
|
+
mapSize: new dtcEngine.Type.Vector2(1000, 1000),
|
|
67
|
+
influenceSize: 50,
|
|
68
|
+
points: [
|
|
69
|
+
{ position: new dtcEngine.Type.Vector3(120.15, 30.28, 10), value: 0.8 },
|
|
70
|
+
{ position: new dtcEngine.Type.Vector3(120.16, 30.29, 10), value: 0.5 }
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
(result) => { console.log(result); }
|
|
74
|
+
);
|
|
75
|
+
示例 2:创建热力图,支持直接传 Vector3Input[] 位置数组
|
|
76
|
+
dtcEngine.HeatMap.create(
|
|
77
|
+
{
|
|
78
|
+
id: 'heatMap1',
|
|
79
|
+
textureSize: new dtcEngine.Type.Vector2(256, 256),
|
|
80
|
+
mapSize: new dtcEngine.Type.Vector2(1000, 1000),
|
|
81
|
+
influenceSize: 50,
|
|
82
|
+
points: [
|
|
83
|
+
new dtcEngine.Type.Vector3(120.15, 30.28, 10),
|
|
84
|
+
new dtcEngine.Type.Vector3(120.16, 30.29, 10)
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
(result) => { console.log(result); }
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### remove()
|
|
94
|
+
|
|
95
|
+
> **remove**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
96
|
+
|
|
97
|
+
移除热力图。
|
|
98
|
+
传 `id` 只移除指定热力图,未传则清空全部。
|
|
99
|
+
|
|
100
|
+
#### Parameters
|
|
101
|
+
|
|
102
|
+
| Parameter | Type | Description |
|
|
103
|
+
| ------ | ------ | ------ |
|
|
104
|
+
| `payload` | [`HeatMapRemoveRequest`](../../types/interfaces/HeatMapRemoveRequest.md) | 热力图对象参数。 |
|
|
105
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
106
|
+
|
|
107
|
+
#### Returns
|
|
108
|
+
|
|
109
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
110
|
+
|
|
111
|
+
Promise 形式的接口响应。
|
|
112
|
+
|
|
113
|
+
#### Agent Side Effects
|
|
114
|
+
|
|
115
|
+
write
|
|
116
|
+
|
|
117
|
+
#### Agent Preconditions
|
|
118
|
+
|
|
119
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
120
|
+
|
|
121
|
+
#### Agent Risk Level
|
|
122
|
+
|
|
123
|
+
low
|
|
124
|
+
|
|
125
|
+
#### Agent Example
|
|
126
|
+
|
|
127
|
+
#### Example
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
dtcEngine.HeatMap.remove({ id: 'heatMap1' }, (result) => { console.log(result); });
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### clear()
|
|
136
|
+
|
|
137
|
+
> **clear**(`callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
138
|
+
|
|
139
|
+
清空全部热力图,无需传参。
|
|
140
|
+
|
|
141
|
+
#### Parameters
|
|
142
|
+
|
|
143
|
+
| Parameter | Type | Description |
|
|
144
|
+
| ------ | ------ | ------ |
|
|
145
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
146
|
+
|
|
147
|
+
#### Returns
|
|
148
|
+
|
|
149
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
150
|
+
|
|
151
|
+
Promise 形式的接口响应。
|
|
152
|
+
|
|
153
|
+
#### Agent Side Effects
|
|
154
|
+
|
|
155
|
+
write
|
|
156
|
+
|
|
157
|
+
#### Agent Preconditions
|
|
158
|
+
|
|
159
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
160
|
+
|
|
161
|
+
#### Agent Risk Level
|
|
162
|
+
|
|
163
|
+
low
|
|
164
|
+
|
|
165
|
+
#### Agent Example
|
|
166
|
+
|
|
167
|
+
#### Example
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
dtcEngine.HeatMap.clear((result) => { console.log(result); });
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
175
|
+
### setConfig()
|
|
176
|
+
|
|
177
|
+
> **setConfig**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
178
|
+
|
|
179
|
+
设置热力图参数(透明度/高度缩放/颜色过渡)。
|
|
180
|
+
`id` 非空时作用于该 id 的热力图,否则作用于最近创建的热力图。
|
|
181
|
+
默认值:`opacity=0.7`、`heightScale=2500`、`lerpScale=2.5`。
|
|
182
|
+
|
|
183
|
+
#### Parameters
|
|
184
|
+
|
|
185
|
+
| Parameter | Type | Description |
|
|
186
|
+
| ------ | ------ | ------ |
|
|
187
|
+
| `payload` | [`HeatMapConfigRequest`](../../types/interfaces/HeatMapConfigRequest.md) | 热力图参数。 |
|
|
188
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
189
|
+
|
|
190
|
+
#### Returns
|
|
191
|
+
|
|
192
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
193
|
+
|
|
194
|
+
Promise 形式的接口响应。
|
|
195
|
+
|
|
196
|
+
#### Agent Side Effects
|
|
197
|
+
|
|
198
|
+
write
|
|
199
|
+
|
|
200
|
+
#### Agent Preconditions
|
|
201
|
+
|
|
202
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
203
|
+
|
|
204
|
+
#### Agent Risk Level
|
|
205
|
+
|
|
206
|
+
low
|
|
207
|
+
|
|
208
|
+
#### Agent Example
|
|
209
|
+
|
|
210
|
+
#### Example
|
|
211
|
+
|
|
212
|
+
```ts
|
|
213
|
+
dtcEngine.HeatMap.setConfig(
|
|
214
|
+
{ id: 'heatMap1', opacity: 0.5, heightScale: 3000, lerpScale: 3 },
|
|
215
|
+
(result) => { console.log(result); }
|
|
216
|
+
);
|
|
217
|
+
```
|
|
@@ -93,6 +93,8 @@ low
|
|
|
93
93
|
|
|
94
94
|
#### Example
|
|
95
95
|
|
|
96
|
+
**给图层组为cameraGroup,下面编号为 camera01,camera02的模型对象添加高亮效果**
|
|
97
|
+
|
|
96
98
|
```
|
|
97
99
|
dtcEngine.HighlighterEffect.setHighLightModel({parentId:'test',ids: ["Sphere", "Sphere1"]} ,result =>console.log(result));
|
|
98
100
|
```
|
|
@@ -132,6 +134,8 @@ low
|
|
|
132
134
|
|
|
133
135
|
#### Example
|
|
134
136
|
|
|
137
|
+
**清除图层组为cameraGroup,下面编号为 camera01,camera02的模型对象的高亮效果**
|
|
138
|
+
|
|
135
139
|
```
|
|
136
140
|
dtcEngine.HighlighterEffect.removeHighLightModel({parentId:'test',ids: ["Sphere", "Sphere1"] },result=>console.log(result));
|
|
137
141
|
```
|
|
@@ -168,6 +172,8 @@ low
|
|
|
168
172
|
|
|
169
173
|
#### Example
|
|
170
174
|
|
|
175
|
+
**移除场景模型 高亮效果**
|
|
176
|
+
|
|
171
177
|
```
|
|
172
178
|
dtcEngine.HighlighterEffect.clear(result=>console.log(result));
|
|
173
179
|
```
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## Agent Capabilities
|
|
12
12
|
|
|
13
|
-
图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除,
|
|
13
|
+
图层添加, 图层删除, 图层存在性查询, 模型图层切换, 图层气泡显隐, 图层模型添加, 图层模型删除, 图层子对象查询, POI名称更新, POI名称重置
|
|
14
14
|
|
|
15
15
|
## Extends
|
|
16
16
|
|
|
@@ -361,6 +361,108 @@ low
|
|
|
361
361
|
|
|
362
362
|
***
|
|
363
363
|
|
|
364
|
+
### updatePOIName()
|
|
365
|
+
|
|
366
|
+
> **updatePOIName**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
367
|
+
|
|
368
|
+
更新 POI 气泡的显示文本。
|
|
369
|
+
默认值:`updateType='update'`。`updateType` 支持 `update` 更新、`append` 追加、`remove` 移除。
|
|
370
|
+
|
|
371
|
+
#### Parameters
|
|
372
|
+
|
|
373
|
+
| Parameter | Type | Description |
|
|
374
|
+
| ------ | ------ | ------ |
|
|
375
|
+
| `payload` | [`LayerUpdatePOINameRequest`](../../types/interfaces/LayerUpdatePOINameRequest.md) | POI 文本更新参数。 |
|
|
376
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
377
|
+
|
|
378
|
+
#### Returns
|
|
379
|
+
|
|
380
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
381
|
+
|
|
382
|
+
Promise 形式的接口响应。
|
|
383
|
+
|
|
384
|
+
#### Agent Side Effects
|
|
385
|
+
|
|
386
|
+
write
|
|
387
|
+
|
|
388
|
+
#### Agent Preconditions
|
|
389
|
+
|
|
390
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
391
|
+
|
|
392
|
+
#### Agent Risk Level
|
|
393
|
+
|
|
394
|
+
low
|
|
395
|
+
|
|
396
|
+
#### Agent Example
|
|
397
|
+
|
|
398
|
+
#### Example
|
|
399
|
+
|
|
400
|
+
```ts
|
|
401
|
+
示例1: 追加文本
|
|
402
|
+
dtcEngine.Layer.updatePOIName(
|
|
403
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "append" },
|
|
404
|
+
(result) => { console.log(result); }
|
|
405
|
+
);
|
|
406
|
+
|
|
407
|
+
示例2: 移除文本
|
|
408
|
+
dtcEngine.Layer.updatePOIName(
|
|
409
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "remove" },
|
|
410
|
+
(result) => { console.log(result); }
|
|
411
|
+
);
|
|
412
|
+
* 示例3: 更新文本
|
|
413
|
+
dtcEngine.Layer.updatePOIName(
|
|
414
|
+
{ parentId: 'CameraLayerModel', id: 'camera01', name: '一体化球击摄像机', updateType: "update" },
|
|
415
|
+
(result) => { console.log(result); }
|
|
416
|
+
);
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
***
|
|
420
|
+
|
|
421
|
+
### resetPOIName()
|
|
422
|
+
|
|
423
|
+
> **resetPOIName**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
424
|
+
|
|
425
|
+
重置 POI 气泡的显示文本。
|
|
426
|
+
`ids` 为 POI 对象编号集合,至少一个。
|
|
427
|
+
|
|
428
|
+
#### Parameters
|
|
429
|
+
|
|
430
|
+
| Parameter | Type | Description |
|
|
431
|
+
| ------ | ------ | ------ |
|
|
432
|
+
| `payload` | [`LayerResetPOINameRequest`](../../types/interfaces/LayerResetPOINameRequest.md) | POI 文本重置参数。 |
|
|
433
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
434
|
+
|
|
435
|
+
#### Returns
|
|
436
|
+
|
|
437
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
438
|
+
|
|
439
|
+
Promise 形式的接口响应。
|
|
440
|
+
|
|
441
|
+
#### Agent Side Effects
|
|
442
|
+
|
|
443
|
+
write
|
|
444
|
+
|
|
445
|
+
#### Agent Preconditions
|
|
446
|
+
|
|
447
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
448
|
+
|
|
449
|
+
#### Agent Risk Level
|
|
450
|
+
|
|
451
|
+
low
|
|
452
|
+
|
|
453
|
+
#### Agent Example
|
|
454
|
+
|
|
455
|
+
#### Example
|
|
456
|
+
|
|
457
|
+
```ts
|
|
458
|
+
dtcEngine.Layer.resetPOIName(
|
|
459
|
+
{ parentId: 'CameraLayerModel', ids: ['camera01', 'camera02'] },
|
|
460
|
+
(result) => { console.log(result); }
|
|
461
|
+
);
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
***
|
|
465
|
+
|
|
364
466
|
### removeModel()
|
|
365
467
|
|
|
366
468
|
> **removeModel**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
@@ -108,6 +108,64 @@ low
|
|
|
108
108
|
|
|
109
109
|
***
|
|
110
110
|
|
|
111
|
+
### setVisibleByAttibute()
|
|
112
|
+
|
|
113
|
+
> **setVisibleByAttibute**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
114
|
+
|
|
115
|
+
按对象属性过滤设置模型对象显隐状态。
|
|
116
|
+
默认值:`filterMode=FilterMode.Loose`、`visible=true`、`otherVisible=false`。
|
|
117
|
+
|
|
118
|
+
#### Parameters
|
|
119
|
+
|
|
120
|
+
| Parameter | Type | Description |
|
|
121
|
+
| ------ | ------ | ------ |
|
|
122
|
+
| `payload` | [`ModelSetVisibleByAttributeRequest`](../../types/interfaces/ModelSetVisibleByAttributeRequest.md) | 属性过滤显隐参数。 |
|
|
123
|
+
| `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
|
|
124
|
+
|
|
125
|
+
#### Returns
|
|
126
|
+
|
|
127
|
+
`Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|
|
128
|
+
|
|
129
|
+
Promise 形式的接口响应。
|
|
130
|
+
|
|
131
|
+
#### Agent Side Effects
|
|
132
|
+
|
|
133
|
+
write
|
|
134
|
+
|
|
135
|
+
#### Agent Preconditions
|
|
136
|
+
|
|
137
|
+
DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
138
|
+
|
|
139
|
+
#### Agent Risk Level
|
|
140
|
+
|
|
141
|
+
low
|
|
142
|
+
|
|
143
|
+
#### Agent Example
|
|
144
|
+
|
|
145
|
+
#### Examples
|
|
146
|
+
|
|
147
|
+
**宽松过滤 Loose:只影响属性匹配 floor='B2' 的对象,其它对象不受影响**
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
// 隐藏 floor='B2' 的对象
|
|
151
|
+
dtcEngine.Model.setVisibleByAttibute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: false }, (result) => { console.log(result); });
|
|
152
|
+
// 显示 floor='B2' 的对象
|
|
153
|
+
dtcEngine.Model.setVisibleByAttibute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: true }, (result) => { console.log(result); });
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**严格过滤 Strict:floor='B1' 的对象按 visible 控制,其它楼层对象按 otherVisible 控制**
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
// 隐藏 floor='B1' 的对象,其它楼层对象也隐藏
|
|
160
|
+
dtcEngine.Model.setVisibleByAttibute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: false }, (result) => { console.log(result); });
|
|
161
|
+
// 隐藏 floor='B1' 的对象,其它楼层对象显示
|
|
162
|
+
dtcEngine.Model.setVisibleByAttibute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: true }, (result) => { console.log(result); });
|
|
163
|
+
// 显示 floor='B1' 的对象,其它楼层对象隐藏
|
|
164
|
+
dtcEngine.Model.setVisibleByAttibute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: true, otherVisible: false }, (result) => { console.log(result); });
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
***
|
|
168
|
+
|
|
111
169
|
### getElementTree()
|
|
112
170
|
|
|
113
171
|
> **getElementTree**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
|