vrtalk-web-sdk 0.1.13 → 0.1.14
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/broadcast/broadcast-signal.d.ts +1 -1
- package/dist/src/model/broadcast/index.d.ts +0 -1
- 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 +3 -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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Vector2, Vector3 } from '../general/vector';
|
|
2
|
+
export declare type CameraMode = 'FLOOR_PLAN' | 'PANORAMA' | '3D';
|
|
3
|
+
/**
|
|
4
|
+
* sweep模式下的相机姿态
|
|
5
|
+
*/
|
|
6
|
+
export declare class CameraPosePanorama {
|
|
7
|
+
sweepId: string;
|
|
8
|
+
rotation: Vector3;
|
|
9
|
+
zoom: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 3D模式下的相机姿态
|
|
13
|
+
*/
|
|
14
|
+
export declare class CameraPose3d {
|
|
15
|
+
position: Vector3;
|
|
16
|
+
rotation: Vector2;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 户型图模式下的相机姿态
|
|
20
|
+
* 有待调研,目前没实现
|
|
21
|
+
*/
|
|
22
|
+
export declare class CameraPoseFloorPlan {
|
|
23
|
+
position: Vector3;
|
|
24
|
+
zoom: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RGB颜色构建器
|
|
3
|
+
*/
|
|
4
|
+
export declare class ColorBuilder {
|
|
5
|
+
/**
|
|
6
|
+
* 通过三种颜色值创建一个RGB颜色
|
|
7
|
+
* @param r 红色值
|
|
8
|
+
* @param g 绿色值
|
|
9
|
+
* @param b 蓝色值
|
|
10
|
+
*/
|
|
11
|
+
static createColorRgb(r: number, g: number, b: number): Color;
|
|
12
|
+
/**
|
|
13
|
+
* 通过三种颜色值创建一个RGBA颜色
|
|
14
|
+
* @param r 红色值
|
|
15
|
+
* @param g 绿色值
|
|
16
|
+
* @param b 蓝色值
|
|
17
|
+
* @param a 透明度
|
|
18
|
+
*/
|
|
19
|
+
static createColorRgba(r: number, g: number, b: number, a: number): Color;
|
|
20
|
+
/**
|
|
21
|
+
* 通过颜色字符串创建一个RGBA颜色
|
|
22
|
+
* 支持的颜色字符串格式有:
|
|
23
|
+
* 1. #RRGGBBAA
|
|
24
|
+
* 2. #RGBA
|
|
25
|
+
* 3. #RRGGBB: 如果没有a那么会默认为1tl
|
|
26
|
+
* 4. #RGB: 如果没有a那么会默认为1
|
|
27
|
+
* 5. rgba(r, g, b, a)
|
|
28
|
+
* 6. rgb(r, g, b):如果没有a那么会默认为1
|
|
29
|
+
* @param colorStr 颜色字符串
|
|
30
|
+
*/
|
|
31
|
+
static createColorByStr(colorStr: string): Color;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 颜色
|
|
35
|
+
* 支持RGBA颜色
|
|
36
|
+
*/
|
|
37
|
+
export declare class Color {
|
|
38
|
+
r: number;
|
|
39
|
+
g: number;
|
|
40
|
+
b: number;
|
|
41
|
+
a: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 媒体数据 - 视频
|
|
3
|
+
*/
|
|
4
|
+
export declare class MediaVideoData {
|
|
5
|
+
name: string;
|
|
6
|
+
src: string;
|
|
7
|
+
aspectRatio: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 媒体数据 - 图片
|
|
11
|
+
*/
|
|
12
|
+
export declare class MediaImageData {
|
|
13
|
+
name: string;
|
|
14
|
+
src: string;
|
|
15
|
+
aspectRatio: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 媒体数据 - 音频
|
|
19
|
+
*/
|
|
20
|
+
export declare class MediaAudioData {
|
|
21
|
+
name: string;
|
|
22
|
+
src: string;
|
|
23
|
+
lrcSrc: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 三维向量
|
|
3
|
+
*/
|
|
4
|
+
export declare class Vector3 {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
z: number;
|
|
8
|
+
constructor(x: number, y: number, z: number);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 二维向量
|
|
12
|
+
*/
|
|
13
|
+
export declare class Vector2 {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
constructor(x: number, y: number);
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './vr-audio';
|
|
2
|
+
export * from './vr-content-card';
|
|
3
|
+
export * from './vr-content-data';
|
|
4
|
+
export * from './vr-cover-settings';
|
|
5
|
+
export * from './vr-floor';
|
|
6
|
+
export * from './vr-fov';
|
|
7
|
+
export * from './vr-function';
|
|
8
|
+
export * from './vr-function-trigger';
|
|
9
|
+
export * from './vr-layer';
|
|
10
|
+
export * from './vr-light';
|
|
11
|
+
export * from './vr-map-settings';
|
|
12
|
+
export * from './vr-marker';
|
|
13
|
+
export * from './vr-player-settings';
|
|
14
|
+
export * from './vr-sweep';
|
|
15
|
+
export * from './vr-view';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR音频数据
|
|
3
|
+
*/
|
|
4
|
+
export declare class VrAudio {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
audioSrc: string;
|
|
9
|
+
lyricSrc: string;
|
|
10
|
+
coverSrc: string;
|
|
11
|
+
duration: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* VR音频列表
|
|
15
|
+
*/
|
|
16
|
+
export declare class VrAudioList {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
audioList: VrAudio[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VrFunctionTrigger } from '../vr/vr-function-trigger';
|
|
2
|
+
export declare type VrContentCardModuleType = 'video' | 'image' | 'audio' | 'link';
|
|
3
|
+
/**
|
|
4
|
+
* VR内容卡片
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrContentCard {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
richText: string;
|
|
10
|
+
modules: VrContentCardModule[];
|
|
11
|
+
actionButtons: VrContentCardActionButton[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* VR内容卡片模块
|
|
15
|
+
*/
|
|
16
|
+
export declare class VrContentCardModule {
|
|
17
|
+
name: string;
|
|
18
|
+
type: VrContentCardModuleType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* VR内容卡片事件按钮
|
|
22
|
+
*/
|
|
23
|
+
export declare class VrContentCardActionButton {
|
|
24
|
+
name: string;
|
|
25
|
+
trigger: VrFunctionTrigger;
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VrFov } from '../vr/vr-fov';
|
|
2
|
+
import { VrContentCard } from '../vr/vr-content-card';
|
|
3
|
+
import { VrLight } from '../vr/vr-light';
|
|
4
|
+
import { VrLayer } from '../vr/vr-layer';
|
|
5
|
+
import { VrMarkerGroup } from '../vr/vr-marker';
|
|
6
|
+
import { VrSweep } from '../vr/vr-sweep';
|
|
7
|
+
import { VrAudioList } from '../vr/vr-audio';
|
|
8
|
+
import { VrContentMenuSettings, VrInfoTemplateSettings, VrPlayerUiSettings } from '../vr/vr-player-settings';
|
|
9
|
+
import { VrMapSettings } from '../vr/vr-map-settings';
|
|
10
|
+
import { VrCoverSettings } from '../vr/vr-cover-settings';
|
|
11
|
+
import { VrView } from '../vr/vr-view';
|
|
12
|
+
import { VrFunction } from '../vr/vr-function';
|
|
13
|
+
/**
|
|
14
|
+
* VR内容数据
|
|
15
|
+
*/
|
|
16
|
+
export declare class VrContentData {
|
|
17
|
+
version: 10000;
|
|
18
|
+
vrCoverSettings: VrCoverSettings;
|
|
19
|
+
vrPlayerUiSettings: VrPlayerUiSettings;
|
|
20
|
+
vrContentMenuSettings: VrContentMenuSettings;
|
|
21
|
+
vrInfoTemplateSettings: VrInfoTemplateSettings;
|
|
22
|
+
mapSettings: VrMapSettings;
|
|
23
|
+
vrFovList: VrFov[];
|
|
24
|
+
vrContentCardList: VrContentCard[];
|
|
25
|
+
vrLightList: VrLight[];
|
|
26
|
+
vrLayerList: VrLayer[];
|
|
27
|
+
vrViewList: VrView[];
|
|
28
|
+
sweepMarkList: VrMarkerGroup[];
|
|
29
|
+
componentMarkList: VrMarkerGroup[];
|
|
30
|
+
sweepList: VrSweep[];
|
|
31
|
+
audioCenter: VrAudioList[];
|
|
32
|
+
vrFunctionPool: {
|
|
33
|
+
[index: string]: VrFunction;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR封面背景类型
|
|
3
|
+
*/
|
|
4
|
+
export declare type VrCoverBackgroundType = 'video' | 'image';
|
|
5
|
+
/**
|
|
6
|
+
* VR封面背景类型定义
|
|
7
|
+
*/
|
|
8
|
+
export declare class VrCoverBackgroundTypeDefine {
|
|
9
|
+
static VIDEO: VrCoverBackgroundType;
|
|
10
|
+
static IMAGE: VrCoverBackgroundType;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* VrCoverBackgroundFitType 封面背景填充类型
|
|
14
|
+
*
|
|
15
|
+
* 值 | 宽高比保持 | 容器是否填满 | 可能裁剪 | 典型场景
|
|
16
|
+
* ---------------------------------------------------------------------
|
|
17
|
+
* fill | 否 | 是 | 否 | 填充容器,忽略内容宽高比
|
|
18
|
+
* contain | 是 | 否 | 否 | 显示完整内容,可能会留白
|
|
19
|
+
* cover | 是 | 是 | 是 | 背景铺满容器,适当裁剪内容
|
|
20
|
+
* none | 是 | 否 | 否 | 保持原始尺寸内容
|
|
21
|
+
* scale-down | 是 | 否 | 否 | 在 'none' 和 'contain' 之间灵活调整
|
|
22
|
+
*/
|
|
23
|
+
export declare type VrCoverBackgroundFitType = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
24
|
+
/**
|
|
25
|
+
* VR封面按钮填充类型定义
|
|
26
|
+
*/
|
|
27
|
+
export declare class VrCoverBackgroundFitTypeDefine {
|
|
28
|
+
static FILL: VrCoverBackgroundFitType;
|
|
29
|
+
static CONTAIN: VrCoverBackgroundFitType;
|
|
30
|
+
static COVER: VrCoverBackgroundFitType;
|
|
31
|
+
static NONE: VrCoverBackgroundFitType;
|
|
32
|
+
static SCALE_DOWN: VrCoverBackgroundFitType;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 封面按钮类型
|
|
36
|
+
* play: 系统默认的播放键样式
|
|
37
|
+
* text: 文字按钮
|
|
38
|
+
* image: 自定义图片按钮
|
|
39
|
+
*/
|
|
40
|
+
export declare type VrCoverButtonType = 'play' | 'text' | 'image';
|
|
41
|
+
/**
|
|
42
|
+
* 封面按钮类型定义
|
|
43
|
+
*/
|
|
44
|
+
export declare class VrCoverButtonTypeDefine {
|
|
45
|
+
static PLAY: VrCoverButtonType;
|
|
46
|
+
static TEXT: VrCoverButtonType;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* VR封面设置
|
|
50
|
+
*/
|
|
51
|
+
export declare class VrCoverSettings {
|
|
52
|
+
enabledCover: boolean;
|
|
53
|
+
coverImagePcSrc: string;
|
|
54
|
+
coverVideoSrc: string;
|
|
55
|
+
coverBackgroundType: VrCoverBackgroundType;
|
|
56
|
+
coverButtonType: VrCoverBackgroundFitType;
|
|
57
|
+
coverTitle: string;
|
|
58
|
+
coverDescription: string;
|
|
59
|
+
enabledEnterVrButton: boolean;
|
|
60
|
+
enterVrButtonType: VrCoverButtonType;
|
|
61
|
+
enterButtonBackgroundColor: import("../general/color").Color;
|
|
62
|
+
enterButtonForegroundColor: import("../general/color").Color;
|
|
63
|
+
enterButtonShadowColor: import("../general/color").Color;
|
|
64
|
+
enabledTextButton: boolean;
|
|
65
|
+
textButtonContent: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VrFunctionTrigger } from '../vr/vr-function-trigger';
|
|
2
|
+
/**
|
|
3
|
+
* VR楼层
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrFloor {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
sequence: number;
|
|
9
|
+
triggerSettings: VrFloorTriggerSettings;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* VR楼层i触发器设置
|
|
13
|
+
*/
|
|
14
|
+
export declare class VrFloorTriggerSettings {
|
|
15
|
+
enterFloor: VrFunctionTrigger;
|
|
16
|
+
leaveFloor: VrFunctionTrigger;
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Vector3 } from '../general/vector';
|
|
2
|
+
export declare type VrLightType = 'ambient' | 'directional' | 'point';
|
|
3
|
+
/**
|
|
4
|
+
* 灯光配置
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class VrLight {
|
|
7
|
+
id: string;
|
|
8
|
+
type: VrLightType;
|
|
9
|
+
color: import("../general/color").Color;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
intensity: number;
|
|
13
|
+
floorId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 环境光
|
|
17
|
+
*/
|
|
18
|
+
export declare class VrLightAmbient extends VrLight {
|
|
19
|
+
type: VrLightType;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 平行光
|
|
23
|
+
*/
|
|
24
|
+
export declare class VrLightDirectional extends VrLight {
|
|
25
|
+
type: VrLightType;
|
|
26
|
+
position: Vector3;
|
|
27
|
+
target: Vector3;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 点光源
|
|
31
|
+
*/
|
|
32
|
+
export declare class VrLightPoint extends VrLight {
|
|
33
|
+
type: VrLightType;
|
|
34
|
+
position: Vector3;
|
|
35
|
+
distance: number;
|
|
36
|
+
decay: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR地图设置
|
|
3
|
+
*/
|
|
4
|
+
export declare class VrMapSettings {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
floorMapSettings: VrFloorMapSettings;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* VR楼层地图设置
|
|
10
|
+
*/
|
|
11
|
+
export declare class VrFloorMapSettings {
|
|
12
|
+
floorId: string;
|
|
13
|
+
mapImageSrc: string;
|
|
14
|
+
widthScale: number;
|
|
15
|
+
heightScale: number;
|
|
16
|
+
horizontalOffset: number;
|
|
17
|
+
verticalOffset: number;
|
|
18
|
+
rotation: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR标记
|
|
3
|
+
* 可以为点位、或者元素(2D图片、3D模型等)打上标记,数据分析时候可以作为分组依据
|
|
4
|
+
*/
|
|
5
|
+
export declare class VrMarker {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
color: import("../general/color").Color;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* VR标记组
|
|
13
|
+
* 包含多个标记
|
|
14
|
+
*/
|
|
15
|
+
export declare class VrMarkerGroup {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
color: import("../general/color").Color;
|
|
20
|
+
markers: VrMarker[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VR播放器UI界面设置
|
|
3
|
+
*/
|
|
4
|
+
export declare class VrPlayerUiSettings {
|
|
5
|
+
enabledShare: boolean;
|
|
6
|
+
enabledFullScreen: boolean;
|
|
7
|
+
enabledSceneBtn: boolean;
|
|
8
|
+
enabledFovBtn: boolean;
|
|
9
|
+
enabledD3ModeBtn: boolean;
|
|
10
|
+
enabledFloorPlanModeBtn: boolean;
|
|
11
|
+
enabledFloorSelectBtn: boolean;
|
|
12
|
+
enabledMeasurementBtn: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* VR内容菜单设置
|
|
16
|
+
*/
|
|
17
|
+
export declare class VrContentMenuSettings {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* VR信息模板设置
|
|
22
|
+
*/
|
|
23
|
+
export declare class VrInfoTemplateSettings {
|
|
24
|
+
enabledVrInfoTemplate: boolean;
|
|
25
|
+
vrInfoTemplateDataKey: string;
|
|
26
|
+
vrInfoTemplateItemValueList: VrInfoTemplateItemValue[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* VR信息模板展示的数据
|
|
30
|
+
*/
|
|
31
|
+
export declare class VrInfoTemplateItemValue {
|
|
32
|
+
templateItemDataKey: string;
|
|
33
|
+
templateItemValue: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Vector3 } from '../general/vector';
|
|
2
|
+
import { VrFunctionTrigger } from '../vr/vr-function-trigger';
|
|
3
|
+
/**
|
|
4
|
+
* VR扫描
|
|
5
|
+
*/
|
|
6
|
+
export declare class VrSweep {
|
|
7
|
+
id: string;
|
|
8
|
+
alignmentType: VrSweepAlignment;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
floorId: string;
|
|
11
|
+
neighbors: string[];
|
|
12
|
+
placementType: VrSweepPlacementType;
|
|
13
|
+
position: Vector3;
|
|
14
|
+
rotation: Vector3;
|
|
15
|
+
triggerSettings: VrSweepTriggerSettings;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* VR扫描触发器设置
|
|
19
|
+
*/
|
|
20
|
+
export declare class VrSweepTriggerSettings {
|
|
21
|
+
onEnter: VrFunctionTrigger;
|
|
22
|
+
onLeave: VrFunctionTrigger;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 扫描对齐方式
|
|
26
|
+
* aligned: 已与场景模型对齐
|
|
27
|
+
* unaligned: 尚未与场景对齐
|
|
28
|
+
*/
|
|
29
|
+
export declare type VrSweepAlignment = 'aligned' | 'unaligned';
|
|
30
|
+
/**
|
|
31
|
+
* 扫描对齐方式
|
|
32
|
+
*/
|
|
33
|
+
export declare class VrSweepAlignmentDefine {
|
|
34
|
+
static readonly ALIGNED: VrSweepAlignment;
|
|
35
|
+
static readonly UNALIGNED: VrSweepAlignment;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 扫描放置方式
|
|
39
|
+
*/
|
|
40
|
+
export declare type VrSweepPlacementType = 'auto' | 'manual' | 'unplaced';
|
|
41
|
+
/**
|
|
42
|
+
* 扫描放置方式
|
|
43
|
+
*/
|
|
44
|
+
export declare class VrSweepPlacementTypeDefine {
|
|
45
|
+
static readonly AUTO: VrSweepPlacementType;
|
|
46
|
+
static readonly MANUAL: VrSweepPlacementType;
|
|
47
|
+
static readonly UNPLACED: VrSweepPlacementType;
|
|
48
|
+
}
|
|
@@ -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
|
+
}
|