mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Knip, configured with the application, package exports, scripts, QA harnesses, workers, tools and tests as entry points, reports exports that no module imports. Each was checked by hand against string-based and namespace imports. - Symbols that are still used inside their own module lose only the `export` keyword (176 constants and helpers). - Unused re-exports are removed from barrel modules (flight, military, vessel, CCTV, directions, transit history, local ADS-B and street-level policy modules). - Declarations that nothing uses at all are deleted, among them AIS_WATCHDOG_STATUSES, applyFilter, isRadioCountryCode, compactText, DENSITY_STOPS, the unused CCTV endpoint constants, and the SDR band constants. - Default exports that nothing imports are removed. The ones in src/data/earthquakes.js, src/data/telegeographySubmarineCables.js, src/data/wind.js and src/data/bhoteKoshiLocator.js each constructed a layer instance at import time that nothing used; those instances are no longer created. Every export of a package.json entry stays, as does TOMTOM_CREDIT, which the traffic layer reads from the credits namespace it is given.
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
import { createApplicationCables } from '../app/layers/submarineCables.js';
|
|
import { overlayHost } from '../app/layers/overlayHost.js';
|
|
import { createCableOverlayPublisher as createPublisher } from '../layers/submarineCables/index.js';
|
|
import { createBundledCableSource } from '../layers/submarineCables/bundledSource.js';
|
|
export function createTeleGeographySubmarineCableLayer(options = {}) {
|
|
return createApplicationCables({
|
|
source: createBundledCableSource(),
|
|
...options,
|
|
});
|
|
}
|
|
export function createCableOverlayPublisher(options = {}) {
|
|
return createPublisher({ host: overlayHost, ...options });
|
|
}
|
|
export {
|
|
CABLE_REFERENCE_LABEL_WINNER_CAP,
|
|
CABLE_OVERLAY_SOURCE_ID,
|
|
CABLE_OVERLAY_COLLISION_CAPACITY,
|
|
CABLE_STEM_TIP_EPSILON_M,
|
|
CABLE_SWEEP_MOTION_PROBE_INTERVAL_MS,
|
|
CABLE_SWEEP_MOTION_EPSILON_M,
|
|
CABLE_LABEL_DEPTH_DECISION,
|
|
selectCableReferenceLabelWinners,
|
|
cableReferencePriority,
|
|
createCableOverlayEntry,
|
|
cableClassificationTypeForStack,
|
|
cableClassificationTypeForScene,
|
|
applyTranslucentMarkerBlend,
|
|
createCableReferenceSweepGate,
|
|
updateCableReferenceStem,
|
|
} from '../layers/submarineCables/index.js';
|