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.
Files changed (53) hide show
  1. package/dist/src/core/vrkit-core.d.ts +3 -2
  2. package/dist/src/index.d.ts +5 -4
  3. package/dist/src/model/broadcast/broadcast-signal.d.ts +1 -1
  4. package/dist/src/model/broadcast/index.d.ts +0 -1
  5. package/dist/src/model/core/index.d.ts +8 -0
  6. package/dist/src/model/{vk-event-callback.d.ts → core/vk-event-callback.d.ts} +2 -2
  7. package/dist/src/model/{vk-event-data-package.d.ts → core/vk-event-data-package.d.ts} +1 -1
  8. package/dist/src/model/{vk-event-params.d.ts → core/vk-event-params.d.ts} +2 -2
  9. package/dist/src/model/{vk-event-registry.d.ts → core/vk-event-registry.d.ts} +3 -3
  10. package/dist/src/model/{vk-vr-instance.d.ts → core/vk-vr-instance.d.ts} +3 -3
  11. package/dist/src/model/general/camera-pose.d.ts +25 -0
  12. package/dist/src/model/general/chroma-key-settings.d.ts +5 -0
  13. package/dist/src/model/general/color.d.ts +42 -0
  14. package/dist/src/model/general/hover-border-settings.d.ts +8 -0
  15. package/dist/src/model/general/index.d.ts +6 -0
  16. package/dist/src/model/general/media-data.d.ts +24 -0
  17. package/dist/src/model/general/vector.d.ts +17 -0
  18. package/dist/src/model/index.d.ts +4 -1
  19. package/dist/src/model/vr/index.d.ts +15 -0
  20. package/dist/src/model/vr/vr-audio.d.ts +21 -0
  21. package/dist/src/model/vr/vr-content-card.d.ts +26 -0
  22. package/dist/src/model/vr/vr-content-data.d.ts +35 -0
  23. package/dist/src/model/vr/vr-cover-settings.d.ts +66 -0
  24. package/dist/src/model/vr/vr-floor.d.ts +17 -0
  25. package/dist/src/model/vr/vr-fov.d.ts +10 -0
  26. package/dist/src/model/vr/vr-function-trigger.d.ts +7 -0
  27. package/dist/src/model/vr/vr-function.d.ts +9 -0
  28. package/dist/src/model/vr/vr-layer.d.ts +11 -0
  29. package/dist/src/model/vr/vr-light.d.ts +37 -0
  30. package/dist/src/model/vr/vr-map-settings.d.ts +19 -0
  31. package/dist/src/model/vr/vr-marker.d.ts +21 -0
  32. package/dist/src/model/vr/vr-player-settings.d.ts +34 -0
  33. package/dist/src/model/vr/vr-sweep.d.ts +48 -0
  34. package/dist/src/model/vr/vr-view.d.ts +23 -0
  35. package/dist/src/model/vr-component/index.d.ts +8 -0
  36. package/dist/src/model/vr-component/vr-component-2d-advertisement-data.d.ts +8 -0
  37. package/dist/src/model/vr-component/vr-component-2d-image-data.d.ts +25 -0
  38. package/dist/src/model/vr-component/vr-component-2d-text-data.d.ts +14 -0
  39. package/dist/src/model/vr-component/vr-component-2d-video-data.d.ts +39 -0
  40. package/dist/src/model/vr-component/vr-component-3d-box-data.d.ts +18 -0
  41. package/dist/src/model/vr-component/vr-component-3d-model-data.d.ts +18 -0
  42. package/dist/src/model/vr-component/vr-component-data.d.ts +70 -0
  43. package/dist/src/model/vr-component/vr-component-tag-data.d.ts +26 -0
  44. package/dist/vrtalk-web-sdk.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/src/model/broadcast/broadcast-signal-group.d.ts +0 -11
  47. package/dist/src/model/trigger/broadcast-trigger-sys-click.d.ts +0 -7
  48. package/dist/src/model/trigger/broadcast-trigger-sys-hover.d.ts +0 -7
  49. package/dist/src/model/trigger/broadcast-trigger.d.ts +0 -8
  50. package/dist/src/model/trigger/index.d.ts +0 -3
  51. /package/dist/src/model/{vk-command-data-package.d.ts → core/vk-command-data-package.d.ts} +0 -0
  52. /package/dist/src/model/{vk-vr-hotpots-data.d.ts → core/vk-vr-hotpots-data.d.ts} +0 -0
  53. /package/dist/src/model/{vk-vr-tour.d.ts → core/vk-vr-tour.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { VKServiceRegion } from '../define/vk-service-region-define';
2
- import { VKVRInstance } from '../model/vk-vr-instance';
2
+ import { VKVRInstance } from '../model/core/vk-vr-instance';
3
3
  export declare class VRKitCore {
4
4
  private static initLock;
5
5
  private serviceRegion;
@@ -34,7 +34,8 @@ export declare class VRKitCore {
34
34
  createVRInstance(baseUrl: string, modelId: string, shareData: string): VKVRInstance;
35
35
  /**
36
36
  * 初始化vrsdk
37
- * @param modelId
37
+ * @param baseUrl 基础url
38
+ * @param modelId 模型id
38
39
  * @param shareData
39
40
  * @param secretKey
40
41
  */
@@ -1,8 +1,8 @@
1
1
  import { VRKitCore } from './core/vrkit-core';
2
2
  import type { VKServiceRegion } from './define/vk-service-region-define';
3
- import { VKVRInstance } from './model/vk-vr-instance';
4
- export { VKEventParamsVRLoadDone, VKEventParamsVRMeasurementModeState, VKEventParamsVRHotpotsActive, VKEventParamsVRViewModeChanged, VKEventParamsVROperateData, VKEventParamsVRInternalMediaData, VKEventParamsVRInternalMediaSerializeData } from './model/vk-event-params';
5
- export { VKVRInstance } from './model/vk-vr-instance';
3
+ import { VKVRInstance } from './model/core/vk-vr-instance';
4
+ export { VKEventParamsVRLoadDone, VKEventParamsVRMeasurementModeState, VKEventParamsVRHotpotsActive, VKEventParamsVRViewModeChanged, VKEventParamsVROperateData, VKEventParamsVRInternalMediaData, VKEventParamsVRInternalMediaSerializeData } from './model/core/vk-event-params';
5
+ export { VKVRInstance } from './model/core/vk-vr-instance';
6
6
  export { VKVRInternalMediaType } from './define/vk-vr-internal-media-type';
7
7
  export * from './model';
8
8
  export * from './define';
@@ -18,9 +18,10 @@ export default class VRKit {
18
18
  static initEditorSDK(region: VKServiceRegion, appId: string, secretKey: string, userId: string, userName: string): Promise<VRKitCore>;
19
19
  /**
20
20
  * 通过密码初始化sdk
21
+ * @param baseUrl
21
22
  * @param modelId
22
23
  * @param shareData
23
24
  * @param secretKey
24
25
  */
25
- static initVRKit(baseUrl: string, modelId: string, shareData: string, secretKey: string): VKVRInstance;
26
+ static init(baseUrl: string, modelId: string, shareData: string, secretKey: string): VKVRInstance;
26
27
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 广播信号
3
3
  */
4
- export declare class BroadcastSignal {
4
+ export declare abstract class BroadcastSignal {
5
5
  id: string;
6
6
  channelName: string;
7
7
  tag: string;
@@ -1,5 +1,4 @@
1
1
  export * from './broadcast-signal';
2
- export * from './broadcast-signal-group';
3
2
  export * from './broadcast-signal-sys-show-web-view';
4
3
  export * from './broadcast-signal-sys-show-content-card';
5
4
  export * from './broadcast-signal-sys-change-image-component-image';
@@ -0,0 +1,8 @@
1
+ export * from './vk-command-data-package';
2
+ export * from './vk-event-callback';
3
+ export * from './vk-event-data-package';
4
+ export * from './vk-event-params';
5
+ export * from './vk-event-registry';
6
+ export * from './vk-vr-hotpots-data';
7
+ export * from './vk-vr-instance';
8
+ export * from './vk-vr-tour';
@@ -1,5 +1,5 @@
1
- import type { VKEventParamsVRHotpotsActive, VKEventParamsVRLoadDone, VKEventParamsVRMeasurementModeState, VKEventParamsVROperateData, VKEventParamsVRViewModeChanged, VKEventParamsVRInternalMediaData, VKEventParamsVRInternalMediaSerializeData } from '../model/vk-event-params';
2
- import { VKEventParamsVRDeepLink, VKEventParamsVRScreenShot } from '../model/vk-event-params';
1
+ import type { VKEventParamsVRHotpotsActive, VKEventParamsVRLoadDone, VKEventParamsVRMeasurementModeState, VKEventParamsVROperateData, VKEventParamsVRViewModeChanged, VKEventParamsVRInternalMediaData, VKEventParamsVRInternalMediaSerializeData } from './vk-event-params';
2
+ import { VKEventParamsVRDeepLink, VKEventParamsVRScreenShot } from './vk-event-params';
3
3
  /**
4
4
  * 回调事件:页面准备完成
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { VKEventType } from '../define/vk-event-type-define';
1
+ import type { VKEventType } from '../../define/vk-event-type-define';
2
2
  export declare class VKEventDataPackage {
3
3
  eventToken: string;
4
4
  eventType: VKEventType;
@@ -1,5 +1,5 @@
1
- import VKVRHotpotsData from '../model/vk-vr-hotpots-data';
2
- import type { VRViewMode } from '../define/vk-vr-view-mode-define';
1
+ import VKVRHotpotsData from './vk-vr-hotpots-data';
2
+ import type { VRViewMode } from '../../define/vk-vr-view-mode-define';
3
3
  /**
4
4
  * 回调参数:VR加载完成
5
5
  */
@@ -1,6 +1,6 @@
1
- import type { EventCallbackPageLoadComplete, EventCallbackVRHotpotsActive, EventCallbackVRHotpotsClose, EventCallbackVRLoadDone, EventCallbackVRLoadStart, EventCallbackVRMeasurementModeState, EventCallbackVROperateData, EventCallbackVRTourEnd, EventCallbackVRInternalMediaData, EventCallbackVRViewModeChanged, EventCallbackVRInternalMediaSerializeData, EventCallbackVRScreenShot } from '../model/vk-event-callback';
2
- import type { VKVRInstance } from '../model/vk-vr-instance';
3
- import { EventCallbackVRDeepLink } from "../model/vk-event-callback";
1
+ import type { EventCallbackPageLoadComplete, EventCallbackVRHotpotsActive, EventCallbackVRHotpotsClose, EventCallbackVRLoadDone, EventCallbackVRLoadStart, EventCallbackVRMeasurementModeState, EventCallbackVROperateData, EventCallbackVRTourEnd, EventCallbackVRInternalMediaData, EventCallbackVRViewModeChanged, EventCallbackVRInternalMediaSerializeData, EventCallbackVRScreenShot } from './vk-event-callback';
2
+ import type { VKVRInstance } from './vk-vr-instance';
3
+ import { EventCallbackVRDeepLink } from "./vk-event-callback";
4
4
  export declare class VKEventRegistry {
5
5
  private vrInstance;
6
6
  private callbackMapping;
@@ -1,6 +1,6 @@
1
- import { VKEventRegistry } from '../model/vk-event-registry';
2
- import type { VKVRTour } from '../model/vk-vr-tour';
3
- import type { VRViewMode } from '../define/vk-vr-view-mode-define';
1
+ import { VKEventRegistry } from './vk-event-registry';
2
+ import type { VKVRTour } from './vk-vr-tour';
3
+ import type { VRViewMode } from '../../define/vk-vr-view-mode-define';
4
4
  import { VRInternalMedia } from '@/define/vk-vr-internal-media-type';
5
5
  export declare class VKVRInstance {
6
6
  private readonly VRElement;
@@ -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,5 @@
1
+ import { Color } from '../general/color';
2
+ export declare class ChromaKeySettings extends Color {
3
+ enabled: boolean;
4
+ tolerance: number;
5
+ }
@@ -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,8 @@
1
+ /**
2
+ * 鼠标悬浮边框设置选项设置
3
+ */
4
+ export declare class HoverBorderSettings {
5
+ enabled: boolean;
6
+ hoverBorderColor: import("../general/color").Color;
7
+ borderWidth: number;
8
+ }
@@ -0,0 +1,6 @@
1
+ export * from './camera-pose';
2
+ export * from './chroma-key-settings';
3
+ export * from './color';
4
+ export * from './hover-border-settings';
5
+ export * from './media-data';
6
+ export * from './vector';
@@ -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
+ }
@@ -1,2 +1,5 @@
1
1
  export * from './broadcast';
2
- export * from './trigger';
2
+ export * from './core';
3
+ export * from './general';
4
+ export * from './vr';
5
+ export * from './vr-component';
@@ -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,10 @@
1
+ /**
2
+ * VR视角
3
+ */
4
+ export declare class VrFov {
5
+ id: string;
6
+ name: string;
7
+ src: string;
8
+ showInList: boolean;
9
+ cameraMode: 'PANORAMA' | 'D3' | 'FLOOR_PLAN';
10
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * VR事件
3
+ */
4
+ export declare class VrFunctionTrigger {
5
+ id: string;
6
+ functionId: string;
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * VR函数
3
+ */
4
+ export declare class VrFunction {
5
+ id: string;
6
+ name: string;
7
+ data: string;
8
+ code: string;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { VrComponentData } from '../vr-component/vr-component-data';
2
+ /**
3
+ * VR图层
4
+ */
5
+ export declare class VrLayer {
6
+ id: string;
7
+ name: string;
8
+ visible: boolean;
9
+ children: VrLayer[];
10
+ components: VrComponentData[];
11
+ }
@@ -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
+ }