mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
refactor(app): share application components and request services
This commit is contained in:
1 parent
a0a0128a59
commit
a67bc60a29
84 files changed
+2798
-1731
No files matched your search
+8
-1
@@ -1,3 +1,4 @@
|
||||
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';
|
||||
@@ -6,8 +7,14 @@ import * as overlays from '../overlays/worldOverlay.js';
|
||||
import * as globe from '../celestialRing.js';
|
||||
import * as render from '../renderGovernor.js';
|
||||
|
||||
const sourceSlot = createSourceSlot(
|
||||
createRadioSource(),
|
||||
['getDirectory', 'recordClick'],
|
||||
'Radio source',
|
||||
);
|
||||
export const configureRadioSource = sourceSlot.configure;
|
||||
const layer = createRadioLayer({
|
||||
source: createRadioSource(),
|
||||
source: sourceSlot.source,
|
||||
services: { ground, picking, overlays, globe, render },
|
||||
});
|
||||
export const radioGlobeLabel = layer.radioGlobeLabel;
|
||||
|
||||
Reference in new issue
Block a user