mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52: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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user