@realsee/vreo 0.1.6-alpha.3 → 0.1.6-alpha.4

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.
@@ -247,7 +247,7 @@ var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
247
247
  switch (_context3.prev = _context3.next) {
248
248
  case 0:
249
249
  videoUrl = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : '';
250
- videoUrl = (videoUrl || '').replace(/https*:/, '');
250
+ videoUrl = videoUrl || '';
251
251
 
252
252
  if (videoUrl) {
253
253
  _context3.next = 10;
@@ -37,10 +37,6 @@ function UpdateVRPanorama() {
37
37
  }
38
38
 
39
39
  console.warn('not support.');
40
- Object.keys(images).forEach(function (_key) {
41
- var key = _key;
42
- images[key] = images[key].replace(/https*:\/\//, '//');
43
- });
44
40
  var newWorkJSON = JSON.parse(JSON.stringify((_five$work = five.work) === null || _five$work === void 0 ? void 0 : _five$work.raw.work)); // // 原Work数据不能被修改
45
41
 
46
42
  if (newWorkJSON.panorama && newWorkJSON.panorama.list && newWorkJSON.panorama.list[panoIndex]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/vreo",
3
- "version": "0.1.6-alpha.3",
3
+ "version": "0.1.6-alpha.4",
4
4
  "description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
5
5
  "keywords": [
6
6
  "realsee",
@@ -196,7 +196,7 @@ export class VideoAgentMesh extends THREE.Mesh {
196
196
  }
197
197
 
198
198
  async play(videoUrl = '') {
199
- videoUrl = (videoUrl || '').replace(/https*:/, '')
199
+ videoUrl = videoUrl || ''
200
200
  if (!videoUrl) {
201
201
  if (this.videoUrl) await this.videoInstance.play()
202
202
  else console.warn('警告:视频资源未初始化。')
@@ -17,10 +17,6 @@ export function UpdateVRPanorama() {
17
17
  }
18
18
 
19
19
  console.warn('not support.')
20
- Object.keys(images).forEach((_key) => {
21
- const key = _key as keyof WorkCubeImage
22
- images[key] = images[key].replace(/https*:\/\//, '//')
23
- })
24
20
  const newWorkJSON = JSON.parse(JSON.stringify(five.work?.raw.work))
25
21
 
26
22
  // // 原Work数据不能被修改