@realsee/vreo 2.3.9-alpha.0 → 2.3.9

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.
@@ -52,57 +52,59 @@ var CameraMovementPlugin = function CameraMovementPlugin(five) {
52
52
  while (1) {
53
53
  switch (_context.prev = _context.next) {
54
54
  case 0:
55
+ moving = true;
56
+
55
57
  if (opts.asyncStartCallback) {
56
58
  opts.asyncStartCallback();
57
59
  }
58
60
 
59
61
  if (!(five.panoIndex === undefined)) {
60
- _context.next = 3;
62
+ _context.next = 4;
61
63
  break;
62
64
  }
63
65
 
64
66
  return _context.abrupt("return", reject(false));
65
67
 
66
- case 3:
68
+ case 4:
67
69
  if (!(args.mode && args.mode !== five.currentMode)) {
68
- _context.next = 7;
70
+ _context.next = 8;
69
71
  break;
70
72
  }
71
73
 
72
- _context.next = 6;
74
+ _context.next = 7;
73
75
  return five.changeMode(args.mode, args, duration);
74
76
 
75
- case 6:
77
+ case 7:
76
78
  return _context.abrupt("return", resolve(true));
77
79
 
78
- case 7:
80
+ case 8:
79
81
  if (!(args.mode === _five.Five.Mode.Floorplan)) {
80
- _context.next = 9;
82
+ _context.next = 10;
81
83
  break;
82
84
  }
83
85
 
84
86
  return _context.abrupt("return", resolve(true));
85
87
 
86
- case 9:
88
+ case 10:
87
89
  if (!(opts.preload && args.panoIndex !== undefined && args.panoIndex !== five.panoIndex)) {
88
- _context.next = 12;
90
+ _context.next = 13;
89
91
  break;
90
92
  }
91
93
 
92
- _context.next = 12;
94
+ _context.next = 13;
93
95
  return five.preloadPano(args.panoIndex);
94
96
 
95
- case 12:
97
+ case 13:
96
98
  (_opts$asyncEndCallbac = opts.asyncEndCallback) === null || _opts$asyncEndCallbac === void 0 ? void 0 : _opts$asyncEndCallbac.call(opts);
97
99
 
98
100
  if (!(args.panoIndex === undefined && args.fov === undefined && args.latitude === undefined && args.longitude === undefined)) {
99
- _context.next = 15;
101
+ _context.next = 16;
100
102
  break;
101
103
  }
102
104
 
103
105
  return _context.abrupt("return", resolve(true));
104
106
 
105
- case 15:
107
+ case 16:
106
108
  panoIndex = args.panoIndex !== undefined ? args.panoIndex : five.panoIndex;
107
109
 
108
110
  if (!(panoIndex !== undefined)) {
@@ -111,10 +113,10 @@ var CameraMovementPlugin = function CameraMovementPlugin(five) {
111
113
  }
112
114
 
113
115
  start = performance.now();
114
- _context.next = 20;
116
+ _context.next = 21;
115
117
  return five.ready();
116
118
 
117
- case 20:
119
+ case 21:
118
120
  movePanoOptions = Object.assign({}, args, {
119
121
  duration: duration - (performance.now() - start),
120
122
  // 移动耗时
@@ -128,7 +130,6 @@ var CameraMovementPlugin = function CameraMovementPlugin(five) {
128
130
  // 移动开始
129
131
  effect: args.transEffect || 'fly'
130
132
  });
131
- moving = true;
132
133
  _context.next = 24;
133
134
  return five.moveToPano(panoIndex, movePanoOptions);
134
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/vreo",
3
- "version": "2.3.9-alpha.0",
3
+ "version": "2.3.9",
4
4
  "description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
5
5
  "keywords": [
6
6
  "realsee",