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
package/dist/src/index.d.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Vector3 } from '@/model';
|
|
2
|
+
export declare class ArCharacterSettings {
|
|
3
|
+
modelSrc: string;
|
|
4
|
+
modelIdleAnimationList: string[];
|
|
5
|
+
modelWalkAnimationList: string[];
|
|
6
|
+
modelTalkAnimationList: string[];
|
|
7
|
+
modelScale: Vector3;
|
|
8
|
+
modelRotation: Vector3;
|
|
9
|
+
characterModelFallPosition: Vector3;
|
|
10
|
+
allowControl: boolean;
|
|
11
|
+
jumpHeight: number;
|
|
12
|
+
gravity: number;
|
|
13
|
+
moveSpeed: number;
|
|
14
|
+
capsuleHeight: number;
|
|
15
|
+
capsuleRadius: number;
|
|
16
|
+
capsuleOffset: Vector3;
|
|
17
|
+
climbSlopeAngle: number;
|
|
18
|
+
stepHeight: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VrComponentData, VrContentCard, VrLayer } from '@/model';
|
|
2
|
+
import { ArEnvironmentSettings } from '@/model/ar/ar-environment-settings';
|
|
3
|
+
import { ArCharacterSettings } from '@/model/ar/ar-character-settings';
|
|
4
|
+
import { ArImageTargetSettings } from '@/model/ar/ar-image-target-settings';
|
|
5
|
+
export declare type ArType = 'image' | 'cube' | 'cylinder';
|
|
6
|
+
export declare class ArTypeDefine {
|
|
7
|
+
static readonly TYPE_IMAGE: ArType;
|
|
8
|
+
static readonly TYPE_CUBE: ArType;
|
|
9
|
+
static readonly TYPE_CYLINDER: ArType;
|
|
10
|
+
}
|
|
11
|
+
export declare class ArContentData {
|
|
12
|
+
type: ArType;
|
|
13
|
+
targetSettings: ArImageTargetSettings | null;
|
|
14
|
+
environmentSettings: ArEnvironmentSettings;
|
|
15
|
+
characterSettings: ArCharacterSettings;
|
|
16
|
+
vrContentCardList: VrContentCard[];
|
|
17
|
+
vrLayerList: VrLayer[];
|
|
18
|
+
componentList: VrComponentData[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Vector3 } from '@/model';
|
|
2
|
+
export declare type ArEnvironmentType = 'none' | 'image' | 'model';
|
|
3
|
+
export declare class ArEnvironmentTypeDefine {
|
|
4
|
+
static readonly NONE: ArEnvironmentType;
|
|
5
|
+
static readonly IMAGE: ArEnvironmentType;
|
|
6
|
+
static readonly MODEL: ArEnvironmentType;
|
|
7
|
+
}
|
|
8
|
+
export declare class ArEnvironmentSettings {
|
|
9
|
+
environmentScale: Vector3;
|
|
10
|
+
environmentRotation: Vector3;
|
|
11
|
+
environmentPosition: Vector3;
|
|
12
|
+
environmentType: ArEnvironmentType;
|
|
13
|
+
environmentElementSrc: string;
|
|
14
|
+
environmentModelDefaultAnimationClipName: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MultiLanguageStr } from './multi-language-str';
|
|
2
|
+
import { VrAction } from '../../model';
|
|
3
|
+
export declare type AiActivateType = 'distance' | 'visible' | 'visible_and_distance' | 'stay_on_sweep' | 'enter_sweep_marker';
|
|
4
|
+
export declare class AiActivateTypeDefine {
|
|
5
|
+
static readonly DISTANCE: AiActivateType;
|
|
6
|
+
static readonly VISIBLE: AiActivateType;
|
|
7
|
+
static readonly VISIBLE_AND_DISTANCE: AiActivateType;
|
|
8
|
+
static readonly STAY_ON_SWEEP: AiActivateType;
|
|
9
|
+
static readonly ENTER_SWEEP_MARKER: AiActivateType;
|
|
10
|
+
}
|
|
11
|
+
export declare type AiActivateContentType = 'show_message' | 'show_custom_answer_btn' | 'show_ask_ai_btn' | 'show_vr_action_list_btn';
|
|
12
|
+
export declare class AiActivateContentTypeDefine {
|
|
13
|
+
static readonly SHOW_MESSAGE: AiActivateContentType;
|
|
14
|
+
static readonly SHOW_CUSTOM_ANSWER_BTN: AiActivateContentType;
|
|
15
|
+
static readonly SHOW_ASK_AI_BTN: AiActivateContentType;
|
|
16
|
+
static readonly SHOW_VR_ACTION_LIST_BTN: AiActivateContentType;
|
|
17
|
+
}
|
|
18
|
+
export declare class AiActivateContent {
|
|
19
|
+
type: AiActivateContentType;
|
|
20
|
+
message: MultiLanguageStr;
|
|
21
|
+
btnTitle: MultiLanguageStr;
|
|
22
|
+
question: MultiLanguageStr;
|
|
23
|
+
answer: MultiLanguageStr;
|
|
24
|
+
actionList: VrAction[];
|
|
25
|
+
}
|
|
26
|
+
export declare class AiActivateSettingsBuilder {
|
|
27
|
+
static buildStickerAiActivateSettings(): AiActivateSettings;
|
|
28
|
+
static buildComponentAiActivateSettings(): AiActivateSettings;
|
|
29
|
+
static buildSweepAiActivateSettings(): AiActivateSettings;
|
|
30
|
+
static buildSweepMarkerAiActivateSettings(): AiActivateSettings;
|
|
31
|
+
}
|
|
32
|
+
export declare class AiActivateSettings {
|
|
33
|
+
activateType: AiActivateType;
|
|
34
|
+
activateDistance: number;
|
|
35
|
+
stayOnSweepSeconds: number;
|
|
36
|
+
contentList: AiActivateContent[];
|
|
37
|
+
constructor();
|
|
38
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { VRTalkBaseData } from './vrtalk-base-data';
|
|
2
|
+
import { VrAction } from '@/model';
|
|
1
3
|
/**
|
|
2
4
|
* 自由按钮,在其他组件中动态创建出来的按钮
|
|
3
5
|
* 样式跟随当时的场景决定,该模型只定义按钮信息和对应的触发器
|
|
4
6
|
* 如内容卡片、vrflow步骤中等等
|
|
5
7
|
*/
|
|
6
|
-
export declare class FreeButton {
|
|
7
|
-
id: string;
|
|
8
|
+
export declare class FreeButton extends VRTalkBaseData {
|
|
8
9
|
name: string;
|
|
9
|
-
|
|
10
|
-
textColor:
|
|
10
|
+
color: import("@/model").Color;
|
|
11
|
+
textColor: import("@/model").Color;
|
|
12
|
+
additionalData: {};
|
|
13
|
+
clickActionList: VrAction[];
|
|
11
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './ai-activate-settings';
|
|
1
2
|
export * from './camera-pose';
|
|
2
3
|
export * from './chroma-key-settings';
|
|
3
4
|
export * from './color';
|
|
@@ -5,6 +6,8 @@ export * from './ease-animations';
|
|
|
5
6
|
export * from './free-button';
|
|
6
7
|
export * from './goto-position';
|
|
7
8
|
export * from './hover-border-settings';
|
|
9
|
+
export * from './multi-language-str';
|
|
8
10
|
export * from './renderer';
|
|
9
11
|
export * from './vector';
|
|
10
12
|
export * from './vr-media';
|
|
13
|
+
export * from './vrtalk-base-data';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare type LanguageType = 'zh_cn' | 'zh_tw' | 'zh_hk' | 'en' | 'kr' | 'jp' | 'th' | 'vn' | 'es' | 'fr' | 'de';
|
|
2
|
+
export declare class LanguageTypeDefine {
|
|
3
|
+
static readonly ZH_CN: LanguageType;
|
|
4
|
+
static readonly ZH_TW: LanguageType;
|
|
5
|
+
static readonly ZH_HK: LanguageType;
|
|
6
|
+
static readonly EN: LanguageType;
|
|
7
|
+
static readonly KR: LanguageType;
|
|
8
|
+
static readonly JP: LanguageType;
|
|
9
|
+
static readonly TH: LanguageType;
|
|
10
|
+
static readonly VN: LanguageType;
|
|
11
|
+
static readonly ES: LanguageType;
|
|
12
|
+
static readonly FR: LanguageType;
|
|
13
|
+
static readonly DE: LanguageType;
|
|
14
|
+
}
|
|
15
|
+
export declare class MultiLanguageStr {
|
|
16
|
+
original_content: string;
|
|
17
|
+
language_type: LanguageType;
|
|
18
|
+
zh_cn: string;
|
|
19
|
+
zh_tw: string;
|
|
20
|
+
zh_hk: string;
|
|
21
|
+
en: string;
|
|
22
|
+
kr: string;
|
|
23
|
+
jp: string;
|
|
24
|
+
th: string;
|
|
25
|
+
vn: string;
|
|
26
|
+
es: string;
|
|
27
|
+
fr: string;
|
|
28
|
+
de: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UnityNavigationPlan } from './unity-navigation-plan';
|
|
2
|
+
import { VRTalkBaseData } from '../../model';
|
|
3
|
+
export declare class UnityNavigationMode extends VRTalkBaseData {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
title: string;
|
|
7
|
+
code: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
planList: UnityNavigationPlan[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Vector2, Vector3 } from '../general';
|
|
2
|
+
export declare class UnityNavigationParams {
|
|
3
|
+
transformPointsGps: Vector2[];
|
|
4
|
+
transformPointsVrSpace: Vector3[];
|
|
5
|
+
cellSize: number;
|
|
6
|
+
walkableHeight: number;
|
|
7
|
+
characterRadius: number;
|
|
8
|
+
walkableClimb: number;
|
|
9
|
+
maxSlope: number;
|
|
10
|
+
maxEdgeLength: number;
|
|
11
|
+
leadBotUseSameModelForDifferentAction: boolean;
|
|
12
|
+
leadBotModelSrc: string;
|
|
13
|
+
leadBotModelScale: Vector3;
|
|
14
|
+
leadBotModelOverlayRotate: Vector3;
|
|
15
|
+
leadBotModelSrcStand: string;
|
|
16
|
+
leadBotModelScaleStand: Vector3;
|
|
17
|
+
leadBotModelOverlayRotateStand: Vector3;
|
|
18
|
+
leadBotModelSrcWalk: string;
|
|
19
|
+
leadBotModelScaleWalk: Vector3;
|
|
20
|
+
leadBotModelOverlayRotateWalk: Vector3;
|
|
21
|
+
leadBotModelSrcRun: string;
|
|
22
|
+
leadBotModelScaleRun: Vector3;
|
|
23
|
+
leadBotModelOverlayRotateRun: Vector3;
|
|
24
|
+
leadBotModelSrcArrive: string;
|
|
25
|
+
leadBotModelScaleArrive: Vector3;
|
|
26
|
+
leadBotModelOverlayRotateArrive: Vector3;
|
|
27
|
+
leadBotAnimationNameStand: string;
|
|
28
|
+
leadBotAnimationNameWalk: string;
|
|
29
|
+
leadBotAnimationNameRun: string;
|
|
30
|
+
leadBotAnimationNameArrive: string;
|
|
31
|
+
thresholdLeadBotDistanceToPlayer: number;
|
|
32
|
+
thresholdLeadBotDistanceToPlayerToWalk: number;
|
|
33
|
+
thresholdLeadBotDistanceToPlayerToClimb: number;
|
|
34
|
+
thresholdLeadBotDistanceToPlayerToClimbToWalk: number;
|
|
35
|
+
thresholdLeadBotDistanceToPlayerToDescend: number;
|
|
36
|
+
thresholdLeadBotDistanceToPlayerToDescendToWalk: number;
|
|
37
|
+
thresholdLeadBotDistanceToPlayerToRun: number;
|
|
38
|
+
leadBotSpeedRun: number;
|
|
39
|
+
leadBotSpeedWalk: number;
|
|
40
|
+
thresholdUserDistanceToRoute: number;
|
|
41
|
+
thresholdShowComponents: number;
|
|
42
|
+
thresholdVideoComponentInvisibleToPause: number;
|
|
43
|
+
thresholdDestroyComponents: number;
|
|
44
|
+
thresholdShowComponentsWhenEnterFloor: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MultiLanguageStr, VRTalkBaseData } from '../../model';
|
|
2
|
+
export declare class UnityNavigationPlan extends VRTalkBaseData {
|
|
3
|
+
name: string;
|
|
4
|
+
title: MultiLanguageStr;
|
|
5
|
+
description: MultiLanguageStr;
|
|
6
|
+
obstacleGroupIds: string[];
|
|
7
|
+
wormholeGroupIds: string[];
|
|
8
|
+
targetGroupIds: string[];
|
|
9
|
+
graphCacheZipFileSrc: string;
|
|
10
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './vr-action';
|
|
2
|
+
export * from './vr-ad-channel';
|
|
3
|
+
export * from './vr-ad-item';
|
|
4
|
+
export * from './vr-ai-settings';
|
|
5
|
+
export * from './vr-asset-label';
|
|
2
6
|
export * from './vr-audio';
|
|
3
7
|
export * from './vr-content-card';
|
|
4
8
|
export * from './vr-content-data';
|
|
@@ -9,9 +13,26 @@ export * from './vr-fov';
|
|
|
9
13
|
export * from './vr-layer';
|
|
10
14
|
export * from './vr-light';
|
|
11
15
|
export * from './vr-marker';
|
|
16
|
+
export * from './vr-measure-data';
|
|
12
17
|
export * from './vr-navigation';
|
|
18
|
+
export * from './vr-navigation-ad-config';
|
|
19
|
+
export * from './vr-obstacle';
|
|
20
|
+
export * from './vr-obstacle-group';
|
|
21
|
+
export * from './work-note';
|
|
13
22
|
export * from './vr-player-settings';
|
|
14
23
|
export * from './vr-signal';
|
|
24
|
+
export * from './xr-space-fence';
|
|
25
|
+
export * from './xr-space-fence-group';
|
|
26
|
+
export * from './vr-sticker';
|
|
15
27
|
export * from './vr-sweep';
|
|
16
28
|
export * from './vr-theme';
|
|
29
|
+
export * from './vr-trimmer-data';
|
|
30
|
+
export * from './xr-virtual-floor';
|
|
17
31
|
export * from './vr-view';
|
|
32
|
+
export * from './vr-wormhole';
|
|
33
|
+
export * from './vr-wormhole-group';
|
|
34
|
+
export * from './vr-target';
|
|
35
|
+
export * from './vr-target-group';
|
|
36
|
+
export * from './xr-logic';
|
|
37
|
+
export * from './xr-monitor';
|
|
38
|
+
export * from './xr-message-card';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2, Vector3 } from '../general';
|
|
2
|
-
import {
|
|
1
|
+
import { type MediaLoopMode, Vector2, Vector3, VrCameraMoveTransitionType } from '../general';
|
|
2
|
+
import { VrComponent2dDeformationSettings } from '../vr-component/vr-component-data';
|
|
3
3
|
/**
|
|
4
4
|
* VR动作
|
|
5
5
|
*/
|
|
@@ -8,41 +8,58 @@ export declare class VrAction {
|
|
|
8
8
|
actionType: VrActionType;
|
|
9
9
|
params: VrActionParams;
|
|
10
10
|
}
|
|
11
|
-
export declare type VrActionType = 'system_common_wait' | '
|
|
11
|
+
export declare type VrActionType = 'system_common_wait' | 'component_general_change_visibility' | 'component_general_change_transform' | 'component_general_play_transition_animation' | 'component_general_stop_transition_animation' | 'component_2d_general_change_deformation_settings' | 'component_general_audio_source_play_control' | 'component_general_audio_source_pause' | 'component_general_audio_source_change_loop_mode' | 'component_2d_image_change_source' | 'component_2d_video_change_source' | 'component_2d_video_change_play_state' | 'component_2d_video_change_mute_state' | 'component_2d_text_change_source' | 'component_2d_panel_change_scene' | 'component_2d_panel_button_change_enabled' | 'component_3d_box_change_color' | 'component_3d_model_play_animation_clip' | 'component_3d_model_stop_animation_clip' | 'information_content_card_show' | 'information_content_card_close' | 'information_link_open' | 'information_link_close' | 'audio_center_play_list' | 'audio_center_pause' | 'audio_center_player_change_display_mode' | 'sweep_change_enabled' | 'sweep_change_panorama' | 'camera_move_to' | 'navigation_start' | 'navigation_stop' | 'logic_variable_modify' | 'logic_variable_number_add' | 'logic_variable_number_subtract' | 'logic_variable_string_append' | 'logic_variable_string_trim_end' | 'logic_variable_string_advanced' | 'logic_variable_boolean_toggle' | 'flow_enter' | 'flow_exit' | 'monitor_change_enabled' | 'monitor_switch_active_tab' | 'layer_change_visibility' | 'message_card_change_show_state';
|
|
12
12
|
export declare class VrActionTypeDefine {
|
|
13
13
|
static readonly SYSTEM_COMMON_WAIT: VrActionType;
|
|
14
|
-
static readonly SYSTEM_COMMON_CHANGE_INTERACTION_ENABLED: VrActionType;
|
|
15
14
|
static readonly COMPONENT_GENERAL_CHANGE_VISIBILITY: VrActionType;
|
|
16
15
|
static readonly COMPONENT_GENERAL_CHANGE_TRANSFORM: VrActionType;
|
|
17
16
|
static readonly COMPONENT_GENERAL_PLAY_TRANSITION_ANIMATION: VrActionType;
|
|
18
17
|
static readonly COMPONENT_GENERAL_STOP_TRANSITION_ANIMATION: VrActionType;
|
|
19
18
|
static readonly COMPONENT_2D_GENERAL_CHANGE_DEFORMATION_SETTINGS: VrActionType;
|
|
19
|
+
static readonly COMPONENT_GENERAL_AUDIO_SOURCE_PLAY_CONTROL: VrActionType;
|
|
20
|
+
static readonly COMPONENT_GENERAL_AUDIO_SOURCE_PAUSE: VrActionType;
|
|
21
|
+
static readonly COMPONENT_GENERAL_AUDIO_SOURCE_CHANGE_LOOP_MODE: VrActionType;
|
|
20
22
|
static readonly COMPONENT_2D_IMAGE_CHANGE_SOURCE: VrActionType;
|
|
21
23
|
static readonly COMPONENT_2D_VIDEO_CHANGE_SOURCE: VrActionType;
|
|
24
|
+
static readonly COMPONENT_2D_VIDEO_CHANGE_PLAY_STATE: VrActionType;
|
|
25
|
+
static readonly COMPONENT_2D_VIDEO_CHANGE_MUTE_STATE: VrActionType;
|
|
22
26
|
static readonly COMPONENT_2D_TEXT_CHANGE_SOURCE: VrActionType;
|
|
23
27
|
static readonly COMPONENT_2D_PANEL_CHANGE_SCENE: VrActionType;
|
|
28
|
+
static readonly COMPONENT_2D_PANEL_BUTTON_CHANGE_ENABLED: VrActionType;
|
|
24
29
|
static readonly COMPONENT_3D_BOX_CHANGE_COLOR: VrActionType;
|
|
25
30
|
static readonly COMPONENT_3D_MODEL_PLAY_ANIMATION_CLIP: VrActionType;
|
|
26
31
|
static readonly COMPONENT_3D_MODEL_STOP_ANIMATION_CLIP: VrActionType;
|
|
32
|
+
static readonly INFORMATION_CONTENT_CARD_SHOW: VrActionType;
|
|
33
|
+
static readonly INFORMATION_CONTENT_CARD_CLOSE: VrActionType;
|
|
34
|
+
static readonly INFORMATION_LINK_OPEN: VrActionType;
|
|
35
|
+
static readonly INFORMATION_LINK_CLOSE: VrActionType;
|
|
27
36
|
static readonly AUDIO_CENTER_PLAY_LIST: VrActionType;
|
|
28
37
|
static readonly AUDIO_CENTER_PAUSE: VrActionType;
|
|
29
38
|
static readonly AUDIO_CENTER_PLAYER_CHANGE_DISPLAY_MODE: VrActionType;
|
|
30
39
|
static readonly SWEEP_CHANGE_ENABLED: VrActionType;
|
|
31
40
|
static readonly SWEEP_CHANGE_PANORAMA: VrActionType;
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly CAMERA_MOVE_TO_FOV_LINK: VrActionType;
|
|
34
|
-
static readonly CAMERA_MOVE_TO_SWEEP: VrActionType;
|
|
41
|
+
static readonly CAMERA_MOVE_TO = "camera_move_to";
|
|
35
42
|
static readonly NAVIGATION_START: VrActionType;
|
|
36
43
|
static readonly NAVIGATION_STOP: VrActionType;
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
44
|
+
static readonly LOGIC_VARIABLE_MODIFY: VrActionType;
|
|
45
|
+
static readonly LOGIC_VARIABLE_NUMBER_ADD: VrActionType;
|
|
46
|
+
static readonly LOGIC_VARIABLE_NUMBER_SUBTRACT: VrActionType;
|
|
47
|
+
static readonly LOGIC_VARIABLE_STRING_APPEND: VrActionType;
|
|
48
|
+
static readonly LOGIC_VARIABLE_STRING_TRIM_END: VrActionType;
|
|
49
|
+
static readonly LOGIC_VARIABLE_STRING_ADVANCED: VrActionType;
|
|
50
|
+
static readonly LOGIC_VARIABLE_BOOLEAN_TOGGLE: VrActionType;
|
|
51
|
+
static readonly FLOW_ENTER: VrActionType;
|
|
52
|
+
static readonly FLOW_EXIT: VrActionType;
|
|
53
|
+
static readonly MONITOR_CHANGE_ENABLED: VrActionType;
|
|
54
|
+
static readonly MONITOR_SWITCH_ACTIVE_TAB: VrActionType;
|
|
55
|
+
static readonly LAYER_CHANGE_VISIBILITY: VrActionType;
|
|
56
|
+
static readonly MESSAGE_CARD_CHANGE_SHOW_STATE: VrActionType;
|
|
43
57
|
}
|
|
44
58
|
export declare class VrActionParams {
|
|
45
59
|
}
|
|
60
|
+
export declare class VrActionParamsSystemCommonWait {
|
|
61
|
+
duration: number;
|
|
62
|
+
}
|
|
46
63
|
export declare class VrActionParamsComponentGeneralChangeVisibility {
|
|
47
64
|
componentIdList: string[];
|
|
48
65
|
visibilityState: boolean;
|
|
@@ -56,6 +73,10 @@ export declare class VrActionParamsComponentGeneralOperateTransitionAnimation {
|
|
|
56
73
|
componentId: string;
|
|
57
74
|
transitionAnimationId: string;
|
|
58
75
|
}
|
|
76
|
+
export declare class VrActionParams2dGeneralChangeDeformationSettings {
|
|
77
|
+
componentId: string;
|
|
78
|
+
deformationSettings: VrComponent2dDeformationSettings;
|
|
79
|
+
}
|
|
59
80
|
export declare class VrActionParams2dTextChangeSource {
|
|
60
81
|
componentId: string;
|
|
61
82
|
changeType: 'next' | 'prev' | 'specific';
|
|
@@ -70,6 +91,8 @@ export declare class VrActionParams2dVideoChangeSource {
|
|
|
70
91
|
componentId: string;
|
|
71
92
|
changeType: 'next' | 'prev' | 'specific';
|
|
72
93
|
sourceId: string;
|
|
94
|
+
autoPlay: boolean;
|
|
95
|
+
forceUnmute: boolean;
|
|
73
96
|
}
|
|
74
97
|
export declare class VrActionParams2dVideoChangePlayState {
|
|
75
98
|
componentId: string;
|
|
@@ -86,6 +109,36 @@ export declare class VrActionParams3dBoxChangeColor {
|
|
|
86
109
|
hoverFaceColor: import("../general").Color;
|
|
87
110
|
hoverBorderColor: import("../general").Color;
|
|
88
111
|
}
|
|
112
|
+
export declare class VrActionParams2dPanelChangeScene {
|
|
113
|
+
componentId: string;
|
|
114
|
+
sceneId: string;
|
|
115
|
+
}
|
|
116
|
+
export declare class VrActionParams2dPanelButtonChangeEnabled {
|
|
117
|
+
componentId: string;
|
|
118
|
+
sceneId: string;
|
|
119
|
+
buttonId: string;
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
}
|
|
122
|
+
export declare class VrActionParamsComponentGeneralAudioSourcePlayControl {
|
|
123
|
+
componentId: string;
|
|
124
|
+
changeType: 'next' | 'prev' | 'specific';
|
|
125
|
+
audioIndex: number;
|
|
126
|
+
audioId: string;
|
|
127
|
+
}
|
|
128
|
+
export declare class VrActionParamsComponentGeneralAudioSourcePause {
|
|
129
|
+
componentId: string;
|
|
130
|
+
}
|
|
131
|
+
export declare class VrActionParamsComponentGeneralAudioSourceChangeLoopMode {
|
|
132
|
+
componentId: string;
|
|
133
|
+
loopMode: MediaLoopMode;
|
|
134
|
+
}
|
|
135
|
+
export declare class VrActionParamsAudioCenterPlayList {
|
|
136
|
+
audioListId: string;
|
|
137
|
+
audioId: string;
|
|
138
|
+
}
|
|
139
|
+
export declare class VrActionParamsAudioCenterPlayerChangeDisplayMode {
|
|
140
|
+
displayMode: 'mini' | 'full' | 'hidden' | 'subtitle_only';
|
|
141
|
+
}
|
|
89
142
|
export declare class VrActionParams3dModelOperateAnimationClip {
|
|
90
143
|
componentId: string;
|
|
91
144
|
animationClipId: string;
|
|
@@ -104,6 +157,18 @@ export declare class VrActionParamsNavigationStart {
|
|
|
104
157
|
autoRecalculateDistanceThreshold: number;
|
|
105
158
|
pathColor: import("../general").Color;
|
|
106
159
|
}
|
|
160
|
+
export declare class VrActionParamsCameraMoveTo {
|
|
161
|
+
destinationType: 'sweep' | 'vr_fov' | 'component' | 'fov_link';
|
|
162
|
+
componentId: string;
|
|
163
|
+
vrFovId: string;
|
|
164
|
+
fovLink: string;
|
|
165
|
+
fovLinkSnapshotSrc: string;
|
|
166
|
+
fovLinkCameraRotation: Vector2;
|
|
167
|
+
fovLinkSweepId: string;
|
|
168
|
+
sweepId: string;
|
|
169
|
+
transitionType: VrCameraMoveTransitionType;
|
|
170
|
+
transitionTime: number;
|
|
171
|
+
}
|
|
107
172
|
export declare class VrActionParamsSweepChangeEnabled {
|
|
108
173
|
sweepIdList: string[];
|
|
109
174
|
enabled: boolean;
|
|
@@ -112,12 +177,56 @@ export declare class VrActionParamsSweepChangePanorama {
|
|
|
112
177
|
sweepId: string;
|
|
113
178
|
panoramaId: string;
|
|
114
179
|
}
|
|
115
|
-
export declare class
|
|
180
|
+
export declare class VrActionParamsInformationContentCardShow {
|
|
181
|
+
contentCardId: string;
|
|
182
|
+
showStyle: import("./vr-content-card").VrContentCardShowStyle;
|
|
183
|
+
}
|
|
184
|
+
export declare class VrActionParamsInformationLinkOpen {
|
|
185
|
+
url: string;
|
|
186
|
+
isOpenWithExternal: boolean;
|
|
187
|
+
}
|
|
188
|
+
export declare class VrActionParamsLogicVariableModify {
|
|
189
|
+
variableKey: string;
|
|
190
|
+
value: string | number | boolean;
|
|
191
|
+
}
|
|
192
|
+
export declare class VrActionParamsLogicVariableNumberAdd {
|
|
193
|
+
variableKey: string;
|
|
194
|
+
value: number;
|
|
195
|
+
}
|
|
196
|
+
export declare class VrActionParamsLogicVariableStringAppend {
|
|
197
|
+
variableKey: string;
|
|
198
|
+
sourceType: 'fixed' | 'variable';
|
|
199
|
+
content: string;
|
|
200
|
+
}
|
|
201
|
+
export declare class VrActionParamsLogicVariableStringTrimEnd {
|
|
202
|
+
variableKey: string;
|
|
203
|
+
length: number;
|
|
204
|
+
}
|
|
205
|
+
export declare class VrActionParamsLogicVariableStringAdvanced {
|
|
206
|
+
variableKey: string;
|
|
207
|
+
expression: string;
|
|
208
|
+
}
|
|
209
|
+
export declare class VrActionParamsLogicVariableBooleanToggle {
|
|
210
|
+
variableKey: string;
|
|
211
|
+
}
|
|
212
|
+
export declare class VrActionParamsFlowEnter {
|
|
116
213
|
flowId: string;
|
|
214
|
+
forceStopRunning: boolean;
|
|
215
|
+
}
|
|
216
|
+
export declare class VrActionParamsFlowExit {
|
|
217
|
+
}
|
|
218
|
+
export declare class VrActionParamsMonitorChangeEnabled {
|
|
219
|
+
monitorId: string;
|
|
220
|
+
enabled: boolean;
|
|
221
|
+
}
|
|
222
|
+
export declare class VrActionParamsMonitorSwitchActiveTab {
|
|
223
|
+
tabId: string;
|
|
117
224
|
}
|
|
118
|
-
export declare class
|
|
119
|
-
|
|
225
|
+
export declare class VrActionParamsLayerChangeVisibility {
|
|
226
|
+
layerIdList: string[];
|
|
227
|
+
visible: boolean;
|
|
120
228
|
}
|
|
121
|
-
export declare class
|
|
122
|
-
|
|
229
|
+
export declare class VrActionParamsMessageCardChangeShowState {
|
|
230
|
+
messageCardIdList: string[];
|
|
231
|
+
showState: boolean;
|
|
123
232
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MultiLanguageStr } from '../general/multi-language-str';
|
|
2
|
+
export declare type VrAiDetectionMode = 'view_unobstructed' | 'visible' | 'close_enough';
|
|
3
|
+
/**
|
|
4
|
+
* VR中有关AI的设置
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrAiSettings {
|
|
7
|
+
isAiEnabled: boolean;
|
|
8
|
+
welcomeMessage: MultiLanguageStr;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Vector2, Vector3, VRTalkBaseData } from '../general';
|
|
2
|
+
/**
|
|
3
|
+
* 资产标记,标注空间中的物品
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrAssetLabel extends VRTalkBaseData {
|
|
6
|
+
assetDataKey: string;
|
|
7
|
+
position: Vector3;
|
|
8
|
+
rotation: Vector3;
|
|
9
|
+
scale: Vector3;
|
|
10
|
+
color: import("../general").Color;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
snapshotSrc: string;
|
|
14
|
+
bestViewingSweepId: string;
|
|
15
|
+
bestViewingRotation: Vector2;
|
|
16
|
+
bestViewingMode: string;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MediaLoopMode } from '../general';
|
|
1
|
+
import { MediaLoopMode, VRTalkBaseData } from '../general';
|
|
2
2
|
/**
|
|
3
3
|
* VR音频中心
|
|
4
4
|
*/
|
|
@@ -7,6 +7,7 @@ export declare class VrAudioCenter {
|
|
|
7
7
|
showSoundControl: boolean;
|
|
8
8
|
defaultVolume: number;
|
|
9
9
|
loopMode: MediaLoopMode;
|
|
10
|
+
defaultPlayAudio: string[];
|
|
10
11
|
audioListData: VrAudioList[];
|
|
11
12
|
}
|
|
12
13
|
export declare type VrComponentAudioSourceDistanceModel = 'linear' | 'inverse' | 'exponential';
|
|
@@ -32,8 +33,7 @@ export declare class VrComponentAudioSource {
|
|
|
32
33
|
/**
|
|
33
34
|
* VR音频数据
|
|
34
35
|
*/
|
|
35
|
-
export declare class VrAudio {
|
|
36
|
-
id: string;
|
|
36
|
+
export declare class VrAudio extends VRTalkBaseData {
|
|
37
37
|
name: string;
|
|
38
38
|
description: string;
|
|
39
39
|
audioSrc: string;
|
|
@@ -51,8 +51,7 @@ export declare class VrAudioLyric {
|
|
|
51
51
|
/**
|
|
52
52
|
* VR音频列表
|
|
53
53
|
*/
|
|
54
|
-
export declare class VrAudioList {
|
|
55
|
-
id: string;
|
|
54
|
+
export declare class VrAudioList extends VRTalkBaseData {
|
|
56
55
|
name: string;
|
|
57
56
|
description: string;
|
|
58
57
|
audioList: VrAudio[];
|
|
@@ -1,21 +1,48 @@
|
|
|
1
1
|
import { FreeButton } from '../general/free-button';
|
|
2
|
-
import {
|
|
3
|
-
export declare type
|
|
2
|
+
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
3
|
+
export declare type VrContentCardShowStyle = 'bubble' | 'dialog' | 'drawer';
|
|
4
|
+
export declare type VrContentCardMediaType = 'video' | 'image' | 'audio' | '3d_model' | 'link' | 'document';
|
|
5
|
+
export declare class VrContentCardMediaTypeDefine {
|
|
6
|
+
static readonly VIDEO: VrContentCardMediaType;
|
|
7
|
+
static readonly IMAGE: VrContentCardMediaType;
|
|
8
|
+
static readonly AUDIO: VrContentCardMediaType;
|
|
9
|
+
static readonly D3_MODEL: VrContentCardMediaType;
|
|
10
|
+
static readonly LINK: VrContentCardMediaType;
|
|
11
|
+
static readonly DOCUMENT: VrContentCardMediaType;
|
|
12
|
+
}
|
|
13
|
+
export declare class VrContentCardShowStyleDefine {
|
|
14
|
+
static readonly BUBBLE: VrContentCardShowStyle;
|
|
15
|
+
static readonly DIALOG: VrContentCardShowStyle;
|
|
16
|
+
static readonly DRAWER: VrContentCardShowStyle;
|
|
17
|
+
}
|
|
4
18
|
/**
|
|
5
19
|
* VR内容卡片
|
|
6
20
|
*/
|
|
7
|
-
export declare class VrContentCard {
|
|
21
|
+
export declare class VrContentCard extends VRTalkBaseData {
|
|
8
22
|
id: string;
|
|
9
23
|
name: string;
|
|
24
|
+
dialogWidth: string;
|
|
25
|
+
dialogHeight: string;
|
|
26
|
+
title: string;
|
|
10
27
|
richText: string;
|
|
28
|
+
isAvailableForAi: boolean;
|
|
11
29
|
modules: VrContentCardModule[];
|
|
12
30
|
buttonList: FreeButton[];
|
|
13
|
-
triggerList: VrSignalTrigger[];
|
|
14
31
|
}
|
|
15
32
|
/**
|
|
16
33
|
* VR内容卡片模块
|
|
17
34
|
*/
|
|
18
35
|
export declare class VrContentCardModule {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
type: VrContentCardMediaType;
|
|
39
|
+
mediaList: VrContentCardMedia[];
|
|
40
|
+
}
|
|
41
|
+
export declare class VrContentCardMedia {
|
|
42
|
+
id: string;
|
|
43
|
+
type: VrContentCardMediaType;
|
|
19
44
|
name: string;
|
|
20
|
-
|
|
45
|
+
src: string;
|
|
46
|
+
coverSrc: string;
|
|
47
|
+
materialSrc: string;
|
|
21
48
|
}
|