vrtalk-web-sdk 0.1.13 → 0.1.15
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/core/vrkit-core.d.ts +3 -2
- package/dist/src/index.d.ts +5 -4
- package/dist/src/model/broadcast/broadcast-signal.d.ts +1 -1
- package/dist/src/model/broadcast/index.d.ts +0 -1
- package/dist/src/model/core/index.d.ts +8 -0
- package/dist/src/model/{vk-event-callback.d.ts → core/vk-event-callback.d.ts} +2 -2
- package/dist/src/model/{vk-event-data-package.d.ts → core/vk-event-data-package.d.ts} +1 -1
- package/dist/src/model/{vk-event-params.d.ts → core/vk-event-params.d.ts} +2 -2
- package/dist/src/model/{vk-event-registry.d.ts → core/vk-event-registry.d.ts} +3 -3
- package/dist/src/model/{vk-vr-instance.d.ts → core/vk-vr-instance.d.ts} +3 -3
- package/dist/src/model/general/camera-pose.d.ts +25 -0
- package/dist/src/model/general/chroma-key-settings.d.ts +5 -0
- package/dist/src/model/general/color.d.ts +42 -0
- package/dist/src/model/general/hover-border-settings.d.ts +8 -0
- package/dist/src/model/general/index.d.ts +6 -0
- package/dist/src/model/general/media-data.d.ts +24 -0
- package/dist/src/model/general/vector.d.ts +17 -0
- package/dist/src/model/index.d.ts +4 -1
- package/dist/src/model/vr/index.d.ts +15 -0
- package/dist/src/model/vr/vr-audio.d.ts +21 -0
- package/dist/src/model/vr/vr-content-card.d.ts +26 -0
- package/dist/src/model/vr/vr-content-data.d.ts +35 -0
- package/dist/src/model/vr/vr-cover-settings.d.ts +66 -0
- package/dist/src/model/vr/vr-floor.d.ts +17 -0
- package/dist/src/model/vr/vr-fov.d.ts +10 -0
- package/dist/src/model/vr/vr-function-trigger.d.ts +7 -0
- package/dist/src/model/vr/vr-function.d.ts +9 -0
- package/dist/src/model/vr/vr-layer.d.ts +11 -0
- package/dist/src/model/vr/vr-light.d.ts +37 -0
- package/dist/src/model/vr/vr-map-settings.d.ts +19 -0
- package/dist/src/model/vr/vr-marker.d.ts +21 -0
- package/dist/src/model/vr/vr-player-settings.d.ts +34 -0
- package/dist/src/model/vr/vr-sweep.d.ts +48 -0
- package/dist/src/model/vr/vr-view.d.ts +23 -0
- package/dist/src/model/vr-component/index.d.ts +8 -0
- package/dist/src/model/vr-component/vr-component-2d-advertisement-data.d.ts +8 -0
- package/dist/src/model/vr-component/vr-component-2d-image-data.d.ts +25 -0
- package/dist/src/model/vr-component/vr-component-2d-text-data.d.ts +14 -0
- package/dist/src/model/vr-component/vr-component-2d-video-data.d.ts +39 -0
- package/dist/src/model/vr-component/vr-component-3d-box-data.d.ts +18 -0
- package/dist/src/model/vr-component/vr-component-3d-model-data.d.ts +18 -0
- package/dist/src/model/vr-component/vr-component-data.d.ts +70 -0
- package/dist/src/model/vr-component/vr-component-tag-data.d.ts +26 -0
- package/dist/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
- package/dist/src/model/broadcast/broadcast-signal-group.d.ts +0 -11
- package/dist/src/model/trigger/broadcast-trigger-sys-click.d.ts +0 -7
- package/dist/src/model/trigger/broadcast-trigger-sys-hover.d.ts +0 -7
- package/dist/src/model/trigger/broadcast-trigger.d.ts +0 -8
- package/dist/src/model/trigger/index.d.ts +0 -3
- /package/dist/src/model/{vk-command-data-package.d.ts → core/vk-command-data-package.d.ts} +0 -0
- /package/dist/src/model/{vk-vr-hotpots-data.d.ts → core/vk-vr-hotpots-data.d.ts} +0 -0
- /package/dist/src/model/{vk-vr-tour.d.ts → core/vk-vr-tour.d.ts} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR视图
|
|
3
|
+
*/
|
|
4
|
+
export declare class VrView {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type: VrViewType;
|
|
9
|
+
bindLayerIdList: string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* VR视图类型
|
|
13
|
+
* general: 通用视图
|
|
14
|
+
* basic: 普通视图
|
|
15
|
+
*/
|
|
16
|
+
export declare type VrViewType = 'general' | 'basic';
|
|
17
|
+
/**
|
|
18
|
+
* VR视图类型定义
|
|
19
|
+
*/
|
|
20
|
+
export declare class VrViewTypeDefine {
|
|
21
|
+
static GENERAL: VrViewType;
|
|
22
|
+
static BASIC: VrViewType;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './vr-component-2d-advertisement-data';
|
|
2
|
+
export * from './vr-component-2d-image-data';
|
|
3
|
+
export * from './vr-component-2d-text-data';
|
|
4
|
+
export * from './vr-component-2d-video-data';
|
|
5
|
+
export * from './vr-component-3d-box-data';
|
|
6
|
+
export * from './vr-component-3d-model-data';
|
|
7
|
+
export * from './vr-component-data';
|
|
8
|
+
export * from './vr-component-tag-data';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VrComponentData2d } from '../vr-component/vr-component-data';
|
|
2
|
+
/**
|
|
3
|
+
* VR组件 - 2D广告位组件数据
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrComponent2dAdvertisementData extends VrComponentData2d {
|
|
6
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
7
|
+
adChannelId: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChromaKeySettings } from '../general/chroma-key-settings';
|
|
2
|
+
import { VrComponentData2d, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
3
|
+
/**
|
|
4
|
+
* VR组件 - 2D图片组件数据
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrComponent2dImageData extends VrComponentData2d {
|
|
7
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
8
|
+
sourceList: VrComponent2dImageSourceData[];
|
|
9
|
+
autoChangeInterval: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* VR组件 - 2D图片源数据
|
|
13
|
+
*/
|
|
14
|
+
export declare class VrComponent2dImageSourceData {
|
|
15
|
+
id: string;
|
|
16
|
+
src: string;
|
|
17
|
+
aspectRatio: number;
|
|
18
|
+
chromaKeySettings: ChromaKeySettings;
|
|
19
|
+
triggerSettings: VrComponent2dImageSourceTriggerSettings;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* VR组件 - 2D图片源触发器设置
|
|
23
|
+
*/
|
|
24
|
+
export declare class VrComponent2dImageSourceTriggerSettings extends VrComponentTriggerSettings {
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VrComponentData2d, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
2
|
+
/**
|
|
3
|
+
* VR组件 - 2D文字组件数据
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrComponent2dTextData extends VrComponentData2d {
|
|
6
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
7
|
+
textContent: string;
|
|
8
|
+
textScale: number;
|
|
9
|
+
textColor: import("../general/color").Color;
|
|
10
|
+
backgroundColor: import("../general/color").Color;
|
|
11
|
+
triggerSettings: VrComponent2dTextTriggerSettings;
|
|
12
|
+
}
|
|
13
|
+
export declare class VrComponent2dTextTriggerSettings extends VrComponentTriggerSettings {
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChromaKeySettings } from '../general/chroma-key-settings';
|
|
2
|
+
import { VrComponentData2d, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
3
|
+
export declare type VideoLoopMode = 'no_loop' | 'loop_all' | 'loop_single';
|
|
4
|
+
/**
|
|
5
|
+
* 视频播放循环模式定义
|
|
6
|
+
*/
|
|
7
|
+
export declare class VideoLoopModeDefine {
|
|
8
|
+
static NO_LOOP: VideoLoopMode;
|
|
9
|
+
static LOOP_ALL: VideoLoopMode;
|
|
10
|
+
static LOOP_SINGLE: VideoLoopMode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* VR组件 - 2D视频组件数据
|
|
14
|
+
*/
|
|
15
|
+
export declare class VrComponent2dVideoData extends VrComponentData2d {
|
|
16
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
17
|
+
sourceList: VrComponent2dVideoSourceData[];
|
|
18
|
+
autoPlay: boolean;
|
|
19
|
+
defaultLoopMode: VideoLoopMode;
|
|
20
|
+
defaultMute: boolean;
|
|
21
|
+
showControl: boolean;
|
|
22
|
+
showMute: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* VR组件 - 2D视频源数据
|
|
26
|
+
*/
|
|
27
|
+
export declare class VrComponent2dVideoSourceData {
|
|
28
|
+
id: string;
|
|
29
|
+
videoSrc: string;
|
|
30
|
+
coverSrc: string;
|
|
31
|
+
aspectRatio: number;
|
|
32
|
+
chromaKeySettings: ChromaKeySettings;
|
|
33
|
+
triggerSettings: VrComponent2dVideoSourceTriggerSettings;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* VR组件 - 2D视频源触发器设置
|
|
37
|
+
*/
|
|
38
|
+
export declare class VrComponent2dVideoSourceTriggerSettings extends VrComponentTriggerSettings {
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VrComponentData3d, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
2
|
+
/**
|
|
3
|
+
* VR组件 - 3D盒子组件数据
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrComponent3dBoxData extends VrComponentData3d {
|
|
6
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
7
|
+
faceColor: import("../general/color").Color;
|
|
8
|
+
borderColor: import("../general/color").Color;
|
|
9
|
+
hoverFaceColor: import("../general/color").Color;
|
|
10
|
+
hoverBorderColor: import("../general/color").Color;
|
|
11
|
+
borderWidth: number;
|
|
12
|
+
triggerSettings: VrComponent3dBoxTriggerSettings;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* VR组件 - 3D盒子触发器设置
|
|
16
|
+
*/
|
|
17
|
+
export declare class VrComponent3dBoxTriggerSettings extends VrComponentTriggerSettings {
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VrComponentData3d, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
2
|
+
/**
|
|
3
|
+
* VR组件 - 3D模型组件
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrComponent3dModelData extends VrComponentData3d {
|
|
6
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
7
|
+
modelSrc: string;
|
|
8
|
+
materialSrc: string;
|
|
9
|
+
coverSrc: string;
|
|
10
|
+
autoPlayAnimation: boolean;
|
|
11
|
+
defaultPlayAnimationName: string;
|
|
12
|
+
triggerSettings: VrComponent3dModelTriggerSettings;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* VR组件 - 3D盒子触发器设置
|
|
16
|
+
*/
|
|
17
|
+
export declare class VrComponent3dModelTriggerSettings extends VrComponentTriggerSettings {
|
|
18
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Vector3 } from '../general/vector';
|
|
2
|
+
import { HoverBorderSettings } from '../general/hover-border-settings';
|
|
3
|
+
import { VrFunctionTrigger } from '../vr/vr-function-trigger';
|
|
4
|
+
/**
|
|
5
|
+
* VR组件类型
|
|
6
|
+
*/
|
|
7
|
+
export declare type VrComponentType = '2d_text' | '2d_video' | '2d_image' | '2d_advertisement' | '3d_box' | '3d_model' | 'tag' | null;
|
|
8
|
+
/**
|
|
9
|
+
* VR组件类型定义
|
|
10
|
+
*/
|
|
11
|
+
export declare class VrComponentTypeDefine {
|
|
12
|
+
static readonly TYPE_2D_TEXT: VrComponentType;
|
|
13
|
+
static readonly TYPE_2D_VIDEO: VrComponentType;
|
|
14
|
+
static readonly TYPE_2D_IMAGE: VrComponentType;
|
|
15
|
+
static readonly TYPE_2D_ADVERTISEMENT: VrComponentType;
|
|
16
|
+
static readonly TYPE_3D_BOX: VrComponentType;
|
|
17
|
+
static readonly TYPE_3D_MODEL: VrComponentType;
|
|
18
|
+
static readonly TYPE_TAG: VrComponentType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* VR组件数据,供其他组件继承
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class VrComponentData {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
searchKeywords: string[];
|
|
27
|
+
type: VrComponentType;
|
|
28
|
+
scale: Vector3;
|
|
29
|
+
position: Vector3;
|
|
30
|
+
rotation: Vector3;
|
|
31
|
+
originalScale: Vector3;
|
|
32
|
+
ignoreMouseEvent: boolean;
|
|
33
|
+
markerList: string[];
|
|
34
|
+
customVisibilitySettings: VrComponentCustomVisibilitySettings;
|
|
35
|
+
onInitComplete: VrFunctionTrigger;
|
|
36
|
+
showInContentMenu: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* VR组件数据-导航设置
|
|
40
|
+
*/
|
|
41
|
+
export declare class VrComponentNavigationSettings {
|
|
42
|
+
allowAsDestination: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* VR组件数据-自定义可见性
|
|
46
|
+
*/
|
|
47
|
+
export declare class VrComponentCustomVisibilitySettings {
|
|
48
|
+
specialSweepVisible: boolean;
|
|
49
|
+
displayRange: number;
|
|
50
|
+
visibleSweepList: string[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* VR组件数据 - 2D组件
|
|
54
|
+
*/
|
|
55
|
+
export declare abstract class VrComponentData2d extends VrComponentData {
|
|
56
|
+
alwaysFaceCamera: boolean;
|
|
57
|
+
houseBorderSettings: HoverBorderSettings;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* VR组件数据 - 3D组件
|
|
61
|
+
*/
|
|
62
|
+
export declare abstract class VrComponentData3d extends VrComponentData {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 组件触发器设置
|
|
66
|
+
*/
|
|
67
|
+
export declare class VrComponentTriggerSettings {
|
|
68
|
+
onClick: VrFunctionTrigger;
|
|
69
|
+
onHover: VrFunctionTrigger;
|
|
70
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VrComponentData, VrComponentTriggerSettings } from '../vr-component/vr-component-data';
|
|
2
|
+
import { Vector3 } from '../general/vector';
|
|
3
|
+
/**
|
|
4
|
+
* VR组件 - Tag组件数据
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrComponentTagData extends VrComponentData {
|
|
7
|
+
type: import("../vr-component/vr-component-data").VrComponentType;
|
|
8
|
+
enabledBackgroundColor: boolean;
|
|
9
|
+
backgroundColor: import("../general/color").Color;
|
|
10
|
+
enabledIconColor: boolean;
|
|
11
|
+
iconColor: import("../general/color").Color;
|
|
12
|
+
iconSrc: string;
|
|
13
|
+
enabledStem: boolean;
|
|
14
|
+
stemHeight: number;
|
|
15
|
+
stemVector: Vector3;
|
|
16
|
+
enabledText: boolean;
|
|
17
|
+
textContent: string;
|
|
18
|
+
textColor: import("../general/color").Color;
|
|
19
|
+
textBackgroundColor: import("../general/color").Color;
|
|
20
|
+
triggerSettings: VrComponentTagTriggerSettings;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* VR组件 - Tag触发器设置
|
|
24
|
+
*/
|
|
25
|
+
export declare class VrComponentTagTriggerSettings extends VrComponentTriggerSettings {
|
|
26
|
+
}
|