@realsee/vreo 0.1.5 → 0.1.6
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.
|
@@ -204,18 +204,19 @@ var CameraMovementPlugin = function CameraMovementPlugin(five) {
|
|
|
204
204
|
|
|
205
205
|
if (opts.asyncStartCallback) {
|
|
206
206
|
opts.asyncStartCallback();
|
|
207
|
-
}
|
|
207
|
+
} // 先切换模型再出旋转效果
|
|
208
|
+
|
|
208
209
|
|
|
209
|
-
if (!(five.currentMode !==
|
|
210
|
+
if (!(args.mode && five.currentMode !== args.mode)) {
|
|
210
211
|
_context2.next = 5;
|
|
211
212
|
break;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
_context2.next = 5;
|
|
215
|
-
return five.changeMode(
|
|
216
|
+
return five.changeMode(args.mode);
|
|
216
217
|
|
|
217
218
|
case 5:
|
|
218
|
-
if (!(args.panoIndex !== undefined && args.panoIndex !== five.panoIndex)) {
|
|
219
|
+
if (!(args.mode === _five.Five.Mode.Panorama && five.currentMode === _five.Five.Mode.Panorama && args.panoIndex !== undefined && args.panoIndex !== five.panoIndex)) {
|
|
219
220
|
_context2.next = 11;
|
|
220
221
|
break;
|
|
221
222
|
}
|
package/package.json
CHANGED
|
@@ -139,11 +139,16 @@ export const CameraMovementPlugin: FivePlugin<CameraMovementPluginParameterType,
|
|
|
139
139
|
opts.asyncStartCallback()
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
// 先切换模型再出旋转效果
|
|
143
|
+
if (args.mode && five.currentMode !== args.mode) {
|
|
144
|
+
await five.changeMode(args.mode)
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
|
|
147
|
+
// 全景状态下,需要点位对齐
|
|
148
|
+
if (args.mode === Five.Mode.Panorama &&
|
|
149
|
+
five.currentMode === Five.Mode.Panorama &&
|
|
150
|
+
args.panoIndex !== undefined &&
|
|
151
|
+
args.panoIndex !== five.panoIndex) {
|
|
147
152
|
if (opts.preload) await five.preloadPano(args.panoIndex)
|
|
148
153
|
await new Promise((resolve, reject) => {
|
|
149
154
|
five.moveToPano(args.panoIndex, {
|