vrtalk-web-sdk 0.2.219 → 0.4.472
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/src/index.d.ts +1 -0
- package/dist/src/model/ar/ar-character-settings.d.ts +19 -0
- package/dist/src/model/ar/ar-content-data.d.ts +19 -0
- package/dist/src/model/ar/ar-environment-settings.d.ts +15 -0
- package/dist/src/model/ar/ar-image-target-settings.d.ts +5 -0
- package/dist/src/model/ar/index.d.ts +2 -0
- package/dist/src/model/general/ai-activate-settings.d.ts +38 -0
- package/dist/src/model/general/free-button.d.ts +7 -4
- package/dist/src/model/general/index.d.ts +3 -0
- package/dist/src/model/general/multi-language-str.d.ts +29 -0
- package/dist/src/model/general/vrtalk-base-data.d.ts +4 -0
- package/dist/src/model/index.d.ts +1 -0
- package/dist/src/model/unity/index.d.ts +3 -0
- package/dist/src/model/unity/unity-navigation-mode.d.ts +10 -0
- package/dist/src/model/unity/unity-navigation-params.d.ts +45 -0
- package/dist/src/model/unity/unity-navigation-plan.d.ts +10 -0
- package/dist/src/model/vr/index.d.ts +21 -0
- package/dist/src/model/vr/vr-action.d.ts +127 -18
- package/dist/src/model/vr/vr-ad-channel.d.ts +8 -0
- package/dist/src/model/vr/vr-ad-item.d.ts +9 -0
- package/dist/src/model/vr/vr-ai-settings.d.ts +9 -0
- package/dist/src/model/vr/vr-asset-label.d.ts +17 -0
- package/dist/src/model/vr/vr-audio.d.ts +4 -5
- package/dist/src/model/vr/vr-content-card.d.ts +32 -5
- package/dist/src/model/vr/vr-content-data.d.ts +44 -3
- package/dist/src/model/vr/vr-floor.d.ts +2 -2
- package/dist/src/model/vr/vr-flow.d.ts +21 -2
- package/dist/src/model/vr/vr-fov.d.ts +4 -2
- package/dist/src/model/vr/vr-layer.d.ts +2 -2
- package/dist/src/model/vr/vr-light.d.ts +3 -3
- package/dist/src/model/vr/vr-marker.d.ts +6 -4
- package/dist/src/model/vr/vr-measure-data.d.ts +29 -0
- package/dist/src/model/vr/vr-navigation-ad-config.d.ts +16 -0
- package/dist/src/model/vr/vr-obstacle-group.d.ts +6 -0
- package/dist/src/model/vr/vr-obstacle.d.ts +16 -0
- package/dist/src/model/vr/vr-signal.d.ts +18 -4
- package/dist/src/model/vr/vr-sticker.d.ts +18 -0
- package/dist/src/model/vr/vr-sweep.d.ts +6 -2
- package/dist/src/model/vr/vr-target-group.d.ts +7 -0
- package/dist/src/model/vr/vr-target.d.ts +19 -0
- package/dist/src/model/vr/vr-trimmer-data.d.ts +11 -0
- package/dist/src/model/vr/vr-view.d.ts +2 -2
- package/dist/src/model/vr/vr-wormhole-group.d.ts +6 -0
- package/dist/src/model/vr/vr-wormhole.d.ts +17 -0
- package/dist/src/model/vr/work-note.d.ts +9 -0
- package/dist/src/model/vr/xr-ai-agent.d.ts +27 -0
- package/dist/src/model/vr/xr-logic.d.ts +246 -0
- package/dist/src/model/vr/xr-message-card.d.ts +9 -0
- package/dist/src/model/vr/xr-monitor.d.ts +79 -0
- package/dist/src/model/vr/xr-space-fence-group.d.ts +7 -0
- package/dist/src/model/vr/xr-space-fence.d.ts +17 -0
- package/dist/src/model/vr/xr-virtual-floor.d.ts +12 -0
- package/dist/src/model/vr-component/vr-component-2d-panel-data.d.ts +23 -9
- package/dist/src/model/vr-component/vr-component-2d-text-data.d.ts +17 -1
- package/dist/src/model/vr-component/vr-component-2d-video-data.d.ts +4 -0
- package/dist/src/model/vr-component/vr-component-3d-model-data.d.ts +1 -0
- package/dist/src/model/vr-component/vr-component-data.d.ts +16 -3
- package/dist/src/model/vr-component/vr-component-tag-data.d.ts +27 -8
- package/dist/src/model/vr-state/vr-state-camera.d.ts +11 -0
- package/dist/src/model/vr-state/vr-state-component.d.ts +39 -0
- package/dist/src/model/vr-state/vr-state-data.d.ts +11 -0
- package/dist/src/model/vr-state/vr-state-navigation.d.ts +7 -0
- package/dist/src/model/vr-state/vr-state-player.d.ts +12 -0
- package/dist/src/model/vr-state/vr-state-sweep.d.ts +7 -0
- package/dist/src/parent/com-command/index.d.ts +12 -0
- package/dist/src/parent/com-command/parent-com-command-asset-label.d.ts +32 -0
- package/dist/src/parent/com-command/parent-com-command-camera.d.ts +8 -1
- package/dist/src/parent/com-command/parent-com-command-component.d.ts +16 -0
- package/dist/src/parent/com-command/parent-com-command-fov.d.ts +30 -0
- package/dist/src/parent/com-command/parent-com-command-information.d.ts +20 -0
- package/dist/src/parent/com-command/parent-com-command-light.d.ts +21 -0
- package/dist/src/parent/com-command/parent-com-command-message-card.d.ts +15 -0
- package/dist/src/parent/com-command/parent-com-command-monitor.d.ts +14 -0
- package/dist/src/parent/com-command/parent-com-command-obstacle.d.ts +38 -0
- package/dist/src/parent/com-command/parent-com-command-space-fence.d.ts +13 -0
- package/dist/src/parent/com-command/parent-com-command-sticker.d.ts +39 -0
- package/dist/src/parent/com-command/parent-com-command-target.d.ts +38 -0
- package/dist/src/parent/com-command/parent-com-command-trimmer.d.ts +33 -0
- package/dist/src/parent/com-command/parent-com-command-wormhole.d.ts +38 -0
- package/dist/src/parent/com-message/index.d.ts +8 -0
- package/dist/src/parent/com-message/parent-com-message-asset-label.d.ts +20 -0
- package/dist/src/parent/com-message/parent-com-message-component.d.ts +5 -0
- package/dist/src/parent/com-message/parent-com-message-fov.d.ts +15 -0
- package/dist/src/parent/com-message/parent-com-message-obstacle.d.ts +20 -0
- package/dist/src/parent/com-message/parent-com-message-space-fence.d.ts +8 -0
- package/dist/src/parent/com-message/parent-com-message-sticker.d.ts +20 -0
- package/dist/src/parent/com-message/parent-com-message-target.d.ts +20 -0
- package/dist/src/parent/com-message/parent-com-message-trimmer.d.ts +20 -0
- package/dist/src/parent/com-message/parent-com-message-wormhole.d.ts +20 -0
- package/dist/src/parent/vrtalk-editable-player.d.ts +22 -2
- package/dist/src/player/com-command/index.d.ts +12 -0
- package/dist/src/player/com-command/player-com-command-asset-label.d.ts +26 -0
- package/dist/src/player/com-command/player-com-command-camera.d.ts +8 -1
- package/dist/src/player/com-command/player-com-command-component.d.ts +12 -0
- package/dist/src/player/com-command/player-com-command-fov.d.ts +22 -0
- package/dist/src/player/com-command/player-com-command-information.d.ts +14 -0
- package/dist/src/player/com-command/player-com-command-light.d.ts +18 -0
- package/dist/src/player/com-command/player-com-command-message-card.d.ts +10 -0
- package/dist/src/player/com-command/player-com-command-monitor.d.ts +7 -0
- package/dist/src/player/com-command/player-com-command-obstacle.d.ts +30 -0
- package/dist/src/player/com-command/player-com-command-space-fence.d.ts +10 -0
- package/dist/src/player/com-command/player-com-command-sticker.d.ts +30 -0
- package/dist/src/player/com-command/player-com-command-target.d.ts +30 -0
- package/dist/src/player/com-command/player-com-command-trimmer.d.ts +27 -0
- package/dist/src/player/com-command/player-com-command-wormhole.d.ts +30 -0
- package/dist/src/player/com-command/player-com-command.d.ts +57 -1
- package/dist/src/player/com-message/index.d.ts +8 -0
- package/dist/src/player/com-message/player-com-message-asset-label.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message-component.d.ts +4 -0
- package/dist/src/player/com-message/player-com-message-fov.d.ts +8 -0
- package/dist/src/player/com-message/player-com-message-obstacle.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message-space-fence.d.ts +5 -0
- package/dist/src/player/com-message/player-com-message-sticker.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message-target.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message-trimmer.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message-wormhole.d.ts +13 -0
- package/dist/src/player/com-message/player-com-message.d.ts +17 -1
- package/dist/src/player/player-controller.d.ts +22 -2
- package/dist/src/utils/trigger-migration.d.ts +12 -0
- package/dist/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,18 @@ import { VrCoverSettings } from '../vr/vr-cover-settings';
|
|
|
10
10
|
import { VrView } from './vr-view';
|
|
11
11
|
import { VrFloor } from './vr-floor';
|
|
12
12
|
import { VrComponentData } from '../vr-component';
|
|
13
|
-
import { Vector3, VrFlow, VrSweepCameraPose } from '../../model';
|
|
13
|
+
import { UnityNavigationMode, UnityNavigationParams, Vector3, VrFlow, VrObstacle, XrSpaceFence, XrSpaceFenceGroup, VrSweepCameraPose, VrTarget, VrWormhole, XrVariable, XrVariableExpressionWatcher, XrMonitor, XrStateBindings, XrMessageCard } from '../../model';
|
|
14
|
+
import { VrTrimmerData } from './vr-trimmer-data';
|
|
15
|
+
import { VrSticker } from './vr-sticker';
|
|
16
|
+
import { VrAiSettings } from './vr-ai-settings';
|
|
17
|
+
import { VrSignalTrigger } from './vr-signal';
|
|
18
|
+
import { VrTargetGroup } from './vr-target-group';
|
|
19
|
+
import { VrObstacleGroup } from './vr-obstacle-group';
|
|
20
|
+
import { VrWormholeGroup } from './vr-wormhole-group';
|
|
21
|
+
import { XrVirtualFloor } from './xr-virtual-floor';
|
|
22
|
+
import { VrNavigationAdConfig } from '@/model/vr/vr-navigation-ad-config';
|
|
23
|
+
import { VrAdChannel } from '@/model/vr/vr-ad-channel';
|
|
24
|
+
import { XrAiAgent } from '@/model/vr/xr-ai-agent';
|
|
14
25
|
/**
|
|
15
26
|
* VR内容数据构建器
|
|
16
27
|
*/
|
|
@@ -18,10 +29,11 @@ export declare class VrContentDataBuilder {
|
|
|
18
29
|
/**
|
|
19
30
|
* 构建VR内容数据
|
|
20
31
|
* @param mpModelId matterport VR模型ID
|
|
32
|
+
* @param vrUnicode VR唯一编码
|
|
21
33
|
* @param name VR模型名称
|
|
22
34
|
* @param coverUrl 封面图片URL
|
|
23
35
|
*/
|
|
24
|
-
static buildVrContentData(mpModelId: string, name: string, coverUrl: string): VrContentData;
|
|
36
|
+
static buildVrContentData(mpModelId: string, vrUnicode: string, name: string, coverUrl: string): VrContentData;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* VR相机进入设置
|
|
@@ -37,6 +49,10 @@ export declare class VrWorldSizeInfo {
|
|
|
37
49
|
max: Vector3;
|
|
38
50
|
size: Vector3;
|
|
39
51
|
}
|
|
52
|
+
export declare class VrIntroduceItem {
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
}
|
|
40
56
|
/**
|
|
41
57
|
* VR内容数据
|
|
42
58
|
*/
|
|
@@ -44,6 +60,7 @@ export declare class VrContentData {
|
|
|
44
60
|
version: 10000;
|
|
45
61
|
vrDataKey: string;
|
|
46
62
|
mpModelId: string;
|
|
63
|
+
vrUnicode: string;
|
|
47
64
|
vrCoverSettings: VrCoverSettings;
|
|
48
65
|
vrPlayerUiSettings: VrPlayerUiSettings;
|
|
49
66
|
vrInfoTemplateSettings: VrInfoTemplateSettings;
|
|
@@ -51,6 +68,7 @@ export declare class VrContentData {
|
|
|
51
68
|
sweepMarkerList: VrMarkerGroup[];
|
|
52
69
|
componentMarkerList: VrMarkerGroup[];
|
|
53
70
|
worldSizeInfo: VrWorldSizeInfo;
|
|
71
|
+
introduceItemList: VrIntroduceItem[];
|
|
54
72
|
vrFovList: VrFov[];
|
|
55
73
|
vrContentCardList: VrContentCard[];
|
|
56
74
|
vrFloorList: VrFloor[];
|
|
@@ -60,6 +78,29 @@ export declare class VrContentData {
|
|
|
60
78
|
vrViewList: VrView[];
|
|
61
79
|
sweepList: VrSweep[];
|
|
62
80
|
componentList: VrComponentData[];
|
|
81
|
+
trimmerList: VrTrimmerData[];
|
|
82
|
+
spaceFenceList: XrSpaceFence[];
|
|
83
|
+
spaceFenceGroupList: XrSpaceFenceGroup[];
|
|
63
84
|
vrFlowList: VrFlow[];
|
|
64
|
-
|
|
85
|
+
vrStickerList: VrSticker[];
|
|
86
|
+
vrTargetList: VrTarget[];
|
|
87
|
+
vrTargetGroupList: VrTargetGroup[];
|
|
88
|
+
vrObstacleList: VrObstacle[];
|
|
89
|
+
vrObstacleGroupList: VrObstacleGroup[];
|
|
90
|
+
vrWormholeList: VrWormhole[];
|
|
91
|
+
vrWormholeGroupList: VrWormholeGroup[];
|
|
92
|
+
vrAdChannelList: VrAdChannel[];
|
|
93
|
+
vrAiSettings: VrAiSettings;
|
|
94
|
+
aiAgentList: XrAiAgent[];
|
|
95
|
+
variableList: XrVariable[];
|
|
96
|
+
variableExpressionWatcherList: XrVariableExpressionWatcher[];
|
|
97
|
+
stateBindingsList: XrStateBindings[];
|
|
98
|
+
monitorList: XrMonitor[];
|
|
99
|
+
messageCardList: XrMessageCard[];
|
|
100
|
+
triggerList: VrSignalTrigger[];
|
|
101
|
+
unityNavigationModeList: UnityNavigationMode[];
|
|
102
|
+
unityNavigationParams: UnityNavigationParams;
|
|
103
|
+
xrVirtualFloorList: XrVirtualFloor[];
|
|
104
|
+
navigationAdConfigList: VrNavigationAdConfig[];
|
|
105
|
+
constructor(mpModelId: string, vrUnicode: string);
|
|
65
106
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VrSignalTrigger } from './vr-signal';
|
|
2
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
2
3
|
/**
|
|
3
4
|
* VR楼层
|
|
4
5
|
*/
|
|
5
|
-
export declare class VrFloor {
|
|
6
|
-
id: string;
|
|
6
|
+
export declare class VrFloor extends VRTalkBaseData {
|
|
7
7
|
name: string;
|
|
8
8
|
sequence: number;
|
|
9
9
|
triggerList: VrSignalTrigger[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FreeButton } from '../general/free-button';
|
|
2
2
|
import { VrSignalTrigger } from './vr-signal';
|
|
3
|
+
import { VrAction } from './vr-action';
|
|
3
4
|
export declare type VrFlowStatus = 'draft' | 'published';
|
|
4
5
|
export declare class VrFlowStatusDefine {
|
|
5
6
|
static readonly DRAFT: VrFlowStatus;
|
|
@@ -18,11 +19,12 @@ export declare class VrFlow {
|
|
|
18
19
|
stepList: VrFlowStep[];
|
|
19
20
|
canvasData: string;
|
|
20
21
|
}
|
|
21
|
-
export declare type VrFlowStepType = 'start' | 'finish' | 'general';
|
|
22
|
+
export declare type VrFlowStepType = 'start' | 'finish' | 'general' | 'condition';
|
|
22
23
|
export declare class VrFlowStepTypeDefine {
|
|
23
24
|
static readonly START: VrFlowStepType;
|
|
24
25
|
static readonly FINISH: VrFlowStepType;
|
|
25
26
|
static readonly GENERAL: VrFlowStepType;
|
|
27
|
+
static readonly CONDITION: VrFlowStepType;
|
|
26
28
|
}
|
|
27
29
|
export declare type VrFlowStepBarStyle = 'normal' | 'buttons_only' | 'none';
|
|
28
30
|
export declare class VrFlowStepBarStyleDefine {
|
|
@@ -36,20 +38,33 @@ export declare class VrFlowStep {
|
|
|
36
38
|
name: string;
|
|
37
39
|
title: string;
|
|
38
40
|
description: string;
|
|
41
|
+
note: string;
|
|
39
42
|
iconSrc: string;
|
|
40
43
|
stepBarStyle: VrFlowStepBarStyle;
|
|
41
44
|
showStepBarDelay: number;
|
|
42
45
|
buttonList: FreeButton[];
|
|
46
|
+
enterActionList: VrAction[];
|
|
43
47
|
positionSettings: VrFlowPositionSettings;
|
|
48
|
+
arriveRadius: number;
|
|
49
|
+
arriveActionList: VrFlowStepArriveAction[];
|
|
44
50
|
triggerList: VrFlowTrigger[];
|
|
51
|
+
finishInjectTriggerList: VrSignalTrigger[];
|
|
45
52
|
startCardNextStepEndpointSettings: VrFlowStepEndpointSettings;
|
|
53
|
+
conditionExpression: string;
|
|
54
|
+
conditionTrueEndpointSettings: VrFlowStepEndpointSettings;
|
|
55
|
+
conditionFalseEndpointSettings: VrFlowStepEndpointSettings;
|
|
46
56
|
}
|
|
47
|
-
export declare
|
|
57
|
+
export declare class VrFlowStepArriveAction {
|
|
58
|
+
action: VrAction;
|
|
59
|
+
onlyFirstArrive: boolean;
|
|
60
|
+
}
|
|
61
|
+
export declare type VrFlowPositionType = 'none' | 'sweep' | 'component' | 'fov_link' | 'vr_fov';
|
|
48
62
|
export declare class VrFlowPositionTypeDefine {
|
|
49
63
|
static readonly NONE: VrFlowPositionType;
|
|
50
64
|
static readonly SWEEP: VrFlowPositionType;
|
|
51
65
|
static readonly COMPONENT: VrFlowPositionType;
|
|
52
66
|
static readonly FOV_LINK: VrFlowPositionType;
|
|
67
|
+
static readonly VR_FOV: VrFlowPositionType;
|
|
53
68
|
}
|
|
54
69
|
export declare class VrFlowPositionSettings {
|
|
55
70
|
type: VrFlowPositionType;
|
|
@@ -63,8 +78,12 @@ export declare class VrFlowPositionSettings {
|
|
|
63
78
|
enableDirectLocate: boolean;
|
|
64
79
|
enableNavigateAgain: boolean;
|
|
65
80
|
gotoPositionMethod: import("../general").GotoPositionMethod;
|
|
81
|
+
vrFovId: string;
|
|
82
|
+
moveSpeed: number;
|
|
83
|
+
pauseInterval: number;
|
|
66
84
|
}
|
|
67
85
|
export declare class VrFlowTrigger {
|
|
86
|
+
destroyTriggerOnLeaveCurrenStep: boolean;
|
|
68
87
|
trigger: VrSignalTrigger;
|
|
69
88
|
nextStepEndpointSettings: VrFlowStepEndpointSettings;
|
|
70
89
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { VrCameraMode, VrCameraPose } from '../general/camera-pose';
|
|
2
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
2
3
|
/**
|
|
3
4
|
* VR视角
|
|
4
5
|
*/
|
|
5
|
-
export declare class VrFov {
|
|
6
|
-
id: string;
|
|
6
|
+
export declare class VrFov extends VRTalkBaseData {
|
|
7
7
|
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
isAvailableForAi: boolean;
|
|
8
10
|
src: string;
|
|
9
11
|
showInContentMenu: boolean;
|
|
10
12
|
cameraMode: VrCameraMode;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Vector3 } from '../general/vector';
|
|
2
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
2
3
|
export declare type VrLightType = 'ambient' | 'directional' | 'point';
|
|
3
4
|
/**
|
|
4
5
|
* 灯光配置
|
|
5
6
|
*/
|
|
6
|
-
export declare abstract class VrLight {
|
|
7
|
-
id: string;
|
|
7
|
+
export declare abstract class VrLight extends VRTalkBaseData {
|
|
8
8
|
type: VrLightType;
|
|
9
9
|
color: import("../general/color").Color;
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
name: string;
|
|
12
12
|
intensity: number;
|
|
13
|
-
|
|
13
|
+
floorIdList: string[];
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* 环境光
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
2
|
+
import { AiActivateSettings } from '../general';
|
|
1
3
|
export declare type VrMarkerType = 'component_marker' | 'sweep_marker';
|
|
2
4
|
export declare class VrMarkerTypeDefine {
|
|
3
5
|
static COMPONENT_MARKER: VrMarkerType;
|
|
@@ -7,14 +9,14 @@ export declare class VrMarkerTypeDefine {
|
|
|
7
9
|
* VR标记
|
|
8
10
|
* 可以为点位、或者元素(2D图片、3D模型等)打上标记,数据分析时候可以作为分组依据
|
|
9
11
|
*/
|
|
10
|
-
export declare class VrMarker {
|
|
11
|
-
id: string;
|
|
12
|
+
export declare class VrMarker extends VRTalkBaseData {
|
|
12
13
|
name: string;
|
|
13
14
|
description: string;
|
|
14
15
|
keywords: string[];
|
|
15
|
-
color: import("../general
|
|
16
|
+
color: import("../general").Color;
|
|
16
17
|
type: VrMarkerType;
|
|
17
18
|
groupId: string;
|
|
19
|
+
sweepMarkerAiActivateSettings: AiActivateSettings;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* VR标记组
|
|
@@ -25,7 +27,7 @@ export declare class VrMarkerGroup {
|
|
|
25
27
|
name: string;
|
|
26
28
|
description: string;
|
|
27
29
|
keywords: string[];
|
|
28
|
-
color: import("../general
|
|
30
|
+
color: import("../general").Color;
|
|
29
31
|
markerType: VrMarkerType;
|
|
30
32
|
markers: VrMarker[];
|
|
31
33
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Vector3, VRTalkBaseData } from '../general';
|
|
2
|
+
export declare type VrMeasureDistanceUnit = 'm' | 'cm' | 'mm';
|
|
3
|
+
export declare class VrMeasureDistanceUnitDefine {
|
|
4
|
+
static M: VrMeasureDistanceUnit;
|
|
5
|
+
static CM: VrMeasureDistanceUnit;
|
|
6
|
+
static MM: VrMeasureDistanceUnit;
|
|
7
|
+
}
|
|
8
|
+
export declare type VrMeasureAreaUnit = 'm2' | 'cm2';
|
|
9
|
+
export declare class VrMeasureAreaUnitDefine {
|
|
10
|
+
static M2: VrMeasureAreaUnit;
|
|
11
|
+
static CM2: VrMeasureAreaUnit;
|
|
12
|
+
}
|
|
13
|
+
export declare class VrMeasureData extends VRTalkBaseData {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
enabledArea: boolean;
|
|
18
|
+
pointList: VrMeasurePoint[];
|
|
19
|
+
appearanceThemeColor: import("../general").Color;
|
|
20
|
+
area: number;
|
|
21
|
+
distanceUnit: VrMeasureDistanceUnit;
|
|
22
|
+
areaUnit: VrMeasureAreaUnit;
|
|
23
|
+
}
|
|
24
|
+
export declare class VrMeasurePoint {
|
|
25
|
+
id: string;
|
|
26
|
+
position: Vector3;
|
|
27
|
+
normal: Vector3;
|
|
28
|
+
distance: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Vector2, Vector3, VRTalkBaseData } from '../../model';
|
|
2
|
+
export declare class VrNavigationAdConfig extends VRTalkBaseData {
|
|
3
|
+
name: string;
|
|
4
|
+
introduce: string;
|
|
5
|
+
targetArrowImageSrc: string;
|
|
6
|
+
targetArrowImageSize: Vector2;
|
|
7
|
+
targetArrowImageYOffset: number;
|
|
8
|
+
targetArrowImageYOffsetDynamic: number;
|
|
9
|
+
targetArrowAdPositionOffsetY: number;
|
|
10
|
+
targetArrowAdSize: Vector2;
|
|
11
|
+
targetArrowShowAdDistance: number;
|
|
12
|
+
targetArrowAdChannelId: string;
|
|
13
|
+
leadBotAdPositionOffset: Vector3;
|
|
14
|
+
leadBotAdSize: Vector2;
|
|
15
|
+
leadBotAdChannelId: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Vector2, Vector3, VRTalkBaseData } from '../general';
|
|
2
|
+
/**
|
|
3
|
+
* VR阻隔器,用于在导航的时候阻断某些不可行走的路径
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrObstacle extends VRTalkBaseData {
|
|
6
|
+
groupId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
scale: Vector3;
|
|
10
|
+
position: Vector3;
|
|
11
|
+
rotation: Vector3;
|
|
12
|
+
originalScale: Vector3;
|
|
13
|
+
bestViewingSweepId: string;
|
|
14
|
+
bestViewingRotation: Vector2;
|
|
15
|
+
bestViewingMode: string;
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VrAction } from './vr-action';
|
|
2
|
-
|
|
2
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
3
|
+
export declare type VrSignalType = 'component_created' | 'component_show' | 'component_hide' | 'click' | 'mouse_enter' | 'mouse_leave' | 'play_start' | 'play_finish' | 'enter' | 'leave' | 'panel_button_click' | 'panel_answer_correct' | 'panel_answer_wrong' | 'variable_modified' | 'expression_watcher_triggered' | 'monitor_component_click' | 'sticker_activated' | 'sticker_deactivated';
|
|
3
4
|
export declare class VrSignalTypeDefine {
|
|
4
5
|
static readonly COMPONENT_CREATED: VrSignalType;
|
|
5
6
|
static readonly COMPONENT_SHOW: VrSignalType;
|
|
@@ -14,8 +15,13 @@ export declare class VrSignalTypeDefine {
|
|
|
14
15
|
static readonly PANEL_BUTTON_CLICK: VrSignalType;
|
|
15
16
|
static readonly PANEL_ANSWER_CORRECT: VrSignalType;
|
|
16
17
|
static readonly PANEL_ANSWER_WRONG: VrSignalType;
|
|
18
|
+
static readonly VARIABLE_MODIFIED: VrSignalType;
|
|
19
|
+
static readonly EXPRESSION_WATCHER_TRIGGERED: VrSignalType;
|
|
20
|
+
static readonly MONITOR_COMPONENT_CLICK: VrSignalType;
|
|
21
|
+
static readonly STICKER_ACTIVATED: VrSignalType;
|
|
22
|
+
static readonly STICKER_DEACTIVATED: VrSignalType;
|
|
17
23
|
}
|
|
18
|
-
export declare type VrSignalSource = 'component_tag' | 'component_2d_text' | 'component_2d_advertisement' | 'component_2d_video' | 'component_2d_image' | 'component_2d_panel' | 'component_3d_box' | 'component_3d_model' | 'marker_component' | 'marker_sweep' | 'free_button' | 'flow_step' | 'sweep' | 'floor';
|
|
24
|
+
export declare type VrSignalSource = 'component_tag' | 'component_2d_text' | 'component_2d_advertisement' | 'component_2d_video' | 'component_2d_image' | 'component_2d_panel' | 'component_3d_box' | 'component_3d_model' | 'marker_component' | 'marker_sweep' | 'free_button' | 'flow_step' | 'sweep' | 'floor' | 'logic_variable' | 'logic_expression_watcher' | 'space_fence' | 'space_fence_group' | 'xr_virtual_floor' | 'monitor_component' | 'sticker';
|
|
19
25
|
export declare class VrSignalSourceDefine {
|
|
20
26
|
static readonly COMPONENT_TAG: VrSignalSource;
|
|
21
27
|
static readonly COMPONENT_2D_TEXT: VrSignalSource;
|
|
@@ -31,6 +37,13 @@ export declare class VrSignalSourceDefine {
|
|
|
31
37
|
static readonly FLOW_STEP: VrSignalSource;
|
|
32
38
|
static readonly SWEEP: VrSignalSource;
|
|
33
39
|
static readonly FLOOR: VrSignalSource;
|
|
40
|
+
static readonly LOGIC_VARIABLE: VrSignalSource;
|
|
41
|
+
static readonly LOGIC_EXPRESSION_WATCHER: VrSignalSource;
|
|
42
|
+
static readonly SPACE_FENCE: VrSignalSource;
|
|
43
|
+
static readonly SPACE_FENCE_GROUP: VrSignalSource;
|
|
44
|
+
static readonly XR_VIRTUAL_FLOOR: VrSignalSource;
|
|
45
|
+
static readonly MONITOR_COMPONENT: VrSignalSource;
|
|
46
|
+
static readonly STICKER: VrSignalSource;
|
|
34
47
|
}
|
|
35
48
|
export declare const VrSignalTypeSourceMapping: {
|
|
36
49
|
[x: string]: VrSignalType[];
|
|
@@ -50,8 +63,9 @@ export declare class VrSignal {
|
|
|
50
63
|
* 有些触发器是始终存在的,有些触发器是临时存在的,根据触发次数限制来判断
|
|
51
64
|
* 也可以根据id来取消触发器
|
|
52
65
|
*/
|
|
53
|
-
export declare class VrSignalTrigger {
|
|
54
|
-
|
|
66
|
+
export declare class VrSignalTrigger extends VRTalkBaseData {
|
|
67
|
+
createSourceType: VrSignalSource;
|
|
68
|
+
createSourceId: string;
|
|
55
69
|
name: string;
|
|
56
70
|
signal: VrSignal;
|
|
57
71
|
actionList: VrAction[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AiActivateSettings, Vector2, Vector3, VRTalkBaseData } from '../../model';
|
|
2
|
+
/**
|
|
3
|
+
* 贴纸,用于指向空间中的某一坐标,同时对该位置进行描述
|
|
4
|
+
* 贴纸在前台看VR的时候不会显示出来,而是为了记录某地有什么内容或背景。
|
|
5
|
+
* 用于给AI了解到用户看到了什么
|
|
6
|
+
*/
|
|
7
|
+
export declare class VrSticker extends VRTalkBaseData {
|
|
8
|
+
position: Vector3;
|
|
9
|
+
rotation: Vector3;
|
|
10
|
+
stemLength: number;
|
|
11
|
+
color: import("../general/color").Color;
|
|
12
|
+
name: string;
|
|
13
|
+
snapshotSrc: string;
|
|
14
|
+
aiActivateSettings: AiActivateSettings;
|
|
15
|
+
bestViewingSweepId: string;
|
|
16
|
+
bestViewingRotation: Vector2;
|
|
17
|
+
bestViewingMode: string;
|
|
18
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Vector3 } from '../general/vector';
|
|
2
2
|
import { VrSignalTrigger } from './vr-signal';
|
|
3
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
4
|
+
import { AiActivateSettings } from '../../model';
|
|
3
5
|
/**
|
|
4
6
|
* VR扫描
|
|
5
7
|
*/
|
|
6
|
-
export declare class VrSweep {
|
|
7
|
-
id: string;
|
|
8
|
+
export declare class VrSweep extends VRTalkBaseData {
|
|
8
9
|
no: number;
|
|
9
10
|
name: string;
|
|
10
11
|
description: string;
|
|
12
|
+
isAvailableForAi: boolean;
|
|
11
13
|
isVirtual: boolean;
|
|
12
14
|
alignmentType: VrSweepAlignment;
|
|
13
15
|
enabled: boolean;
|
|
@@ -22,6 +24,8 @@ export declare class VrSweep {
|
|
|
22
24
|
keywords: string[];
|
|
23
25
|
triggerList: VrSignalTrigger[];
|
|
24
26
|
panoramaData: VrSweepPanoramaData;
|
|
27
|
+
contentCardList: string[];
|
|
28
|
+
aiActivateSettings: AiActivateSettings;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* 扫描对齐方式
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MultiLanguageStr, Vector2, Vector3, VRTalkBaseData } from '../../model';
|
|
2
|
+
export declare class VrTarget extends VRTalkBaseData {
|
|
3
|
+
groupId: string;
|
|
4
|
+
position: Vector3;
|
|
5
|
+
rotation: Vector3;
|
|
6
|
+
stemLength: number;
|
|
7
|
+
color: import("../general/color").Color;
|
|
8
|
+
name: string;
|
|
9
|
+
code: string;
|
|
10
|
+
title: MultiLanguageStr;
|
|
11
|
+
description: MultiLanguageStr;
|
|
12
|
+
showToUser: boolean;
|
|
13
|
+
importable: boolean;
|
|
14
|
+
destinationToAnotherTarget: boolean;
|
|
15
|
+
destinationTargetId: string;
|
|
16
|
+
bestViewingSweepId: string;
|
|
17
|
+
bestViewingRotation: Vector2;
|
|
18
|
+
bestViewingMode: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vector3, VRTalkBaseData } from '../general';
|
|
2
|
+
export declare class VrTrimmerData extends VRTalkBaseData {
|
|
3
|
+
name: string;
|
|
4
|
+
position: Vector3;
|
|
5
|
+
scale: Vector3;
|
|
6
|
+
rotation: Vector3;
|
|
7
|
+
enabledTrimSpace: boolean;
|
|
8
|
+
enabledTrimComponent: boolean;
|
|
9
|
+
discardContents: boolean;
|
|
10
|
+
activeInPanoMode: boolean;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
1
2
|
/**
|
|
2
3
|
* VR视图
|
|
3
4
|
* 视图绑定了若干个图层,同一时间只能展示一个普通视图,但是不管展示哪个普通视图,都会展示通用视图
|
|
4
5
|
*/
|
|
5
|
-
export declare class VrView {
|
|
6
|
-
id: string;
|
|
6
|
+
export declare class VrView extends VRTalkBaseData {
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
9
|
type: VrViewType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MultiLanguageStr, Vector2, Vector3, VRTalkBaseData } from '../../model';
|
|
2
|
+
/**
|
|
3
|
+
* 虫洞,用于在导航中连接多个空间点,比如说电梯就是虫洞
|
|
4
|
+
* group相同的虫洞是互通的
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrWormhole extends VRTalkBaseData {
|
|
7
|
+
groupId: string;
|
|
8
|
+
position: Vector3;
|
|
9
|
+
rotation: Vector3;
|
|
10
|
+
stemLength: number;
|
|
11
|
+
color: import("../general/color").Color;
|
|
12
|
+
name: string;
|
|
13
|
+
title: MultiLanguageStr;
|
|
14
|
+
bestViewingSweepId: string;
|
|
15
|
+
bestViewingRotation: Vector2;
|
|
16
|
+
bestViewingMode: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VRTalkBaseData } from '@/model';
|
|
2
|
+
export declare class XrAiAgentUseComponent {
|
|
3
|
+
componentId: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class XrAiAgentUseTarget {
|
|
7
|
+
targetId: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class XrAiAgentRolePromptSettings {
|
|
11
|
+
rolePrompt: string;
|
|
12
|
+
tonePrompt: string;
|
|
13
|
+
taskPrompt: string;
|
|
14
|
+
abilityPrompt: string;
|
|
15
|
+
limitPrompt: string;
|
|
16
|
+
behaviorRulePrompt: string;
|
|
17
|
+
greetingPrompt: string;
|
|
18
|
+
warmUpPrompt: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class XrAiAgent extends VRTalkBaseData {
|
|
21
|
+
name: string;
|
|
22
|
+
remark: string;
|
|
23
|
+
roleName: string;
|
|
24
|
+
rolePromptSettings: XrAiAgentRolePromptSettings;
|
|
25
|
+
useComponentList: XrAiAgentUseComponent[];
|
|
26
|
+
useTargetList: XrAiAgentUseTarget[];
|
|
27
|
+
}
|