Skip to content

NebulaSource

github-actions[bot] edited this page Sep 21, 2026 · 1 revision

Interface: NebulaSource<Set, Volumes>

Imported from @elite-dangerous-almanac/galaxy-map.

What a host hands the map to turn the nebulae on. The value is the single export of the package's ./nebulae subpath.

The members are not part of the supported surface: a host passes the value it imported and writes no source of its own. The map reads the value at run time and turns the nebulae off on a value it cannot read.

The record set and the decoded volumes are type parameters and not named types, because this module imports nothing: it is the one nebula module the renderer reaches, and an import here would put the rest of the nebulae back in the entry chunk. The map holds the two as unknown and hands back what it was given, so neither type reaches the supported surface.

Type Parameters

Set

Set = unknown

Volumes

Volumes = unknown

Methods

createDraw()

createDraw(gl, set, volumes): NebulaDraw

Parameters

gl

WebGL2RenderingContext

set

Set

volumes

Volumes

Returns

NebulaDraw


loadSet()

loadSet(): Promise<Set>

Returns

Promise<Set>


loadVolumes()

loadVolumes(): Promise<Volumes>

Returns

Promise<Volumes>

Clone this wiki locally