mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
refactor: construct application layers from supplied sources
This commit is contained in:
1 parent
cd704d0e9b
commit
8160ac5fe4
53 files changed
+1152
-400
No files matched your search
+2
-8
@@ -1,11 +1,6 @@
|
||||
import { createApplicationRadio } from '../app/layers/radio.js';
|
||||
import { createSourceSlot } from '../app/sourceSlot.js';
|
||||
import { createRadioSource } from '../layers/radio/source.js';
|
||||
import { createRadioLayer } from '../layers/radio/index.js';
|
||||
import * as ground from './groundFloor.js';
|
||||
import * as picking from './pickRegistry.js';
|
||||
import * as overlays from '../overlays/worldOverlay.js';
|
||||
import * as globe from '../celestialRing.js';
|
||||
import * as render from '../renderGovernor.js';
|
||||
|
||||
const sourceSlot = createSourceSlot(
|
||||
createRadioSource(),
|
||||
@@ -13,9 +8,8 @@ const sourceSlot = createSourceSlot(
|
||||
'Radio source',
|
||||
);
|
||||
export const configureRadioSource = sourceSlot.configure;
|
||||
const layer = createRadioLayer({
|
||||
const layer = createApplicationRadio({
|
||||
source: sourceSlot.source,
|
||||
services: { ground, picking, overlays, globe, render },
|
||||
});
|
||||
export const radioGlobeLabel = layer.radioGlobeLabel;
|
||||
export const createRadioSelectedOverlayEntry =
|
||||
|
||||
Reference in new issue
Block a user