mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +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
@@ -15,7 +15,10 @@ export function createLifecycle({
|
||||
const { registerPickOwner } = services.picking;
|
||||
|
||||
const binding = createAircraftSceneBinding({
|
||||
id: 'flights', flightState, services, parts,
|
||||
id: 'flights',
|
||||
flightState,
|
||||
services,
|
||||
parts,
|
||||
resolveModel: () => resolveAsset(PLANE_MODEL_URL),
|
||||
enable: () => methods.enable(),
|
||||
});
|
||||
@@ -44,7 +47,8 @@ export function createLifecycle({
|
||||
* @param {{ engine?: object }} [context] - LayerLifecycle's context.
|
||||
*/
|
||||
init(viewer, { engine = null } = {}) {
|
||||
if (flightState.initialized) throw new Error('Flight layer is already initialized');
|
||||
if (flightState.initialized)
|
||||
throw new Error('Flight layer is already initialized');
|
||||
if (typeof flightState.feed._source?.getSnapshot !== 'function')
|
||||
throw new TypeError('A snapshot source is required');
|
||||
if (flightState.lifetime.signal.aborted)
|
||||
|
||||
@@ -112,8 +112,7 @@ export function createFlightSnapshotRenderer({
|
||||
// subpoint + collected floor cells for the viewer-proximate low-contact
|
||||
// clamp below — one carto read per poll, one batch warm after the loop.
|
||||
const viewerCarto =
|
||||
flightState._renderer?.view.camera?.positionCartographic ||
|
||||
null;
|
||||
flightState._renderer?.view.camera?.positionCartographic || null;
|
||||
const viewerLatDeg = viewerCarto
|
||||
? geo.math.toDegrees(viewerCarto.latitude)
|
||||
: null;
|
||||
|
||||
Reference in new issue
Block a user