vrtalk-web-sdk 0.1.71 → 0.1.73
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/model/general/free-button.d.ts +11 -0
- package/dist/src/model/general/goto-position.d.ts +11 -0
- package/dist/src/model/general/index.d.ts +2 -0
- package/dist/src/model/vr/index.d.ts +3 -2
- package/dist/src/model/vr/vr-action.d.ts +54 -0
- package/dist/src/model/vr/vr-content-card.d.ts +2 -9
- package/dist/src/model/vr/vr-content-data.d.ts +5 -7
- package/dist/src/model/vr/vr-floor.d.ts +2 -9
- package/dist/src/model/vr/vr-flow.d.ts +60 -0
- package/dist/src/model/vr/vr-program.d.ts +12 -0
- package/dist/src/model/vr/vr-signal.d.ts +46 -0
- package/dist/src/model/vr/vr-sweep.d.ts +2 -9
- package/dist/src/model/vr-component/vr-component-2d-image-data.d.ts +1 -7
- package/dist/src/model/vr-component/vr-component-2d-text-data.d.ts +1 -4
- package/dist/src/model/vr-component/vr-component-2d-video-data.d.ts +1 -7
- package/dist/src/model/vr-component/vr-component-3d-box-data.d.ts +1 -7
- package/dist/src/model/vr-component/vr-component-3d-model-data.d.ts +1 -7
- package/dist/src/model/vr-component/vr-component-data.d.ts +2 -9
- package/dist/src/model/vr-component/vr-component-tag-data.d.ts +1 -7
- package/dist/src/utils/random-utils.d.ts +3 -0
- package/dist/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
- package/dist/src/model/vr/vr-function-trigger.d.ts +0 -7
- package/dist/src/model/vr/vr-function.d.ts +0 -9
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type GotoPositionMethod = 'navigation_to_manual' | 'navigation_to_auto' | 'direct_to_fly' | 'direct_to_fade' | 'direct_to_instant';
|
|
2
|
+
/**
|
|
3
|
+
* 导航到目的地方式定义
|
|
4
|
+
*/
|
|
5
|
+
export declare class GotoPositionMethodDefine {
|
|
6
|
+
static NAVIGATION_TO_MANUAL: GotoPositionMethod;
|
|
7
|
+
static NAVIGATION_TO_AUTO: GotoPositionMethod;
|
|
8
|
+
static DIRECT_TO_FLY: GotoPositionMethod;
|
|
9
|
+
static DIRECT_TO_FADE: GotoPositionMethod;
|
|
10
|
+
static DIRECT_TO_INSTANT: GotoPositionMethod;
|
|
11
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './camera-pose';
|
|
2
2
|
export * from './chroma-key-settings';
|
|
3
3
|
export * from './color';
|
|
4
|
+
export * from './free-button';
|
|
5
|
+
export * from './goto-position';
|
|
4
6
|
export * from './hover-border-settings';
|
|
5
7
|
export * from './media-data';
|
|
6
8
|
export * from './vector';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
export * from './vr-action';
|
|
1
2
|
export * from './vr-audio';
|
|
2
3
|
export * from './vr-content-card';
|
|
3
4
|
export * from './vr-content-data';
|
|
4
5
|
export * from './vr-cover-settings';
|
|
5
6
|
export * from './vr-floor';
|
|
7
|
+
export * from './vr-flow';
|
|
6
8
|
export * from './vr-fov';
|
|
7
|
-
export * from './vr-function';
|
|
8
|
-
export * from './vr-function-trigger';
|
|
9
9
|
export * from './vr-layer';
|
|
10
10
|
export * from './vr-light';
|
|
11
11
|
export * from './vr-map-settings';
|
|
12
12
|
export * from './vr-marker';
|
|
13
13
|
export * from './vr-player-settings';
|
|
14
|
+
export * from './vr-signal';
|
|
14
15
|
export * from './vr-sweep';
|
|
15
16
|
export * from './vr-theme';
|
|
16
17
|
export * from './vr-view';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Vector3 } from '../general';
|
|
2
|
+
import { VrSignalTrigger } from '../vr';
|
|
3
|
+
/**
|
|
4
|
+
* VR动作
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrAction {
|
|
7
|
+
actionType: VrActionType;
|
|
8
|
+
params: VrActionParams;
|
|
9
|
+
}
|
|
10
|
+
export declare type VrActionType = 'system_common_wait' | 'component_general_visible_change' | 'component_general_transform_change_translate' | 'component_general_transform_change_rotate' | 'component_general_transform_change_scale' | 'component_2d_image_change_to' | 'component_2d_image_change_next' | 'component_2d_image_change_previous' | 'sweep_visible_change' | 'flow_control_start' | 'flow_control_terminate' | 'flow_control_pause' | 'flow_control_resume' | 'trigger_create' | 'trigger_cancel';
|
|
11
|
+
export declare class VrActionTypeDefine {
|
|
12
|
+
static readonly SYSTEM_COMMON_WAIT: VrActionType;
|
|
13
|
+
static readonly COMPONENT_GENERAL_VISIBLE_CHANGE: VrActionType;
|
|
14
|
+
static readonly COMPONENT_GENERAL_TRANSFORM_CHANGE_TRANSLATE: VrActionType;
|
|
15
|
+
static readonly COMPONENT_GENERAL_TRANSFORM_CHANGE_ROTATE: VrActionType;
|
|
16
|
+
static readonly COMPONENT_GENERAL_TRANSFORM_CHANGE_SCALE: VrActionType;
|
|
17
|
+
static readonly COMPONENT_2D_IMAGE_CHANGE_TO: VrActionType;
|
|
18
|
+
static readonly COMPONENT_2D_IMAGE_NEXT: VrActionType;
|
|
19
|
+
static readonly COMPONENT_2D_IMAGE_PREVIOUS: VrActionType;
|
|
20
|
+
static readonly SWEEP_VISIBLE_CHANGE: VrActionType;
|
|
21
|
+
static readonly FLOW_CONTROL_START: VrActionType;
|
|
22
|
+
static readonly FLOW_CONTROL_TERMINATE: VrActionType;
|
|
23
|
+
static readonly FLOW_CONTROL_PAUSE: VrActionType;
|
|
24
|
+
static readonly FLOW_CONTROL_RESUME: VrActionType;
|
|
25
|
+
static readonly TRIGGER_CREATE: VrActionType;
|
|
26
|
+
static readonly TRIGGER_CANCEL: VrActionType;
|
|
27
|
+
}
|
|
28
|
+
export declare class VrActionParams {
|
|
29
|
+
}
|
|
30
|
+
export declare class VrActionParamsComponentGeneralVisibleChange {
|
|
31
|
+
componentId: string;
|
|
32
|
+
visible: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare class VrActionParamsComponentGeneralTransformChange {
|
|
35
|
+
componentId: string;
|
|
36
|
+
value: Vector3;
|
|
37
|
+
}
|
|
38
|
+
export declare class VrActionParams2dImageChange {
|
|
39
|
+
componentId: string;
|
|
40
|
+
sourceId: string;
|
|
41
|
+
}
|
|
42
|
+
export declare class VrActionParamsSweepVisibleChange {
|
|
43
|
+
sweepId: string;
|
|
44
|
+
visible: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare class VrActionParamsFlowControl {
|
|
47
|
+
flowId: string;
|
|
48
|
+
}
|
|
49
|
+
export declare class VrActionParamsTriggerCreate {
|
|
50
|
+
trigger: VrSignalTrigger;
|
|
51
|
+
}
|
|
52
|
+
export declare class VrActionParamsTriggerCancel {
|
|
53
|
+
triggerId: string;
|
|
54
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FreeButton } from '../general/free-button';
|
|
2
2
|
export declare type VrContentCardModuleType = 'video' | 'image' | 'audio' | 'link';
|
|
3
3
|
/**
|
|
4
4
|
* VR内容卡片
|
|
@@ -8,7 +8,7 @@ export declare class VrContentCard {
|
|
|
8
8
|
name: string;
|
|
9
9
|
richText: string;
|
|
10
10
|
modules: VrContentCardModule[];
|
|
11
|
-
|
|
11
|
+
buttonList: FreeButton[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* VR内容卡片模块
|
|
@@ -17,10 +17,3 @@ export declare class VrContentCardModule {
|
|
|
17
17
|
name: string;
|
|
18
18
|
type: VrContentCardModuleType;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* VR内容卡片事件按钮
|
|
22
|
-
*/
|
|
23
|
-
export declare class VrContentCardActionButton {
|
|
24
|
-
name: string;
|
|
25
|
-
trigger: VrFunctionTrigger;
|
|
26
|
-
}
|
|
@@ -8,10 +8,10 @@ import { VrAudioList } from '../vr/vr-audio';
|
|
|
8
8
|
import { VrInfoTemplateSettings, VrPlayerUiSettings } from '../vr/vr-player-settings';
|
|
9
9
|
import { VrMapSettings } from '../vr/vr-map-settings';
|
|
10
10
|
import { VrCoverSettings } from '../vr/vr-cover-settings';
|
|
11
|
-
import { VrView } from '
|
|
12
|
-
import { VrFunction } from '../vr/vr-function';
|
|
11
|
+
import { VrView } from './vr-view';
|
|
13
12
|
import { VrFloor } from './vr-floor';
|
|
14
13
|
import { VrComponentData } from '../vr-component';
|
|
14
|
+
import { VrProgramData } from './vr-program';
|
|
15
15
|
/**
|
|
16
16
|
* VR内容数据构建器
|
|
17
17
|
*/
|
|
@@ -38,15 +38,13 @@ export declare class VrContentData {
|
|
|
38
38
|
componentMarkerList: VrMarkerGroup[];
|
|
39
39
|
vrFovList: VrFov[];
|
|
40
40
|
vrContentCardList: VrContentCard[];
|
|
41
|
+
vrFloorList: VrFloor[];
|
|
42
|
+
audioCenter: VrAudioList[];
|
|
41
43
|
vrLightList: VrLight[];
|
|
42
44
|
vrLayerList: VrLayer[];
|
|
43
45
|
vrViewList: VrView[];
|
|
44
|
-
vrFloorList: VrFloor[];
|
|
45
46
|
sweepList: VrSweep[];
|
|
46
47
|
componentList: VrComponentData[];
|
|
47
|
-
|
|
48
|
-
vrFunctionPool: {
|
|
49
|
-
[index: string]: VrFunction;
|
|
50
|
-
};
|
|
48
|
+
programData: VrProgramData;
|
|
51
49
|
constructor(mpModelId: string);
|
|
52
50
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VrSignalTrigger } from './vr-signal';
|
|
2
2
|
/**
|
|
3
3
|
* VR楼层
|
|
4
4
|
*/
|
|
@@ -6,12 +6,5 @@ export declare class VrFloor {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
sequence: number;
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* VR楼层i触发器设置
|
|
13
|
-
*/
|
|
14
|
-
export declare class VrFloorTriggerSettings {
|
|
15
|
-
enterFloor: VrFunctionTrigger;
|
|
16
|
-
leaveFloor: VrFunctionTrigger;
|
|
9
|
+
triggerList: VrSignalTrigger[];
|
|
17
10
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FreeButton } from '../general/free-button';
|
|
2
|
+
import { VrSignalTrigger } from './vr-signal';
|
|
3
|
+
export declare type VrFlowStatus = 'draft' | 'published';
|
|
4
|
+
export declare class VrFlowStatusDefine {
|
|
5
|
+
static readonly DRAFT: VrFlowStatus;
|
|
6
|
+
static readonly PUBLISHED: VrFlowStatus;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* VR流程
|
|
10
|
+
*/
|
|
11
|
+
export declare class VrFlow {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
status: VrFlowStatus;
|
|
16
|
+
startStepId: string;
|
|
17
|
+
stepList: VrFlowStep[];
|
|
18
|
+
canvasData: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type VrFlowStepType = 'start' | 'finish' | 'general';
|
|
21
|
+
export declare class VrFlowStepTypeDefine {
|
|
22
|
+
static readonly START: VrFlowStepType;
|
|
23
|
+
static readonly FINISH: VrFlowStepType;
|
|
24
|
+
static readonly GENERAL: VrFlowStepType;
|
|
25
|
+
}
|
|
26
|
+
export declare type VrFlowStepBarStyle = 'normal' | 'buttons_only' | 'none';
|
|
27
|
+
export declare class VrFlowStepBarStyleDefine {
|
|
28
|
+
static readonly NORMAL: VrFlowStepBarStyle;
|
|
29
|
+
static readonly BUTTONS_ONLY: VrFlowStepBarStyle;
|
|
30
|
+
static readonly NONE: VrFlowStepBarStyle;
|
|
31
|
+
}
|
|
32
|
+
export declare class VrFlowStep {
|
|
33
|
+
id: string;
|
|
34
|
+
type: VrFlowStepType;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
iconSrc: string;
|
|
38
|
+
stepBarStyle: VrFlowStepBarStyle;
|
|
39
|
+
showStepBarDelay: number;
|
|
40
|
+
buttonList: FreeButton[];
|
|
41
|
+
endpointList: VrFlowStepEndpoint[];
|
|
42
|
+
}
|
|
43
|
+
export declare type VrFlowPositionType = 'none' | 'sweep' | 'component';
|
|
44
|
+
export declare class VrFlowPositionTypeDefine {
|
|
45
|
+
static readonly NONE: VrFlowPositionType;
|
|
46
|
+
static readonly SWEEP: VrFlowPositionType;
|
|
47
|
+
static readonly COMPONENT: VrFlowPositionType;
|
|
48
|
+
}
|
|
49
|
+
export declare class VrFlowPositionSettings {
|
|
50
|
+
type: VrFlowPositionType;
|
|
51
|
+
id: string;
|
|
52
|
+
enableDirectLocate: boolean;
|
|
53
|
+
enableNavigateAgain: boolean;
|
|
54
|
+
gotoPositionMethod: import("../general/goto-position").GotoPositionMethod;
|
|
55
|
+
}
|
|
56
|
+
export declare class VrFlowStepEndpoint {
|
|
57
|
+
name: string;
|
|
58
|
+
nextStepId: string;
|
|
59
|
+
trigger: VrSignalTrigger;
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class VrProgramData {
|
|
2
|
+
appWorkspace: VrProgramWorkspace;
|
|
3
|
+
componentWorkspaces: Map<string, VrProgramWorkspace>;
|
|
4
|
+
sweepWorkspaces: Map<string, VrProgramWorkspace>;
|
|
5
|
+
floorWorkspaces: Map<string, VrProgramWorkspace>;
|
|
6
|
+
sweepMarkerWorkspaces: Map<string, VrProgramWorkspace>;
|
|
7
|
+
componentMarkerWorkspaces: Map<string, VrProgramWorkspace>;
|
|
8
|
+
}
|
|
9
|
+
export declare class VrProgramWorkspace {
|
|
10
|
+
xml: string;
|
|
11
|
+
javascriptCode: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { VrAction } from './vr-action';
|
|
2
|
+
export declare type VrSignalType = 'click' | 'mouse_enter' | 'mouse_leave' | 'play_start' | 'play_finish' | 'enter' | 'leave';
|
|
3
|
+
export declare class VrSignalTypeDefine {
|
|
4
|
+
static readonly CLICK: VrSignalType;
|
|
5
|
+
static readonly MOUSE_ENTER: VrSignalType;
|
|
6
|
+
static readonly MOUSE_LEAVE: VrSignalType;
|
|
7
|
+
static readonly PLAY_START: VrSignalType;
|
|
8
|
+
static readonly PLAY_FINISH: VrSignalType;
|
|
9
|
+
static readonly ENTER: VrSignalType;
|
|
10
|
+
static readonly LEAVE: VrSignalType;
|
|
11
|
+
}
|
|
12
|
+
export declare type VrSignalSource = 'component_tag' | 'component_2d_text' | 'component_2d_advertisement' | 'component_2d_video' | 'component_2d_video_source' | 'component_2d_image' | 'component_2d_image_source' | 'component_3d_box' | 'component_3d_model' | 'component_marker' | 'sweep' | 'sweep_marker' | 'floor';
|
|
13
|
+
export declare class VrSignalSourceDefine {
|
|
14
|
+
static readonly COMPONENT_TAG: VrSignalSource;
|
|
15
|
+
static readonly COMPONENT_2D_TEXT: VrSignalSource;
|
|
16
|
+
static readonly COMPONENT_2D_ADVERTISEMENT: VrSignalSource;
|
|
17
|
+
static readonly COMPONENT_2D_VIDEO: VrSignalSource;
|
|
18
|
+
static readonly COMPONENT_2D_VIDEO_SOURCE: VrSignalSource;
|
|
19
|
+
static readonly COMPONENT_2D_IMAGE: VrSignalSource;
|
|
20
|
+
static readonly COMPONENT_2D_IMAGE_SOURCE: VrSignalSource;
|
|
21
|
+
static readonly COMPONENT_3D_BOX: VrSignalSource;
|
|
22
|
+
static readonly COMPONENT_3D_MODEL: VrSignalSource;
|
|
23
|
+
static readonly COMPONENT_MARKER: VrSignalSource;
|
|
24
|
+
static readonly SWEEP: VrSignalSource;
|
|
25
|
+
static readonly SWEEP_MARKER: VrSignalSource;
|
|
26
|
+
static readonly FLOOR: VrSignalSource;
|
|
27
|
+
}
|
|
28
|
+
export declare const VrSignalTypeSourceMapping: {
|
|
29
|
+
[x: string]: VrSignalType[];
|
|
30
|
+
};
|
|
31
|
+
export declare type VrSignalTriggerTerms = 'once';
|
|
32
|
+
/**
|
|
33
|
+
* VR触发器
|
|
34
|
+
* 功能就是监听到某个信号源干了某个信号类型的事情后,触发一系列的动作
|
|
35
|
+
* 有些触发器是始终存在的,有些触发器是临时存在的,根据触发次数限制来判断
|
|
36
|
+
* 也可以根据id来取消触发器
|
|
37
|
+
*/
|
|
38
|
+
export declare class VrSignalTrigger {
|
|
39
|
+
id: string;
|
|
40
|
+
signalSource: VrSignalSource;
|
|
41
|
+
signalSourceId: string;
|
|
42
|
+
signalType: VrSignalType;
|
|
43
|
+
actionList: VrAction[];
|
|
44
|
+
triggerCountLimit: number;
|
|
45
|
+
constructor();
|
|
46
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 } from '../general/vector';
|
|
2
|
-
import {
|
|
2
|
+
import { VrSignalTrigger } from './vr-signal';
|
|
3
3
|
/**
|
|
4
4
|
* VR扫描
|
|
5
5
|
*/
|
|
@@ -13,14 +13,7 @@ export declare class VrSweep {
|
|
|
13
13
|
placementType: VrSweepPlacementType;
|
|
14
14
|
position: Vector3;
|
|
15
15
|
rotation: Vector3;
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* VR扫描触发器设置
|
|
20
|
-
*/
|
|
21
|
-
export declare class VrSweepTriggerSettings {
|
|
22
|
-
onEnter: VrFunctionTrigger;
|
|
23
|
-
onLeave: VrFunctionTrigger;
|
|
16
|
+
triggerList: VrSignalTrigger[];
|
|
24
17
|
}
|
|
25
18
|
/**
|
|
26
19
|
* 扫描对齐方式
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChromaKeySettings } from '../general/chroma-key-settings';
|
|
2
|
-
import { VrComponentData2d
|
|
2
|
+
import { VrComponentData2d } from '../vr-component/vr-component-data';
|
|
3
3
|
/**
|
|
4
4
|
* VR组件 - 2D图片组件数据
|
|
5
5
|
*/
|
|
@@ -17,10 +17,4 @@ export declare class VrComponent2dImageSourceData {
|
|
|
17
17
|
name: string;
|
|
18
18
|
aspectRatio: number;
|
|
19
19
|
chromaKeySettings: ChromaKeySettings;
|
|
20
|
-
triggerSettings: VrComponent2dImageSourceTriggerSettings;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* VR组件 - 2D图片源触发器设置
|
|
24
|
-
*/
|
|
25
|
-
export declare class VrComponent2dImageSourceTriggerSettings extends VrComponentTriggerSettings {
|
|
26
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VrComponentData2d
|
|
1
|
+
import { VrComponentData2d } from '../vr-component/vr-component-data';
|
|
2
2
|
/**
|
|
3
3
|
* VR组件 - 2D文字组件数据
|
|
4
4
|
*/
|
|
@@ -8,7 +8,4 @@ export declare class VrComponent2dTextData extends VrComponentData2d {
|
|
|
8
8
|
textScale: number;
|
|
9
9
|
textColor: import("../general/color").Color;
|
|
10
10
|
backgroundColor: import("../general/color").Color;
|
|
11
|
-
triggerSettings: VrComponent2dTextTriggerSettings;
|
|
12
|
-
}
|
|
13
|
-
export declare class VrComponent2dTextTriggerSettings extends VrComponentTriggerSettings {
|
|
14
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChromaKeySettings } from '../general/chroma-key-settings';
|
|
2
|
-
import { VrComponentData2d
|
|
2
|
+
import { VrComponentData2d } from '../vr-component/vr-component-data';
|
|
3
3
|
export declare type VideoLoopMode = 'no_loop' | 'loop_all' | 'loop_single';
|
|
4
4
|
/**
|
|
5
5
|
* 视频播放循环模式定义
|
|
@@ -31,10 +31,4 @@ export declare class VrComponent2dVideoSourceData {
|
|
|
31
31
|
coverSrc: string;
|
|
32
32
|
aspectRatio: number;
|
|
33
33
|
chromaKeySettings: ChromaKeySettings;
|
|
34
|
-
triggerSettings: VrComponent2dVideoSourceTriggerSettings;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* VR组件 - 2D视频源触发器设置
|
|
38
|
-
*/
|
|
39
|
-
export declare class VrComponent2dVideoSourceTriggerSettings extends VrComponentTriggerSettings {
|
|
40
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VrComponentData3d
|
|
1
|
+
import { VrComponentData3d } from '../vr-component/vr-component-data';
|
|
2
2
|
/**
|
|
3
3
|
* VR组件 - 3D盒子组件数据
|
|
4
4
|
*/
|
|
@@ -9,10 +9,4 @@ export declare class VrComponent3dBoxData extends VrComponentData3d {
|
|
|
9
9
|
hoverFaceColor: import("../general/color").Color;
|
|
10
10
|
hoverBorderColor: import("../general/color").Color;
|
|
11
11
|
borderWidth: number;
|
|
12
|
-
triggerSettings: VrComponent3dBoxTriggerSettings;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* VR组件 - 3D盒子触发器设置
|
|
16
|
-
*/
|
|
17
|
-
export declare class VrComponent3dBoxTriggerSettings extends VrComponentTriggerSettings {
|
|
18
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VrComponentData3d
|
|
1
|
+
import { VrComponentData3d } from '../vr-component/vr-component-data';
|
|
2
2
|
/**
|
|
3
3
|
* VR组件 - 3D模型组件
|
|
4
4
|
*/
|
|
@@ -9,10 +9,4 @@ export declare class VrComponent3dModelData extends VrComponentData3d {
|
|
|
9
9
|
coverSrc: string;
|
|
10
10
|
autoPlayAnimation: boolean;
|
|
11
11
|
defaultPlayAnimationName: string;
|
|
12
|
-
triggerSettings: VrComponent3dModelTriggerSettings;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* VR组件 - 3D盒子触发器设置
|
|
16
|
-
*/
|
|
17
|
-
export declare class VrComponent3dModelTriggerSettings extends VrComponentTriggerSettings {
|
|
18
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Vector2, Vector3 } from '../general/vector';
|
|
2
2
|
import { HoverBorderSettings } from '../general/hover-border-settings';
|
|
3
|
-
import {
|
|
3
|
+
import { VrSignalTrigger } from '../vr/vr-signal';
|
|
4
4
|
/**
|
|
5
5
|
* VR组件类型
|
|
6
6
|
*/
|
|
@@ -46,10 +46,10 @@ export declare abstract class VrComponentData {
|
|
|
46
46
|
ignoreMouseEvent: boolean;
|
|
47
47
|
markerList: string[];
|
|
48
48
|
customVisibilitySettings: VrComponentCustomVisibilitySettings;
|
|
49
|
-
onInitComplete: VrFunctionTrigger;
|
|
50
49
|
showInContentMenu: boolean;
|
|
51
50
|
bestViewingSweepId: string;
|
|
52
51
|
bestViewingRotation: Vector2;
|
|
52
|
+
triggerList: VrSignalTrigger[];
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* VR组件数据-导航设置
|
|
@@ -77,10 +77,3 @@ export declare abstract class VrComponentData2d extends VrComponentData {
|
|
|
77
77
|
*/
|
|
78
78
|
export declare abstract class VrComponentData3d extends VrComponentData {
|
|
79
79
|
}
|
|
80
|
-
/**
|
|
81
|
-
* 组件触发器设置
|
|
82
|
-
*/
|
|
83
|
-
export declare class VrComponentTriggerSettings {
|
|
84
|
-
onClick: VrFunctionTrigger;
|
|
85
|
-
onHover: VrFunctionTrigger;
|
|
86
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VrComponentData
|
|
1
|
+
import { VrComponentData } from '../vr-component/vr-component-data';
|
|
2
2
|
import { Vector3 } from '../general/vector';
|
|
3
3
|
/**
|
|
4
4
|
* VR组件 - Tag组件数据
|
|
@@ -17,10 +17,4 @@ export declare class VrComponentTagData extends VrComponentData {
|
|
|
17
17
|
textContent: string;
|
|
18
18
|
textColor: import("../general/color").Color;
|
|
19
19
|
textBackgroundColor: import("../general/color").Color;
|
|
20
|
-
triggerSettings: VrComponentTagTriggerSettings;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* VR组件 - Tag触发器设置
|
|
24
|
-
*/
|
|
25
|
-
export declare class VrComponentTagTriggerSettings extends VrComponentTriggerSettings {
|
|
26
20
|
}
|