vrtalk-web-sdk 0.1.217 → 0.1.300

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 (33) hide show
  1. package/dist/src/index.d.ts +0 -26
  2. package/dist/src/model/index.d.ts +0 -2
  3. package/dist/vrtalk-web-sdk.js +1 -2
  4. package/package.json +1 -1
  5. package/dist/src/core/vrkit-core.d.ts +0 -43
  6. package/dist/src/define/broadcast-trigger-tag-define.d.ts +0 -4
  7. package/dist/src/define/index.d.ts +0 -1
  8. package/dist/src/define/vk-event-type-define.d.ts +0 -52
  9. package/dist/src/define/vk-header-key-define.d.ts +0 -6
  10. package/dist/src/define/vk-service-region-define.d.ts +0 -6
  11. package/dist/src/define/vk-vr-internal-media-type.d.ts +0 -9
  12. package/dist/src/define/vk-vr-view-mode-define.d.ts +0 -7
  13. package/dist/src/dto/vk-application-init-sdk-resp-dto.d.ts +0 -3
  14. package/dist/src/model/broadcast/broadcast-signal-sys-change-image-component-image.d.ts +0 -10
  15. package/dist/src/model/broadcast/broadcast-signal-sys-change-video-component-video.d.ts +0 -13
  16. package/dist/src/model/broadcast/broadcast-signal-sys-goto-fov.d.ts +0 -8
  17. package/dist/src/model/broadcast/broadcast-signal-sys-play-model-component-animation.d.ts +0 -9
  18. package/dist/src/model/broadcast/broadcast-signal-sys-show-content-card.d.ts +0 -8
  19. package/dist/src/model/broadcast/broadcast-signal-sys-show-web-view.d.ts +0 -9
  20. package/dist/src/model/broadcast/broadcast-signal.d.ts +0 -8
  21. package/dist/src/model/broadcast/index.d.ts +0 -7
  22. package/dist/src/model/core/index.d.ts +0 -8
  23. package/dist/src/model/core/vk-command-data-package.d.ts +0 -5
  24. package/dist/src/model/core/vk-event-callback.d.ts +0 -55
  25. package/dist/src/model/core/vk-event-data-package.d.ts +0 -7
  26. package/dist/src/model/core/vk-event-params.d.ts +0 -49
  27. package/dist/src/model/core/vk-event-registry.d.ts +0 -153
  28. package/dist/src/model/core/vk-vr-hotpots-data.d.ts +0 -16
  29. package/dist/src/model/core/vk-vr-instance.d.ts +0 -199
  30. package/dist/src/model/core/vk-vr-tour.d.ts +0 -4
  31. package/dist/src/service/vk-application-service.d.ts +0 -8
  32. package/dist/src/utils/http-utils.d.ts +0 -43
  33. package/dist/vrtalk-web-sdk.js.LICENSE.txt +0 -16
