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,199 +0,0 @@
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
- import { VRInternalMedia } from '../../define/vk-vr-internal-media-type';
5
- export declare class VKVRInstance {
6
- private readonly VRElement;
7
- private readonly _eventToken;
8
- private readonly _event;
9
- private VRLink;
10
- private baseVRUrl;
11
- constructor(baseUrl: string, modelId: string, shareData: string);
12
- /**
13
- * 获取当前实例的事件对象
14
- */
15
- get event(): VKEventRegistry;
16
- /**
17
- * 获取当前event token
18
- */
19
- get eventToken(): string;
20
- /**
21
- * 启动VR实例
22
- */
23
- VRStart(): void;
24
- /**
25
- * 更换实例中的连接
26
- * @param modelId
27
- */
28
- changeVRLink(modelId: string, shareData: string): void;
29
- /**
30
- * 获取当前VR的IFrame
31
- */
32
- getVRElement(): HTMLIFrameElement;
33
- setApplyOperateData(data: any): void;
34
- /**
35
- * 跳转到指定导览位置
36
- * @param data
37
- */
38
- setVRTour(data: VKVRTour): void;
39
- /**
40
- * 导航到指定热点
41
- * @param matterTagId
42
- */
43
- navigateToVRTag(matterTagId: string): void;
44
- /**
45
- * 设置视图模式
46
- * @param viewMode
47
- */
48
- setVRViewMode(viewMode: VRViewMode): void;
49
- /**
50
- * 切换到指定楼层
51
- * @param floorId all:显示所有楼层;floorId:显示id所指向的楼层| 指定楼层的id
52
- */
53
- setVRFloor(floorId: string): void;
54
- /**
55
- * 切换到指定点位
56
- * @param sweepId
57
- */
58
- setVRSweepId(sweepId: string): void;
59
- /**
60
- * 获取当前连接
61
- */
62
- getVRLink(): string;
63
- /**
64
- * 修改编辑状态
65
- * @param state
66
- */
67
- changeInternalMediaEditorState(state: boolean): void;
68
- /**
69
- * 初次创建只有类型、地址、和链接
70
- * 有个编辑状态
71
- * 当编辑状态打开时 鼠标点击即图片更随鼠标移动
72
- * 通过
73
- * image:
74
- * {
75
- * src:图片连接,
76
- * href:点击跳转连接,
77
- * openHrefType:打开方式,
78
- * turnOnHover:鼠标悬停是否打开,
79
- * hoverColor: 鼠标悬停边框颜色,
80
- * position: 位置{x:0,y:0,z:0},
81
- * scale: 比例{x:1,y:1},
82
- * rotation: 角度{x:0,y:0,z:0},
83
- * followAngleOfViewState:是否跟随视角旋转
84
- * followMousePositionState:是否跟随鼠标移动
85
- * }
86
- * video:
87
- * {
88
- * src: 视频连接,
89
- * coverUrl: 视频暂停时图片,
90
- * autoplay: 自动播放状态,
91
- * allowControl: 允许手动控制暂停和播放,
92
- * muted: 静音状态,
93
- * transparentBackgroundState: 抠图状态,
94
- * backgroundColor: 抠图颜色{r:0,g:0,b:0,tolerance:10},
95
- * scale: 比例{x:1,y:1},
96
- * position: 位置{x:0,y:0,z:0},
97
- * rotation: 角度{x:0,y:0,z:0},
98
- * followAngleOfViewState: i是否跟随视角旋转,
99
- * uniquePlay: 是否加入唯一播放队列,
100
- * followMousePositionState: 是否跟随鼠标移动,
101
- * }
102
- * box:{
103
- * href: 点击box跳转连接,
104
- * openHrefType: 打开链接方式,
105
- * boxColor: 盒子颜色,
106
- * hoverColor: 鼠标悬停颜色,
107
- * scale: 比例{x:1,y:1,z:1},
108
- * position: 位置{x:0,y:0,z:0},
109
- * rotation: 角度{x:0,y:0,z:0},
110
- * followMousePositionState: 是否跟随鼠标移动,
111
- * }
112
- */
113
- createInternalMedia(type: VRInternalMedia, mediaData: any): void;
114
- /**
115
- * 更新vr内部多媒体控件信息可以单个更新也可多个同时更新
116
- * type类型
117
- * image:
118
- * {
119
- * src:图片连接string,
120
- * href:点击跳转连接string,
121
- * openHrefType:打开方式tag|iframe,
122
- * turnOnHover:鼠标悬停是否打开boolean,
123
- * hoverColor: 鼠标悬停边框颜色{r:0,b:0,g:0,a:1},
124
- * position: 位置{x:0,y:0,z:0},
125
- * scale: 比例{x:1,y:1},
126
- * rotation: 角度{x:0,y:0,z:0},
127
- * followAngleOfViewState:是否跟随视角旋转boolean,
128
- * followMousePositionState:是否跟随鼠标移动boolean,
129
- * }
130
- * video:
131
- * {
132
- * src: 视频连接string,
133
- * coverUrl: 视频暂停时图片string,
134
- * autoplay: 自动播放状态boolean,
135
- * allowControl: 允许手动控制暂停和播放boolean,
136
- * muted: 静音状态boolean,
137
- * transparentBackgroundState: 抠图状态boolean,
138
- * backgroundColor: 抠图颜色和容错值{r:0,g:0,b:0,tolerance:10},
139
- * scale: 比例{x:1,y:1},
140
- * position: 位置{x:0,y:0,z:0},
141
- * rotation: 角度{x:0,y:0,z:0},
142
- * followAngleOfViewState: 是否跟随视角旋转boolean,
143
- * uniquePlay: 是否加入唯一播放队列boolean,
144
- * followMousePositionState: 是否跟随鼠标移动boolean,
145
- * }
146
- * box:{
147
- * href: 点击box跳转连接string,
148
- * openHrefType: 打开链接方式tag|iframe,
149
- * boxColor: 盒子颜色{r:0,g:0,b:0,a:1},
150
- * boxHoverColor: 盒子鼠标悬停颜色{r:0,g:0,b:0,a:1},
151
- * lineColor: 盒子线条颜色{r:0,b:0,b:0,a:1},
152
- * lineHoverColor:盒子线条鼠标悬停颜色{r:0,g:0,b:0,a:1}
153
- * lineWidth: 盒子线条粗细number
154
- * touchPenetrate: 是否触摸穿透盒子(true 无法点击无法变色)boolean,
155
- * scale: 比例{x:1,y:1,z:1},
156
- * position: 位置{x:0,y:0,z:0},
157
- * rotation: 角度{x:0,y:0,z:0},
158
- * followMousePositionState: 是否跟随鼠标移动boolean,
159
- * }
160
- */
161
- updateInternalMediaData(id: string, mediaData: any): void;
162
- /**
163
- * 保存vr内部控件
164
- * @param id
165
- */
166
- saveInternalMedia(id: string): void;
167
- /**
168
- * 打开控制模块
169
- * @param id
170
- * @param mode
171
- */
172
- openInternalMediaControl(id: string, mode: 'scale' | 'position' | 'rotation'): void;
173
- /**
174
- * 关闭控制模块
175
- */
176
- closeInternalMediaControl(): void;
177
- /**
178
- * 删除vr内部多媒体控件
179
- * @param id
180
- */
181
- deleteInternalMedia(id: string): void;
182
- /**
183
- * 获取序列化数据
184
- */
185
- getInternalSerializeData(): void;
186
- /**
187
- * 设置场景对象数据
188
- * @param data
189
- */
190
- setInternalSceneJson(data: any): void;
191
- createVRTag(data: any): void;
192
- updateVRTagData(id: string, tagData: any): void;
193
- /**
194
- * 获取屏幕截图
195
- * @param id
196
- */
197
- getScreenShot(id: string): void;
198
- getDeepShareUrl(): void;
199
- }
@@ -1,4 +0,0 @@
1
- export interface VKVRTour {
2
- type: string;
3
- tourIndex: number;
4
- }
@@ -1,8 +0,0 @@
1
- import type VkApplicationInitSdkRespDto from '../dto/vk-application-init-sdk-resp-dto';
2
- export default class VkApplicationService {
3
- private static readonly BASE_URL;
4
- /**
5
- * 初始化sdk
6
- */
7
- static sdkInit(applicationUserId: string, userName: string): Promise<VkApplicationInitSdkRespDto>;
8
- }
@@ -1,43 +0,0 @@
1
- import type { Method } from 'axios';
2
- declare class HttpRequest {
3
- method: Method;
4
- url: string;
5
- data: any;
6
- params: {
7
- [index: string]: any;
8
- };
9
- header: {
10
- [index: string]: string;
11
- } | undefined;
12
- readonly clientTimestamp: number;
13
- static NewInstance(method: Method, url: string): HttpRequest;
14
- setData(data: any): HttpRequest;
15
- setParams(params: any): HttpRequest;
16
- setHeader(header: {
17
- [index: string]: string;
18
- }): HttpRequest;
19
- }
20
- declare class HttpResponse {
21
- data: any;
22
- statusCode: number;
23
- header: any;
24
- cookies: string[];
25
- }
26
- declare class HttpUtils {
27
- private static _BASE_URL;
28
- private static readonly _DEFAULT_TIMEOUT;
29
- private static _defaultHeader;
30
- private static secretKey;
31
- static get baseURL(): string;
32
- static set baseURL(value: string);
33
- static set defaultHeader(value: {
34
- [p: string]: string;
35
- });
36
- static get defaultHeader(): {
37
- [p: string]: string;
38
- };
39
- static addDefaultHeader(key: string, value: string): void;
40
- static setSecretKey(secretKey: string): void;
41
- static request(options: HttpRequest): Promise<HttpResponse>;
42
- }
43
- export { HttpRequest, HttpResponse, HttpUtils };
@@ -1,16 +0,0 @@
1
- /** @preserve
2
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
3
- * derived from CryptoJS.mode.CTR
4
- * Jan Hruby jhruby.web@gmail.com
5
- */
6
-
7
- /** @preserve
8
- (c) 2012 by Cédric Mesnil. All rights reserved.
9
-
10
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
11
-
12
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
13
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16
- */