mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Format the files this branch wrote or broke with Prettier
This commit is contained in:
1 parent
227e3c2051
commit
8d7f055572
90 files changed
+1408
-640
No files matched your search
@@ -86,9 +86,13 @@ export class ContextControls {
|
||||
}
|
||||
}
|
||||
canRetainScene() {
|
||||
return ['flights', 'space-missions'].includes(this._contextMode) && !this._contextModeChanging &&
|
||||
!this._contextRestoreState && !this._clearSelectedLayersPromise &&
|
||||
!this._contextLayerReactionPromises.size;
|
||||
return (
|
||||
['flights', 'space-missions'].includes(this._contextMode) &&
|
||||
!this._contextModeChanging &&
|
||||
!this._contextRestoreState &&
|
||||
!this._clearSelectedLayersPromise &&
|
||||
!this._contextLayerReactionPromises.size
|
||||
);
|
||||
}
|
||||
captureScene() {
|
||||
return { mode: this._contextMode, snapshot: this._contextSessionSnapshot };
|
||||
|
||||
@@ -176,7 +176,8 @@ export class ShareRestoration {
|
||||
this._initialShareRestoreTimeout = null;
|
||||
if (this._disposed) return;
|
||||
const generation = this._initialShareNavigationGeneration;
|
||||
const retained = engineSwitch && this._layerStateCoordinator?.retainedTrackingTarget();
|
||||
const retained =
|
||||
engineSwitch && this._layerStateCoordinator?.retainedTrackingTarget();
|
||||
const applyCamera =
|
||||
Number.isInteger(generation) &&
|
||||
this.navigation._reassertNavigationHandoff(generation, {
|
||||
@@ -246,7 +247,15 @@ export class ShareRestoration {
|
||||
*/
|
||||
async _runShareRestore(
|
||||
state,
|
||||
{ applyCamera, instant = false, retained, retainScene = false, navigationToken, layersPromise, settle },
|
||||
{
|
||||
applyCamera,
|
||||
instant = false,
|
||||
retained,
|
||||
retainScene = false,
|
||||
navigationToken,
|
||||
layersPromise,
|
||||
settle,
|
||||
},
|
||||
) {
|
||||
const generation = this._shareRestoreGeneration;
|
||||
const current = () =>
|
||||
@@ -259,11 +268,13 @@ export class ShareRestoration {
|
||||
});
|
||||
const layers = await (layersPromise || Promise.resolve([]));
|
||||
if (!current()) return;
|
||||
if (retainScene && !retained) retained = this._layerStateCoordinator?.retainedTrackingTarget();
|
||||
if (retainScene && !retained)
|
||||
retained = this._layerStateCoordinator?.retainedTrackingTarget();
|
||||
const tracking =
|
||||
share.camera === 'applied'
|
||||
? (retained && this._layerStateCoordinator.resumeRetainedTracking(retained)) ||
|
||||
await this._layerStateCoordinator?.restoreShareTrackingSelection?.()
|
||||
? (retained &&
|
||||
this._layerStateCoordinator.resumeRetainedTracking(retained)) ||
|
||||
(await this._layerStateCoordinator?.restoreShareTrackingSelection?.())
|
||||
: {
|
||||
status: 'superseded',
|
||||
cleared:
|
||||
|
||||
Reference in new issue
Block a user