@@ -1,43 +0,0 @@
1
- import type { VKServiceRegion } from '../define/vk-service-region-define';
2
- import { VKVRInstance } from '../model/core/vk-vr-instance';
3
- export declare class VRKitCore {
4
- private static initLock;
5
- private serviceRegion;
6
- private serviceAppId;
7
- private serviceSecretKey;
8
- private applicationUserId;
9
- private serviceToken;
10
- private userName;
11
- private static regionUrlMapping;
12
- /**
13
- * 获取服务器secret key
14
- */
15
- getServiceSecretKey(): string;
16
- /**
17
- * 获取服务器token
18
- */
19
- getServiceToken(): string;
20
- constructor(serviceRegion: VKServiceRegion, serviceAppId: string, serviceSecretKey: string, applicationUserId: string, userName: string, serviceToken: string);
21
- /**
22
- * 初始化sdk
23
- * @param region 区域
24
- * @param appId 后台拿到的appid
25
- * @param secretKey 后台拿到的secretKey
26
- * @param userId 用户id
27
- * @param userName 用户名称
28
- */
29
- static initSDK(region: VKServiceRegion, appId: string, secretKey: string, userId: string, userName: string): Promise<VRKitCore>;
30
- /**
31
- * 创建VRInstance
32
- * @param modelId
33
- */
34
- createVRInstance(baseUrl: string, modelId: string, shareData: string): VKVRInstance;
35
- /**
36
- * 初始化vrsdk
37
- * @param baseUrl 基础url
38
- * @param modelId 模型id
39
- * @param shareData
40
- * @param secretKey
41
- */
42
- static initVRKit(baseUrl: string, modelId: string, shareData: string, secretKey: string): VKVRInstance;
43
- }
@@ -1,4 +0,0 @@
1
- export declare class BroadcastTriggerTagDefine {
2
- static readonly SYS_CLICK = "SYS_CLICK";
3
- static readonly SYS_HOVER = "SYS_HOVER";
4
- }
@@ -1 +0,0 @@
1
- export * from './broadcast-trigger-tag-define';
@@ -1,52 +0,0 @@
1
- export declare type VKEventType = 'PageLoadComplete' | 'VRLoadDone' | 'VRLoadStart' | 'VRHotpotsActive' | 'VRHotpotsClose' | 'VRViewModeChanged' | 'VROperateData' | 'VRTourEnd' | 'VRMeasurementModeState' | 'VRInternalMediaData' | 'VRInternalMediaSerializeData' | 'VRScreenShot' | 'VRDeepLink';
2
- export declare class VKEventTypeDefine {
3
- /**
4
- * 页面加载完成
5
- */
6
- static readonly PageLoadComplete = "PageLoadComplete";
7
- /**
8
- * VR加载完成
9
- */
10
- static readonly VRLoadDone = "VRLoadDone";
11
- /**
12
- * VR加载开始
13
- */
14
- static readonly VRLoadStart = "VRLoadStart";
15
- /**
16
- * VR测量状态
17
- */
18
- static readonly VRMeasurementModeState = "VRMeasurementModeState";
19
- /**
20
- * VR操作数据产生事件(用户操作产生的数据,带看或录制时使用)
21
- */
22
- static readonly VROperateData = "VROperateData";
23
- /**
24
- * VR导览结束
25
- */
26
- static readonly VRTourEnd = "VRTourEnd";
27
- /**
28
- * 热点打开
29
- */
30
- static readonly VRHotpotsActive = "VRHotpotsActive";
31
- /**
32
- * 热点关闭
33
- */
34
- static readonly VRHotpotsClose = "VRHotpotsClose";
35
- /**
36
- * VR视图模式
37
- */
38
- static readonly VRViewModeChanged = "VRViewModeChanged";
39
- /**
40
- * VR的internalMediaData
41
- */
42
- static readonly VRInternalMediaData = "VRInternalMediaData";
43
- /**
44
- * vr的internalMediaSerializeData
45
- */
46
- static readonly VRInternalMediaSerializeData = "VRInternalMediaSerializeData";
47
- /**
48
- * vr的截屏回调
49
- */
50
- static readonly VRScreenShot = "VRScreenShot";
51
- static readonly VRDeepLink = "VRDeepLink";
52
- }
@@ -1,6 +0,0 @@
1
- export default class VKHeaderKeyDefine {
2
- static readonly SDK_APP_ID = "VRKIT-SDK-APP-ID";
3
- static readonly SDK_TOKEN = "VRKIT-SDK-TOKEN";
4
- static readonly SDK_TIMESTAMP = "VRKIT-SDK-TIMESTAMP";
5
- static readonly SDK_SIGN = "VRKIT-SDK-SIGN";
6
- }
@@ -1,6 +0,0 @@
1
- export declare type VKServiceRegion = 'JAPAN' | 'SINGAPORE' | 'CHINA';
2
- export declare class VKServiceRegionDefine {
3
- static readonly JAPAN = "JAPAN";
4
- static readonly SINGAPORE = "SINGAPORE";
5
- static readonly CHINA = "CHINA";
6
- }
@@ -1,9 +0,0 @@
1
- export declare type VRInternalMedia = 'videoView' | 'imageView' | 'webView' | 'boxView' | 'tagView' | 'advertisementView';
2
- export declare class VKVRInternalMediaType {
3
- static readonly IMAGE_VIEW: VRInternalMedia;
4
- static readonly VIDEO_VIEW: VRInternalMedia;
5
- static readonly WEB_VIEW: VRInternalMedia;
6
- static readonly BOX_VIEW: VRInternalMedia;
7
- static readonly TAG_VIEW: VRInternalMedia;
8
- static readonly ADVERTISEMENT_VIEW: VRInternalMedia;
9
- }
@@ -1,7 +0,0 @@
1
- export declare type VRViewMode = 'D3' | 'FLOOR_PLAN' | 'PANORAMA' | 'IMMERSIVE';
2
- export declare class VKVRViewModeDefine {
3
- static readonly D3: VRViewMode;
4
- static readonly FLOOR_PLAN: VRViewMode;
5
- static readonly PANORAMA: VRViewMode;
6
- static readonly IMMERSIVE: VRViewMode;
7
- }
@@ -1,3 +0,0 @@
1
- export default class VKApplicationInitSdkRespDto {
2
- token: string;
3
- }
@@ -1,10 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-改变图片控件的图片
4
- */
5
- export declare class BroadcastSignalSysChangeImageComponentImage extends BroadcastSignal {
6
- tag: string;
7
- imageComponentId: string;
8
- changeType: 'previous' | 'next' | 'goto';
9
- gotoIndex: number;
10
- }
@@ -1,13 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-改变视频控件的视频
4
- */
5
- export declare class BroadcastSignalSysChangeVideoComponentVideo extends BroadcastSignal {
6
- tag: string;
7
- imageComponentId: string;
8
- changeType: 'previous' | 'next' | 'goto';
9
- gotoIndex: number;
10
- autoPlay: boolean;
11
- loop: boolean;
12
- muted: boolean;
13
- }
@@ -1,8 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-跳转视角
4
- */
5
- export declare class BroadcastSignalSysGotoFov extends BroadcastSignal {
6
- tag: string;
7
- fovId: string;
8
- }
@@ -1,9 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-播放模型动画
4
- */
5
- export declare class BroadcastSignalSysPlayModelComponentAnimation extends BroadcastSignal {
6
- tag: string;
7
- modelComponentId: string;
8
- animationName: string;
9
- }
@@ -1,8 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-显示内容卡片
4
- */
5
- export declare class BroadcastSignalSysShowContentCard extends BroadcastSignal {
6
- tag: string;
7
- contentCardId: string;
8
- }
@@ -1,9 +0,0 @@
1
- import { BroadcastSignal } from './broadcast-signal';
2
- /**
3
- * 系统广播参数-打开webview
4
- */
5
- export declare class BroadcastSignalSysShowWebView extends BroadcastSignal {
6
- tag: string;
7
- url: string;
8
- showType: 'dialog' | 'new_blank';
9
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * 广播信号
3
- */
4
- export declare abstract class BroadcastSignal {
5
- id: string;
6
- channelName: string;
7
- tag: string;
8
- }
@@ -1,7 +0,0 @@
1
- export * from './broadcast-signal';
2
- export * from './broadcast-signal-sys-show-web-view';
3
- export * from './broadcast-signal-sys-show-content-card';
4
- export * from './broadcast-signal-sys-change-image-component-image';
5
- export * from './broadcast-signal-sys-change-video-component-video';
6
- export * from './broadcast-signal-sys-goto-fov';
7
- export * from './broadcast-signal-sys-play-model-component-animation';
@@ -1,8 +0,0 @@
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 +0,0 @@
1
- export declare class VKCommandDataPackage {
2
- commandName: string;
3
- commandData: any;
4
- constructor(commandName: string, commandData: any);
5
- }
@@ -1,55 +0,0 @@
1
- import type { VKEventParamsVRHotpotsActive, VKEventParamsVRLoadDone, VKEventParamsVRMeasurementModeState, VKEventParamsVROperateData, VKEventParamsVRViewModeChanged, VKEventParamsVRInternalMediaData, VKEventParamsVRInternalMediaSerializeData } from './vk-event-params';
2
- import { VKEventParamsVRDeepLink, VKEventParamsVRScreenShot } from './vk-event-params';
3
- /**
4
- * 回调事件:页面准备完成
5
- */
6
- export declare type EventCallbackPageLoadComplete = () => void;
7
- /**
8
- * 回调事件: VR加载完毕事件
9
- */
10
- export declare type EventCallbackVRLoadDone = (data: VKEventParamsVRLoadDone) => void;
11
- /**
12
- * 回调事件:VR开始加载事件
13
- */
14
- export declare type EventCallbackVRLoadStart = () => void;
15
- /**
16
- * 回调事件:VR测量模式状态事件
17
- */
18
- export declare type EventCallbackVRMeasurementModeState = (data: VKEventParamsVRMeasurementModeState) => void;
19
- /**
20
- * 回调事件:交互热点被激活事件
21
- */
22
- export declare type EventCallbackVRHotpotsActive = (data: VKEventParamsVRHotpotsActive) => void;
23
- /**
24
- * 回调事件:交互热点被关闭事件
25
- */
26
- export declare type EventCallbackVRHotpotsClose = () => void;
27
- /**
28
- * 回调事件: 视图模式改变
29
- *
30
- */
31
- export declare type EventCallbackVRViewModeChanged = (data: VKEventParamsVRViewModeChanged) => void;
32
- /**
33
- * 回调事件: 操作产生的数据
34
- */
35
- export declare type EventCallbackVROperateData = (data: VKEventParamsVROperateData) => void;
36
- /**
37
- * 回调事件: VR导览结束
38
- */
39
- export declare type EventCallbackVRTourEnd = () => void;
40
- /**
41
- * 回调事件: vr内部多媒体控件数据
42
- */
43
- export declare type EventCallbackVRInternalMediaData = (data: VKEventParamsVRInternalMediaData) => void;
44
- /**
45
- * 回调事件: vr内部多媒体控件序列化数据
46
- */
47
- export declare type EventCallbackVRInternalMediaSerializeData = (data: VKEventParamsVRInternalMediaSerializeData) => void;
48
- /**
49
- * 回调事件: vr内部多媒体控件截图
50
- */
51
- export declare type EventCallbackVRScreenShot = (data: VKEventParamsVRScreenShot) => void;
52
- /**
53
- * 回调事件: vr内部多媒体控件深度链接
54
- */
55
- export declare type EventCallbackVRDeepLink = (data: VKEventParamsVRDeepLink) => void;
@@ -1,7 +0,0 @@
1
- import type { VKEventType } from '../../define/vk-event-type-define';
2
- export declare class VKEventDataPackage {
3
- eventToken: string;
4
- eventType: VKEventType;
5
- eventData: any;
6
- constructor(eventToken: string, eventType: VKEventType, eventData: any);
7
- }
@@ -1,49 +0,0 @@
1
- import VKVRHotpotsData from './vk-vr-hotpots-data';
2
- import type { VRViewMode } from '../../define/vk-vr-view-mode-define';
3
- /**
4
- * 回调参数:VR加载完成
5
- */
6
- export declare class VKEventParamsVRLoadDone {
7
- model: {};
8
- }
9
- /**
10
- * 回调参数:是否打开测量模式
11
- */
12
- export declare class VKEventParamsVRMeasurementModeState {
13
- active: boolean;
14
- }
15
- /**
16
- * 回调参数:热点信息
17
- */
18
- export declare class VKEventParamsVRHotpotsActive extends VKVRHotpotsData {
19
- }
20
- /**
21
- * 回调参数:当前视图模式
22
- */
23
- export declare class VKEventParamsVRViewModeChanged {
24
- currentMode: VRViewMode;
25
- }
26
- /**
27
- * 回调参数:H5页面准备完成
28
- */
29
- export declare class VKEventParamsVROperateData {
30
- data: string;
31
- }
32
- /**
33
- * 回调参数: 当前2d图片2d视频参数
34
- */
35
- export declare class VKEventParamsVRInternalMediaData {
36
- data: string;
37
- }
38
- /**
39
- * 回调参数: 当前2d图片2d视频序列化参数
40
- */
41
- export declare class VKEventParamsVRInternalMediaSerializeData {
42
- data: string;
43
- }
44
- export declare class VKEventParamsVRScreenShot {
45
- data: string;
46
- }
47
- export declare class VKEventParamsVRDeepLink {
48
- data: string;
49
- }
@@ -1,153 +0,0 @@
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
- export declare class VKEventRegistry {
5
- private vrInstance;
6
- private callbackMapping;
7
- constructor(vrInstance: VKVRInstance | null);
8
- /**
9
- * 添加事件监听: H5页面加载完成
10
- * @param callback
11
- */
12
- onPageLoadComplete(callback: EventCallbackPageLoadComplete): void;
13
- /**
14
- * 卸载事件监听: H5页面加载完成
15
- * @param callback
16
- */
17
- offPageLoadComplete(callback: EventCallbackPageLoadComplete): void;
18
- /**
19
- * 添加事件监听: VR加载完毕
20
- * @param callback
21
- */
22
- onVRLoadDone(callback: EventCallbackVRLoadDone): void;
23
- /**
24
- * 卸载事件监听: VR加载完毕
25
- * @param callback
26
- */
27
- offVRLoadDone(callback: EventCallbackVRLoadDone): void;
28
- /**
29
- * 添加事件监听: VR开始加载
30
- * @param callback
31
- */
32
- onVRLoadStart(callback: EventCallbackVRLoadStart): void;
33
- /**
34
- * 卸载事件监听: VR开始卸载
35
- * @param callback
36
- */
37
- offVRLoadStart(callback: EventCallbackVRLoadStart): void;
38
- /**
39
- * 添加事件监听: VR测量模式状态
40
- * @param callback
41
- */
42
- onVRMeasurementModeState(callback: EventCallbackVRMeasurementModeState): void;
43
- /**
44
- * 卸载事件监听: VR测量模式状态
45
- * @param callback
46
- */
47
- offVRMeasurementModeState(callback: EventCallbackVRMeasurementModeState): void;
48
- /**
49
- * 添加事件监听: VR热点激活
50
- * @param callback
51
- */
52
- onVRHotpotsActive(callback: EventCallbackVRHotpotsActive): void;
53
- /**
54
- * 卸载事件监听: VR热点激活
55
- * @param callback
56
- */
57
- offVRHotpotsActive(callback: EventCallbackVRHotpotsActive): void;
58
- /**
59
- * 添加事件监听: VR热点关闭
60
- * @param callback
61
- */
62
- onVRHotpotsClose(callback: EventCallbackVRHotpotsClose): void;
63
- /**
64
- * 卸载事件监听: VR热点关闭
65
- * @param callback
66
- */
67
- offVRHotpotsClose(callback: EventCallbackVRHotpotsClose): void;
68
- /**
69
- * 添加事件监听: VR视图改变
70
- * @param callback
71
- */
72
- onVRViewModeChanged(callback: EventCallbackVRViewModeChanged): void;
73
- /**
74
- * 卸载事件监听: VR视图改变
75
- * @param callback
76
- */
77
- offVRViewModeChanged(callback: EventCallbackVRViewModeChanged): void;
78
- /**
79
- * 添加事件监听: VR操作数据
80
- * @param callback
81
- */
82
- onVROperateData(callback: EventCallbackVROperateData): void;
83
- /**
84
- * 卸载事件监听: VR操作数据
85
- * @param callback
86
- */
87
- offVROperateData(callback: EventCallbackVROperateData): void;
88
- /**
89
- * 添加事件监听: VR导览结束
90
- * @param callback
91
- */
92
- onVRTourEnd(callback: EventCallbackVRTourEnd): void;
93
- /**
94
- * 卸载事件监听: VR导览结束
95
- * @param callback
96
- */
97
- offVRTourEnd(callback: EventCallbackVRTourEnd): void;
98
- /**
99
- * 添加事件监听: VR2d图片2d视频box数据
100
- * 在编辑模式下创建/跟随pointer等时返回
101
- * @param callback
102
- */
103
- onVRInternalMediaData(callback: EventCallbackVRInternalMediaData): void;
104
- /**
105
- * 卸载事件监听: VR2d图片2d视频数据
106
- * @param callback
107
- */
108
- offVRInternalMediaData(callback: EventCallbackVRInternalMediaData): void;
109
- /**
110
- * 添加监听事件:VR2d图片2d视频box数据的序列化数据(通过调用getInternalSerializeData来触发函数)
111
- * @param callback
112
- */
113
- onVRInternalMediaSerializeData(callback: EventCallbackVRInternalMediaSerializeData): void;
114
- /**
115
- * 卸载监听事件
116
- * @param callback
117
- */
118
- offVRInternalMediaSerializeData(callback: EventCallbackVRInternalMediaSerializeData): void;
119
- /**
120
- * 添加事件监听: VR截屏回调
121
- * @param callback
122
- */
123
- onVRScreenShot(callback: EventCallbackVRScreenShot): void;
124
- /**
125
- * 卸载事件监听: VR截屏回调
126
- * @param callback
127
- */
128
- offVRScreenShot(callback: EventCallbackVRScreenShot): void;
129
- /**
130
- * 添加事件监听: VR深层链接
131
- * @param callback
132
- */
133
- onVRDeepLink(callback: EventCallbackVRDeepLink): void;
134
- /**
135
- * 添加事件监听: VR深层链接
136
- * @param callback
137
- */
138
- offVRDeepLink(callback: EventCallbackVRDeepLink): void;
139
- /**
140
- * 添加事件
141
- * @param type
142
- * @param callback
143
- * @private
144
- */
145
- private onEvent;
146
- /**
147
- * 卸载事件
148
- * @param type
149
- * @param callback
150
- * @private
151
- */
152
- private offEvent;
153
- }
@@ -1,16 +0,0 @@
1
- export default class VKVRHotpotsData {
2
- type: string;
3
- tagId: string;
4
- mode: string;
5
- audioUrl: string;
6
- content: string;
7
- iframeUrl: string;
8
- imageUrlList: string[];
9
- linkUrl: string;
10
- sid: string;
11
- title: string;
12
- videoUrl: string;
13
- attachments: string[];
14
- attachmentDetail: {};
15
- description: string;
16
- }